1 2015-12-18 Nathan Sidwell <nathan@acm.org>
3 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry for
5 (nvptx_assemble_undefined_decl): Use nvptx_assemble_decl_end.
7 2015-12-18 Jeff Law <law@redhat.com>
9 PR rtl-optimization/49847
10 * cse.c (record_jump_equiv): Handle fold_rtx returning NULL_RTX.
12 2015-12-18 Nathan Sidwell <nathan@acm.org>
14 * config/nvptx/nvptx.c (worker_bcast_name, worker_red_name): Delete.
15 (nvptx_option_override): Adjust worker symbol creation.
16 (nvptx_gen_wcast): Wrap worker address in UNSPEC_TO_GENERIC.
17 (write_worker_buffer): New.
18 (nvptx_file_end): Call write_worker_buffer.
19 * config/nvptx/nvptx.md (UNSPEC_SHARED_DATA): Delete.
20 (worker_load<mode>, worker_store<mode>): Delete.
22 2015-12-18 Richard Biener <rguenther@suse.de>
25 * tree-vect-patterns.c (struct vect_recog_func): New.
26 (vect_vect_recog_func_ptrs): Make an array of function name pairs.
27 (vect_pattern_recog_1): Print the recognized pattern name. Return
28 true if a pattern was recognized.
29 (vect_pattern_recog): Adjust. Stop iterating over pattern recognition
30 functions on a stmt if a pattern was recognized.
32 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34 * ira.c (ira_setup_alts): Move the scan for commutative modifier
35 to the first loop to make it work even with disabled alternatives.
37 2015-12-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
39 * config/s390/s390.c (s390_init_frame_layout): Try r4 to r2 for the
42 2015-12-18 Yuri Rumyantsev <ysrumyan@gmail.com>
44 PR tree-optimization/68906
45 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Add check
46 that an exit block belongs to LOOP.
48 2015-12-18 Ilya Enkovich <enkovich.gnu@gmail.com>
50 PR tree-optimization/68956
51 * tree-vect-stmts.c (vect_init_vector): Fix constants
52 used for boolean vectors.
54 2015-12-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
56 PR rtl-optimization/68796
57 * config/aarch64/aarch64.md (*and<mode>3nr_compare0_zextract):
59 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle
60 ZERO_EXTRACT comparison with zero.
61 (aarch64_mask_from_zextract_ops): New function.
62 * config/aarch64/aarch64-protos.h (aarch64_mask_from_zextract_ops):
65 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
67 * config/s390/predicates.md: Change and rename
68 constm1_operand to all_ones_operand
69 * config/s390/s390.c (s390_expand_vcond): Use all_ones_operand
70 * config/s390/vector.md: Likewise
72 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
74 * config/s390/s390.c (s390_expand_vcond): Convert vector
75 conditional into shift.
76 * config/s390/vector.md: Change operand predicate.
78 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
80 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
81 z900 -march -mtune even on g5 and g6 machines.
82 * config/s390/s390.c (s390_option_override_internal): New argument
83 to distingiush between options and target attributes. Emit
84 deprecation warning for g5 and g6 arch/tune options.
85 (s390_option_override): Set new s390_option_override_internal
87 (s390_valid_target_attribute_tree): Set new
88 s390_option_override_internal argument to false.
89 * config/s390/s390.h: Default to z900 in the driver.
90 * doc/invoke.texi: Document the deprecation of g5 and g6.
92 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
94 * config/i386/djgpp-stdint.h: update typedefs for integer types
96 2015-12-17 Jeff Law <law@redhat.com>
98 * passes.def: Put the split-paths pass immediately before the
101 * doc/invoke.texi (-O2 options): Remove -fsplit-paths.
102 (-O3 options): Add -fsplit-paths.
103 * gimple-ssa-split-paths.c: Include predict.h
104 (split_paths): Only split paths in a loop that should be
106 * opts.c (default_options_table): Move -fsplit-paths from -O2 to
109 2015-12-17 Nathan Sidwell <nathan@acm.org>
111 * ipa-icf.c (sem_item_optimizer::merge): Don't pick 'main' as the
114 2015-12-17 Sebastian Pop <s.pop@samsung.com>
116 * Makefile.in: Replace ISL with isl.
118 * configure: Regenerate.
119 * configure.ac: Same.
120 * doc/install.texi: Same.
121 * doc/invoke.texi: Same.
122 * graphite-isl-ast-to-gimple.c: Same.
123 * graphite-scop-detection.c: Same.
124 * graphite-sese-to-poly.c: Same.
128 * testsuite/gcc.dg/graphite/fuse-1.c: Same.
129 * testsuite/gcc.dg/graphite/fuse-2.c: Same.
130 * testsuite/gcc.dg/graphite/interchange-1.c: Same.
131 * testsuite/gcc.dg/graphite/pr35356-1.c: Same.
134 2015-12-17 Sebastian Pop <s.pop@samsung.com>
136 * graphite-dependences.c: Move all isl include files to...
137 * graphite-isl-ast-to-gimple.c: Same.
138 * graphite-optimize-isl.c: Same.
139 * graphite-poly.c: Same.
140 * graphite-scop-detection.c: Same.
142 * graphite.h: ... here.
144 2015-12-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
146 * config/avr/avr.h (MOVE_MAX): Set value to 1.
147 (MOVE_MAX_PIECES): Define.
148 (MOVE_RATIO): Define.
149 * config/avr/avr.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P):
151 (avr_use_by_pieces_infrastructure_p): New function.
153 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
155 * config.gcc: mark *-interix* as obsolete.
157 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
159 * config.gcc: Mark openbsd 2.0 and 3.X as obsolete.
161 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
163 * config.gcc: Mark knetbsd targets as obsolete.
165 2015-12-17 Nathan Sidwell <nathan@acm.org>
167 * config/nvptx/nvptx.h (NVPTX_RETURN_REGNUM, FRAME_POINTER_REGNUM,
168 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Renumber.
169 (REGISTER_NAMES): Update and rename.
170 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
171 (enum_reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Reformat.
173 2015-12-17 Richard Biener <rguenther@suse.de>
175 PR tree-optimization/68946
176 * tree-vect-slp.c (vect_slp_analyze_node_operations): Push
177 SLP def type to stmt operands one stmt at a time.
179 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
181 * langhooks.h (struct lang_hooks_for_types): New get_bias_field.
182 * langhooks-def.h (LANG_HOOKS_GET_TYPE_BIAS): New.
183 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
186 (base_type_die): In non-strict DWARF mode, invoke the
187 get_type_bias language hook for INTEGER_TYPE nodes. If it
188 returns a bias, emit an attribute for it.
189 (subrange_type_die): Change signature to handle bias. If
190 non-strict DWARF mode, emit an attribute for it, if one passed.
191 (modified_type_die): For subrange types, invoke the
192 get_type_bias langage hook and pass the bias to
195 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
197 * dwarf2out.h (DWARF2OUT_ARRAY_DESCR_INFO_MAX_DIMEN): New macro.
198 (struct array_descr_info): Use it for the dimensions array's
200 * dwarf2out.c (gen_type_die_with_usage): Check that the array
201 descr. language hook does not return an array with more
202 dimensions that it should.
204 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
206 * langhooks.h (struct lang_hooks_for_types): Add a
207 get_fixed_point_type_info field.
208 * langhooks-def.h (LANG_HOOKS_GET_FIXED_POINT_TYPE_INFO): New
210 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
211 get_fixed_point_type_info field.
212 * dwarf2out.h (enum fixed_point_scale_factor): New.
213 (struct fixed_point_type_info): New.
214 * dwarf2out.c (base_type_die): In DWARFv3 or non-strict DWARF
215 mode, get fixed-point type information using the debugging hook
216 and describe it in DWARF, if any.
218 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
220 * langhooks.h (struct lang_hooks_for_types): Add a
221 get_debug_type field.
222 * langhooks-def.h (LANG_HOOKS_GET_DEBUG_TYPE): New macro.
223 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
224 get_debug_type field.
225 * dwarf2out.h (struct array_descr_info): Add an array-wide
227 * dwarf2out.c (modified_type_die): Invoke the get_debug_type
228 language hook, process its result instead, if any.
229 (gen_descr_array_type_die): Add array-wide stride processing.
231 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
233 * debug.h (struct gcc_debug_hooks): Add a new size_function
235 * debug.c (do_nothing_debug_hooks): Set the size_function field
237 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
238 * sdbout.c (sdb_debug_hooks): Likewise.
239 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
240 * stor-layout.c (finalize_size_functions): Let the debug info
241 back-end know about the implementation of size functions.
242 * dwarf2out.h (dw_discr_list_ref): New typedef.
243 (enum dw_val_class): Add value classes for discriminant values
244 and discriminant lists.
245 (struct dw_discr_value): New structure.
246 (struct dw_val_node): Add discriminant values and discriminant
248 (struct dw_loc_descr_node): Add frame_offset_rel and
249 dw_loc_frame_offset (only for checking) fields to handle DWARF
250 procedures generation.
251 (struct dw_discr_list_node): New structure.
252 * dwarf2out.c (dwarf2out_size_function): New.
253 (dwarf2_debug_hooks): Set the size_function field to
254 dwarf2out_size_function.
255 (dwarf2_lineno_debug_hooks): Set the size_function field to
257 (new_loc_descr): Initialize the
258 dw_loc_frame_offset field.
259 (dwarf_proc_stack_usage_map): New.
260 (dw_val_equal_p): Handle discriminants.
261 (size_of_discr_value): New.
262 (size_of_discr_list): New.
263 (size_of_die): Handle discriminants.
264 (add_loc_descr_to_each): New.
266 (print_discr_value): New.
267 (print_dw_val): Handle discriminants.
268 (value_format): Handle discriminants.
269 (output_discr_value): New.
270 (output_die): Handle discriminants.
271 (output_loc_operands): Handle DW_OP_call2 and DW_OP_call4.
272 (uint_loc_descriptor): New.
273 (uint_comparison_loc_list): New.
274 (loc_list_from_uint_comparison): New.
275 (add_discr_value): New.
276 (add_discr_list): New.
277 (AT_discr_list): New.
278 (loc_descr_to_next_no_op): New.
279 (free_loc_descr): New.
280 (loc_descr_without_nops): New.
281 (struct loc_descr_context): Add a dpi field.
282 (struct dwarf_procedure_info): New helper structure.
283 (new_dwarf_proc_die): New.
284 (is_handled_procedure_type): New.
285 (resolve_args_picking_1): New.
286 (resolve_args_picking): New.
287 (function_to_dwarf_procedure): New.
288 (copy_dwarf_procedure): New.
289 (copy_dwarf_procs_ref_in_attrs): New.
290 (copy_dwarf_procs_ref_in_dies): New.
291 (break_out_comdat_types): Copy DWARF procedures along with the
292 types that reference them.
293 (loc_list_from_tree): Rename into loc_list_from_tree_1. Handle
294 CALL_EXPR in the cases suitable for DWARF procedures. Handle
295 for PARM_DECL when generating a location description for a DWARF
296 procedure. Handle big unsigned INTEGER_CST nodes. Handle
297 NON_LVALUE_EXPR, EXACT_DIV_EXPR and all unsigned comparison
298 operators. Add a wrapper for loc_list_from_tree that strips
299 DW_OP_nop operations from the result.
300 (type_byte_size): New.
301 (struct vlr_context): New helper structure.
302 (field_byte_offset): Change signature to return either a
303 constant offset or a location description for dynamic ones.
304 Handle dynamic byte offsets with constant bit offsets and handle
305 fields in variant parts.
306 (add_data_member_location): Change signature to handle dynamic
307 member offsets and fields in variant parts. Update call to
308 field_byte_offset. Handle location lists. Emit a variable data
309 member location only when -fgnat-encodings=minimal.
310 (add_bound_info): Emit self-referential bounds only when
311 -fgnat-encodings=minimal.
312 (add_byte_size_attribute): Use type_byte_size in order to handle
313 dynamic type sizes. Emit variable byte size only when
314 -fgnat-encodings=minimal and when the target DWARF version
316 (add_bit_offset_attribute): Change signature to handle
317 variable-length records. Update call to field_byte_offset.
318 (gen_descr_array_type_die): Update call to gen_field_die.
319 Update loc_descr_context literal.
320 (gen_type_die_for_member): Likewise.
321 (gen_subprogram_die): Update calls to get_decl_die.
322 (gen_field_die): Change signature to handle variable-length
323 records. Update calls to add_bit_offset_attribute and
324 add_data_member_location_attribute.
325 (gen_inheritance_die): Update call to
326 add_data_member_location_attribute.
327 (gen_decl_die): Change signature to handle variable-length
328 records. Update call to gen_field_die.
329 (gen_inheritance_die): Change signature to handle
330 variable-length records. Update call to
331 add_data_member_location_attribute.
332 (is_variant_part): New.
333 (analyze_discr_in_predicate): New.
334 (get_discr_value): New.
335 (analyze_variants_discr): New.
336 (gen_variant_part): New.
337 (gen_member_die): Update calls to gen_decl_die. Call instead
338 gen_variant_part for variant parts.
339 (gen_type_die_with_usage): Update calls to gen_decl_die.
340 (process_scope_var): Likewise.
341 (force_decl_die): Likewise.
342 (declare_in_namespace): Likewise.
343 (dwarf2out_decl): Likewise.
344 (prune_unused_types_walk_loc_descr): New.
345 (prune_unused_types_walk_attribs): Mark DIEs referenced by
346 location descriptions and loc. descr. lists.
347 (prune_unused_types_walk): Don't mark DWARF procedures by
348 default. Mark variant parts since nothing is supposed to
350 (dwarf2out_init): Allocate dwarf_proc_stack_usage_map.
351 (dwarf2out_c_finalize): Deallocate and reset
352 dwarf_proc_stack_usage_map.
354 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
356 * common.opt (gnat_encodings): New variable
357 (dwarf_gnat_encodings): New enum type.
358 (fgnat_encodings): New option.
359 * flag-types.h (enum dwarf_gnat_encodings): New.
361 2015-12-17 Christian Bruel <christian.bruel@st.com>
363 * tree.h (TYPE_MODE_RAW): New macro.
364 * tree-streamer-out.c (pack_ts_type_common_value_fields):
365 Replace TYPE_MODE by TYPE_MODE_RAW.
367 2015-12-17 Jakub Jelinek <jakub@redhat.com>
369 PR tree-optimization/68835
370 * tree.c (get_int_cst_ext_nunits): Return
371 cst.get_precision () / HOST_BITS_PER_WIDE_INT + 1
372 for all unsigned wi::neg_p (cst) constants.
373 (build_new_int_cst): If cst.get_precision is not a multiple
374 of HOST_BITS_PER_WIDE_INT, zero extend -1 to the precision
375 % HOST_BITS_PER_WIDE_INT.
377 2015-12-17 Richard Biener <rguenther@suse.de>
379 PR tree-optimization/68951
380 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
381 Ignore strided non-group accesses.
383 2015-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
385 * config/arc/arc.c (arc_loop_hazard): Don't convert the jump label
386 rtx to an rtx_insn until we confirm it's not a return rtx.
388 2015-12-17 Richard Biener <rguenther@suse.de>
390 * gimple-ssa.h (struct gimple_df): Remove modified_noreturn_calls
392 * tree-ssa.c (delete_tree_ssa): Do not zero it.
394 2015-12-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
397 * configure.ac (gcc_cv_as_stabs_directive): New test.
398 * configure: Regenerate.
399 * config.in: Regenerate.
400 * config/darwin.h (DBX_DEBUGGING_INFO): Wrap in
401 HAVE_AS_STABS_DIRECTIVE.
402 (PREFERRED_DEBUGGING_TYPE): Likewise.
403 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Only include
404 DBX_DEBUG if HAVE_AS_STABS_DIRECTIVE.
406 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
407 attributes): Document stabs.
409 2015-12-16 Martin Sebor <msebor@redhat.com>
412 * ginclude/stdatomic.h (atomic_init): Use atomic_store instead
415 2015-12-15 Michael Meissner <meissner@linux.vnet.ibm.com>
418 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use ROTATE
419 instead of VEC_SELECT for TImode.
421 * config/rs6000/vsx.md (VSX_LE): Move TImode from VSX_LE to
422 VSX_LE_128, so that we use ROTATE to swap the 64-bit words instead
424 (VSX_LE_128): Likewise.
425 (define_peephole2): Add peephole to eliminate double xxpermdi when
428 2015-12-16 John David Anglin <danglin@gcc.gnu.org>
431 * config/pa/pa.md (atomic_loaddi): Honor -mdisable-fpregs.
432 (atomic_loaddi_1): Likewise.
433 (atomic_storedi): Likewise.
434 (atomic_storedi_1): Likewise.
435 (atomic_loaddf): Likewise.
436 (atomic_loaddf_1): Likewise.
437 (atomic_storedf): Likewise.
438 (atomic_storedf_1): Likewise.
439 Move all atomic patterns to end of file.
441 2015-12-16 Abderrazek Zaafrani <a.zaafrani@samsung.com>
443 * graphite-isl-ast-to-gimple.c: Include isl/schedule_node.h.
444 (set_separate_option): New.
445 (translate_isl_ast_to_gimple::set_options_for_schedule_tree): New.
446 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->schedule.
447 * graphite-optimize-isl.c (optimize_isl): Set scop->schedule, do not
448 free the computed schedule tree.
449 * graphite-poly.c (new_scop): Initialize scop->schedule.
450 * graphite.h: Include isl/schedule.h.
451 (struct scop): Add field schedule.
453 2015-12-16 Nathan Sidwell <nathan@acm.org>
455 * ipa-visibility.c (can_replace_by_local_alias): Make static,
456 check ASM_OUTPUT_DEF.
457 (can_replace_by_local_alias_in_vtable): Make static.
458 (function_and_variable_visibility): Reformat overlong comment.
460 2015-12-16 Jeff Law <law@redhat.com>
462 * ree.c (add_removable_extension): Use reg_overlap_mentioned_p
463 rather than testing hard register #s.
465 2015-12-16 Nathan Sidwell <nathan@acm.org>
467 * config/nvptx/nvptx.h (OUTGOING_STATIC_CHAIN_REGNUM): Remove.
468 (REGISTER_NAMES): Adjust.
469 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Avoid long line.
470 (nvptx_static_hain): Delete.
471 (write_arg_mode): Don't emit initializer if argno < 0.
472 (write_arg_type): Fix whitespace.
473 (init_frame): Initialize reg to zero if frame is zero-sized.
474 (nvptx_declare_function_name): Use write_arg_type to emit chain
476 (nvptx_output_call_insn): Adjust static chain emission.
477 (nvptx_goacc_reduction): Make static.
478 (TARGET_STATIC_CHAIN): Don't override.
480 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
482 * graphite-dependences.c (scop_get_dependences): Use local pointers.
483 * graphite-isl-ast-to-gimple.c
484 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->dependence.
485 * graphite-optimize-isl.c (optimize_isl): Same.
486 * graphite-poly.c (new_scop): Remove initialization of removed
489 * graphite.h (struct scop): Remove individial dependence pointers and
490 add a scop::dependence to contain all the dependence.
492 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
494 * graphite-sese-to-poly.c (build_poly_sr): Use refs.
496 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
497 Sebastian Pop <s.pop@samsung.com>
499 * config.in: Regenerate.
500 * configure: Regenerate.
501 * configure.ac: Remove checks for functions that exist in isl 0.13
503 * graphite-isl-ast-to-gimple.c: Remove #ifdefs and code for isl 0.12.
504 * graphite-optimize-isl.c: Same.
505 * graphite-poly.c: Same.
506 * graphite-sese-to-poly.c: Same.
507 * graphite.h: Add comment for isl 0.14.
508 * toplev.c (print_version): Print isl version.
510 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
512 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use can_refer; do not
513 speculate to impossible targets.
514 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
516 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
517 Sebastian Pop <s.pop@samsung.com>
519 * graphite-dependences.c (scop_get_reads): Add more dumps.
520 (scop_get_must_writes): Same.
521 (scop_get_may_writes): Same.
522 * graphite-poly.c (new_poly_dr): Same.
523 * graphite-scop-detection.c (build_cross_bb_scalars_def): Same.
524 (gather_bbs::before_dom_children): Same.
526 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
528 * config/aarch64/aarch64.c (aarch64_extend_bitfield_pattern_p):
530 (aarch64_rtx_costs, ZERO_EXTEND, SIGN_EXTEND cases): Use the above
531 to handle extend+shift rtxes.
533 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
536 * config/aarch64/aarch64-simd.md (*aarch64_simd_bsl<mode>_alt):
538 (aarch64_simd_bsl<mode>_internal): Update comment to reflect
541 2015-12-16 Richard Biener <rguenther@suse.de>
543 PR tree-optimization/68870
544 * tree-cfgcleanup.c (cleanup_control_expr_graph): Add first_p
545 parameter, if set only perform trivial constant folding.
546 Queue other blocks with conditions for later processing.
547 (cleanup_control_flow_bb): Add first_p parameter and pass it through.
548 (cleanup_tree_cfg_1): Pass true for the first iteration
549 cleanup_control_expr_graph.
551 2015-12-16 Nathan Sidwell <nathan@acm.org>
553 * config/nvptx/nvptx-protos.h (nvptx_hard_regno_mode_ok): Delete.
554 * config/nvptx/nvptx.h (struct machine_function):
555 Reimplement. Adjust all users.
556 * config/nvptx/nvptx.c (nvptx_declare_function_name): Move stack
557 and frame array generation earlier.
558 (nvptx_call_args): Reimplement.
559 (nvptx_expand_call): Adjust.
560 (nvptx_hard_reno_mode_ok): Delete.
561 (nvptx_reorg): Revert scan of hard regs.
563 2015-12-16 Tom de Vries <tom@codesourcery.com>
565 * opts.c (default_options_optimization): Set fipa-pta on by
566 default for fopenacc.
567 * passes.def: Move kernels pass group to pass_ipa_oacc.
568 * tree-pass.h (make_pass_oacc_kernels2): Remove.
569 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): Declare.
570 * tree-ssa-loop.c (pass_oacc_kernels2, make_pass_oacc_kernels2):
572 (pass_ipa_oacc, pass_ipa_oacc_kernels): New pass.
573 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): New function.
574 * tree-ssa-structalias.c (pass_ipa_pta::clone): New function.
576 2015-12-16 Richard Biener <rguenther@suse.de>
578 PR tree-optimization/68861
579 * tree-vect-slp.c (vect_build_slp_tree): Properly handle
580 duplicate stmts when applying swapping to stmts.
582 2015-12-16 Kirill Yukhin <kirill.yukhin@intel.com>
584 * config/i386/i386-c.c (ix86_target_macros_internal): Remove
585 duplicate check (__CLZERO__).
587 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
589 * config/arm/arm_neon.h (vqrdmlahq_lane_s16): New.
590 (vqrdmlahq_lane_s32): New.
591 (vqrdmlah_lane_s16): New.
592 (vqrdmlah_lane_s32): New.
593 (vqrdmlshq_lane_s16): New.
594 (vqrdmlshq_lane_s32): New.
595 (vqrdmlsh_lane_s16): New.
596 (vqrdmlsh_lane_s32): New.
597 * config/arm/arm_neon_builtins.def: Add "vqrdmlah_lane" and
600 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
602 * config/arm/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
603 (vqrdmlahq_s16, vqrdmlahq_s32): New.
604 (vqrdmlsh_s16, vqrdmlsh_s32): New.
605 (vqrdmlahq_s16, vqrdmlshq_s32): New.
606 * config/arm/arm_neon_builtins.def: Add "vqrdmlah" and "vqrdmlsh".
608 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
610 * doc/sourcebuild.texi (ARM-specific attributes): Add
611 "arm_v8_1a_neon_ok" and "arm_v8_1a_neon_hw".
613 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
615 * config/arm/arm-c.c (arm_cpu_builtins): Define
616 __ARM_FEATURE_QRDMX. Clean up some trailing whitespace.
618 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
620 * config/arm/iterators.md (VQRDMLH_AS): New.
623 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h<mode>): New.
624 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h_lane<mode>): New.
625 * config/arm/unspecs.md (UNSPEC_VQRDMLAH): New.
626 (UNSPEC_VQRDMLSH): New.
628 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
630 * config/arm/t-aprofile: Make "armv8.1-a" and "armv8.1-a+crc"
631 matches for "armv8-a".
633 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
635 * config/arm/arm-arches.def: Add "armv8.1-a" and "armv8.1-a+crc".
636 * config/arm/arm-protos.h (FL2_ARCH8_1): New.
637 (FL2_FOR_ARCH8_1A): New.
638 * config/arm/arm-tables.opt: Regenerate.
639 * config/arm/arm.c (arm_arch8_1): New.
640 (arm_option_override): Set arm_arch8_1.
641 * config/arm/arm.h (TARGET_NEON_RDMA): New.
642 (arm_arch8_1): Declare.
643 * doc/invoke.texi (ARM Options, -march): Add "armv8.1-a" and
645 (ARM Options, -mfpu): Fix a typo.
647 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
650 * config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
651 the complement of operands[3] during splitting.
653 2015-12-16 Richard Biener <rguenther@suse.de>
655 PR tree-optimization/68892
656 * tree-vect-slp.c (vect_analyze_slp_cost_1): Properly compute
657 cost for permuted loads.
659 2015-12-16 Jakub Jelinek <jakub@redhat.com>
661 PR rtl-optimization/65980
662 * jump.c (rtx_renumbered_equal_p) <case LABEL_REF>: Use
663 next_nonnote_nondebug_insn instead of next_real_insn and
664 skip over CODE_LABELs too.
666 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
668 * symtab.c (symtab_node::fixup_same_cpp_alias_visibility):
669 Do not copy DECL_VIRTUAL_P.
671 2015-12-15 Martin Sebor <msebor@redhat.com>
674 * tree-chkp.c (chkp_find_bound_slots_1): Handle flexible array
676 * tree.c (type_contains_placeholder_1): Avoid assuming type has
677 a non-null domain or an upper bound to handle flexible array
679 * varasm.c (output_constructor_regular_field): Same.
680 (output_constructor): Set min_index to integer_zero_node rather
681 than null when a type has no domain to avoid crashing later.
683 2015-12-15 Nathan Sidwell <nathan@acm.org>
685 * config/nvptx/nvptx.c (write_one_arg): Rename to ...
686 (write_arg_mode): ... here. Update callers.
687 (write_arg): Rename to ...
688 (write__arg_type): ... here. Update callers.
689 (write_return_mode): New fn, broken out of ...
690 (write_return): ... here. Rename to ...
691 (write_return_type): ... here. Call it. Update callers.
692 (write_fn_proto_from_insn): Use write_arg_mode and
694 (init_frame): New fn.
695 (nvptx_declare_function_name): Call it for frame and varargs. Only
696 emit outgoing static chain, if it's live.
697 (nvptx_output_return): Use reg_names for return reg name.
698 (nvptx_output_call_insn): Likewise.
699 (nvptx_reorg): Mark unused hard regs too.
701 2015-12-15 Nathan Sidwell <nathan@acm.org>
703 * config/nvptx/nvptx.md (nvptx_register_operand): Don't accept and
705 (nvptx_reg_or_mem_operand): Likewise.
706 (nvptx_nonmemory_operand): Likewise.
707 (call_insn_operand): A regular predicate, check SYMBOL_REF_FUNCTION_P.
708 (call_insn, call_value_insn): Address is not SImode.
709 * config/nvptx/nvptx.h (FIXED_REGISTERS): Make return reg fixed.
710 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove
712 (REGNO_REG_CLASS): Alwaus ALL_REGS.
713 (PROMOTE_MODE): QI and HI are the only smaller than SI int modes.
714 (HARD_FRAME_POINTER_REGNUM): Delete.
715 (REGISTER_NAMES): Move earlier.
716 (struct nvptx_args): Remove 'off'.
717 (INIT_CUMULATIVE_ARGS): Don't initialize 'off'.
718 (ELIMINABLE_REGS): Remove HARD_FRAME_POINTER_REGNUM.
719 * config/nvptx/nvptx.c (arg_promotion): Delete.
720 (nvptx_expand_call): Remove check for funtype being an fntype.
722 2015-12-15 Jason Merrill <jason@redhat.com>
724 * hash-map.h, hash-table.h: Make copy constructors explicit.
726 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
728 * cgraphunit.c (output_in_order): Do not assemble "omp declare target
729 link" variables in ACCEL_COMPILER.
730 * gimplify.c (gimplify_adjust_omp_clauses): Do not remove mapping of
731 "omp declare target link" variables.
732 * omp-low.c (scan_sharing_clauses): Do not remove mapping of "omp
733 declare target link" variables.
734 (add_decls_addresses_to_decl_constructor): For "omp declare target
735 link" variables output address of the artificial pointer instead
736 of address of the variable. Set most significant bit of the size
738 (pass_data_omp_target_link): New pass_data.
739 (pass_omp_target_link): New class.
740 (find_link_var_op): New static function.
741 (make_pass_omp_target_link): New function.
742 * passes.def: Add pass_omp_target_link.
743 * tree-pass.h (make_pass_omp_target_link): Declare.
744 * varpool.c (symbol_table::output_variables): Do not assemble "omp
745 declare target link" variables in ACCEL_COMPILER.
747 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
750 * gensupport.c (collect_insn_data): Look for number of alternatives
753 2015-12-15 Nathan Sidwell <nathan@acm.org>
755 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Reformat.
756 (CANNOT_CHANGE_MODE_CLASS): Always return true.
757 (HARD_REGNO_MODE_OK): Reformat.
758 * config/nvptx/nvptx.md (define_expand mov<mode>): No
759 RETURN_REGNUM handling here.
760 * config/nvptx/nvptx.c (nvptx_function_value): Set ret_reg_mode
762 (write_one_arg): No QI or HI mode args.
763 (write_fn_proto_from_insn): No argument promotion here.
764 (nvptx_output_return_insn): No return promotion here.
765 (nvptx_output_mov_insn): No RETURN_REGNUM handling needed.
766 (nvptx_output_call_insn): No return promotion here.
768 2015-12-15 Martin Jambor <mjambor@suse.cz>
771 * cgraph.c (collect_callers_of_node_1): Do not collect thunks.
772 * cgraph.h (cgraph_node): Change comment of collect_callers.
774 2015-12-15 Jakub Jelinek <jakub@redhat.com>
776 PR tree-optimization/66688
777 * tree-cfgcleanup.c (cleanup_control_flow_bb): Handle
778 noreturn call followed only by debug stmts by removing
779 the debug stmts and handling it the same as if the noreturn
780 call is the last stmt.
782 2015-12-14 Steve Ellcey <sellcey@imgtec.com>
784 * config/mips/mips.c (mips_promote_function_mode): New function.
785 (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
786 (TARGET_PROMOTE_PROTOTYPES): Remove.
788 2015-12-14 Jason Merrill <jason@redhat.com>
791 * hash-table.h: Add copy constructor.
792 * hash-map.h: Add copy constructor.
794 2015-12-14 Tom de Vries <tom@codesourcery.com>
797 * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
798 * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
799 * tree-cfg.c (dump_default_def): New function.
800 (dump_function_to_file): Dump default defs for arguments, static chain,
801 and decl-by-reference.
803 2015-12-14 Nathan Sidwell <nathan@acm.org>
805 * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
806 * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
807 (pass_in_memory, promote_arg, promote_return): New.
808 (nvptx_function_arg_boundary): Delete.
809 (nvptx_function_value): Use promote_return.
810 (nvptx_pass_by_reference): Use pass_in_memory.
811 (nvptx_return_in_memory): Use pass_in_memory.
812 (nvptx_promote_function_mode): Use promote_arg.
813 (write_arg): Adjust arg splitting logic.
814 (write_return): Check and clear ret_reg_mode, if needed.
815 (write_fn_proto, nvptx_declare_function_name): Adust write_return
817 (TARGET_RUNCTION_ARG_BOUNDARY,
818 TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
820 2015-12-14 Jakub Jelinek <jakub@redhat.com>
823 * common.opt (Wmissing-noreturn): Add Warning option.
824 * opts-common.c (control_warning_option): If opt is
825 alias_target with alias_arg, set arg to it.
827 2015-12-14 Segher Boessenkool <segher@kernel.crashing.org>
831 * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
834 2015-12-14 Richard Biener <rguenther@suse.de>
836 Revert accidentially applied
837 PR tree-optimization/68707
838 PR tree-optimization/67323
839 * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
840 if they can be vectorized using load/store-lane instructions.
842 2015-12-14 Richard Biener <rguenther@suse.de>
844 PR tree-optimization/68852
845 * tree-vectorizer.h (struct _slp_tree): Add def_type member.
846 (SLP_TREE_DEF_TYPE): New accessor.
847 * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
849 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
851 (vect_build_slp_tree): When a node is to be built up from scalars
852 do not push a NULL as child but instead set its def_type to
854 (vect_analyze_slp_cost_1): Check for child def-type instead
856 (vect_detect_hybrid_slp_stmts): Likewise.
857 (vect_bb_slp_scalar_cost): Likewise.
858 (vect_get_slp_defs): Likewise.
859 (vect_slp_analyze_node_operations): Likewise. Before
860 processing node push the children def-types to the underlying
861 stmts vinfo and restore it afterwards.
862 (vect_schedule_slp_instance): Likewise.
863 (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
866 2015-12-14 Richard Biener <rguenther@suse.de>
868 PR tree-optimization/68775
869 * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
870 a operand swapping even if replacing the op with scalars.
872 2015-12-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
874 * combine.c (change_zero_ext): Do not create a shift of zero length.
876 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
878 * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
880 (arc_no_speculation_in_delay_slots_p): New function.
882 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
883 Andrew Burgess <andrew.burgess@embecosm.com>
885 * config/arc/arc.c (frame_move): Set frame related flag.
886 (arc_save_restore): Emit epilogue related DWARF2 information.
887 (arc_expand_epilogue): Likewise.
888 * config/arc/arc.opt (mno-epilogue-cfi): Remove.
889 (mepilogue-cfi): Likewise.
890 * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
892 2015-12-14 Martin Jambor <mjambor@suse.cz>
895 * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
896 (call_passes_through_thunk_p): ...here.
897 (find_more_scalar_values_for_callers_subset): Perform thunk checks
898 like propagate_constants_accross_call does.
900 2015-12-14 Jakub Jelinek <jakub@redhat.com>
902 PR rtl-optimization/68730
903 * cfgrtl.c (cfg_layout_finalize): Free dominators.
905 2015-12-13 Alexandre Oliva <aoliva@redhat.com>
908 * var-tracking.c (reverse_op): Don't add dummy zero to reverse
909 ops that simplify back to the original value.
910 * alias.c (refs_newer_value_p): Cut off recursion for
911 expressions containing the original value.
913 2015-12-13 Kazu Kirata <kazu@gcc.gnu.org>
915 * config/m68k/m68k.md (load feeding clear byte): New peephole2.
917 2015-12-13 Tom de Vries <tom@codesourcery.com>
919 * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
920 parameters of GOACC_paralllel.
922 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
924 * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
925 flag to lto_get_section_data.
926 * varpool.c (varpool_node::get_constructor): Likewise.
927 * lto-section-in.c (lto_get_section_data): Add new flag decompress.
928 (lto_free_section_data): Likewise.
929 (lto_get_raw_section_data): New function.
930 (lto_free_raw_section_data): New function.
931 (copy_function_or_variable): Copy sections w/o decompressing.
932 (lto_output_decl_state_refs): Picke compressed bit.
933 * lto-streamer.h (lto_in_decl_state): New flag compressed.
934 (lto_out_decl_state): Likewise.
935 (lto_get_section_data, lto_free_section_data): Update prototypes
936 (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
937 (lto_write_raw_data): Declare.
938 (lto_begin_section): Remove FIXME.
939 (lto_write_raw_data): New function.
940 (lto_write_stream): Remove FIXME.
941 (lto_new_out_decl_state): Set compressed flag.
943 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
945 * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
946 unnecesary type decls.
947 * tree.h (is_redundant_typedef): Declare.
948 * dwarf2out.c (is_redundant_typedef): Export; booleanize
950 2015-12-12 Eric Botcazou <ebotcazou@adacore.com>
952 * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
953 * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
954 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
955 (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
956 <CONST_DOUBLE>: Remove VOIDmode test.
957 (epilogue_renumber) <CONST_WIDE_INT>: New case.
958 (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
959 (sparc_assemble_integer): Likewise.
960 (set_extends): Likewise.
961 (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
962 <CONST_WIDE_INT>: New case.
963 <CONST_DOUBLE>: Remove support for VOIDmode.
964 <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
965 * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
966 (const_all_ones_operand): Likewise.
967 (uns_small_int_operand): Remove const_double and code conditionalized
968 on HOST_BITS_PER_WIDE_INT == 32.
969 (arith_double_operand): Likewise.
970 (arith_double_add_operand): Likewise.
971 (input_operand): Remove support for CONST_DOUBLE with DImode.
972 * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
973 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
974 (DFmode CONST_DOUBLE splitter): Likewise.
975 (*adddi3_insn_sp32): Likewise.
976 (*subdi3_insn_sp32): Likewise.
977 (DImode logical splitter): Likewise.
978 (DImode CONST_DOUBLE splitter): Delete.
980 2015-12-12 Paolo Bonzini <bonzini@gnu.org>
983 * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
984 sanitization of left shifts for wrapping signed types as well.
986 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
989 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
990 Do not gimplify the result.
991 (do_unop): Adjust call to tree_vec_extract.
992 (do_binop): Likewise.
993 (do_compare): Likewise.
994 (do_plus_minus): Likewise.
995 (do_negate): Likewise.
996 (expand_vector_condition): Likewise.
999 2015-12-11 Nathan Sidwell <nathan@acm.org>
1001 * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
1002 (OUTGOING_ARG_POINTER_REGNUM): Delete.
1003 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1004 (REGISTER_NAMES): Name static chain regs.
1005 * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
1007 (nvptx_incoming_arg): Merge ifs.
1008 (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
1009 (nvptx_function_value): Tail call nvptx_libcall_value.
1010 (nvptx_pass_by_reference): Add ARG_UNUSED.
1011 (nvptx_static_chain): Use conditional op.
1012 (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
1014 2015-12-11 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1015 Dominique d'Humieres <dominiq@lps.ens.fr>
1020 * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
1021 trailing whitespace.
1023 2015-12-11 Jan Beulich <jbeulich@suse.com>
1025 * cfgexpand.c (expand_one_var): Exit early for static and
1026 external variables when adjusting stack alignment related.
1028 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1030 * config/s390/s390.c (s390_rtx_costs)
1031 (s390_cannot_force_const_mem, legitimate_pic_operand_p)
1032 (s390_preferred_reload_class, s390_reload_symref_address)
1033 (legitimate_reload_constant_p, print_operand): Wide int support.
1034 * config/s390/predicates.md ("const0_operand", "constm1_operand")
1035 ("consttable_operand"): Likewise.
1036 ("larl_operand"): Add a comment.
1037 * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
1040 2015-12-11 Nathan Sidwell <nathan@acm.org>
1042 * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
1043 * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
1046 2015-12-11 Tom de Vries <tom@codesourcery.com>
1048 * passes.def: Remove unpaired TERMINATE_PASS_LIST.
1050 2015-12-11 Michael Matz <matz@suse.de>
1052 * hash-map.h (hash_map::hash_map): Gather statistics only
1053 when GATHER_STATISTICS is true.
1054 * hash-set.h (hash_set::hash_set): Ditto.
1055 * hash-table.h (hash_table::hash_table): Ditto.
1056 (hash_table::create_ggc): Ditto.
1058 2015-12-11 Martin Jambor <mjambor@suse.cz>
1061 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
1062 assert that align is nonzero.
1064 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1066 * config/s390/s390.c (s390_expand_setmem): Use new expanders.
1067 * config/s390/s390.md ("*setmem_long")
1068 ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
1069 ("*setmem_long_and_31z"): New define_insn.
1070 ("setmem_long_<P:mode>"): New expanders.
1071 * (<modesize>): New mode attribute
1073 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1075 * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
1076 ("movstr<P:mode>"): New indirect expanders used by "movstr".
1078 2015-12-11 Martin Liska <mliska@suse.cz>
1079 Uros Bizjak <ubizjak@gmail.com>
1082 * config/i386/i386.c (ix86_valid_target_attribute_tree):
1083 Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
1084 opts->x_ix86_tune_string.
1086 2015-12-11 Richard Biener <rguenther@suse.de>
1088 * lto-streamer.h (lto_simple_header_with_strings): Remove
1089 main_size field already in lto_simple_header.
1091 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1093 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1096 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1098 * config/i386/i386.c (ix86_get_mask_mode): Use scalar
1099 modes for 32 and 16 byte boolean vectors when possible.
1101 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1103 PR rtl-optimization/67778
1104 PR rtl-optimization/68634
1105 * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
1106 to put the prologue earlier. When determining if an earlier block is
1107 suitable, make sure it dominates every block reachable from it.
1109 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1111 PR rtl-optimization/68814
1112 * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
1115 2015-12-10 Nathan Sidwell <nathan@acm.org>
1117 * config/nvptx/nvptx.c (nvptx_function_arg,
1118 nvptx_function_incoming_arg, nvptx_function_arg_advance,
1119 nvptx_strict_argument_naming, nvptx_function_arg_boundary,
1120 nvptx_libcall_value, nvptx_function_value,
1121 nvptx_function_value_regno_p, nvptx_pass_by_reference,
1122 nvptx_return_in_memory, nvptx_promote_function_mode,
1123 nvptx_static_chain): Move earlier.
1124 (write_one_arg): Break out as helper fn for ...
1125 (write_arg): ... this new function. Adjust all callers.
1127 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1129 * lto-streamer-out.c (wrap_refs): Only wrap public decls.
1131 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1133 * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
1134 (good_cloning_opportunity_p): Likewise.
1135 (gather_context_independent_values): Do not return true when
1136 polymorphic call context is known or when we have known aggregate
1137 value of unused parameter.
1138 (estimate_local_effects): Try to create clone for all context
1139 when either some params are substituted or devirtualization is possible
1140 or some params can be removed; use local flag instead of
1141 node->will_be_removed_from_program_if_no_direct_calls_p.
1142 (identify_dead_nodes): Likewise.
1144 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1146 * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
1148 (-Wmisleading-indentation): Update documentation to reflect
1149 being enabled by -Wall in C/C++.
1151 2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
1153 PR rtl-optimization/68691
1154 * lra-spills.c (lra_final_code_change): Check pseudo occurrence
1155 number in non-debug insns and remove debug insns if necessary.
1157 2015-12-10 Martin Sebor <msebor@redhat.com>
1159 * invoke.texi (Warning Options): Update -Wall options. Clarify
1160 when some -Wextra options are enabled. Add -Wplacement-new example.
1162 2015-12-10 Uros Bizjak <ubizjak@gmail.com>
1164 * graphite-scop-detection.c (gather_bbs::before_dom_children):
1165 Change return type to an edge. Always return NULL.
1167 2015-12-10 Jeff Law <law@redhat.com>
1169 PR tree-optimization/68619
1170 * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
1171 return value from optimize_stmt.
1172 (dom_opt_dom_walker): Add new argument to dom_walker constructor.
1173 (pass_dominator:execute): If a block has an unreachable edge,
1174 remove all jump threads through any successor of the affected block.
1175 (record_equivalences_from_phis): Ignore alternative if the edge
1176 does not have EDGE_EXECUTABLE set.
1177 (single_incoming_edge_ignoring_loop_edges): Similarly.
1178 (optimize_stmt): If a gimple_code has a compile-time constant
1179 condition, return the edge taken for that constant value. Also
1180 change the condition to true/false as necessary.
1181 * domwalk.h (dom_walker::dom_walker): Add new argument
1182 skip_unreachable_blocks. Don't provide empty constructor body.
1183 (dom_walker::before_dom_children): Change return type.
1184 (dom_walker::bb_reachable): Declare new private method.
1185 (dom_walker::propagate_unreachable_to_edges): Likewise.
1186 (dom_walker::m_unreachable_dom): Declare new private data member.
1187 (dom_walker::m_skip_unreachable_blocks): Likewise.
1188 * domwalk.c: Include dumpfile.h.
1189 (dom_walker::dom_walker): New constructor. Initialize private data
1190 members. If needed, set EDGE_EXECUTABLE for all edges in the CFG,
1191 extracted from tree-ssa-sccvn.c.
1192 (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
1193 (dom_walker::propagate_unreachable_to_edges): Likewise.
1194 (dom_walker::walk): Only call before_dom_children on reachable
1195 blocks. If before_dom_children returns an edge, then clear
1196 EDGE_EXECUTABLE for all other outgoing edges from the same block.
1197 For unreachable blocks, call propagate_unreachable_to_edges.
1198 Similarly, only call after_dom_children on reachable blocks. For
1199 unreachable blocks, conditionally clear m_unreachable_dom.
1200 * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
1201 private data member.
1202 (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
1204 (run_scc_vn): Likewise.
1205 (sccvn_dom_walker::before_dom_children): Likewise. Return the taken
1206 outgoing edge if a COND, SWITCH, or GOTO are optimized.
1207 * compare-elim.c (find_comparison_dom_walker::before_dom_children):
1208 Change return type to an edge. Always return NULL.
1209 * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
1210 * gimple-ssa-strength-reduction.c
1211 (find_candidates_dom_walker::before_dom_children): Likewise.
1212 * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
1213 (ipcp_modif_dom_walker::before_dom_children): Likewise.
1214 * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
1215 (rewrite_update_dom_walker::before_dom_children): Likewise.
1216 (mark_def_dom_children::before_dom_children): Likewise.
1217 * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
1218 * tree-ssa-loop-im.c
1219 (invariantness_dom_walker::before_dom_children): Likewise.
1220 (move_computations_dom_walker::before_dom_walker): Likewise.
1222 (nontrapping_dom_walker::before_dom_children): Likewise.
1224 (eliminate_dom_walker::before_dom_children): Likewise.
1225 * tree-ssa-propagate.c
1226 (substitute_and_fold_dom_walker::before_dom_children): Likewise.
1228 (strlen_dom_walker::before_dom_children): Likewise.
1229 * tree-ssa-uncprop.c
1230 (uncprop_dom_walker::before_dom_children): Likewise.
1232 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1234 PR rtl-optimization/68376
1235 PR rtl-optimization/68670
1236 * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
1237 or > -1 conditions regardless of negate, and disallow
1238 all other conditions.
1240 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1242 * tree-chkp.c (chkp_call_returns_bounds_p): Return true
1244 (chkp_fixup_inlined_call): New.
1245 * tree-chkp.h (chkp_fixup_inlined_call): New.
1246 * tree-stdarg.c: Include tree-chkp.h.
1247 (expand_ifn_va_arg_1): Fixup bndret calls for removed
1250 2015-12-10 Martin Jambor <mjambor@suse.cz>
1252 * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
1253 (replace_locals_op): Duplicate gimple sequences in OMP clauses.
1255 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1257 * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
1259 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1261 * ifcvt.c (noce_try_inverse_constants): Fix indentation.
1263 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1265 * regrename.c (scan_rtx_address): Fix indentation.
1267 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1269 * function.c (locate_and_pad_parm): Fix indentation.
1271 2015-12-10 Richard Biener <rguenther@suse.de>
1273 * tree-ssa-structalias.c (struct variable_info): Add
1274 is_ipa_escape_point flag.
1275 (new_var_info): Initialize to false.
1276 (find_func_aliases): Generate escape constraints for stores
1277 properly in IPA mode.
1278 (ipa_pta_execute): Compute is_ipa_escape_point for globals.
1280 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1282 * config/arc/atomic.md: Add new file.
1284 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1286 * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
1287 (arc_split_compare_and_swap): Likewise.
1288 (arc_expand_compare_and_swap): Likewise.
1289 * config/arc/arc.c (arc_init): Check usage atomic option.
1290 (arc_pre_atomic_barrier): New function.
1291 (arc_post_atomic_barrier): Likewise.
1292 (emit_unlikely_jump): Likewise.
1293 (arc_expand_compare_and_swap_qh): Likewise.
1294 (arc_expand_compare_and_swap): Likewise.
1295 (arc_split_compare_and_swap): Likewise.
1296 (arc_expand_atomic_op): Likewise.
1297 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
1298 (ASM_SPEC): Enable mlock option when matomic is used.
1299 * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
1300 (VUNSPEC_ARC_CAS): Likewise.
1301 (VUNSPEC_ARC_LL): Likewise.
1302 (VUNSPEC_ARC_SC): Likewise.
1303 (VUNSPEC_ARC_EX): Likewise.
1304 * config/arc/arc.opt (matomic): New option.
1305 * config/arc/constraints.md (ATO): New constraint.
1306 * config/arc/predicates.md (mem_noofs_operand): New predicate.
1307 * doc/invoke.texi: Document -matomic.
1308 * config/arc/atomic.md: New file.
1310 2015-12-10 Richard Biener <rguenther@suse.de>
1312 PR tree-optimization/68817
1313 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
1316 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1318 * tree-vect-stmts.c (vectorizable_assignment): Support
1319 useless boolean conversion.
1321 2015-12-10 Alan Lawrence <alan.lawrence@arm.com>
1323 * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
1325 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1327 PR tree-optimization/68785
1328 * gimple-fold.c (fold_ctor_reference): Pass return value from
1329 native_encode_expr to native_interpret_expr.
1330 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
1332 2015-12-10 Richard Biener <rguenther@suse.de>
1335 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
1336 parameter and make vars_contains_nonlocal properly have
1337 function-scope semantics in IPA mode.
1338 (find_what_var_points_to): Add fndecl parameter.
1339 (find_what_p_points_to): Likewise.
1340 (pt_solution_includes_global): Remove IPA PTA early out.
1341 (compute_points_to_sets): Adjust.
1342 (ipa_pta_execute): Likewise. Clear final_solutions after
1345 2015-12-10 Tom de Vries <tom@codesourcery.com>
1348 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
1349 ifdef to allow disabling default @node GNU Free Documentation License.
1351 2015-12-10 Richard Biener <rguenther@suse.de>
1353 * tree-ssa-structalias.c (create_function_info_for): Add missing
1354 constraint from nonlocal for DECL_RESULT.
1356 2015-12-10 Richard Biener <rguenther@suse.de>
1358 * tree-if-conv.c: Include params.h.
1359 (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
1360 instead of flag_tree_loop_if_convert_stores to guard cases
1361 we'd introduce store-data-races.
1363 2015-12-10 Richard Biener <rguenther@suse.de>
1366 * ipa-split.c (split_function): Record return value properly
1367 when the split part doesn't set it.
1369 2015-12-10 Richard Biener <rguenther@suse.de>
1371 PR tree-optimization/68806
1372 * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
1373 reduction chains and ignore SLP reductions.
1375 2015-12-10 Richard Biener <rguenther@suse.de>
1377 * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
1379 (if_convertible_loop_p): Adjust.
1381 2015-12-10 Tom de Vries <tom@codesourcery.com>
1383 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
1386 2015-12-10 Martin Liska <mliska@suse.cz>
1388 * tree-vect-data-refs.c: Free an overwritten dataref.
1390 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
1393 * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
1394 consistent with modes of the input and output operands when doing
1395 reloads to and from floating point registers. Do reload for all
1398 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1402 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
1403 (nonoverlapping_component_refs_of_decl_p): Update sanity check.
1404 (decl_refs_may_alias_p): Use compare_base_decls.
1405 * alias.c: Include cgraph.h
1406 (get_alias_set): Add cut-off for recursion.
1407 (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
1408 (compare_base_decls): New function.
1409 (base_alias_check): Likewise.
1410 (memrefs_conflict_p): Likewise.
1411 (nonoverlapping_memrefs_p): Likewise.
1412 * alias.h (compare_base_decls): Declare.
1414 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1417 * ipa-visibility.c (function_and_variable_visibility): Fix vtable
1420 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1424 * ipa-reference.c (ipa_reference_get_not_read_global,
1425 ipa_reference_get_not_read_global): Fix WRT aliases.
1426 (is_improper): Break out from ...
1427 (is_proper_for_analysis): ... here; fix WRT aliases.
1428 (analyze_function, generate_summary,
1429 ipa_reference_write_optimization_summary,
1430 ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
1431 * ipa-refrence.h (ipa_reference_var_uid): New inline.
1432 * tree-ssa-alias.c: Revert my accidental previous commit.
1433 (ref_maybe_used_by_call_p_1,
1434 call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
1436 2015-12-09 Andreas Tobler <andreast@gcc.gnu.org>
1438 * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
1440 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1441 Sebastian Pop <s.pop@samsung.com>
1443 * graphite-optimize-isl.c: Include isl/ast_build.h
1444 (optimize_isl): Set several isl_options_set_* options.
1446 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1447 Sebastian Pop <s.pop@samsung.com>
1449 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
1450 the same order as adding data reference access functions.
1452 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1453 Sebastian Pop <s.pop@samsung.com>
1455 * graphite-optimize-isl.c (optimize_isl): Improve dump message.
1457 2015-12-09 Marek Polacek <polacek@redhat.com>
1459 PR tree-optimization/66949
1460 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
1461 single_non_singleton_phi_for_edges to get the PHI from
1462 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
1463 (factor_out_conditional_conversion): Adjust declaration. Make it
1464 return the newly-created PHI.
1466 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
1468 * config/aarch64/aarch64-protos.h
1469 (aarch64_cannot_change_mode_class): Bring back.
1470 * config/aarch64/aarch64.c
1471 (aarch64_cannot_change_mode_class): Likewise.
1472 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
1473 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
1474 zero_extract rather than truncate.
1475 (aarch64_movdi_<mode>high): Likewise.
1477 2015-12-09 Jakub Jelinek <jakub@redhat.com>
1479 PR tree-optimization/68786
1480 * tree-if-conv.c: Include builtins.h.
1481 (predicate_mem_writes): Put result of get_object_alignment (ref)
1482 into second argument's value.
1483 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
1484 pointer alignment into second argument's value.
1485 * tree-data-ref.c (get_references_in_stmt): Use value of second
1486 argument for build_aligned_type, and only the type to build
1487 a zero second argument for MEM_REF.
1488 * internal-fn.c (expand_mask_load_optab_fn,
1489 expand_mask_store_optab_fn): Likewise.
1491 2015-12-09 Richard Biener <rguenther@suse.de>
1493 PR tree-optimization/68583
1494 * tree-if-conv.c (if_convertible_phi_p): Drop
1495 flag_tree_loop_if_convert_stores check in favor of the
1496 existing any_mask_load_store check.
1497 (insert_gimplified_predicates): Likewise.
1498 (combine_blocks): Likewise.
1499 (tree_if_conversion): Likewise.
1500 (ifcvt_memrefs_wont_trap): Properly check
1501 flag_tree_loop_if_convert_stores in all places that can end
1502 up introducing store-data-races.
1503 (if_convertible_gimple_assign_stmt_p): Remove restriction
1504 on flag_tree_loop_if_convert_stores for stores we can if-convert
1505 without introducing store-data-races. Force versioning for
1506 all if-converted stores.
1508 2015-12-09 Tom de Vries <tom@codesourcery.com>
1510 PR tree-optimization/68716
1511 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
1512 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
1514 2015-12-09 Martin Liska <mliska@suse.cz>
1516 * hash-traits.h (struct typed_delete_remove): New function.
1517 (typed_delete_remove ::remove): Likewise.
1518 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
1520 (record_common_cand): Replace XNEW with operator new.
1522 2015-12-09 Martin Liska <mliska@suse.cz>
1524 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
1526 2015-12-09 Martin Liska <mliska@suse.cz>
1529 * ipa-icf.c (sem_function::param_used_p): Return true
1530 if ipa_node_params_sum equals to NULL.
1532 2015-12-09 Richard Biener <rguenther@suse.de>
1534 PR tree-optimization/68583
1535 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
1536 flag and rename predicates to w_predicate, rw_predicate and
1538 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
1539 (DR_BASE_W_UNCONDITIONALLY): ... this.
1540 (DR_W_UNCONDITIONALLY): Add.
1541 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
1542 unconditionally written separately from read or written.
1543 (ifcvt_memrefs_wont_trap): Properly treat reads.
1544 (ifcvt_could_trap_p): Inline ...
1545 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
1546 to avoid code duplication.
1547 (if_convertible_loop_p_1): Adjust and properly initialize
1550 2015-12-09 Richard Biener <rguenther@suse.de>
1552 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
1553 if it was not yet set.
1554 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
1555 overwrite an existing entry.
1557 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1559 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
1560 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
1561 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
1563 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1566 * symtab.c (symtab_node::equal_address_to): New parameter
1568 * cgraph.h (symtab_node::equal_address_to): Update prototype.
1570 2015-12-08 DJ Delorie <dj@redhat.com>
1572 * config/rx/rx.opt (-mjsr): Add.
1573 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
1575 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
1577 * doc/invoke.texi (-mjsr): Document it.
1579 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1582 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
1583 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
1584 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
1585 DECL_ABSTRACT_ORIGIN is not error_mark_node.
1587 2015-12-08 David Malcolm <dmalcolm@redhat.com>
1589 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
1591 2015-12-08 David Malcolm <dmalcolm@redhat.com>
1593 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
1596 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1599 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
1602 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1605 * varpool.c (varpool_node::get_availability): Recurse only on
1606 weakrefs with definition in the target.
1607 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
1609 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1612 * ipa-visibility.c (can_replace_by_local_alias): Look through
1613 transparent aliases; refuse weakrefs.
1614 (update_visibility_by_resolution_info): Skip transparent aliases in the
1617 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1620 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
1621 (symtab_node::noninterposable_alias): Do not accept transparent
1624 2015-12-08 Nathan Sidwell <nathan@acm.org>
1626 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
1627 decl_offset, init_part, object_size, object_finished): Replace
1629 (struct init_frag): ... this new struct variable.
1630 (begin_decl_field, output_decl_chunk): Replace with ...
1631 (output_init_frag): ... this new function.
1632 (nvptx_assemble_value): Reimplement.
1633 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
1634 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
1635 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
1637 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1641 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
1642 with BLKmode promoted mode based on RESULT_DECLs.
1644 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
1647 * config/i386/i386.c (ix86_option_override_internal): Enable
1648 -maccumulate-outgoing-args when %ebp is fixed due to stack
1649 realignment requirements.
1651 2015-12-08 Tom de Vries <tom@codesourcery.com>
1653 PR tree-optimization/68640
1654 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
1657 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
1659 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
1660 assembler to make source always 128bit.
1662 2015-12-08 Jakub Jelinek <jakub@redhat.com>
1666 * common.opt (Wframe-larger-than=): Add Warning.
1667 * opts.h (control_warning_option): Add ARG argument.
1668 * opts-common.c (cmdline_handle_error): New function.
1669 (read_cmdline_option): Use it.
1670 (control_warning_option): Likewise. Add ARG argument.
1671 If non-NULL, decode it if needed and pass through
1672 to handle_generated_option. Handle CLVC_ENUM like
1674 * opts.c (common_handle_option): Adjust control_warning_option
1676 (enable_warning_as_error): Likewise.
1678 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
1680 * config/aarch64/aarch64-options-extensions.def: Remove
1681 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
1683 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
1684 (AARCH64_FL_LOR): Remove.
1685 (AARCH64_FL_RDMA): Remove.
1686 (AARCH64_FL_V8_1): New.
1687 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
1688 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1689 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1690 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
1691 section on -march=native. Group descriptions of permitted
1692 architecture names together. Expand description of
1694 (AArch64 -mtune): Slightly rework section on -march=native.
1695 (AArch64 -mcpu): Slightly rework section on -march=native.
1696 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
1697 State that -march=armv8.1-a enables "crc" and "lse".
1699 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1701 * doc/invoke.texi (SPARC options): Fix typo.
1703 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1705 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
1706 (output_probe_stack_range): Rotate the loop and simplify.
1708 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
1710 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
1711 infinity filterning code.
1713 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
1715 PR tree-optimization/68766
1716 * tree-vectorizer.c (vectorize_loops): Check for
1717 if-converted loops when debug counters are used.
1719 2015-12-07 DJ Delorie <dj@redhat.com>
1721 * config/rl78/constraints.md (Wfr): Change to be a non-memory
1723 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
1724 * config/rl78/rl78.c (rl78_one_far_p): Define.
1725 * config/rl78/rl78-virt (movqi_virt): Fix far memory
1727 (movhi_virt): Likewise.
1728 (zero_extendqihi2_virt): Likewise.
1729 (extendqihi2_virt): Likewise.
1730 (add<mode>3_virt): Likewise.
1731 (sub<mode>3_virt): Likewise.
1732 (andqi3_virt): Likewise.
1733 (iorqi3_virt): Likewise.
1734 (xorqi3_virt): Likewise.
1735 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
1736 overflow in large files.
1738 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
1741 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
1742 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
1743 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
1744 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
1746 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
1748 * reorg.c (optimize_skip): Do not put frame related instructions
1749 in annulled delay slots.
1750 (steal_delay_list_from_target): Ditto.
1751 (fill_slots_from_thread): Ditto.
1753 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
1755 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
1756 * config/aarch64/aarch64.md: Include "exynos-m1.md".
1757 * config/arm/arm.md: Likewise.
1758 * config/arm/exynos-m1.md: New file.
1760 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
1762 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
1764 2015-12-07 Nathan Sidwell <nathan@acm.org>
1766 * config//nvptx/nvptx.c (write_return): New.
1767 (write_fn_proto, nvptx_declare_function_name): Call it.
1769 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
1772 * symtab.c (ultimate_transparent_alias_target): New inline function.
1773 (symbol_table::assembler_names_equal_p): New method; break out from ...
1774 (symbol_table::decl_assembler_name_equal): ... here.
1775 (symbol_table::change_decl_assembler_name): Also update names and
1776 translation links of transparent aliases.
1777 (symtab_node::dump_base): Dump transparent_alias.
1778 (symtab_node::verify_base): Implement basic transparent alias
1780 (symtab_node::make_decl_local): Support localization of weakrefs;
1781 recurse to transparent aliases; set TREE_STATIC.
1782 (symtab_node::ultimate_alias_target_1): Handle visibility of
1783 transparent aliases.
1784 (symtab_node::resolve_alias): New parmaeter transparent; handle
1785 transparent aliases; recurse to aliases of aliases to fix comdat
1787 (symtab_node::get_partitioning_class): Handle transparent aliases.
1788 * ipa-visibility.c (cgraph_externally_visible_p,
1789 varpool_node::externally_visible_p): Visibility of transparent alias
1790 depends on its target.
1791 (function_and_variable_visibility): Do not tweak visibility of
1792 transparent laiases.
1793 (function_and_variable_visibility): Likewise.
1794 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
1795 transparent_alias flag.
1796 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
1797 Support transparent aliases.
1798 * cgraph.h (symtab_node): Update prototype of resolve_alias;
1799 add transparent_alias flag.
1800 (symbol_table: Add assembler_names_equal_p.
1801 (symtab_node::real_symbol_p): Skip transparent aliases.
1802 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
1803 (handle_alias_pairs): Set transparent_alias for weakref.
1804 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
1806 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
1807 skip symbols not put into boundary; stream transparent_alias.
1808 (lto_output_varpool_node): Likewise.
1809 (input_overwrite_node, input_varpool_node): Stream transparent alias.
1810 * varpool.c (ctor_for_folding, varpool_node::get_availability,
1811 varpool_node::assemble_aliases,
1812 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
1813 (varpool_node::create_alias): Set transparent_alias.
1815 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
1819 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
1820 SSA names based on RESULT_DECLs.
1821 * function.c (expand_function_start): Do not create BLKmode REGs
1822 for GIMPLE registers when coalescing is enabled.
1824 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1826 * final.c (shorten_branches): Fix check for basic asm.
1827 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
1830 2015-12-07 Nathan Sidwell <nathan@acm.org>
1832 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
1835 2015-12-07 David Malcolm <dmalcolm@redhat.com>
1837 * pretty-print.c (text_info::set_range): Rename to...
1838 (text_info::set_location): ...this, converting 2nd param
1839 from source_range to a location_t.
1840 * pretty-print.h (text_info::set_location): Convert
1841 from inline function to external definition.
1842 (text_info::set_range): Delete.
1844 2015-12-07 Nathan Sidwell <nathan@acm.org>
1846 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
1847 complex and vector types. Cope with packed structs.
1849 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
1852 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
1853 Force destination to 512 bits register.
1855 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
1858 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
1859 (define_insn "kunpcksi"): Ditto.
1860 (define_insn "kunpckdi"): Ditto.
1862 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
1864 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
1866 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
1868 * common/config/i386/i386-common.c
1869 (OPTION_MASK_ISA_CLZERO_SET): New.
1870 (ix86_handle_option): Handle clzero.
1871 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
1872 (x86_64-*-*): Likewise.
1873 * config/i386/clzerointrin.h: New header.
1874 * config/i386/cpuid.h (bit_CLZERO): Define.
1875 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1877 * config/i386/i386.opt (clzero): New.
1878 * config/i386/i386-c.c: Define __CLZERO__ if needed.
1879 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
1881 (ix86_option_override_internal): Handle new option.
1882 (processor_alias_table): Added PTA_CLZERO.
1883 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
1884 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
1885 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
1886 IX86_BUILTIN_CLZERO built-ins.
1887 * config/i386/i386.h (TARGET_CLZERO): New.
1888 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
1889 (clzero): New pattern.
1890 (clzero_<mode>): New pattern.
1891 * config/i386/x86intrin.h: Include clzerointrin.h.
1892 * doc/extend.texi: Document clzero builtins.
1893 * doc/invoke.texi: Document -mclzero option.
1895 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
1897 * ipa-icf.c (sem_function::merge): Check that local_original exists.
1899 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
1902 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
1904 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
1905 non-reciporcal path.
1906 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
1907 (sqrt<mode>2): Replace define_insn with define_expand that may call
1910 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1911 Sebastian Pop <s.pop@samsung.com>
1913 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1915 (get_rename_from_scev): Check that all the ops in an expression
1916 have their uses dominated by corresponding defs.
1918 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1919 Sebastian Pop <s.pop@samsung.com>
1921 PR tree-optimization/68693
1922 * graphite-scop-detection.c (dot_all_sese): New
1923 (dot_all_scops_1): Renamed to dot_all_sese.
1924 (dot_all_scops): Removed.
1927 (scop_detection::get_nearest_dom_with_single_entry): Check that
1928 preds are from different loop levels.
1929 (scop_detection::get_nearest_pdom_with_single_exit): Check that
1930 succs are from different loop levels.
1931 (scop_detection::print_sese): Inlined.
1932 (scop_detection::print_edge): New.
1933 (scop_detection::merge_sese): Added dumps.
1934 * graphite.h: Add declarations.
1936 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
1938 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
1941 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
1943 PR rtl-optimization/68349
1944 * lra-eliminations.c (move_plus_up): New function.
1945 (lra_eliminate_regs_1): Use the function.
1947 2015-12-04 Nathan Sidwell <nathan@acm.org>
1949 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
1950 (init_output_initializer): ... this.
1951 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
1952 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
1953 nvptx_assemble_decl_begin.
1955 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
1957 * sancov.c: New file.
1958 * Makefile.in (OBJS): Add sancov.o.
1959 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
1960 * passes.def (sancov_pass): Add.
1961 * tree-pass.h (sancov_pass): Add.
1962 * common.opt (-fsanitize-coverage=trace-pc): Add.
1963 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
1964 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
1965 flag_sanitize_coverage.
1967 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1970 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1971 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
1972 * config/arm/arm.md (probe_stack_range): Adjust.
1973 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1974 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
1975 (probe_stack_range_<PTR:mode>): Adjust.
1977 2015-12-04 David Malcolm <dmalcolm@redhat.com>
1979 * convert.c (convert_to_real_1): When converting from a
1980 REAL_TYPE, preserve the location of EXPR in the result.
1981 * tree.c (get_pure_location): Make non-static.
1982 (set_source_range): Return the resulting location_t.
1983 (make_location): New function.
1984 * tree.h (get_pure_location): New decl.
1985 (get_finish): New inline function.
1986 (set_source_range): Convert return type from void to location_t.
1987 (make_location): New decl.
1989 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1992 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
1993 input_location to inform.
1994 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
1995 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
1996 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
1998 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
2000 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
2001 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
2002 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
2003 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
2004 comdat and non-comdat.
2005 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
2006 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
2009 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
2011 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
2012 instead of register_operand. Remove empty constraints. Use std::swap.
2013 (cstore_si_as_di, cstore<mode>4_signed_imm,
2014 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
2015 gpc_reg_operand instead of register_operand.
2016 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
2017 register_operand. Remove empty constraints.
2019 2015-12-04 Nick Clifton <nickc@redhat.com>
2021 * config.gcc (extra_gcc_objs): Define for MSP430.
2022 * common/config/msp430/msp430-common.c (msp430_handle_option):
2023 Pass both -mmcu and -mcpu on to the back end if they are both defined.
2024 * config/msp430/msp430.c (hwmult_name): New function.
2025 (msp430_option_override): If an unrecognised MCU name is
2026 detected only warn if the user has not provided suitable
2027 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
2028 warning messages. Generate warnings about conflicts between
2029 -mmcu and -mcpu and -mhwmult options.
2030 If neither -mcpu nor -mmcu have been specified but -mhwmult=
2031 f5series has the select the 430X isa.
2032 (msp430_no_hwmult): If -mmcu has not been specified and
2033 msp430_hwmult_type is AUTO then return true.
2034 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
2035 (LIB_SPEC): Add hardware multiply library selection.
2036 * config/msp430/t-msp430: Delete hardware multiply multilibs.
2037 Add rule to build driver-msp430.o
2038 * config/msp430/driver-msp430.c: New file.
2039 * config/msp430/msp430.opt (warn-mcu): New option.
2040 * doc/invoke.texi: Update description of -mhwmult=auto.
2041 Document -mwarn-mcu option.
2043 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
2045 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
2046 (cstore<mode>4): Call it.
2048 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2050 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
2052 PR tree-optimization/68680
2053 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
2054 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
2057 PR tree-optimization/68671
2058 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
2059 blocks starting with the successor of first bb we've modified
2060 and ending with last_bb call reset_flow_sensitive_info_in_bb.
2062 2015-12-04 Jeff Law <law@redhat.com>
2064 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
2065 indicating if a gimple conditional was optimized to true/false.
2066 (reassociate_bb): Bubble up return value from
2067 maybe_optimize_range_tests.
2068 (do_reassoc): Similarly, but for reassociate_bb.
2069 (execute_reassoc): Return TODO_cleanup_cfg as needed.
2071 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2073 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2074 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
2075 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
2076 does not affect the assembler directives.
2078 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2080 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
2081 emit .machine and .machinemode to the top of the assembler file.
2082 (TARGET_ASM_FILE_START): Provide target hook.
2083 (s390_asm_output_machine_for_arch): Protect with
2084 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
2086 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2088 * config/s390/s390.opt (s390_arch_string): Remove.
2089 (s390_tune_string): Likewise.
2090 (s390_cost_pointer): Add Variable.
2091 (s390_tune_flags): Add TargetVariable.
2092 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
2093 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
2094 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
2095 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
2096 (mwarn-framesize=): Save option.
2097 (mno-stack-guard, mno-stack-guard): New option.
2098 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
2099 (mwarn-framesize=): Convert to UInteger (negative values are rejected
2101 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
2102 macros changeable through the GCC target pragma into a separate
2104 (s390_cpu_cpp_builtins): Likewise.
2105 (s390_pragma_target_parse): New function, implement GCC target pragma
2107 (s390_register_target_pragmas): Register s390_pragma_target_parse if
2109 * common/config/s390/s390-common.c (s390_handle_option):
2111 Move setting s390_arch_flags to s390.c.
2112 Remove s390_tune_flags.
2113 Allow 0 as argument to -mstack-size (switch to default value).
2114 Allow 0 as argument to -mstack-guard (switch off).
2115 Remove now unnecessary explicit parsing code for -mwarn-framesize.
2116 * config/s390/s390-protos.h (s390_handle_option): Export.
2117 (s390_valid_target_attribute_tree): Export.
2118 (s390_reset_previous_fndecl): Export.
2119 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
2120 and end of HTM and VX builtins.
2121 (s390_asm_output_function_prefix): Declare hook.
2122 (s390_asm_declare_function_size): Likewise.
2123 * config/s390/s390-builtins.h (B_GROUP): Use macro.
2124 * config/s390/s390-opts.h: Add comment about processor_type usage.
2125 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
2126 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
2127 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
2128 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
2129 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
2130 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
2131 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
2132 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
2133 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
2134 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
2135 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
2136 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
2137 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
2138 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
2140 (vec_all_nan): Rewrite as macro using statement expressions to avoid
2141 that the vector keyword needs to be defined when including the file.
2142 (vec_all_numeric): Likewise.
2143 (vec_any_nan): Likewise.
2144 (vec_any_numeric): Likewise.
2145 * config/s390/s390.c (s390_previous_fndecl): New static variable.
2146 (s390_set_current_function): New function.
2147 (s390_cost): Wrapper macro to allow defining the cost table pointer in
2149 (processor_table): Table for march= and mtune= parsing.
2150 (s390_init_builtins): Enable all builtins and types unconditionally.
2151 (s390_expand_builtin): Generate an error message if builtin is not
2152 supported by current options.
2153 Correct an error message.
2154 (s390_function_specific_restore): New function to set s390_cost.
2155 (s390_asm_output_machine_for_arch): New function for emitting .machine
2156 and .machinmode directives to the assembler file.
2157 (s390_asm_output_function_prefix): Likewise.
2158 (s390_asm_declare_function_size): Likewise.
2159 (s390_asm_output_function_label): Add mdebug output for feature testing.
2160 (s390_option_override): Move implementation into internal function.
2161 (s390_option_override_internal): Likewise.
2162 Implement option overriding based on current options.
2163 (s390_valid_target_attribute_inner_p): New function implementing target
2165 (s390_valid_target_attribute_tree): Likewise.
2166 (s390_valid_target_attribute_p): Likewise.
2167 (s390_reset_previous_fndecl): Likewise.
2168 (s390_set_current_function): Likewise.
2169 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
2170 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
2171 (TARGET_OPTION_RESTORE): Likewise.
2172 * doc/extend.texi: S390: Document target attribute and pragma.
2173 * config.in: Regenerated.
2174 * configure: Regenerated.
2175 * configure.ac: S390: Check for .machinemode and .machine in gas.
2176 S390: Check for architecture modifiers support in gas.
2178 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2180 * doc/extend.texi ("simd"): Describe new flags.
2182 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
2184 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
2185 operand checked for alignment.
2187 2015-12-04 Nathan Sidwell <nathan@acm.org>
2189 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
2190 emission too. Change 'no_arg_types' to 'prototyped'.
2191 (write_fn_proto): Use write_one_arg for stdarg, static chain &
2193 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
2195 2015-12-04 Richard Biener <rguenther@suse.de>
2197 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
2198 member and initialize it.
2199 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
2201 (sccvn_dom_walker::before_dom_children): If unreachable_dom
2202 is set BB is not reachable either. Set unreachable_dom
2203 if not set and BB is unreachable.
2205 2015-12-04 Richard Biener <rguenther@suse.de>
2207 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
2208 query with GATHER_STATISTICS.
2210 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2213 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
2214 fields, add keep_stack and reorder them.
2215 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
2216 set it to false. Do not insert a stack save/restore pair if it has
2217 been set to true by the gimplification of the statements.
2218 Restore it to the saved value on exit if it is still false.
2219 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
2220 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
2221 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
2222 * doc/extend.texi (Variable Length): Document new behavior.
2223 * doc/generic.texi (Blocks): Document new handling of VLAs.
2225 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2226 Tristan Gingold <gingold@adacore.com>
2229 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
2231 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
2232 UNSPEC_PROBE_STACK_RANGE.
2233 (blockage): New instruction.
2234 (probe_stack_range_<PTR:mode>): Likewise.
2235 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
2237 (aarch64_output_probe_stack_range): Likewise.
2238 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
2239 static builtin stack checking is enabled.
2240 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
2243 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2246 * config/arm/arm.md (*call_mem): Delete pattern.
2247 (*call_value_mem): Likewise.
2248 * config/arm/arm.c (output_call_mem): Delete.
2249 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
2251 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2253 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
2254 aarch64_sync_memory_operand.
2256 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2259 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
2260 (expand_vec_perm_1): Use it and recurse if everything else
2261 failed. Use nd.perm instead of perm2.
2262 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
2263 instead of gen_lowpart for the target.
2264 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
2265 and recurse if everything else failed.
2267 2015-12-04 Richard Biener <rguenther@suse.de>
2270 * builtins.c (get_pointer_alignment_1): Take care of byte to
2271 bit alignment computation overflow.
2273 2015-12-04 Richard Biener <rguenther@suse.de>
2276 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
2277 a constant with single_use.
2279 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2280 Jiong Wang <jiong.wang@arm.com>
2282 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
2283 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
2285 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
2287 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
2288 Add short circuit for !flag_strict_aliasing
2289 (get_alias_set): Remove flag_strict_aliasing check.
2290 (new_alias_set): Likewise.
2292 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
2294 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
2295 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
2296 (exynosm1_regmove_cost): Likewise.
2297 (exynosm1_vector_cost): Likewise.
2298 (exynosm1_tunings): Likewise.
2299 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
2300 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
2302 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
2303 Richard Biener <richard.guenther@gmail.com>
2305 * cfgexpand.c (pass_expand::execute): Replace call to
2306 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
2307 * tree-ssa.c (delete_tree_ssa): Likewise.
2308 * function.c (set_cfun): Call redirect_edge_var_map_empty.
2309 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
2310 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
2311 (redirect_edge_var_map_empty): New.
2312 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
2313 (redirect_edge_var_map_empty): New.
2315 2015-12-03 Jeff Law <law@redhat.com>
2317 PR tree-optimization/68599
2318 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
2319 in call to loop_optimizer_init.
2320 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
2321 optimization to drop the assumptions/infinite notations if
2322 the loop has a single exit.
2324 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2326 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
2327 the pattern cannot FAIL.
2328 (vec_store_lanes@var{m}@var{n}): Likewise.
2329 (maskload@var{m}@var{n}): Likewise.
2330 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
2331 in the name of the pattern.
2332 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
2333 floating-point mode and that all operands have that mode.
2334 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
2335 pattern cannot FAIL.
2336 (sqrt@var{m}2): Document that mode m must be a scalar or vector
2337 floating-point mode, that all operands have that mode, and that
2338 the patterns cannot FAIL. Remove previous documentation referring
2339 to @code{double} and @code{float}.
2340 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
2341 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
2342 (copysign@var{m}3): Likewise.
2343 (exp@var{m}2): Likewise. Explicitly state the base.
2344 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
2345 (btrunc@var{m}2, rint@var{m}2): Likewise.
2346 (round@var{m}2): Likewise. Fix incorrect description of rounding
2348 (ceil@var{m}2): As for round@var{m}2.
2349 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
2350 the instruction must not raise an inexact condition.
2351 (scalb@var{m}3): Document previously-undocumented pattern
2352 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
2353 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
2354 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
2355 (significand@var{m}2): Likewise.
2356 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
2357 mode m and operand 0 is defined more freely. Document that @var{m}
2358 can be a scalar or vector integer mode and that the pattern is not
2360 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
2361 (clrsb@var{m}2): Likewise, except that the description of the
2362 mode was missing in this case.
2364 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2366 * internal-fn.def (RSQRT): New function.
2367 * optabs.def (rsqrt_optab): New optab.
2368 * doc/md.texi (rsqrtM2): Document.
2369 * target.def (builtin_reciprocal): Replace gcall argument with
2370 a function decl. Restrict hook to machine functions.
2371 * doc/tm.texi: Regenerate.
2372 * targhooks.h (default_builtin_reciprocal): Update prototype.
2373 * targhooks.c (default_builtin_reciprocal): Likewise.
2374 * tree-ssa-math-opts.c: Include internal-fn.h.
2375 (internal_fn_reciprocal): New function.
2376 (pass_cse_reciprocals::execute): Call it, and build a call to an
2377 internal function on success. Only call targetm.builtin_reciprocal
2378 for machine functions.
2379 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
2381 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
2382 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
2383 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
2385 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
2386 (aarch64_builtin_reciprocal): Replace gcall argument with a
2387 function decl. Use use_rsqrt_p. Remove optimize_size check.
2388 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
2389 (aarch64_optab_supported_p): New function.
2390 (TARGET_OPTAB_SUPPORTED_P): Define.
2391 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
2392 (rsqrt<mode>2): ...this.
2393 * config/i386/i386.c (use_rsqrt_p): New function.
2394 (ix86_builtin_reciprocal): Replace gcall argument with a
2395 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
2396 check. Only handle machine functions.
2397 (ix86_optab_supported_p): Handle rsqrt_optab.
2398 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
2399 (rs6000_builtin_reciprocal): Replace gcall argument with a
2400 function decl. Remove optimize_insn_for_size_p check.
2401 Only handle machine functions.
2402 (rs6000_optab_supported_p): New function.
2404 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
2408 * config/i386/i386.c (ix86_mitigate_rop): Don't call
2409 compute_bb_for_insn again. Call df_insn_rescan_all.
2410 * config/i386/i386.md (set_got_rex64): Override modrm_class.
2412 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
2414 2015-12-03 Nathan Sidwell <nathan@acm.org>
2416 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
2417 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
2418 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
2419 (nvptx_option_override): Set data ares for worker vars.
2420 (nvptx_addr_space_from_sym): Delete.
2421 (nvptx_encode_section_info): New.
2422 (section_for_sym, section_for_decl): New.
2423 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
2424 (nvptx_section_from_addr_space): Delete.
2425 (nvptx_section_for_decl): Delete.
2426 (nvptx_output_aligned, nvptx_declare_object_name,
2427 nvptx_assemble_undefined_decl): Use section_for_decl, remove
2429 (nvptx_print_operand): Add 'D', adjust 'A'.
2430 (nvptx_expand_worker_addr): Adjust unspec generation.
2431 (TARGET_ENCODE_SECTION_INFO): Override.
2432 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
2433 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
2434 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
2435 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
2436 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
2437 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
2438 (UNSPEC_TO_GENERIC): New.
2439 (nvptx_register_or_symbolic_operand): Delete.
2440 (cvt_code, cvt_name, cvt_str): Delete.
2441 (convaddr_<cvt_name><mode> [P]): Delete.
2442 (convaddr_<mode> [P]): New.
2444 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2446 PR rtl-optimization/68624
2447 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
2448 blocks if they exist and simplify the logic choosing the order to emit
2451 2015-12-03 Richard Biener <rguenther@suse.de>
2453 PR tree-optimization/66051
2454 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
2455 on load group size. Do not pass in vectorization_factor.
2456 (vect_transform_slp_perm_load): Do not require any permute support.
2457 (vect_build_slp_tree): Do not pass in vectorization factor.
2458 (vect_analyze_slp_instance): Do not compute vectorization
2459 factor estimate. Use vector size instead of vectorization factor
2460 estimate to split store groups for BB vectorization.
2462 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
2464 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
2465 DECL as return value is allowed to have NULL bounds.
2467 2015-12-03 Tom de Vries <tom@codesourcery.com>
2469 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
2470 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
2471 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2473 2015-12-03 Richard Biener <rguenther@suse.de>
2475 PR tree-optimization/67800
2476 PR tree-optimization/68333
2477 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
2478 restriction to reduction contexts but allow SLP reductions as well.
2479 (vect_recog_sad_pattern): Likewise.
2480 (vect_recog_widen_sum_pattern): Likewise.
2482 2015-12-03 Richard Biener <rguenther@suse.de>
2484 PR tree-optimization/68639
2485 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
2486 belonging to different loops.
2487 (vect_analyze_data_ref_accesses): Likewise.
2489 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
2491 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
2492 Remove "prefix_extra".
2493 (define_insn "vec_extract_hi_<mode>_mask"): New.
2494 (define_insn "vec_extract_hi_<mode>"): Remove masking.
2496 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2498 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
2499 (propagate_pure_const): Use it; fix comments and optimize loops.
2501 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2503 * ipa-pure-const.c (ignore_edge): Rename to ...
2504 (ignore_edge_for_nothrow) ... this one; also ignore eges to
2505 interposable functions or ones that can not throw.
2506 (propagate_nothrow): Fix handling of availability.
2508 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2511 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
2513 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2514 Sebastian Pop <s.pop@samsung.com>
2516 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
2518 (gcc_expression_from_isl_expr_op): Same.
2520 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2521 Sebastian Pop <s.pop@samsung.com>
2523 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
2524 that insertion point is still in the region.
2526 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2527 Sebastian Pop <s.pop@samsung.com>
2529 PR tree-optimization/68550
2530 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
2531 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
2534 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2536 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
2537 * configure: Regenerate.
2538 * config.in: Regenerate.
2539 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
2541 (rs6000_output_function_prologue): Use it instead of checking
2542 cfun->machine->r2_setup_needed. Use internal labels instead of
2543 GNU as local label extension. Handle ELFv2 large code model.
2544 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
2545 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
2547 2015-12-02 Jakub Jelinek <jakub@redhat.com>
2550 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
2552 (expand_unop): Use them.
2554 2015-12-02 Marek Polacek <polacek@redhat.com>
2557 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
2559 2015-12-02 Nathan Sidwell <nathan@acm.org>
2561 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
2563 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
2565 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2566 Sebastian Pop <s.pop@samsung.com>
2568 * graphite-dependences.c (scop_get_reads): Add extra dumps.
2569 (scop_get_must_writes): Same.
2570 (scop_get_may_writes): Same.
2571 (compute_deps): Same.
2572 * graphite-sese-to-poly.c (bounds_are_valid): New.
2573 (pdr_add_data_dimensions): Call bounds_are_valid.
2575 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2576 Sebastian Pop <s.pop@samsung.com>
2578 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
2579 * graphite-poly.c (apply_poly_transforms): Same.
2580 * graphite.c (gate_graphite_transforms): Same.
2581 * toplev.c (process_options): Same.
2583 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
2585 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
2586 (mips_output_probe_stack_range): Rotate the loop and simplify.
2588 2015-12-02 David Sherwood <david.sherwood@arm.com>
2590 * config/aarch64/aarch64.md: New pattern.
2591 * config/aarch64/aarch64-simd.md: Likewise.
2592 * config/aarch64/iterators.md: New unspecs, iterators.
2594 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
2596 * dwarf2out.c (dwar2out_var_location): In addition to notes,
2597 process indirect calls whose target is compile-time known.
2598 Enhance pattern matching to get the SYMBOL_REF they embed.
2599 (gen_subprogram_die): Handle such calls.
2600 * final.c (final_scan_insn): For call instructions, invoke the
2601 var_location debug hook only after the call has been emitted.
2603 2015-12-02 Tom de Vries <tom@codesourcery.com>
2605 * gimplify.c (enum gimplify_omp_var_data): Add enum value
2607 (oacc_default_clause): Fix default for scalars in oacc kernels.
2608 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
2610 2015-12-02 Tom de Vries <tom@codesourcery.com>
2612 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
2613 parameter base_pointers_restrict.
2614 (omp_target_base_pointers_restrict_p): New function.
2615 (scan_omp_target): Call scan_sharing_clauses with
2616 base_pointers_restrict arg.
2618 2015-12-02 Nathan Sidwell <nathan@acm.org>
2620 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
2621 (nvptx_underlying_object_mode): Delete.
2622 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
2624 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
2625 (nvptx_output_mov_insn): New.
2626 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
2627 Use output_reg. Merge 't' and 'u' handling.
2628 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
2629 (struct machine_function): Remvoe punning_buffer_size.
2630 (REGISTER_NAMES): Remove %punbuffer.
2631 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
2632 UNSPEC_CPLX_HIGHPART): Delete.
2633 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
2634 nvptx_output_mov_insn.
2635 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
2636 Use nvptx_output_mov_insn.
2637 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
2639 (mov<mode> [SDCM]): Delete.
2641 2015-12-02 Richard Biener <rguenther@suse.de>
2643 * tree.h (tree_invariant_p): Declare.
2644 * tree.c (tree_invariant_p): Export.
2645 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
2646 create SAVE_EXPRs but reject patterns if we would need to.
2648 2015-12-02 Tom de Vries <tom@codesourcery.com>
2650 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
2651 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
2653 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
2655 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
2656 (cstore<mode>4): Use it.
2658 2015-12-02 Richard Biener <rguenther@suse.de>
2660 PR tree-optimization/68625
2661 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
2662 cleanup_control_flow_bb.
2663 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
2664 on all BBs, then cleanup_tree_cfg_bb and finally iterate
2665 over the worklist doing both.
2667 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
2669 PR tree-optimization/68432
2670 * coretypes.h (optimization_type): New enum.
2671 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
2672 * doc/tm.texi: Regenerate.
2673 * target.def (optab_supported_p): New hook.
2674 * targhooks.h (default_optab_supported_p): Declare.
2675 * targhooks.c (default_optab_supported_p): New function.
2676 * predict.h (function_optimization_type): Declare.
2677 (bb_optimization_type): Likewise.
2678 * predict.c (function_optimization_type): New function.
2679 (bb_optimization_type): Likewise.
2680 * optabs-query.h (convert_optab_handler): Define an overload
2681 that takes an optimization type.
2682 (direct_optab_handler): Likewise.
2683 * optabs-query.c (convert_optab_handler): Likewise.
2684 (direct_optab_handler): Likewise.
2685 * internal-fn.h (direct_internal_fn_supported_p): Take an
2686 optimization_type argument.
2687 * internal-fn.c (direct_optab_supported_p): Likewise.
2688 (multi_vector_optab_supported_p): Likewise.
2689 (direct_internal_fn_supported_p): Likewise.
2690 * builtins.c (replacement_internal_fn): Update call to
2691 direct_internal_fn_supported_p.
2692 * gimple-match-head.c (build_call_internal): Likewise.
2693 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2694 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
2695 * tree.c (maybe_build_call_expr_loc): Likewise.
2696 * config/i386/i386.c (ix86_optab_supported_p): New function.
2697 (TARGET_OPTAB_SUPPORTED_P): Define.
2698 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
2699 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
2700 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
2701 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
2702 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
2703 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
2705 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
2707 * Makefile.in (GENSUPPORT_H): New macro.
2708 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2709 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
2710 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
2711 (build/genconstants.o, build/genextract.o, build/genflags.o)
2712 (build/gentarget-def.o): Use it.
2713 (build/genemit.o): Likewise. Depend on internal-fn.def.
2714 * genopinit.c: Move block comment to optabs.def.
2715 (optab_tag, optab_def): Move to gensupport.h
2716 (pattern): Likewise, renaming to optab_pattern.
2717 (match_pattern): Move to gensupport.c
2718 (gen_insn): Use find_optab.
2719 (patterns, pattern_cmp): Replace pattern with optab_pattern.
2720 (main): Likewise. Use num_optabs.
2721 * optabs.def: Add comment that was previously in genopinit.c.
2722 * gensupport.h (optab_tag): Moved from genopinit.c
2723 (optab_def): Likewise, expanding commentary.
2724 (optab_pattern): Likewise, after renaming from pattern.
2725 (optabs, num_optabs, find_optab): Declare.
2726 * gensupport.c (optabs): Moved from genopinit.c.
2727 (num_optabs): New variable.
2728 (match_pattern): Moved from genopinit.c.
2729 (find_optab): New function, extracted from genopinit.c:gen_insn.
2730 * genemit.c (nofail_optabs): New variable.
2731 (emit_c_code): New function.
2732 (gen_expand): Check whether the instruction is an optab that isn't
2733 allowed to fail. Call emit_c_code.
2734 (gen_split): Call emit_c_code here too.
2735 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
2737 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2739 * config/s390/predicates.md (const_mask_operand): New predicate.
2740 * config/s390/s390-builtins.def: Set a smaller bitmask
2742 * config/s390/vector.md: Change predicate from immediate_operand
2743 to either const_int_operand or const_mask_operand. Add special
2744 insn conditions on patterns which have to exclude certain values.
2745 * config/s390/vx-builtins.md: Likewise.
2747 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2749 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
2752 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2754 * config/s390/s390-builtin-types.def: New builtin types added.
2755 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
2756 * config/s390/s390.c (s390_expand_builtin): Always truncate
2757 constants to the mode in the pattern.
2758 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
2759 respective builtin __builtin_s390_vec_splat_*.
2761 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2763 * config/s390/s390-builtin-types.def: Sort builtin types.
2765 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2767 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
2768 condition for the RT flag.
2770 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2772 * config/s390/constraints.md ("jKK"): New constraint.
2773 * config/s390/s390.c (tm-constrs.h): Include for
2774 satisfies_constraint_*.
2775 (s390_legitimate_constant_p): Allow jKK constants. Use
2776 satisfies_constraint_* also for the others.
2777 (legitimate_reload_vector_constant_p): Likewise.
2778 (print_operand): Allow h output modifier on vectors.
2779 * config/s390/vector.md ("mov<mode>"): Add vrepi.
2781 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2783 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
2786 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2788 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
2789 ("bswaphi2"): New pattern.
2790 New splitter for HI reg-reg bswap.
2792 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
2795 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
2796 if it is the first parameter.
2798 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2800 PR tree-optimization/68577
2801 * tree-vect-stmts.c (simple_integer_narrowing): New function.
2802 (vectorizable_call): Restrict internal function handling
2803 to NONE and NARROW cases, using simple_integer_narrowing
2804 to test for the latter. Add cost of narrowing operation
2805 and insert it where necessary.
2807 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
2809 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
2810 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2811 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2813 2015-12-01 Nathan Sidwell <nathan@acm.org>
2815 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
2816 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2817 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
2818 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
2819 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
2820 (init_output_initializer): Call write_var_marker.
2821 (nvptx_output_aligned_decl): New.
2822 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
2824 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2826 * c-common.c (parse_optimize_options): Do not silently ignore
2827 -fstrict-aliasing changes.
2829 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2831 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
2832 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
2833 stream TYPE_ALIAS_SET.
2834 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
2835 stream TYPE_ALIAS_SET.
2837 2015-12-01 Nathan Sidwell <nathan@acm.org>
2839 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
2842 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2844 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
2845 indirection for large and small code models.
2846 (adjust_vperm): Likewise.
2848 2015-12-01 Julian Brown <julian@codesourcery.com>
2849 Cesar Philippidis <cesar@codesourcery.com>
2850 James Norris <James_Norris@mentor.com>
2852 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
2853 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
2854 (is_gimple_omp_oacc): Add support for above.
2855 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
2856 (omp_notice_variable): Diagnose undefined implicit uses of
2857 use_device variables in offloaded regions.
2858 (gimplify_scan_omp_clauses): Add host_data, use_device
2859 support. Diagnose undefined mapping of use_device variables in
2861 (gimplify_omp_workshare): Add host_data support.
2862 (gimplify_expr): Likewise.
2863 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
2864 * omp-low.c (lookup_decl_in_outer_ctx)
2865 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
2867 (scan_sharing_clauses): Support use_device.
2868 (check_omp_nesting_restrictions): Support host_data.
2869 (expand_omp_target): Support host_data.
2870 (lower_omp_target): Skip over outer host_data regions when looking
2871 up decls. Support use_device.
2872 (make_gimple_omp_edges): Support host_data.
2873 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
2875 2015-12-01 Marek Polacek <polacek@redhat.com>
2878 * cgraphunit.c (check_global_declaration): Only depend
2879 on TREE_THIS_VOLATILE for VAR_DECLs.
2881 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2883 PR tree-optimization/68474
2884 * tree-call-cdce.c (use_internal_fn): Protect call to
2885 gen_shrink_wrap_conditions.
2887 2015-12-01 Christian Bruel <christian.bruel@st.com>
2890 * config/arm/arm.opt (unaligned_access): Save.
2891 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
2892 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
2893 (arm_option_override_internal): ... here.
2894 * config/arm/arm.h (TARGET_32BIT_P): New macro.
2896 2015-12-01 Richard Biener <rguenther@suse.de>
2898 PR tree-optimization/68379
2899 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2900 always base loads on the first used DR of a group.
2901 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
2902 Compute alignment of the first scalar element unconditionally.
2904 2015-12-01 Richard Biener <rguenther@suse.de>
2907 * genmatch.c (struct capture_info): Add match_use_count.
2908 (capture_info::walk_match): Increment match_use_count.
2909 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
2910 replacements in a save_expr if they occur more often than
2911 in the original expression.
2913 2015-12-01 Richard Biener <rguenther@suse.de>
2916 * ipa-split.c (split_function): Handle main part not returning.
2918 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2921 * tree-vect-stmts.c (vect_init_vector): Cast boolean
2922 scalars to a proper value before building a vector.
2924 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2926 * genattrtab.c (check_attr_test): Take an attr_desc instead of
2927 an is_const flag. Put the file_location argument first.
2928 Update recursive calls. Improve error messages.
2929 (check_attr_value): Take a file location and use it instead
2930 of attr->loc. Improve error messages. Update calls to
2932 (check_defs): Update call to check_attr_value.
2933 (make_canonical): Likewise.
2934 (gen_attr): Likewise.
2936 (gen_insn_reserv): Update call to check_attr_test.
2938 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2940 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
2942 2015-12-01 Richard Biener <rguenther@suse.de>
2945 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
2947 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2949 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
2950 odr_type_p): Move to ...
2951 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
2952 odr_type_p): here; miscro-optimize.
2954 2015-12-01 Bin Cheng <bin.cheng@arm.com>
2956 PR tree-optimization/68529
2957 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
2958 Compute no-overflow information for control iv.
2959 (number_of_iterations_lt, number_of_iterations_le): Add new param.
2960 (number_of_iterations_cond): Pass new argument to above functions.
2962 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
2964 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
2965 inlining -fno-strict-aliasing into -fstrict-aliasing body.
2967 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
2968 Sebastian Pop <s.pop@samsung.com>
2970 PR tree-optimization/68565
2971 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
2972 codegen_error. Fail when rhs of division operations is integer_zerop.
2973 (ternary_op_to_tree): Early return on codegen_error.
2974 (unary_op_to_tree): Same.
2975 (nary_op_to_tree): Same.
2976 (gcc_expression_from_isl_expr_op): Same.
2977 (gcc_expression_from_isl_expression): Same.
2978 (graphite_create_new_loop): On codegen_error continue generating
2980 (graphite_create_new_loop_guard): Same.
2981 (build_iv_mapping): Same.
2982 (graphite_create_new_guard): Same.
2984 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
2985 Sebastian Pop <s.pop@samsung.com>
2987 * graphite-isl-ast-to-gimple.c: Fix dump messages.
2988 * graphite-scop-detection.c: Same.
2989 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
2991 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
2993 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
2994 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
2995 (convert_local_omp_clauses): Likewise.
2997 2015-11-30 Tom de Vries <tom@codesourcery.com>
2999 PR tree-optimization/46032
3000 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
3002 (find_func_aliases_for_call): ... here.
3003 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
3004 BUILT_IN_GOMP_PARALLEL.
3005 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
3008 2015-11-30 Jakub Jelinek <jakub@redhat.com>
3010 PR tree-optimization/68501
3011 * target.def (builtin_reciprocal): Replace the 3 arguments with
3012 a gcall * one, adjust description.
3013 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
3015 * targhooks.c (default_builtin_reciprocal): Likewise.
3016 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
3017 targetm.builtin_reciprocal even on internal functions, adjust
3018 the arguments and allow replacing an internal function with normal
3020 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
3021 with a gcall * one. Handle internal fns too.
3022 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
3023 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
3024 * doc/tm.texi (builtin_reciprocal): Document.
3026 2015-11-30 Richard Biener <rguenther@suse.de>
3028 PR tree-optimization/68592
3029 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
3030 on the pattern def sequence.
3032 2015-11-30 Nathan Sidwell <nathan@acm.org>
3034 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
3035 (write_one_arg): Reorder parms, add 'sep' param.
3036 (nvptx_write_function_decl): Rename to ...
3037 (write_fn_proto): ... here. Do name replacement. Emit linaer
3038 comment marker. Deal with both decls and defns. Simplify argument
3040 (write_function_decl_and_comment): Delete.
3041 (write_func_decl_from_insn): Rename to ...
3042 (write_fn_proto_from_insn): ... here. Don't do name replacement.
3043 (nvptx_record_fndecl): Call write_fn_proto.
3044 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
3045 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
3046 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
3048 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
3050 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
3051 (define_insn "*k<logic><mode>"): Use new iterator.
3053 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3056 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
3057 (sparc_adjust_cost): Add missing space.
3059 2015-11-30 Richard Biener <rguenther@suse.de>
3062 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
3064 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3066 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
3067 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
3068 base ref, DR pairs and store base_predicate for write type DRs.
3069 (ifcvt_memrefs_wont_trap): Guard checks with
3070 -ftree-loop-if-convert-stores flag.
3072 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3074 * cgraph.c (cgraph_node::make_local): No name is unique during
3075 incremental linking.
3076 * cgraph.h (can_be_discarded_p): Update comment; also common and
3077 WEAK in named sections can be discarded; when doing incremental
3078 link do not rely on resolution being the final one.
3079 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
3080 When symbol can be discarded, do not rely on resolution info.
3081 * symtab.c (symtab_node::nonzero_address): Take into account that
3082 symbol can be discarded.
3083 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
3084 definition correctly.
3085 (function_and_variable_visibility): Do not set unique_name when
3086 incrementally linking.
3088 2015-11-29 Nathan Sidwell <nathan@acm.org>
3090 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
3091 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
3092 (ctrap<mode>): Use const0_operand.
3094 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3096 * ipa-devirt.c (add_type_duplicate): Remove redundant
3099 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
3102 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
3103 recog_memoized test for insn and check recog_memoized for dep_insn.
3105 2015-11-28 Nathan Sidwell <nathan@acm.org>
3107 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
3108 (FRAME_POINTER_CFA_OFFSET): Define.
3109 (struct nvptx_args): Use 'tree' type.
3110 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
3112 2015-11-28 Tom de Vries <tom@codesourcery.com>
3114 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
3116 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
3118 * doc/invoke.texi (Option Summary): Use negative form of
3119 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
3120 sort alphabetically and re-justify.
3122 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
3124 PR rtl-optimization/68536
3125 * lra.c (lra_emit_add): Add code for null base.
3126 * lra-constraints.c (curr_insn_transform): Skip operators for
3129 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3132 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3134 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3136 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3137 are not modified by the final modified insns in the basic blocks.
3139 2015-11-27 Nathan Sidwell <nathan@acm.org>
3141 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
3143 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
3144 (nvptx_maybe_convert_symbolic_operand): Simplify.
3145 (nvptx_addr_space_from_address): Delete.
3146 (nvptx_print_operand): Adjust 'A' case.
3148 2015-11-27 Richard Biener <rguenther@suse.de>
3150 PR tree-optimization/68559
3151 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
3152 peeling for gap checks ...
3153 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
3154 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
3155 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
3157 2015-11-27 Nathan Sidwell <nathan@acm.org>
3159 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
3160 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
3161 (nvptx_record_fndecl): Don't return value, remove force
3162 argument. Require fndecl.
3163 (nvptx_record_libfunc): New.
3164 (nvptx_record_needed_decl): Deteermine how to record decl here.
3165 (nvptx_maybe_record_fnsym): New.
3166 (nvptx_expand_call): Don't record libfuncs here,
3167 (nvptx_maybe_convert_symbolic_operand): Use
3168 nvptx_maye_record_fnsym.
3169 (nvptx_assemble_integer): Reimplement with single switch.
3170 (nvptx_output_call_insn): Register libfuncs here.
3171 (nvptx_file_end): Adjust nvptx_record_fndecl call.
3172 * config/nvptx/nvptx.md (expand_movdi): Don't call
3173 nvptx_record_needed_decl.
3175 2015-11-27 Richard Biener <rguenther@suse.de>
3177 PR tree-optimization/68553
3178 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
3179 generation for 1:1 permutations.
3180 (vect_transform_slp_perm_load): Detect 1:1 permutations.
3182 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
3184 * gimple.h (nonbarrier_call_p): Declare.
3185 * gimple.c (nonbarrier_call_p): New function.
3186 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
3187 Also increment call phase for ASMs with vdef and potential barrier
3190 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3192 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3194 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3195 are not modified by the final modified insns in the basic blocks.
3197 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3199 PR rtl-optimization/68506
3200 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
3201 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
3204 2015-11-27 Martin Liska <mliska@suse.cz>
3207 * vec.h (release_vec_vec): New function.
3209 2015-11-27 Jakub Jelinek <jakub@redhat.com>
3211 PR tree-optimization/68552
3212 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
3213 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
3214 or whether v0 == v1.
3216 2015-11-27 Martin Liska <mliska@suse.cz>
3218 * tree-ssa-uninit.c: Fix whitespaces in the source file.
3219 The change is just automatical.
3221 2015-11-27 Martin Liska <mliska@suse.cz>
3223 * tree-chkp.c (chkp_make_static_bounds): Release buffer
3226 2015-11-27 Martin Liska <mliska@suse.cz>
3228 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3229 Do not release memory for comp_alias_ddrs.
3230 * tree-vect-loop.c (destroy_loop_vec_info): Release
3231 the memory for all loop_vec_info.
3233 2015-11-27 Martin Liska <mliska@suse.cz>
3235 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
3236 of a local-scope vec.
3237 (struct final_warning_record): Use auto_vec instead of vec.
3239 2015-11-27 Richard Biener <rguenther@suse.de>
3241 PR tree-optimization/68553
3242 * tree-vect-slp.c (vect_get_mask_element): Remove.
3243 (vect_transform_slp_perm_load): Implement in a simpler way.
3245 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
3247 PR rtl-optimization/67753
3248 PR rtl-optimization/64164
3249 * function.c (assign_parm_setup_block): Right-shift
3250 upward-padded big-endian args when bypassing the stack slot.
3252 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
3254 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
3255 `-mcompact-branches='.
3256 (MIPS Options): Likewise.
3258 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3260 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
3262 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
3264 * doc/install.texi (Prerequisites): Increase ISL requirement to
3267 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3269 * config/aarch64/arm_neon.h
3270 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
3271 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
3272 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3273 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
3274 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
3275 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
3276 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
3277 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
3278 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3279 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
3280 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
3281 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
3283 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3285 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
3286 (vqrdmlahq_s16, vqrdmlahq_s32): New.
3287 (vqrdmlsh_s16, vqrdmlsh_s32): New.
3288 (vqrdmlshq_s16, vqrdmlshq_s32): New.
3290 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3292 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
3295 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
3298 * tree-nested.c (finalize_nesting_tree_1): Append a field to
3299 hold the frame base address.
3300 * dwarf2out.c (gen_subprogram_die): Generate for
3301 DW_AT_static_link a location description that computes the value
3304 2015-11-26 Tom de Vries <tom@codesourcery.com>
3307 2015-11-25 Tom de Vries <tom@codesourcery.com>
3309 * cfgloop.c (find_single_latch): New function, factored out of ...
3310 (flow_loops_find): ... here.
3311 (verify_loop_structure): Improve verification of loop->latch.
3312 * cfgloop.h (find_single_latch): Declare.
3313 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3315 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3317 * config/aarch64/aarch64-simd-builtins.def:
3318 Add missing changes from r230962.
3320 2015-11-26 Nathan Sidwell <nathan@acm.org>
3322 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
3323 arg with name. Don't deal with split regs. Tweak formatting.
3324 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
3325 (nvptx_output_call_insn): Don't deal with split regs here.
3327 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3329 * config/aarch64/aarch64-simd-builtins.def
3330 (sqrdmlah, sqrdmlsh): New.
3331 (sqrdmlah_lane, sqrdmlsh_lane): New.
3332 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
3334 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3336 * config/aarch64/aarch64-simd.md
3337 (aarch64_sqmovun<mode>): Fix some white-space.
3338 (aarch64_<sur>qmovun<mode>): Likewise.
3339 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
3340 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
3341 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
3342 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
3343 (UNSPEC_SQRDMLSH): New.
3347 2015-11-26 Richard Biener <rguenther@suse.de>
3349 PR tree-optimization/66721
3350 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
3351 iteration cost earlier. Re-do analysis without SLP when
3352 vectorization using SLP fails and without has a chance to succeed.
3354 2015-11-26 Richard Biener <rguenther@suse.de>
3356 * genmatch.c (dt_simplify::gen_1): For generic wrap all
3357 multi-result-use captures in a SAVE_EXPR.
3359 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3361 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
3362 (TARGET_SIMD_RDMA): New.
3364 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3366 * combine.c (subst): Do not return clobber of zero in widening mult
3367 case. Just return x unchanged if it is a no-op substitution.
3369 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
3372 * config/i386/i386.h (enum reg_class): Add
3373 bounds registers to ALL_REGS.
3375 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3377 PR tree-optimization/68128
3378 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
3379 * gimplify.c: Include gimple-walk.h.
3380 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
3381 (omp_notice_variable): Set flags to n->value if n already
3382 exists in target region, but we need to jump to do_outer.
3383 (omp_shared_to_firstprivate_optimizable_decl_p,
3384 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
3386 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
3387 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3388 not modified in the body. Call omp_mark_stores for outer
3389 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3390 in the body or on OMP_CLAUSE_LASTPRIVATE.
3391 (gimplify_adjust_omp_clauses): Add body argument, call
3392 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
3393 Set OMP_CLAUSE_SHARED_READONLY
3394 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3395 not modified in the body. Call omp_mark_stores for outer
3396 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3397 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
3398 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
3399 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
3400 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
3401 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
3402 * tree-nested.c (convert_nonlocal_omp_clauses,
3403 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
3404 non-local vars or local vars referenced from nested routines.
3405 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
3406 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
3407 TREE_READONLY, don't call use_pointer_for_field with non-NULL
3408 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
3410 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
3412 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
3413 about signed left shift stronger and clarify the cases when they're
3416 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3417 Bernd Schmidt <bschmidt@redhat.com>
3419 PR rtl-optimization/67226
3420 * calls.c (store_one_arg): Take into account
3421 crtl->args.pretend_args_size when checking for overlap between
3422 arg->value and argblock + arg->locate.offset during sibcall
3425 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3427 * config/aarch64/aarch64.md (cbranch<mode>4): Use
3428 aarch64_fp_compare_operand.
3429 (store_pairsf): Use aarch64_reg_or_fp_zero.
3430 (store_pairdf): Likewise.
3431 (cstore<mode>4): Use aarch64_fp_compare_operand.
3432 (cmov<mode>6): Likewise.
3433 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
3435 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
3436 Sebastian Pop <s.pop@samsung.com>
3438 PR tree-optimization/68453
3439 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
3440 not redirect edges already pointing to their destination.
3441 (translate_isl_ast_node_for): Split edges after loops to create
3442 basic blocks for close phi nodes. Save merge points at the end of
3444 (translate_isl_ast_node_if): Save merge points at the end of the
3446 (add_close_phis_to_outer_loops): New.
3447 (add_close_phis_to_merge_points): New.
3448 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
3449 (copy_bb_and_scalar_dependences): Do not split basic blocks on
3450 loop close phi locations.
3452 2015-11-25 Jan Hubicka <jh@suse.cz>
3454 * ipa-visibility.c (cgraph_externally_visible_p,
3455 varpool_node::externally_visible_p): When doing incremental linking,
3456 hidden symbols may be still used later.
3457 (update_visibility_by_resolution_info): Do not drop weak during
3459 (function_and_variable_visibility): Fix formating.
3460 * flag-types.h (lto_linker_output): Declare.
3461 * common.opt 9flag_incremental_link): New flag.
3463 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3465 * config/rs6000/constraints.md (wb constraint): New constraint for
3466 ISA 3.0 d-form scalar addressing.
3468 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
3469 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
3470 Altivec registers. Add wb constraint for Altivec registers with
3471 D-form addressing. If we have ISA 3.0 d-form support, undo
3472 secondary reload support for using FPR registers if we want to do
3474 (rs6000_debug_reg_global): Likewise.
3475 (rs6000_setup_reg_addr_masks): Likewise.
3476 (rs6000_init_hard_regno_mode_ok): Likewise.
3477 (rs6000_secondary_reload): Likewise.
3478 (rs6000_preferred_reload_class): Likewise.
3479 (rs6000_secondary_reload_class): Likewise.
3481 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
3484 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
3485 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
3486 (f32_lm2): Likewise.
3487 (f32_li2): Likewise.
3488 (f32_sr2): Likewise.
3489 (f32_sm2): Likewise.
3490 (f32_si2): Likewise.
3492 (extendsfdf2_fpr): Likewise.
3493 (mov<mode>_hardfloat): Likewise.
3494 (mov<mode>_hardfloat32): Likewise.
3495 (mov<mode>_hardfloat64): Likewise.
3497 * doc/md.texi (RS/6000 constraints): Document wb constraint.
3498 Fixup we constraint documentation.
3500 2015-11-25 Tom de Vries <tom@codesourcery.com>
3502 * omp-low.c (pass_expand_omp_ssa::clone): New function.
3503 * passes.def: Add pass_oacc_kernels pass group.
3504 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
3506 2015-11-25 Tom de Vries <tom@codesourcery.com>
3508 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
3510 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
3511 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
3512 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
3513 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
3515 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3517 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
3518 TV_IPA_LTO_OUTPUT): New.
3519 * lto-compress.c: Include timevar.h
3520 (lto_end_compression, lto_end_uncompression): Add timers.
3521 * langhooks.c: Include timevar.h.
3522 (lhd_append_data): Add timer.
3524 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3526 * varasm.c (default_elf_asm_output_limited_string,
3527 default_elf_asm_output_ascii): Replace fprintf by putc.
3529 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
3531 PR rtl-optimization/67954
3532 * lra-constraints.c (curr_insn_transform): Add check on scratch
3533 pseudo when change class to NO_REGS. Add an assert.
3535 2015-11-25 Nathan Sidwell <nathan@acm.org>
3537 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
3539 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
3540 (nvptx_write_function_decl): Number args from 0.
3541 (nvptx_declare_function_name): Likewise.
3542 (nvptx_function_incoming_arg): Likewise.
3543 (nvptx_output_call_insn): Correct formatting.
3545 2015-11-25 David Sherwood <david.sherwood@arm.com>
3547 * optabs.def: Add new optabs fmax_optab/fmin_optab.
3548 * internal-fn.def: Add new fmax/fmin internal functions.
3549 * doc/md.texi: Add fmin and fmax patterns.
3551 2015-11-25 Jason Merrill <jason@redhat.com>
3554 * tree.c (integer_zerop, integer_onep, integer_each_onep)
3555 (integer_all_onesp, integer_minus_onep, integer_pow2p)
3556 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
3557 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
3559 2015-11-25 Richard Biener <rguenther@suse.de>
3562 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
3563 on stripped operands.
3565 2015-11-25 Nathan Sidwell <nathan@acm.org>
3567 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
3568 (nvptx_declare_function_name): Move assignments next to register
3569 declarations, and process params here.
3571 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
3573 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
3574 both the symbol and the "dot" symbol for function descriptors. Fix
3575 inversion for rename of symbols with dollar sign.
3577 2015-11-25 Tom de Vries <tom@codesourcery.com>
3579 * cfgloop.c (find_single_latch): New function, factored out of ...
3580 (flow_loops_find): ... here.
3581 (verify_loop_structure): Improve verification of loop->latch.
3582 * cfgloop.h (find_single_latch): Declare.
3583 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3585 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3587 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
3588 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
3589 (STARTFILE_SPEC): Use %(startfile_vtv).
3590 (ENDFILE_SPEC): Use %(endfile_vtv).
3591 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
3594 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
3596 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
3598 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
3599 noce_can_store_speculate): Delete.
3600 (noce_process_if_block): Don't try to handle single MEM stores.
3601 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
3602 * alias.c (memory_must_be_modified_in_insn_p): Delete.
3604 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3606 PR rtl-optimization/68435
3607 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
3608 for conflicts between a, b and the set destinations.
3610 2015-11-25 Richard Biener <rguenther@suse.de>
3612 PR tree-optimization/68517
3613 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
3614 Properly handle zero-sized types.
3616 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3618 * ipa-inline-analysis.c: Include gimplify.h
3619 (set_cond_stmt_execution_predicate,
3620 set_switch_stmt_execution_predicate): Be sure to not leak locations
3623 2015-11-25 Jakub Jelinek <jakub@redhat.com>
3626 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
3627 match_uaddsub_overflow): New functions.
3628 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
3630 2015-11-25 Richard Biener <rguenther@suse.de>
3632 PR tree-optimization/68492
3633 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
3634 op from scalars after operand swapping.
3636 2015-11-25 Richard Biener <rguenther@suse.de>
3638 PR tree-optimization/68502
3639 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
3640 check that the step is a multiple of the type size.
3642 2015-11-24 Michael Collison <michael.collison@linaro.org>
3644 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
3645 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
3646 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
3648 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
3650 * frame-header-opt.c (gate): Check for optimize > 0.
3651 (has_inlined_assembly): New function.
3652 (needs_frame_header_p): Remove is_leaf_function check,
3653 add argument type check.
3654 (callees_functions_use_frame_header): Add is_leaf_function
3655 and has_inlined_assembly calls..
3656 (set_callers_may_not_allocate_frame): New function.
3657 (frame_header_opt): Add is_leaf_function call, add
3658 set_callers_may_not_allocate_frame call.
3659 * config/mips/mips.c (mips_compute_frame_info): Add check
3660 to see if callee saved regs can be put in frame header.
3661 (mips_expand_prologue): Add check to see if step1 is zero,
3662 fix cfa restores when using frame header to store regs.
3663 (mips_can_use_return_insn): Check to see if registers are
3664 stored in frame header.
3665 * config/mips/mips.h (machine_function): Add
3666 callers_may_not_allocate_frame and
3667 use_frame_header_for_callee_saved_regs fields.
3669 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3671 PR rtl-optimization/68520
3672 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
3673 its bit was already set in BB_WITH.
3675 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3677 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
3678 double check that type is main variant.
3679 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
3681 (verify_type_variant): Verify that variants have no
3682 TYPE_ALIAS_SET_KNOWN_P set
3683 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
3684 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
3685 only for main variants; stream TYPE_ALIAS_SET as a bit.
3686 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
3689 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3691 * tree.c (make_vector_type): Properly compute canonical type of the
3693 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
3696 2015-11-24 Nathan Sidwell <nathan@acm.org>
3698 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
3699 VOIDmode, don't alter incoming mode.
3700 (nvptx_split_reg_p): Delete.
3701 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
3702 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
3703 maybe_split_mode calls.
3704 (nvptx_print_operand): Use maybe_split_mode.
3706 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3708 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
3709 only for types where LTO sets them.
3710 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
3711 (make_vector_type): Likewise.
3712 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
3713 * tree.h (canonical_type_used_p): New inline.
3714 * alias.c (get_alias_set): Handle structural equality for all
3715 types that pass canonical_type_used_p.
3716 (record_component_aliases): Look through all types with
3717 record_component_aliases for possible pointers; sanity check that
3718 the alias sets match.
3720 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3722 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
3724 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3726 * tree.c (free_node): New function.
3727 (type_hash_canon): Use it.
3728 * tree.h (free_node): Declare.
3730 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
3731 Michael Meissner <meissner@linux.vnet.ibm.com>
3733 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
3734 (Fv2): New mode attribute to be used when ISA 2.07 instructions
3735 are used on SF values, and ISA 2.06 instructions on DF values.
3736 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
3737 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
3738 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
3739 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
3740 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
3741 (fre<Fs>): Use <Fv2> instead of <Fv>.
3742 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
3743 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
3744 (xsrdpi<mode>): Add support for the lround function.
3745 (lround<mode>di2): Likewise.
3746 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3747 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3748 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3749 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3751 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
3752 Sebastian Pop <s.pop@samsung.com>
3754 PR tree-optimization/67984
3755 * graphite-isl-ast-to-gimple.c (is_constant): New.
3756 (get_rename): Call is_constant.
3757 (get_new_name): Same.
3759 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
3760 Sebastian Pop <s.pop@samsung.com>
3762 * graphite-dependences.c: Only include graphite.h.
3763 * graphite-isl-ast-to-gimple.c: Same.
3764 * graphite-optimize-isl.c: Same.
3765 * graphite-poly.c: Same.
3766 * graphite-scop-detection.c: Same.
3767 * graphite-sese-to-poly.c: Same.
3769 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
3770 * graphite-poly.h: Same.
3771 * graphite-scop-detection.h: Same.
3774 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
3776 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
3777 DW_TAG_namespace for IMPORTED_DECL declarations. Call
3778 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
3779 function already takes care of checking what it can emit.
3781 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
3783 * doc/invoke.texi (-fpic): Add the AArch64 limit.
3784 (-fPIC): Add AArch64.
3786 2015-11-24 Tom de Vries <tom@codesourcery.com>
3788 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
3789 (pass_lim::execute): Allow to run outside pass_tree_loop.
3791 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
3793 * config/aarch64/aarch64.md (add<mode>3):
3794 Block early expansion into 2 add instructions.
3795 (add<mode>3_pluslong): New pattern to combine complex
3796 immediates into 2 additions.
3798 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3803 * config/rs6000/predicates.md (and_operand): Check that the operand
3804 is a const_int before calling rs6000_is_valid_and_mask.
3806 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3808 * config/aarch64/aarch64.md (*condjump): Rename to...
3809 (condjump): ... This.
3810 (*compare_condjump<mode>): New define_insn_and_split.
3811 (*compare_cstore<mode>_insn): Likewise.
3812 (*cstore<mode>_insn): Rename to...
3813 (cstore<mode>_insn): ... This.
3814 * config/aarch64/iterators.md (CMP): Handle ne code.
3815 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
3817 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
3820 * config/i386/i386.c (output_387_binary_op): Fix assertion for
3823 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3825 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
3826 (val_ssa_equiv_hash_traits::remove): Likewise.
3827 (pass_uncprop::execute): Adjust.
3829 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3831 * hash-map-traits.h (simple_hashmap_traits ::remove): call
3832 destructors on values that are being removed.
3833 * mem-stats.h (hash_map): Pass type of values to
3834 simple_hashmap_traits.
3835 * tree-sra.c (sra_deinitialize): Remove work around for hash
3836 maps not destructing values.
3837 * genmatch.c (sinfo_hashmap_traits): Adjust.
3838 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
3840 2015-11-24 Richard Biener <rguenther@suse.de>
3841 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3844 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
3847 2015-11-24 Jakub Jelinek <jakub@redhat.com>
3850 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
3851 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
3853 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
3854 whenever first is nelt or above. Don't mask expected with
3857 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
3860 * gimple-fold.c: Include ipa-chkp.h.
3861 (gimple_fold_builtin_memory_op): Don't fold call if we
3862 are going to instrument it and it may copy pointers.
3864 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
3865 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3867 PR rtl-optimization/68194
3868 PR rtl-optimization/68328
3869 PR rtl-optimization/68185
3870 * ree.c (combine_reaching_defs): Reject copy_needed case if
3871 copies_list is not empty.
3873 2015-11-24 Richard Biener <rguenther@suse.de>
3876 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3879 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3881 PR rtl-optimization/68381
3882 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
3885 2015-11-23 Nick Clifton <nickc@redhat.com>
3886 Jeff Law <law@redhat.com>
3888 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
3889 the source/dest of the target extension require a different number of
3891 (combine_set_extension): Remove #if 0 code.
3893 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3894 Sebastian Pop <s.pop@samsung.com>
3896 PR tree-optimization/68314
3897 * graphite-optimize-isl.c (optimize_isl): Do not call
3898 isl_union_map_is_equal.
3899 * graphite-poly.c (new_scop): Remove original_schedule.
3901 * graphite-poly.h (struct scop): Same.
3902 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
3904 (build_pbb_scattering_polyhedrons): Add back.
3905 (build_scop_minimal_scattering): Remove.
3906 (build_scop_scattering): Add back.
3907 (build_scop_original_schedule): Remove.
3908 (build_poly_scop): Revert to only call build_scop_scattering.
3910 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3911 Sebastian Pop <s.pop@samsung.com>
3913 PR tree-optimization/68493
3914 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
3915 missing early return when codegen_error is set.
3917 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3918 Sebastian Pop <s.pop@samsung.com>
3920 PR tree-optimization/68279
3921 * graphite-poly.c (new_scop): Remove poly_scop_p.
3922 * graphite-poly.h (struct scop): Same.
3923 (build_poly_scop): Declare.
3924 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
3925 (cleanup_loop_iter_dom): New.
3926 (build_loop_iteration_domains): Early return when scev analysis fails.
3927 (create_pw_aff_from_tree): Same.
3928 (add_condition_to_pbb): Same.
3929 (add_conditions_to_domain): Same.
3930 (add_conditions_to_constraints): Same.
3931 (build_scop_iteration_domain): Same.
3932 (build_poly_scop): Same. Do not initialize poly_scop_p.
3933 * graphite-sese-to-poly.h: Remove.
3934 * graphite.c: Do not include graphite-sese-to-poly.h.
3935 (graphite_transform_loops): Stop before code generation when
3936 build_poly_scop fails.
3937 * sese.c (scalar_evolution_in_region): Add fixme note about scev
3940 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3941 Sebastian Pop <s.pop@samsung.com>
3943 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3944 Remove call to update_ssa.
3945 * sese.c (sese_insert_phis_for_liveouts): Same.
3947 2015-11-23 Marek Polacek <polacek@redhat.com>
3949 PR tree-optimization/68455
3950 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
3951 extract_range_from_multiplicative_op_1 on symbolic ranges.
3953 2015-11-23 Richard Henderson <rth@redhat.com>
3955 * optabs.def (uaddv4_optab, usubv4_optab): New.
3956 * internal-fn.c (expand_addsub_overflow): Use them.
3957 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
3959 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
3960 to reversed operands.
3961 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
3962 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
3963 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
3964 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
3965 (*add<SWI>3_cconly_overflow_2): New.
3966 (*add<SWI>3_cc_overflow_2): New.
3967 (*addsi3_zext_cc_overflow_2): New.
3969 2015-11-23 Richard Biener <rguenther@suse.de>
3971 PR tree-optimization/68465
3972 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
3973 Also record equalities from multiple predecessor blocks if
3974 only one non-backedge exists.
3976 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3979 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
3980 that are not INSN_P.
3982 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
3984 * config/aarch64/aarch64-builtins.c
3985 (aarch64_gimple_fold_builtin): Fold FMULX.
3987 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
3989 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
3990 * graphite-dependences.c: Define USES_ISL. Include ISL header files
3991 after GCC header files and before graphite header files.
3992 * graphite-dependences.c: Same.
3993 * graphite-isl-ast-to-gimple.c: Same.
3994 * graphite-optimize-isl.c: Same.
3995 * graphite-poly.c: Same.
3996 * graphite-scop-detection.c: Same.
3997 * graphite-sese-to-poly.c: Same.
4000 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
4001 Jiong Wang <jiong.wang@arm.com>
4003 PR tree-optimization/68317
4004 PR tree-optimization/68326
4005 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
4006 final min and max are not infinity.
4008 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4009 Richard Biener <rguenther@suse.de>
4011 PR tree-optimization/68327
4012 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4013 compute vectype for non-relevant mask producers.
4014 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
4017 2015-11-23 Tom de Vries <tom@codesourcery.com>
4019 PR tree-optimization/68460
4020 * tree-parloops.c (gather_scalar_reductions): Also call
4021 free_stmt_vec_info_vec if simple_loop_info == NULL.
4023 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
4025 * opts.c (finish_options): Allow -fsanitize-recover=address for
4026 userspace sanitization.
4027 * asan.c (asan_expand_check_ifn): Redefine recover_p.
4028 * doc/invoke.texi (fsanitize-recover): Update documentation.
4030 2015-11-23 Tom de Vries <tom@codesourcery.com>
4032 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
4034 2015-11-23 Richard Biener <rguenther@suse.de>
4036 PR tree-optimization/68445
4037 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
4038 two different strides.
4040 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
4042 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
4043 * config/s390/s390.c (s390_check_symref_alignment): Use new
4044 symref flags, early abort on wrong alignment
4045 (s390_secondary_reload): Use new symref flags.
4046 (s390_encode_section_info): Likewise.
4047 * config/s390/predicates.md: Likewise.
4049 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4052 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
4053 for indirect function call.
4055 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
4057 * config/aarch64/aarch64-simd.md
4058 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
4059 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
4060 (*aarch64_mulx_elt_to_64v2df): Likewise.
4061 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
4062 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
4063 (vmulx_lane_f64): Likewise.
4064 (vmulxq_lane_f32): Refactored & moved.
4065 (vmulxq_lane_f64): Likewise.
4066 (vmulx_laneq_f32): New.
4067 (vmulx_laneq_f64): Likewise.
4068 (vmulxq_laneq_f32): Likewise.
4069 (vmulxq_laneq_f64): Likewise.
4070 (vmulxs_lane_f32): Likewise.
4071 (vmulxs_laneq_f32): Likewise.
4072 (vmulxd_lane_f64): Likewise.
4073 (vmulxd_laneq_f64): Likewise.
4075 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
4077 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
4078 In LTO we do not compute TYPE_CANONICAL of pointers.
4079 (gimple_canonical_types_compatible_p): Improve coments; sanity check
4080 that pointers do not have canonical type that would make us believe
4082 * alias.c (get_alias_set): Do structural type equality on pointers;
4083 enable pointer path for LTO; also glob pointer to vector with pointer
4084 to vector element; glob pointers and references for LTO; do more strict
4085 sanity checking about build_pointer_type returning the canonical type
4086 which is also the main variant.
4087 (record_component_aliases): When component type is pointer and we
4088 do LTO; record void_type_node alias set.
4090 2015-11-21 Nathan Sidwell <nathan@acm.org>
4092 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
4094 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
4096 (write_func_decl_from_insn): Likewise.
4097 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
4098 (nvptx_file_end): Likewise.
4099 (nvptx_function_end): Undent output.
4100 (nvptx_expand_call): Fix formatting.
4101 (nvptx_output_call_insn): Indent output.
4102 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
4103 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
4105 2015-11-21 Jakub Jelinek <jakub@redhat.com>
4108 * tree-inline.c (copy_debug_stmt): If
4109 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
4110 in decl_debug_args, don't call remap_gimple_op_r on it.
4112 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4114 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
4115 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
4116 Check that all record types are complete.
4117 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
4118 compare alias sets for types w/o alias sets.
4120 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4122 * config/sparc/sparc.md (umulxhi_vis): Move around.
4123 (*umulxhi_sp64): Likewise.
4124 (umulxhi_v8plus): Likewise.
4125 (xmulx_vis): Likewise.
4126 (*xmulx_sp64): Likewise.
4127 (xmulx_v8plus): Likewise.
4128 (xmulxhi_vis): Likewise.
4129 (*xmulxhi_sp64): Likewise.
4130 (xmulxhi_v8plus): Likewise.
4132 2015-11-20 David Malcolm <dmalcolm@redhat.com>
4135 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
4136 (class layout): Update comment
4137 (layout::print_any_fixits): New method.
4138 (layout::move_to_column): New method.
4139 (diagnostic_show_locus): Add call to layout.print_any_fixits.
4141 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4144 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
4145 has non-zero bias, subtract it in integer type instead of
4146 pointer plus of negated bias.
4149 * omp-low.c (expand_simd_clones): Call node->get_body () before
4150 allocating stuff in GC.
4152 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
4154 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
4156 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
4158 * config/aarch64/aarch64.md (predicated): Copy attribute from
4160 * config/arm/arm.md (predicated): Added description.
4162 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4164 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
4165 for unaligned_access.
4166 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
4167 from matching condition.
4168 (unaligned_loadhis): Likewise.
4169 (unaligned_loadhiu): Likewise.
4170 (unaligned_storesi): Likewise.
4171 (unaligned_storehi): Likewise.
4173 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4176 * config/arm/arm.md (unaligned_loaddi): Delete.
4177 (unaligned_storedi): Likewise.
4178 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
4179 unaligned DImode memory ops. Instead perform two back-to-back
4180 unaligned SImode ops.
4182 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
4183 James Norris <jnorris@codesourcery.com>
4185 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
4186 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
4188 2015-11-20 Alan Hayward <alan.hayward@arm.com>
4190 PR tree-optimization/68413
4191 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
4193 (vectorizable_reduction): Use cached base
4195 2015-11-20 Tom de Vries <tom@codesourcery.com>
4197 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
4199 (try_create_reduction_list): Same. Fix typo in dump-file string.
4201 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4203 * doc/md.texi (Standard Names): Move entry for addptr3 around,
4204 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
4205 glitch in entries for cbranch4 and jump.
4207 2015-11-20 Tom de Vries <tom@codesourcery.com>
4209 PR tree-optimization/68373
4210 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
4212 (scev_const_prop): ... here.
4213 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
4214 * tree-parloops.c (try_create_reduction_list): Call
4215 final_value_replacement_loop.
4217 2015-11-20 Bin Cheng <bin.cheng@arm.com>
4219 PR tree-optimization/52272
4220 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
4221 (struct iv_common_cand_hasher): New struct.
4222 (iv_common_cand_hasher::hash): New function.
4223 (iv_common_cand_hasher::equal): New function.
4224 (struct ivopts_data): New fields, iv_common_cand_tab and
4226 (tree_ssa_iv_optimize_init): Initialize above fields.
4227 (record_common_cand, common_cand_cmp): New functions.
4228 (add_iv_candidate_derived_from_uses): New function.
4229 (add_iv_candidate_for_use): Record iv_common_cands derived from
4230 iv use in hash table, instead of adding candidates directly.
4231 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
4232 (record_important_candidates): Add important candidates to iv uses'
4233 related_cands. Always keep related_cands for future use.
4234 (try_add_cand_for): Use iv uses' related_cands.
4235 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
4236 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
4238 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4240 * config/s390/s390.md ("bswaphi2"): New pattern.
4242 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
4244 * config/s390/s390.md (GPR1_REGNUM): New constant.
4245 ("*trunc<BFP:mode><DFP_ALL:mode>2")
4246 ("*trunc<DFP_ALL:mode><BFP:mode>2")
4247 ("trunc<BFP:mode><DFP_ALL:mode>2")
4248 ("trunc<DFP_ALL:mode><BFP:mode>2")
4249 ("*extend<BFP:mode><DFP_ALL:mode>2")
4250 ("*extend<DFP_ALL:mode><BFP:mode>2")
4251 ("extend<BFP:mode><DFP_ALL:mode>2")
4252 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
4254 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4255 Sebastian Pop <s.pop@samsung.com>
4257 PR tree-optimization/68428
4258 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
4259 over basic blocks outside the scop.
4261 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4262 Sebastian Pop <s.pop@samsung.com>
4264 PR tree-optimization/68341
4265 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
4266 gcc_unreachable and safely fail codegen.
4267 (copy_loop_close_phi_args): Do not insert merge phis in a basic
4268 block with loop phi nodes.
4269 (edge_for_new_close_phis): New.
4270 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
4272 2015-11-19 Nathan Sidwell <nathan@acm.org>
4274 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
4275 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
4276 (nvptx_declare_objec_name): Likewise.
4278 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4280 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
4281 (get_false_edge_from_guard_bb): Move...
4282 * sese.c (get_false_edge_from_guard_bb)
4283 (get_true_edge_from_guard_bb): ... here.
4285 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
4288 2015-11-18 Alan Modra <amodra@gmail.com>
4290 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4291 type-limits warning.
4294 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4296 * tree.h (desired_pro_or_demotion_p): New function.
4297 * tree-vrp.c (simplify_cond_using_ranges): Call it.
4299 2015-11-19 Michael Matz <matz@suse.de>
4301 PR rtl-optimization/68392
4302 * fwprop.c (update_uses): Use flag_checking instead of
4303 gcc_checking_assert.
4305 2015-11-19 David Malcolm <dmalcolm@redhat.com>
4307 * doc/gty.texi (Support for inheritance): Fix missing
4308 parentheses in example.
4310 2015-11-19 Marek Polacek <polacek@redhat.com>
4312 PR tree-optimization/68431
4313 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
4315 2015-11-19 Nathan Sidwell <nathan@acm.org>
4317 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
4318 atomic_exchange<mode>): Input values can be immediates.
4320 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4323 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
4325 * configure: Regenerate.
4327 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4330 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
4331 (DTORS_SECTION_ASM_OP): Likewise.
4333 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4335 PR rtl-optimization/68376
4336 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
4337 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
4339 2015-11-19 Richard Biener <rguenther@suse.de>
4342 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
4343 redirect_edge_var_map_destroy.
4345 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4348 * config/i386/i386.md (simple_return): Disable if
4349 ix86_static_chain_on_stack is true.
4351 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
4354 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
4357 2015-11-18 Jeff Law <law@redhat.com>
4359 PR tree-optimization/68198
4360 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
4361 between threading a multi-way branch and a thread path that contains
4362 a multi-way branch. Disallow the case where a path contains a
4363 multi-way branch and does not thread a multi-way branch.
4364 (thread_through_all_blocks): Update comment.
4366 2015-11-18 Joseph Myers <joseph@codesourcery.com>
4369 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
4370 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
4371 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
4372 functions before defining as macros.
4374 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4376 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
4377 (nvptx_record_offload_symbol): Remove code compensating for lack
4378 of default dimension handling.
4379 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
4381 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4383 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
4384 type to bool for early exit.
4385 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
4387 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4388 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
4389 predecessor dominates the other.
4390 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
4391 element is not found it returns -1.
4392 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
4393 out early when codegen fails.
4394 (graphite_regenerate_ast_isl): Remove codegen region when pending
4395 phis could not be generated.
4397 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4399 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
4401 (class translate_isl_ast_to_gimple): Indentation.
4402 (translate_pending_phi_nodes): Comment.
4403 (add_parameters_to_ivs_params): Moved from sese.c inside class
4404 translate_isl_ast_to_gimple.
4405 (get_max_schedule_dimensions): Same.
4406 (generate_isl_context): Same.
4407 (extend_schedule): Same.
4408 (generate_isl_schedule): Same.
4409 (set_options): Same.
4410 (scop_to_isl_ast): Same.
4411 (is_valid_rename): Same.
4413 (get_rename_from_scev): Same.
4414 (get_def_bb_for_const): Same.
4415 (get_new_name): Same.
4416 (collect_all_ssa_names): Same.
4417 (copy_loop_phi_args): Same.
4418 (copy_loop_phi_nodes): Same.
4419 (copy_loop_close_phi_args): Same.
4420 (copy_loop_close_phi_nodes): Same.
4421 (copy_cond_phi_args): Same.
4422 (copy_cond_phi_nodes): Same.
4423 (graphite_copy_stmts_from_block): Same.
4424 (copy_bb_and_scalar_dependences): Same.
4425 (add_phi_arg_for_new_expr): Same.
4426 (rename_uses): Same.
4428 (set_rename_for_each_def): Same.
4429 (gsi_insert_earliest): Same.
4430 (rename_all_uses): Same.
4431 (codegen_error_p): Same.
4432 (print_isl_ast_node): Same.
4433 (translate_isl_ast_for_loop): Call function codegen_error_p.
4434 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4435 (translate_isl_ast_node_user): Make nb_loops const and release
4437 (get_true_edge_from_guard_bb): Move all free-functions early.
4438 (get_false_edge_from_guard_bb): Same.
4439 (bb_contains_loop_close_phi_nodes): Same.
4440 (bb_contains_loop_phi_nodes): Same.
4441 (is_loop_closed_ssa_use): Same.
4442 (number_of_phi_nodes): Same.
4443 (phi_uses_name): Same.
4444 (later_of_the_two): Same.
4445 (substitute_ssa_name):
4448 (get_loop_init_value): Same.
4449 (find_init_value): Same.
4450 (find_init_value_close_phi): Same.
4451 (ast_build_before_for): Same.
4452 (graphite_regenerate_ast_isl): Formatting changes.
4453 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
4454 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
4456 (gsi_insert_earliest): Same.
4457 (collect_all_ssa_names): Same.
4458 (rename_all_uses): Same.
4459 (rename_uses): Same.
4460 (get_def_bb_for_const): Same.
4461 (copy_loop_phi_nodes): Same.
4462 (copy_loop_close_phi_args): Same.
4463 (copy_loop_close_phi_nodes): Same.
4464 (copy_cond_phi_args): Same.
4465 (copy_cond_phi_nodes): Same.
4466 (set_rename_for_each_def): Same.
4467 (graphite_copy_stmts_from_block): Same.
4468 (copy_bb_and_scalar_dependences): Same.
4469 (if_region_set_false_region): Same.
4470 (scev_analyzable_p): Same.
4471 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
4473 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
4475 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
4476 commit from r125920 for FreeBSD.
4478 2015-11-18 Jason Merrill <jason@redhat.com>
4480 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
4482 (add_finalizer): Split out from ggc_internal_alloc.
4483 (ggc_handle_finalizers): Run finalizers for the current depth.
4484 (init_ggc, ggc_pch_read): Reserve space for finalizers.
4486 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
4489 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
4492 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4494 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
4495 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
4497 * doc/avr-mmcu.texi: Regenerate.
4499 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4501 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
4502 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
4503 (struct bb_sese): New struct.
4504 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
4505 (BB_GET_SESE, BB_SET_SESE): Define.
4506 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
4507 (nvptx_find_sese): New.
4508 (nvptx_neuter_pars): Find SESE regions when optimizing.
4510 2015-11-18 Alan Modra <amodra@gmail.com>
4512 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4513 type-limits warning.
4515 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
4518 * hash-set.h (hash_set::traverse): Expand Key typedef.
4520 2015-11-18 Martin Liska <mliska@suse.cz>
4522 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
4525 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4527 * config/nvptx/nvptx.c (global_lock_var): New.
4528 (nvptx_global_lock_addr): New.
4529 (nvptx_lockless_update): Recomment and adjust for clarity.
4530 (nvptx_lockfull_update): New.
4531 (nvptx_reduction_update): New.
4532 (nvptx_goacc_reduction_fini): Call it.
4534 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
4536 * regrename.h (struct du_head): Add target_data_1 and target_data_2
4538 * regrename.c (create_new_chain): Clear entire struct after allocating.
4540 * config/i386/i386.opt (mmitigate-rop): New option.
4541 * doc/invoke.texi (mmitigate-rop): Document.
4542 * config/i386/i386.c: Include "regrename.h".
4543 (ix86_rop_should_change_byte_p, reg_encoded_number,
4544 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
4546 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
4547 * config/i386/i386.md (attr "modrm_class"): New.
4548 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
4549 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
4550 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
4552 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
4555 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
4557 2015-11-18 Jakub Jelinek <jakub@redhat.com>
4559 PR tree-optimization/68157
4560 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
4561 pow_stmt or mul_stmt from stmt's uid.
4562 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
4564 2015-11-18 Martin Liska <mliska@suse.cz>
4566 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
4568 2015-11-18 Martin Liska <mliska@suse.cz>
4570 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4571 Fix GNU coding style.
4572 (find_def_preds): Use auto_vec.
4573 (destroy_predicate_vecs): Change signature of the function.
4574 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
4576 (simplify_preds_4): Use destroy_predicate_vecs instread of
4577 just releasing preds vector.
4578 (normalize_preds): Likewise.
4579 (is_use_properly_guarded): Use new signature of
4580 destroy_predicate_vecs.
4581 (find_uninit_use): Likewise.
4583 2015-11-18 Richard Biener <rguenther@suse.de>
4585 PR tree-optimization/67790
4586 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
4587 IL rewrite for MINUS_EXPR reductions, rename back to ...
4588 (vect_is_simple_reduction): ... this, removing the wrapper.
4589 (vect_force_simple_reduction): Adjust.
4590 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
4591 reductions and make use if reduc_index in all places. For
4592 the final reduction of MINUS_EXPR use PLUS_EXPR.
4594 2015-11-18 Alan Modra <amodra@gmail.com>
4596 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
4598 * configure: Regenerate.
4600 2015-11-17 Tom de Vries <tom@codesourcery.com>
4602 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
4604 2015-11-17 Tom de Vries <tom@codesourcery.com>
4606 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
4607 uses of ssa_name with constant.
4609 2015-11-17 Tom de Vries <tom@codesourcery.com>
4611 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
4614 2015-11-17 Tom de Vries <tom@codesourcery.com>
4616 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
4617 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
4618 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
4620 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
4622 * regrename.c (regrename_find_superclass): New function, code moved
4624 (rename_chains): ... here. Call it.
4625 * regrename.h (regrename_find_superclass): Declare.
4627 * regrename.c (record_out_operands): Terminate earlyclobbered
4631 * regrename.c (record_operand_use): Keep track of failed operands
4632 and stop appending if we see any.
4633 * regrename.h (struct operand_rr_info): Add a failed field and shrink
4636 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
4639 * doc/extend.texi (Common Function Attributes) [visibility]:
4640 Add cross-references to matching variable and type attributes.
4641 (Common Variable Attributes) [visibility]: Add missing entry.
4643 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4645 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
4646 entries that map directly to optabs.
4648 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4650 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
4651 entries that map directly to optabs.
4653 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4655 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
4656 * internal-fn.c (direct_internal_fn_array): Update accordingly.
4657 * tree-vectorizer.h (vectorizable_function): Delete.
4658 * tree-vect-stmts.c: Include internal-fn.h.
4659 (vectorizable_internal_function): New function.
4660 (vectorizable_function): Inline into...
4661 (vectorizable_call): ...here. Explicitly reject calls that read
4662 from or write to memory. Try using an internal function before
4663 falling back on the old vectorizable_function behavior.
4665 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4667 * target.def (builtin_vectorized_function): Take a combined_fn (in
4668 the form of an unsigned int) rather than a function decl.
4669 (builtin_md_vectorized_function): New.
4670 * targhooks.h (default_builtin_vectorized_function): Replace the
4671 fndecl argument with an unsigned int.
4672 (default_builtin_md_vectorized_function): Declare.
4673 * targhooks.c (default_builtin_vectorized_function): Replace the
4674 fndecl argument with an unsigned int.
4675 (default_builtin_md_vectorized_function): New function.
4676 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
4678 * doc/tm.texi: Regenerate.
4679 * tree-vect-stmts.c (vectorizable_function): Update call to
4680 builtin_vectorized_function, also passing internal functions.
4681 Call builtin_md_vectorized_function for target-specific builtins.
4682 * config/aarch64/aarch64-protos.h
4683 (aarch64_builtin_vectorized_function): Replace fndecl argument
4684 with an unsigned int.
4685 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
4686 (aarch64_builtin_vectorized_function): Update after above changes.
4688 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
4689 fndecl argument with an unsigned int.
4690 * config/arm/arm-builtins.c: Include case-cfn-macros.h
4691 (arm_builtin_vectorized_function): Update after above changes.
4693 * config/i386/i386.c: Include case-cfn-macros.h
4694 (ix86_veclib_handler): Take a combined_fn rather than a
4696 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
4697 mathfn_built_in rather than calling builtin_decl_implicit directly.
4698 (ix86_builtin_vectorized_function) Update after above changes.
4700 * config/rs6000/rs6000.c: Include case-cfn-macros.h
4701 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
4702 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
4703 than calling builtin_decl_implicit directly.
4704 (rs6000_builtin_vectorized_function): Update after above changes.
4705 Use CASE_CFN_*. Move BUILT_IN_MD to...
4706 (rs6000_builtin_md_vectorized_function): ...this new function.
4707 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
4709 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4711 * tree-vect-patterns.c: Include internal-fn.h.
4712 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
4714 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4716 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
4717 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
4719 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4721 * builtins.c (expand_errno_check, expand_builtin_mathfn)
4722 (expand_builtin_mathfn_2): Delete.
4723 (expand_builtin): Remove handling of functions with
4724 internal function equivalents.
4725 * internal-fn.def (SET_EDOM): New internal function.
4726 * internal-fn.h (set_edom_supported_p): Declare.
4727 * internal-fn.c (expand_SET_EDOM): New function.
4728 (set_edom_supported_p): Likewise.
4729 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
4730 Rewrite comment at head of file.
4731 (is_call_dce_candidate): Rename to...
4732 (can_test_argument_range): ...this. Don't check gimple_call_lhs
4733 or gimple_call_builtin_p here.
4734 (edom_only_function): New function.
4735 (shrink_wrap_one_built_in_call_with_conds): New function, split out
4737 (shrink_wrap_one_built_in_call): ...here.
4738 (can_use_internal_fn, use_internal_fn): New functions.
4739 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
4740 for calls that have an lhs.
4741 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
4742 (pass_call_cdce::execute): Skip blocks that are optimized for size.
4743 Check gimple_call_builtin_p here. Use can_use_internal_fn for
4745 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
4748 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4750 * builtins.h (called_as_built_in): Declare.
4751 * builtins.c (called_as_built_in): Make external.
4752 * internal-fn.h (expand_internal_call): Define a variant that
4753 specifies the internal function explicitly.
4754 * internal-fn.c (expand_load_lanes_optab_fn)
4755 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
4756 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
4757 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
4758 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
4759 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
4760 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
4761 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
4762 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
4763 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
4764 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
4765 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
4766 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
4767 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
4769 (internal_fn_expanders): Update prototype.
4770 (expand_internal_call): Define a variant that specifies the
4771 internal function explicitly. Use it to implement the previous
4773 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
4774 functions as calls to internal functions.
4776 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4778 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
4779 (generated_files): Likewise.
4780 (s-cfn-operators, cfn-operators.pd): New rules.
4781 (s-match): Depend on cfn-operators.pd.
4782 * gencfn-macros.c: Expand comment to describe -o behavior.
4783 (print_define_operator_list): New function.
4784 (main): Accept -o. Call print_define_operator_list.
4785 * genmatch.c (main): Add the current directory to the include path.
4786 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
4789 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4791 * doc/match-and-simplify.texi: Document the "null" identifier.
4792 * genmatch.c (id_base::NULL_ID): New kind.
4793 (null_id): New variable.
4794 (get_operator): Add a parameter that says whether null identifiers
4796 (contains_id): New function.
4797 (lower_for): Skip substitutions that would have a null_id in
4798 either the match or the result.
4799 (parser::parse_for): Allow the null identifier to be used.
4800 (parser::parse_operator_list): Likewise.
4801 (main): Initialize null_id.
4803 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4805 * match.pd: Use HYPOT and COS rather than hypot and cos.
4806 Use CASE_CFN_* macros. Guard log/exp folds with
4807 SCALAR_FLOAT_TYPE_P.
4808 * genmatch.c (internal_fn): New enum.
4809 (fn_id::fn): Change to an unsigned int.
4810 (fn_id::fn_id): Accept internal_fn too.
4811 (add_builtin): Rename to...
4812 (add_function): ...this and turn into a template.
4813 (get_operator): Only try one variation if the original name fails.
4814 Only add _EXPR if the original name was all lower case.
4815 Try converting internal and built-in function names to their
4817 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
4818 (dt_simplify::gen_1): Likewise.
4819 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
4820 and get_call_combined_fn for generic.
4821 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
4822 (decision_tree::gen): Likewise.
4823 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
4824 Use add_function rather than add_builtin. Register internal
4826 * generic-match-head.c: Include case-cfn-macros.h.
4827 * gimple-fold.c (replace_stmt_with_simplification): Use
4828 gimple_call_combined_fn to test whether we can keep an
4830 * gimple-match.h (code_helper): Replace built_in_function
4832 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
4833 and case-fn-macros.h.
4834 (gimple_resimplify1): Use fold_const_call.
4835 (gimple_resimplify2, gimple_resimplify3): Likewise.
4836 (build_call_internal, build_call): New functions.
4837 (maybe_push_res_to_seq): Use them.
4838 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
4839 rather than a built-in function.
4840 * tree.h (build_call_expr_internal_loc): Declare.
4841 (maybe_build_call_expr_loc): Likewise.
4842 * tree.c (build_call_expr_internal_loc_array): New function.
4843 (maybe_build_call_expr_loc): Likewise.
4845 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4847 * builtins.h (mathfn_built_in): Add a variant that takes
4849 * builtins.c: Include case-cfn-macros.h.
4850 (CASE_MATHFN): Use CASE_CFN_*.
4851 (CASE_MATHFN_REENT): Use CFN_ codes.
4852 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
4853 argument with a combined_fn.
4854 (mathfn_built_in): Add a variant that takes a combined_fn.
4855 (expand_builtin_int_roundingfn_2): Update callers accordingly.
4856 (fold_builtin_sincos, fold_builtin_classify): Likewise.
4858 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4860 * tree-vect-patterns.c: Include case-cfn-macros.h.
4861 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
4863 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4865 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
4866 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
4867 (pass_cse_sincos::execute): Likewise.
4869 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4871 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
4872 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
4873 (decrement_power, acceptable_pow_call): Likewise.
4874 (attempt_builtin_copysign): Likewise.
4876 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4878 * tree-vrp.c: Include case-cfn-macros.h.
4879 (extract_range_basic): Switch on combined_fn rather than handling
4880 built-in functions and internal functions separately.
4882 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4884 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
4885 than a built_in_function.
4886 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4888 (integer_valued_real_call_p): Likewise.
4889 * fold-const.c: Include case-cfn-macros.h
4890 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
4891 (negate_expr_p): Update accordingly.
4892 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4894 (integer_valued_real_call_p): Likewise.
4895 (tree_invalid_nonnegative_warnv_p): Update accordingly.
4896 (integer_valued_real_p): Likewise.
4897 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
4898 to tree_call_nonnegative_warnv_p.
4899 (gimple_call_integer_valued_real_p): Likewise
4900 integer_valued_real_call_p.
4901 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
4902 (backprop::process_builtin_call_use): Extend to combined_fn.
4903 (strip_sign_op_1): Likewise.
4904 (backprop::process_use): Don't check for built-in calls here.
4905 (backprop::execute): Likewise.
4906 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
4908 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4910 * fold-const-call.h (fold_const_call): Replace built_in_function
4911 arguments with combined_fn arguments.
4912 * fold-const-call.c: Include case-cfn-macros.h.
4913 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
4914 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
4915 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
4916 built_in_function arguments with combined_fn arguments.
4917 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
4918 (fold_builtin_3): Update calls to fold_const_call.
4920 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4922 * Makefile.in (HASH_TABLE_H): Add GGC_H.
4923 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
4924 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
4925 (build/gencfn-macros$(build_exeext): New rules.
4926 (genprogerr): Add cfn-macros.
4927 * hash-set.h (hash_set): Use the traits value_type as the key.
4928 * gencfn-macros.c: New file.
4930 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4932 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
4933 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
4934 * builtins.c (associated_internal_fn): Handle them.
4936 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4938 * builtins.h (associated_internal_fn): Declare.
4939 (replacement_internal_fn): Likewise.
4940 * builtins.c: Include internal-fn.h
4941 (associated_internal_fn, replacement_internal_fn): New functions.
4942 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
4943 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
4944 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
4945 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
4946 (LDEXP): New functions.
4947 * internal-fn.c: Include recog.h.
4948 (unary_direct, binary_direct): New macros.
4949 (expand_direct_optab_fn): New function.
4950 (expand_unary_optab_fn): New macro.
4951 (expand_binary_optab_fn): Likewise.
4952 (direct_unary_optab_supported_p): Likewise.
4953 (direct_binary_optab_supported_p): Likewise.
4955 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4957 * coretypes.h (tree_pair): New type.
4958 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
4959 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
4960 * internal-fn.h (direct_internal_fn_info): New structure.
4961 (direct_internal_fn_array): Declare.
4962 (direct_internal_fn_p, direct_internal_fn): New functions.
4963 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
4964 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
4965 (mask_store_direct, store_lanes_direct): New macros.
4966 (direct_internal_fn_array) New array.
4967 (get_multi_vector_move): Return the optab handler without asserting
4968 that it is available.
4969 (expand_LOAD_LANES): Rename to...
4970 (expand_load_lanes_optab_fn): ...this and add an optab argument.
4971 (expand_STORE_LANES): Rename to...
4972 (expand_store_lanes_optab_fn): ...this and add an optab argument.
4973 (expand_MASK_LOAD): Rename to...
4974 (expand_mask_load_optab_fn): ...this and add an optab argument.
4975 (expand_MASK_STORE): Rename to...
4976 (expand_mask_store_optab_fn): ...this and add an optab argument.
4977 (direct_internal_fn_types, direct_optab_supported_p)
4978 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
4979 (direct_internal_fn_supported_p): New functions.
4980 (direct_mask_load_optab_supported_p): New macro.
4981 (direct_load_lanes_optab_supported_p): Likewise.
4982 (direct_mask_store_optab_supported_p): Likewise.
4983 (direct_store_lanes_optab_supported_p): Likewise.
4985 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4987 * tree-core.h (internal_fn): Move immediately after the definition
4988 of built_in_function.
4989 (combined_fn): New enum.
4990 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
4991 (internal_fn_p, as_internal_fn): New functions.
4992 (get_call_combined_fn, combined_fn_name): Declare.
4993 * tree.c (get_call_combined_fn): New function.
4994 (combined_fn_name): Likewise.
4995 * gimple.h (gimple_call_combined_fn): Declare.
4996 * gimple.c (gimple_call_combined_fn): New function.
4998 2015-11-17 Martin Sebor <msebor@redhat.com>
5001 * cp/init.c (build_new_1): Check for expression constness
5004 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
5007 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
5009 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
5010 discussion of the Microsoft structure layout details here from
5011 its former home in extend.texi.
5012 * doc/extend.texi (x86 Variable Attributes): Replace detailed
5013 discussion with pointer to its new location. Add cross-reference
5014 to corresponding type attributes.
5015 (x86 Type Attributes): Add cross-references to command-line options
5016 and variable attributes.
5018 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
5021 * targhooks.c (default_get_mask_mode): Filter out
5022 scalar modes returned by mode_for_vector.
5024 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5027 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
5028 offset from dstbase and use it appropriately in
5029 adjust_automodify_address.
5030 (arm_block_set_aligned_vect): Likewise.
5032 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
5034 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
5035 (MULTILIB_DIRNAMES): Adjust accordingly.
5037 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
5039 * config/aarch64/aarch64-cores.def (cortex-a35): New.
5040 * config/aarch64/aarch64.c (cortexa35_tunings): New.
5041 * config/aarch64/aarch64-tune.md: Regenerate.
5042 * doc/invoke.texi (-mcpu): Add Cortex-A35
5044 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
5047 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
5049 * config/i386/sse.md (*mov<mode>_internal): Always enable
5050 AVX and SSE unaligned moves for IAMCU.
5052 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
5054 * tree-if-conv.c: Include varasm.h
5055 (ref_DR_map): Define.
5056 (baseref_DR_map): Like wise
5057 (struct ifc_dr): Add new tree predicate field.
5058 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
5059 (memrefs_read_or_written_unconditionally): Remove.
5060 (write_memrefs_written_at_least_once): Remove.
5061 (ifcvt_memrefs_wont_trap): Use hash maps to query
5062 unconditional read/written information.
5063 (if_convertible_loop_p_1): Initialize hash maps and predicates
5064 before hashing data references and delete hashmaps at the end.
5066 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5069 * doc/invoke.texi (Optimize Options): Move @end table to the right
5072 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
5075 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
5078 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5080 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
5081 128-bit types, just types that fit in a single vector.
5082 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
5084 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
5086 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
5087 in the user documentation.
5088 (define_peephole2, define_split): Similarly.
5090 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
5092 * lto-streamer-out.c (write_global_references): Adjust integer type.
5093 (lto_output_decl_state_refs): Likewise.
5095 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5097 * config/arm/arm-cores.def (cortex-a35): New.
5098 * config/arm/arm.c (arm_cortex_a35_tune): New.
5099 * config/arm/arm-tables.opt: Regenerate.
5100 * config/arm/arm-tune.md: Regenerate.
5101 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
5102 * config/arm/t-aprofile: Likewise.
5103 * doc/invoke.texi (-mcpu): Likewise.
5105 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
5107 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
5108 and qdf24xx and xgene1 to match -march=armv8-a.
5110 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5112 PR rtl-optimization/68330
5113 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
5114 of LSHIFTRT by a non-zero constant integer.
5116 2015-11-16 Richard Biener <rguenther@suse.de>
5118 PR tree-optimization/68306
5119 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
5120 bogus copying from verify_data_ref_alignment and use continue
5123 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
5124 Kaz Kojima <kkojima@gcc.gnu.org>
5127 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
5129 (*addsi3): Add another insn_and_split variant for reload.
5131 2015-11-16 Richard Biener <rguenther@suse.de>
5134 * cfgexpand.c (pass_expand::execute): Destroy the edge
5135 redirection var map before setting RTL CFG hooks.
5137 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
5139 * config/i386/sse.md (reduc_splus_v8df): Rename to...
5140 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
5142 (reduc_splus_v4df): Rename to...
5143 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
5145 (reduc_splus_v2df): Rename to...
5146 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
5148 (reduc_splus_v16sf): Rename to...
5149 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
5151 (reduc_splus_v8sf): Rename to...
5152 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
5154 (reduc_splus_v4sf): Rename to...
5155 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
5157 (reduc_<code>_<mode>, all 3 variants): Rename each to...
5158 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
5160 (reduc_umin_v8hf): Rename to...
5161 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
5163 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
5165 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
5166 without additional conditions.
5167 * doc/extend.texi (@item simd): New.
5169 2015-11-16 Tom de Vries <tom@codesourcery.com>
5171 * passes.c (first_pass_instance): Remove variable.
5172 (execute_todo): Remove setting of first_pass_instance.
5173 * tree-pass.h (first_pass_instance): Remove declaration.
5175 2015-11-16 Tom de Vries <tom@codesourcery.com>
5177 * passes.def: Add arg to pass_ccp pass instantiation.
5178 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
5179 instead of first_pass_instance.
5180 (do_ssa_ccp): Add and handle param nonzero_p.
5181 (pass_ccp::pass_ccp): Initialize nonzero_p.
5182 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
5183 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
5184 (pass_ccp::nonzero_p): New private member.
5186 2015-11-16 Tom de Vries <tom@codesourcery.com>
5188 * passes.def: Add arg to pass_object_sizes pass instantiation.
5189 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
5191 (pass_object_sizes::set_pass_param): New member function. Set
5193 (pass_object_sizes::insert_min_max_p): New private member.
5194 (pass_object_sizes::execute): Use insert_min_max_p instead of
5195 first_pass_instance.
5197 2015-11-16 Tom de Vries <tom@codesourcery.com>
5199 * passes.def: Add arg to pass_dominator pass instantiation.
5200 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
5202 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
5203 may_peel_loop_headers_p.
5204 (pass_dominator::set_pass_param): New member function. Set
5205 may_peel_loop_headers_p.
5206 (pass_dominator::may_peel_loop_headers_p): New private member.
5207 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
5208 first_pass_instance.
5210 2015-11-16 Tom de Vries <tom@codesourcery.com>
5212 * passes.def: Add arg to pass_reassoc pass instantiation.
5213 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
5214 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
5215 of first_pass_instance.
5216 (execute_reassoc): Add and handle insert_powi_p parameter.
5217 (pass_reassoc::insert_powi_p): New private member.
5218 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
5219 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
5220 (pass_reassoc::execute): Call execute_reassoc with extra arg.
5222 2015-11-16 Tom de Vries <tom@codesourcery.com>
5224 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
5225 * gen-pass-instances.awk (handle_line): Same.
5226 * pass_manager.h (class pass_manager): Define and undefine
5228 * passes.c (opt_pass::set_pass_param): New function.
5229 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
5230 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
5231 * tree-pass.h (gimple_opt::set_pass_param): Declare.
5232 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
5233 warn_array_bounds_p parameter.
5234 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
5235 (pass_vrp::set_pass_param): New function.
5236 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
5237 (pass_vrp::warn_array_bounds_p): New private member.
5239 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5241 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
5242 (output_probe_stack_range): Rotate the loop and simplify.
5244 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5246 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
5247 (output_probe_stack_range): Rotate the loop and simplify.
5249 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5251 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
5252 an lea instruction when possible.
5253 (output_adjust_stack_and_probe): Rotate the loop and simplify.
5254 (ix86_emit_probe_stack_range): Adjust.
5255 (output_probe_stack_range): Rotate the loop and simplify.
5257 2015-11-16 Christian Bruel <christian.bruel@st.com>
5259 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
5260 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
5261 with appropriate pragma GCC target.
5263 2015-11-16 Christian Bruel <christian.bruel@st.com>
5266 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
5267 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
5269 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5271 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
5272 (cortexa57_tunings): Use it.
5274 2015-11-16 Christian Bruel <christian.bruel@st.com>
5277 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
5278 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
5279 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
5281 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
5282 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
5283 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
5284 * doc/extend.texi (-mfpu=): Describe attribute.
5286 2015-11-16 Christian Bruel <christian.bruel@st.com>
5289 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
5290 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
5291 arm_init_neon_builtins.
5292 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
5293 (arm_init_neon_builtins_internal)
5294 (arm_init_crypto_builtins_internal):
5295 Test and set neon_set_p, neon_crypto_set_p.
5296 (neon_set_p, neon_crypto_set_p): New static booleans.
5298 2015-11-16 Christian Bruel <christian.bruel@st.com>
5301 * config/arm/arm.c (arm_fpu_desc): Remove.
5302 (all_fpus): Make global.
5303 (arm_option_override): Use FPU TARGET accessors.
5304 (arm_declare_function_name): Likewise.
5305 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
5306 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
5307 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
5308 (TARGET_NEON): Likewise.
5309 (all_fpus): Declare extern.
5310 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
5311 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
5313 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5316 * sdbout.c: Include emit-rtl.h and function.h.
5318 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
5320 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
5321 Remove support for FreeBSD 5 and earlier.
5323 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5325 * configure: Regenerate.
5326 * configure.ac: Always define ENABLE_OFFLOADING.
5327 * cgraph.c (cgraph_node::create): Adjust.
5328 * gcc.c (process_command): Likewise.
5329 * omp-low.c (create_omp_child_function): Likewise.
5330 (expand_omp_target): Likewise.
5331 * varpool.c (varpool_node::get_create): Likewise.
5333 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5335 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
5336 * df-scan.c (df_get_exit_block_use_set): Adjust.
5337 * except.c (expand_eh_return): Likewise.
5339 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5341 * config/i386/i386.h (TARGET_PECOFF): Remove define.
5342 * defaults.h (TARGET_PECOFF): New default definition.
5343 * varasm.c (handle_vtv_comdat_section): Adjust.
5345 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5347 * defaults.h: New definition of SDB_DEBUGGING_INFO.
5348 * doc/tm.texi: Regenerate.
5349 * doc/tm.texi.in: Adjust.
5350 * final.c (rest_of_clean_state): Remove check if
5351 SDB_DEBUGGING_INFO is defined.
5352 * function.c (number_blocks): Likewise.
5353 * output.h: Likewise.
5354 * sdbout.c: Likewise.
5355 * toplev.c (process_options): Likewise.
5357 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5359 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
5360 (enum sdb_masks): Likewise.
5361 * sdbout.c (plain_type_1): Likewise.
5362 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
5364 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5366 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
5367 internal calls - 0 if ordered simd and 1 for ordered threads simd.
5368 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
5369 argument is 1, replace it with GOMP_ordered_* call instead of removing
5372 2015-11-13 Rich Felker <dalias@libc.org>
5374 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
5375 address loading hack for FDPIC targets.
5377 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
5378 Jeff Law <law@redhat.com>
5380 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
5381 * common.opt (-fsplit-paths): New flag controlling path splitting.
5382 * doc/invoke.texi (fsplit-paths): Document.
5383 * opts.c (default_options_table): Add -fsplit-paths to -O2.
5384 * passes.def: Add split_paths pass.
5385 * timevar.def (TV_SPLIT_PATHS): New timevar.
5386 * tracer.c: Include "tracer.h"
5387 (ignore_bb_p): No longer static.
5388 (transform_duplicate): New function, broken out of tail_duplicate.
5389 (tail_duplicate): Use transform_duplicate.
5390 * tracer.h (ignore_bb_p): Declare
5391 (transform_duplicate): Likewise.
5392 * tree-pass.h (make_pass_split_paths): Declare.
5393 * gimple-ssa-split-paths.c: New file.
5395 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
5396 Marek Polacek <polacek@redhat.com>
5397 Jason Merrill <jason@redhat.com>
5399 * convert.c (maybe_fold_build1_loc): New.
5400 (maybe_fold_build2_loc): New.
5401 (convert_to_pointer_1): Split out from convert_to_pointer.
5402 (convert_to_pointer_nofold): New.
5403 (convert_to_real_1): Split out from convert_to_real.
5404 (convert_to_real_nofold): New.
5405 (convert_to_integer_1): Split out from convert_to_integer.
5406 (convert_to_integer_nofold): New.
5407 (convert_to_complex_1): Split out from convert_to_complex.
5408 (convert_to_complex_nofold): New.
5409 * convert.h: Declare new functions.
5410 * tree-complex.c (create_one_component_var): Break up line to
5411 avoid sequence point issues.
5413 2015-11-13 Jason Merrill <jason@redhat.com>
5415 * fold-const.c (fold_convert_const): Fold changing cv-quals on
5418 * hash-map.h (hash_map::empty): New.
5420 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5422 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
5423 (oacc_loop_fixed_partitions): Correct return type to bool.
5424 (oacc_loop_auto_partitions): New.
5425 (oacc_loop_partition): Take mask argument, call
5426 oacc_loop_auto_partitions.
5427 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
5429 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5431 * config/rs6000/constraints.md (we constraint): New constraint for
5432 64-bit power9 vector support.
5433 (wL constraint): New constraint for the element in a vector that
5434 can be addressed by the MFVSRLD instruction.
5436 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
5438 (convert_int_to_float128): Likewise.
5439 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
5440 hardware support for IEEE 128-bit floating point.
5441 (rs6000_expand_float128_convert): Likewise.
5442 (convert_float128_to_int): Likewise.
5443 (convert_int_to_float128): Likewise.
5445 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
5446 ISA 3.0 hardware IEEE 128-bit floating point.
5447 (UNSPEC_IEEE128_MOVE): Likewise.
5448 (UNSPEC_IEEE128_CONVERT): Likewise.
5449 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
5450 (Ff): Add support for DImode.
5452 (any_fix code iterator): New and updated iterators for IEEE
5453 128-bit floating point hardware support.
5454 (any_float code iterator): Likewise.
5455 (s code attribute): Likewise.
5456 (su code attribute): Likewise.
5457 (az code attribute): Likewise.
5458 (uns code attribute): Likewise.
5459 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
5460 floating point hardware support.
5461 (abs<mode>2, FLOAT128 iterator): Likewise.
5462 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
5463 floating point hardware.
5464 (sub<mode>3, IEEE128 iterator): Likewise.
5465 (mul<mode>3, IEEE128 iterator): Likewise.
5466 (div<mode>3, IEEE128 iterator): Likewise.
5467 (copysign<mode>3, IEEE128 iterator): Likewise.
5468 (sqrt<mode>2, IEEE128 iterator): Likewise.
5469 (neg<mode>2, IEEE128 iterator): Likewise.
5470 (abs<mode>2, IEEE128 iterator): Likewise.
5471 (nabs<mode>2, IEEE128 iterator): Likewise.
5472 (fma<mode>4_hw, IEEE128 iterator): Likewise.
5473 (fms<mode>4_hw, IEEE128 iterator): Likewise.
5474 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
5475 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
5476 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
5477 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
5478 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
5479 (fix_fixuns code attribute): Likewise.
5480 (float_floatuns code attribute): Likewise.
5481 (fix<uns>_<mode>si2_hw): Likewise.
5482 (fix<uns>_<mode>di2_hw): Likewise.
5483 (float<uns>_<mode>si2_hw): Likewise.
5484 (float<uns>_<mode>di2_hw): Likewise.
5485 (xscvqp<su>wz_<mode>): Likewise.
5486 (xscvqp<su>dz_<mode>): Likewise.
5487 (xscv<su>dqp_<mode): Likewise.
5488 (ieee128_mfvsrd): Likewise.
5489 (ieee128_mfvsrwz): Likewise.
5490 (ieee128_mtvsrw): Likewise.
5491 (ieee128_mtvsrd): Likewise.
5492 (trunc<mode>df2_odd): Likewise.
5493 (cmp<mode>_h): Likewise.
5494 (128-bit GPR splitters): Don't split a 128-bit move that is a
5495 direct move between GPR and vector registers using ISA 3.0 direct
5497 (maddld4): Add support for the ISA 3.0 integer multiply-add
5500 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
5502 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
5503 constraint. Disable the VSX<->GPR direct move helpers if we have
5504 the MFVSRLD and MTVSRDD instructions.
5505 (rs6000_secondary_reload_simple_move): Add support for doing
5506 vector direct moves directly without additional scratch registers
5507 if we have ISA 3.0 instructions.
5508 (rs6000_secondary_reload_direct_move): Update comments.
5509 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
5512 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
5513 direct move instructions.
5514 (vsx_movti_64bit): Likewise.
5515 (vsx_extract_<mode>): Likewise.
5517 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
5518 macros for ISA 3.0 direct move instructions.
5519 (TARGET_DIRECT_MOVE_128): Likewise.
5520 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
5523 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
5524 constraints. Update wa documentation to say not to use %x<n> on
5525 instructions that only take Altivec registers.
5527 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5529 * Makefile.in (OBJS): Add gcc-rich-location.o.
5530 * diagnostic.c (diagnostic_append_note): Pass line_table to
5532 (emit_diagnostic): Likewise.
5534 (inform_n): Likewise.
5535 (warning): Likewise.
5536 (warning_at): Likewise.
5537 (warning_n): Likewise.
5538 (pedwarn): Likewise.
5539 (permerror): Likewise.
5541 (error_n): Likewise.
5542 (error_at): Likewise.
5544 (fatal_error): Likewise.
5545 (internal_error): Likewise.
5546 (internal_error_no_backtrace): Likewise.
5547 (source_range::debug): Likewise.
5548 * gcc-rich-location.c: New file.
5549 * gcc-rich-location.h: New file.
5550 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
5551 (warning_at): Likewise.
5552 * gimple.h (gimple_set_block): Use set_block function.
5553 * input.c (dump_line_table_statistics): Dump stats on how many
5554 ranges were optimized vs how many needed ad-hoc table.
5555 (write_digit_row): Add "map" param; use its range_bits
5556 to calculate the per-character offset.
5557 (dump_location_info): Print the range and column bits for each
5558 ordinary map. Use the range bits to calculate the per-character
5559 offset. Pass the map as a new param to the various calls to
5560 write_digit_row. Eliminate uses of
5561 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
5562 * print-tree.c (print_node): Print any source range information.
5563 * rtl-error.c (diagnostic_for_asm): Likewise.
5564 * toplev.c (general_init): Initialize line_table's
5566 * tree-cfg.c (move_block_to_fn): Likewise.
5567 (move_block_to_fn): Likewise.
5568 * tree-inline.c (copy_phis_for_bb): Likewise.
5569 * tree.c (tree_set_block): Likewise.
5570 (get_pure_location): New function.
5571 (set_source_range): New functions.
5572 (set_block): New function.
5573 (set_source_range): New functions.
5574 * tree.h (CAN_HAVE_RANGE_P): New.
5575 (EXPR_LOCATION_RANGE): New.
5576 (EXPR_HAS_RANGE): New.
5577 (get_expr_source_range): New inline function.
5578 (DECL_LOCATION_RANGE): New.
5579 (set_source_range): New decls.
5580 (get_decl_source_range): New inline function.
5582 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
5584 PR tree-optimization/67682
5585 * tree-vect-slp.c (vect_split_slp_store_group): New.
5586 (vect_analyze_slp_instance): During basic block SLP, recurse on
5587 subgroups if vect_build_slp_tree fails after 1st vector.
5589 2015-11-13 Christian Bruel <christian.bruel@st.com>
5592 * config/arm/arm.c (arm_option_override): Move NEON check...
5593 (arm_option_check_internal): here
5594 (arm_file_start): Move .fpu print...
5595 (arm_declare_function_name): here
5596 (arm_option_print): Dump current fpu name.
5597 * config/arm/arm.opt (arm_fpu_index): Mark Save.
5599 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
5600 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5602 * combine.c (subst): Don't substitute or simplify when
5603 handling register-wise widening multiply.
5604 (force_to_mode): Likewise.
5606 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
5608 PR tree-optimization/68264
5609 * tree-call-cdce.c (gen_one_condition): Update commentary.
5610 (gen_conditions_for_pow_int_base): Invert the sense of the tests
5611 passed to gen_one_condition.
5612 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
5613 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
5614 using EDGE_FALSE_VALUE for edges to the call block and
5615 EDGE_TRUE_VALUE for the others.
5617 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5619 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
5622 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5624 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
5626 2015-11-13 Tom de Vries <tom@codesourcery.com>
5628 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
5631 2015-11-13 Tom de Vries <tom@codesourcery.com>
5633 * gen-pass-instances.awk (handle_line): Add args_str variable.
5635 2015-11-13 Martin Liska <mliska@suse.cz>
5637 * graphite-poly.c (free_scop): Release scop->drs vector.
5638 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
5640 (try_generate_gimple_bb): Use vNULL as a default initialization
5643 2015-11-13 Martin Liska <mliska@suse.cz>
5646 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
5647 Replace array initialization (using a variable post-increment)
5648 that possible triggers multiple unsequenced modifications
5649 with a pair of pushes to a vector.
5651 2015-11-13 Richard Biener <rguenther@suse.de>
5653 PR tree-optimization/68306
5654 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
5655 loop related checks ...
5656 (vect_verify_datarefs_alignment): ... here.
5657 (vect_slp_analyze_and_verify_node_alignment): Compute and
5658 verify alignment of the single DR that it matters.
5659 * tree-vect-stmts.c (vectorizable_store): Add an assert.
5660 (vectorizable_load): Add a comment.
5661 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
5662 for determining load cost.
5664 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5666 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
5667 mix of boolean and integer vectors in a single statement.
5668 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
5669 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
5670 determine constant type.
5671 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
5672 for loop invariants.
5674 2015-11-13 Alan Hayward <alan.hayward@arm.com>
5676 PR tree-optimization/66558
5677 * tree-vect-loop.c (is_integer_induction):Add.
5678 (vectorizable_reduction): Add integer induction checks.
5680 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5682 Revert [ARM] Remove neon-testgen.ml and generated tests.
5684 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
5686 [ARM] Remove neon-testgen.ml and generated tests.
5688 * config/arm/neon-testgen.ml: Remove.
5690 2015-11-13 Richard Biener <rguenther@suse.de>
5692 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
5693 Signal fatal failure if early checks fail.
5694 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
5695 do not bother testing further vector sizes.
5697 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
5699 * config/i386/predicates.md (misaligned_operand): Return true if
5700 operand is aligned to less than its natural alignmnet.
5702 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5704 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
5705 (vec_cmpu@var{m}@var{n}): New item.
5706 (vcond@var{m}@var{n}): Specify comparison is signed.
5707 (vcondu@var{m}@var{n}): New item.
5708 (vcond_mask_@var{m}@var{n}): New item.
5709 (maskload@var{m}@var{n}): New item.
5710 (maskstore@var{m}@var{n}): New item.
5712 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5714 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5715 types of stored value and storage are compatible.
5717 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
5719 * gcc.c (POST_LINK_SPEC): Define if not already defined.
5720 (LINK_COMMAND_SPEC): Use post_link.
5721 (post_link_spec): New, initialize to POST_LINK_SPEC.
5722 (post_link): Initialize new static spec.
5723 * doc/tm.texi.in (POST_LINK_SPEC): Document.
5724 * doc/tm.texi: Regenerated.
5726 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5729 * Makefile.in (GCC_OBJS): Add spellcheck.o.
5730 (OBJS): Add spellcheck-tree.o.
5731 * gcc.c: Include "spellcheck.h".
5732 (suggest_option): New function.
5733 (driver::handle_unrecognized_options): Call suggest_option to
5734 provide a hint about misspelled options.
5735 * spellcheck.c: Update file comment.
5736 (levenshtein_distance): Convert 4-param implementation from static
5737 to extern scope. Remove note about unit tests from leading
5738 comment for const char * implementation. Move tree
5739 implementation to...
5740 * spellcheck-tree.c: New file.
5741 * spellcheck.h (levenshtein_distance): Add 4-param decl.
5743 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5745 * Makefile.in (OBJS): Add spellcheck.o.
5746 * spellcheck.c: New file.
5747 * spellcheck.h: New file.
5749 2015-11-13 James Bowman <james.bowman@ftdichip.com>
5751 * config/ft32/ft32.md (*sne): New insn pattern.
5753 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
5755 * cprop.c (is_too_expensive): Remove.
5757 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
5759 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
5760 * gcse.c (is_too_expensive): Rename to ...
5761 (gcse_or_cprop_is_too_expensive): ... this.
5762 Expand warning to add required size of max-gcse-memory.
5763 (one_pre_gcse_pass): Use it.
5764 (one_code_hoisting_pass): Use it.
5765 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
5767 2015-11-12 James Norris <jnorris@codesourcery.com>
5768 Joseph Myers <joseph@codesourcery.com>
5770 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
5771 GF_OMP_TARGET_KIND_OACC_DECLARE.
5772 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
5773 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5774 * gimplify.c (oacc_declare_returns): New.
5775 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
5776 (device_resident_p): New function.
5777 (oacc_default_clause): Handle device_resident clause.
5778 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
5779 (gimplify_expr): Handle OACC_DECLARE.
5780 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
5781 * omp-low.c (expand_omp_target): Handle
5782 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
5783 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
5784 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
5785 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
5786 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5787 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
5788 GOMP_MAP_DEVICE_RESIDENT.
5790 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
5792 [ARM] Remove neon-testgen.ml and generated tests.
5794 * config/arm/neon-testgen.ml: Remove.
5796 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
5798 * config/aarch64/aarch64-cores.def (qdf24xx): New.
5799 * config/aarch64/aarch64-tune.md: Regenerated.
5800 * config/arm/arm-cores.def (qdf24xx): New.
5801 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
5802 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
5803 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
5804 (ARM Options/-mtune): Likewise.
5806 2015-11-12 Martin Liska <mliska@suse.cz>
5808 * config/i386/i386.c (ix86_valid_target_attribute_p):
5809 Finalize options at the of the function.
5810 * gcc.c (driver_get_configure_time_options): Call newly
5811 introduced init_opts_obstack.
5812 * lto-wrapper.c (main): Likewise.
5813 * opts.c (init_opts_obstack): New function.
5814 (init_options_struct): Call newly introduced init_opts_obstack.
5815 * opts.h (init_options_struct): Declare.
5817 2015-11-12 Martin Liska <mliska@suse.cz>
5820 * ipa-icf.c (void sem_item::set_hash): New function.
5821 (sem_function::get_hash): Use renamed m_hash member variable.
5822 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
5823 (sem_item::update_hash_by_local_refs): Likewise.
5824 (sem_variable::get_hash): Use renamed m_hash member variable.
5825 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
5826 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
5827 (sem_item_optimizer::build_graph): As the hash value of an item
5828 is lazy initialized, force the calculation.
5829 * ipa-icf.h (set_hash): Declare new function and rename hash member
5832 2015-11-12 Richard Biener <rguenther@suse.de>
5834 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
5835 Rename to vect_slp_analyze_instance_dependence.
5836 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5837 Remove WAR special-case.
5838 (vect_slp_analyze_node_dependences): Instead add more specific
5839 code here, not relying on other instances being vectorized.
5840 (vect_slp_analyze_instance_dependence): Adjust accordingly.
5841 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
5842 vertical space in dump files.
5843 (vect_print_slp_tree): Likewise.
5844 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
5845 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
5846 not vectorized stmts until after dependence analysis removed
5847 instances. Merge alignment and dependence checks.
5848 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
5851 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
5853 * config/aarch64/aarch64-protos.h (tune_params): Add new members
5854 "max_case_values" and "cache_line_size".
5855 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
5857 (aarch64_override_options_internal): Tune heuristics based on new
5858 members in "tune_params".
5859 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
5861 2015-11-12 Richard Biener <rguenther@suse.de>
5863 PR tree-optimization/68306
5864 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
5865 relevant and vectorizable checks here.
5866 (vect_verify_datarefs_alignment): Add relevant check here.
5868 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5870 * gimplify.c (oacc_default_clause): New.
5871 (omp_notice_variable): Call it.
5873 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5875 PR tree-optimization/68305
5876 * tree-vect-slp.c (vect_get_constant_vectors): Support
5877 COND_EXPR with SSA_NAME as a condition.
5879 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
5881 * config/visium/visium-protos.h (notice_update_cc): Delete.
5882 (print_operand): Likewise.
5883 (print_operand_address): Likewise.
5885 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5887 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
5888 FUNCTION_VALUE_REGNO_P): Remove.
5889 * config/alpha/alpha-protos.h (function_value): Remove.
5890 * config/alpha/alpha.c (function_value): Rename to...
5891 (alpha_function_value_1): ... this. Make static.
5892 (alpha_function_value, alpha_libcall_value,
5893 alpha_function_value_regno_p): New functions.
5894 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5895 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5897 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5899 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5900 * config/alpha/alpha.c (alpha_memory_latency): Make static.
5901 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
5902 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5904 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
5907 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
5908 assertion on the CFA register.
5910 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5912 * expr.c (do_store_flag): Expand vector comparison as
5913 VEC_COND_EXPR if vector comparison is not supported by target.
5915 2015-11-12 Renlin Li <renlin.li@arm.com>
5917 * config/arm/arm.md (addsi3_compare_op2): Make the order of
5918 assembly pattern consistent with constraint order.
5920 2015-11-12 Tom de Vries <tom@codesourcery.com>
5922 * gen-pass-instances.awk (handle_line): Simplify match regexp.
5924 2015-11-12 Tom de Vries <tom@codesourcery.com>
5926 * gen-pass-instances.awk (handle_line): Simplify init of
5929 2015-11-12 Tom de Vries <tom@codesourcery.com>
5931 * gen-pass-instances.awk (handle_line): Rename var where to
5934 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
5936 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
5937 do not expand to rtl.
5939 2015-11-12 Richard Biener <rguenther@suse.de>
5941 PR tree-optimization/58497
5942 * tree-vect-generic.c: Include gimplify.h.
5943 (tree_vec_extract): Lookup constant/constructor DEFs.
5944 (do_cond): Unshare cond.
5946 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5948 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
5949 combined insn if the alignment of vector mode memory operand
5950 is less than ssememalign.
5952 2015-11-12 Tom de Vries <tom@codesourcery.com>
5954 * gen-pass-instances.awk (handle_line): Print parentheses and
5955 pass_name explicitly.
5957 2015-11-12 Tom de Vries <tom@codesourcery.com>
5959 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
5962 2015-11-12 Tom de Vries <tom@codesourcery.com>
5964 * gen-pass-instances.awk (handle_line): Add comments.
5966 2015-11-12 Tom de Vries <tom@codesourcery.com>
5968 * gen-pass-instances.awk (handle_line): Rename len_of_end to
5971 2015-11-12 Tom de Vries <tom@codesourcery.com>
5973 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
5975 2015-11-12 Tom de Vries <tom@codesourcery.com>
5977 * gen-pass-instances.awk (handle_line): Restructure using early-out.
5979 2015-11-12 Tom de Vries <tom@codesourcery.com>
5981 * gen-pass-instances.awk (handle_line): Unify semicolon use.
5983 2015-11-12 Tom de Vries <tom@codesourcery.com>
5985 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
5987 2015-11-12 Tom de Vries <tom@codesourcery.com>
5989 * gen-pass-instances.awk: Add emacs indent setting.
5991 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5993 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
5995 Move Convert A/(B/C) to (A/B)*C to match.pd.
5996 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
5997 Move Optimize (X & (-A)) / A where A is a power of 2, to
5998 X >> log2(A) to match.pd.
6000 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
6001 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
6002 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
6004 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
6006 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
6008 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
6010 (neon_vst2_lane<mode>): Likewise.
6011 (neon_vld3_lane<mode>): Likewise.
6012 (neon_vst3_lane<mode>): Likewise.
6013 (neon_vld4_lane<mode>): Likewise.
6014 (neon_vst4_lane<mode>): Likewise.
6016 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
6017 Sebastian Pop <s.pop@samsung.com>
6019 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6020 New member codegen_error
6021 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
6023 (translate_isl_ast_node_user): Early return in case of error.
6024 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
6025 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
6026 (add_parameters_to_ivs_params): Remove macro.
6027 (graphite_regenerate_ast_isl): Add if_region pointer to region.
6028 * graphite-poly.c (new_poly_dr): Remove macro.
6030 (new_gimple_poly_bb): Same.
6031 (free_gimple_poly_bb): Same.
6032 (print_scop_params): Same.
6033 * graphite-poly.h (struct poly_dr): Same.
6034 (struct poly_bb): Add new_bb.
6035 (gbb_from_bb): Remove dead code.
6036 (pbb_from_bb): Same.
6037 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
6038 (parameter_index_in_region): Same.
6039 (find_scop_parameters): Same.
6040 (build_cross_bb_scalars_def): New.
6041 (build_cross_bb_scalars_use): New.
6042 (graphite_find_cross_bb_scalar_vars): New
6043 (try_generate_gimple_bb): Reads and Writes.
6044 (build_alias_set): Move.
6045 (gather_bbs::before_dom_children): Gather bbs visited.
6046 (build_scops): call build_alias_set.
6047 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
6048 (remove_simple_copy_phi): Delete.
6049 (remove_invariant_phi): Delete.
6050 (simple_copy_phi_p): Delete.
6051 (reduction_phi_p): Delete.
6052 (isl_id_for_dr): Remove unused param.
6053 (parameter_index_in_region_1): Remove macro usage.
6054 (set_scop_parameter_dim): Same.
6055 (add_param_constraints): Same.
6056 (add_conditions_to_constraints): Same
6057 (build_scop_iteration_domain): Same.
6058 (pdr_add_alias_set): Comment.
6059 (add_scalar_version_numbers): New.
6060 (build_poly_dr): ISL id.
6061 (build_scop_drs): Move.
6062 (build_poly_sr_1): Same.
6063 (insert_stmts): Remove.
6064 (build_poly_sr): New.
6065 (new_pbb_from_pbb): Delete.
6066 (insert_out_of_ssa_copy_on_edge): Delete.
6067 (create_zero_dim_array): Delete.
6068 (scalar_close_phi_node_p): Delete.
6069 (propagate_expr_outside_region): Delete.
6070 (rewrite_close_phi_out_of_ssa): Delete.
6071 (rewrite_phi_out_of_ssa): Delete.
6072 (rewrite_degenerate_phi): Delete.
6073 (rewrite_reductions_out_of_ssa): Delete.
6074 (rewrite_cross_bb_scalar_dependence): Delete.
6075 (handle_scalar_deps_crossing_scop_limits):
6076 (rewrite_cross_bb_scalar_deps): Delete.
6077 (build_poly_scop): Remove calls to out-of-ssa functions.
6078 * graphite.c (graphite_transform_loops): Early return in case of
6080 * sese.c (debug_rename_map_1): Delete.
6081 (debug_rename_map): Delete.
6082 (sese_record_loop): Remove macro.
6083 (build_sese_loop_nests): Same.
6084 (new_sese_info): Same.
6085 (free_sese_info): Same.
6086 (sese_insert_phis_for_liveouts):
6087 (is_loop_closed_ssa_use): New.
6088 (number_of_phi_nodes): New.
6089 (bb_contains_loop_close_phi_nodes): New.
6090 (bb_contains_loop_phi_nodes): New.
6091 (phi_uses_name): New.
6093 (get_rename): Add old_bb and loop_phi for more precise matching of
6095 (set_rename): Pass region.
6096 (later_of_the_two): New.
6097 (gsi_insert_earliest): New.
6098 (collect_all_ssa_names): New.
6099 (substitute_ssa_name): New.
6100 (rename_all_uses): New.
6101 (get_rename_from_scev): New.
6102 (rename_uses): Pass old_bb for more precise matching of exprs.
6103 (get_def_bb_for_const): New.
6104 (get_new_name): New.
6107 (copy_loop_phi_args): New.
6108 (copy_loop_phi_nodes): New.
6109 (get_loop_init_value): New.
6110 (find_init_value): New.
6111 (find_init_value_close_phi): New.
6112 (copy_loop_close_phi_args): New.
6113 (copy_loop_close_phi_nodes): New.
6114 (add_phi_arg_for_new_expr): New.
6115 (copy_cond_phi_args): New.
6116 (copy_cond_phi_nodes): New.
6117 (copy_phi_nodes): New.
6118 (should_copy_to_new_region): New.
6119 (set_rename_for_each_def): New.
6120 (graphite_copy_stmts_from_block): Early return in case of error.
6121 (copy_bb_and_scalar_dependences): Same.
6122 * sese.h (vec_find): New.
6123 (SESE_PARAMS): Delete.
6124 (SESE_LOOPS): Delete.
6125 (SESE_LOOP_NEST): Delete.
6126 (sese_contains_loop): Remove macro usage.
6127 (sese_nb_params): Same.
6128 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
6130 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6132 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
6133 isl_union_map_add_map on every pbb->schedule.
6135 2015-11-11 Tom de Vries <tom@codesourcery.com>
6137 * tree-parloops.c (create_parallel_loop): Return void.
6139 2015-11-11 Tom de Vries <tom@codesourcery.com>
6141 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
6142 block only when needed.
6144 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
6146 * config/alpha/alpha-protos.h (print_operand): Remove.
6147 (print_operand_address): Remove.
6148 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
6149 (PRINT_OPERAND_ADDRESS): Remove.
6150 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
6151 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
6152 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
6153 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
6154 (print_operand_address): Rename to...
6155 (alpha_print_operand_address): ...this and make static.
6156 (print_operand): Rename to...
6157 (alpha_print_operand): ...this and make static.
6158 (alpha_print_operand_punct_valid_p): New static function.
6160 2015-11-11 Richard Biener <rguenther@suse.de>
6162 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
6164 (vect_analyze_data_refs_alignment): Make loop vect specific.
6165 (vect_verify_datarefs_alignment): Likewise.
6166 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
6167 Add missing continue.
6168 (vect_compute_data_ref_alignment): Export.
6169 (vect_compute_data_refs_alignment): Merge into...
6170 (vect_analyze_data_refs_alignment): ... this.
6171 (verify_data_ref_alignment): Split out from ...
6172 (vect_verify_datarefs_alignment): ... here.
6173 (vect_slp_analyze_and_verify_node_alignment): New function.
6174 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
6175 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
6176 misplaced checks on alignment.
6177 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
6178 alignment analysis after SLP discovery and do it per instance.
6179 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
6180 bother to re-try using different vector sizes.
6182 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
6183 Cesar Philippidis <cesar@codesourcery.com>
6185 * gimplify.c (enum omp_region_type): Add ORT_ACC,
6186 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
6187 (gimple_add_tmp_var): Add ORT_ACC checks.
6188 (gimplify_var_or_parm_decl): Likewise.
6189 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
6190 (omp_add_variable): Look in outer contexts for openacc and allow
6191 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
6192 (omp_notice_variable, omp_is_private, omp_check_private): Add
6194 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
6195 Permit private openacc reductions.
6196 (gimplify_oacc_cache): Specify ORT_ACC.
6197 (gimplify_omp_workshare): Adjust OpenACC region types.
6198 (gimplify_omp_target_update): Likewise.
6199 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
6200 (lower-rec_input_clauses): Don't handle openacc firstprivate
6202 (lower_omp_target): Emit initializers for openacc firstprivate vars.
6204 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
6207 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
6208 frame pointer for stack checking if non-call exceptions aren't used.
6209 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
6211 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
6213 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
6216 2015-11-11 Martin Liska <mliska@suse.cz>
6217 Richard Biener <rguenther@suse.de>
6219 PR rtl-optimization/68287
6220 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
6223 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
6225 * config/mips/mips.c (mips_breakable_sequence_p): New function.
6226 (mips_break_sequence): New function.
6227 (mips_reorg_process_insns): Use them. Use compact branches in selected
6230 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
6232 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
6234 2015-11-11 Jiong Wang <jiong.wang@arm.com>
6235 Jim Wilson <wilson@gcc.gnu.org>
6238 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
6239 be true and eliminable registers mentioned.
6241 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
6243 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
6245 * config/arc/arc-opts.h: Add ARCv2 CPUs.
6246 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
6247 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
6248 situation, and store instructions with large offsets.
6249 (arc_secondary_reload_conv): New function.
6250 (arc_init): Add ARCv2 options.
6251 (arc_conditional_register_usage): Select the proper register usage
6252 for ARCv2 processors.
6253 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
6255 (arc_compute_function_type): Likewise.
6256 (arc_print_operand): Handle new ARCv2 punctuation characters.
6257 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
6258 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
6260 (arc_reorg, arc_hazard): Use it.
6261 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
6262 (ASM_SPEC): Add ARCv2 options.
6263 (TARGET_NORM): ARC HS has norm instructions by default.
6264 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
6265 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
6266 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
6267 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
6269 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
6270 (TARGET_LP_WR_INTERLOCK): Likewise.
6272 (commutative_binary_mult_comparison_result_used, movsicc_insn)
6273 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
6274 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
6275 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
6277 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
6278 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
6279 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
6280 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
6281 (extzvsi): New pattern.
6282 * config/arc/arc.opt: New ARCv2 options.
6283 * config/arc/arcEM.md: New file.
6284 * config/arc/arcHS.md: Likewise.
6285 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
6287 (Cm2): A signed 9-bit integer constant constraint.
6288 (C62): An unsigned 6-bit integer constant constraint.
6289 (C16): A signed 16-bit integer constant constraint.
6290 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
6291 (short_const_int_operand): New predicate.
6292 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
6293 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
6294 -mcode-density and -mdiv-rem.
6296 2015-11-11 Julia Koval <julia.koval@intel.com>
6298 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
6300 2015-11-11 Julia Koval <julia.koval@intel.com>
6302 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
6304 2015-11-11 Martin Liska <mliska@suse.cz>
6306 * gimple-ssa-strength-reduction.c (create_phi_basis):
6308 * passes.c (release_dump_file_name): New function.
6309 (pass_init_dump_file): Used from this function.
6310 (pass_fini_dump_file): Likewise.
6311 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
6312 * var-tracking.c (vt_initialize): Use pool_allocator.
6314 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
6315 Jiong Wang <jiong.wang@arm.com>
6317 PR tree-optimization/68234
6318 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
6319 node which estimiated to be VR_VARYING initially.
6321 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
6323 * regname.c (scan_rtx_reg): Check the matching number of consecutive
6324 registers when tying chains.
6325 (build_def_use): Move terminated_this_insn earlier in the function.
6327 2015-11-10 Mike Frysinger <vapier@gentoo.org>
6329 * configure.ac: Use = with test and not ==.
6330 * configure: Regenerated.
6332 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
6334 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
6335 machine asserts. Update defines for 64 bit.
6337 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6340 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
6342 (neon_vst1_lane<mode>): Likewise.
6343 (neon_vld2_lane<mode>): Likewise.
6344 (neon_vst2_lane<mode>): Likewise.
6345 (neon_vld3_lane<mode>): Likewise.
6346 (neon_vst3_lane<mode>): Likewise.
6347 (neon_vld4_lane<mode>): Likewise.
6348 (neon_vst4_lane<mode>): Likewise.
6350 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6353 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
6354 qualifier_struct_load_store_lane_index.
6355 (arm_storestruct_lane_qualifiers) Likewise.
6356 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
6358 (neon_vst1_lane<mode>) Likewise.
6359 (neon_vld2_lane<mode>) Likewise.
6360 (neon_vst2_lane<mode>) Likewise.
6361 (neon_vld3_lane<mode>) Likewise.
6362 (neon_vst3_lane<mode>) Likewise.
6363 (neon_vld4_lane<mode>) Likewise.
6364 (neon_vst4_lane<mode>) Likewise.
6366 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6369 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
6370 qualifier_struct_load_store_lane_index.
6371 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6372 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
6373 argument qualifiers.
6374 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
6375 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
6377 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
6379 * config/nvptx/nvptx.opt (moptimize): New flag.
6380 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
6382 (nvptx_optimize_inner): New.
6383 (nvptx_process_pars): Call it when optimizing.
6384 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
6386 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6388 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6389 Remove redundant code.
6391 2015-11-10 Jeff Law <law@redhat.com>
6393 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
6394 call to output_address.
6395 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
6396 Add unnamed machine_mode argument.
6398 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6400 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
6403 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6405 * config/i386/i386.md (*movabs<mode>_1): Add explicit
6406 size directives for -masm=intel.
6407 (*movabs<mode>_2): Ditto.
6409 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6411 * config/i386/i386.c (ix86_print_operand): Remove dead code that
6412 tried to avoid (%rip) for call operands.
6414 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6416 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
6417 argument. Do not use RIP relative addressing when no_rip is set.
6418 (ix86_print_operand): Update call to ix86_print_operand_address_as.
6419 (ix86_print_operand_address): Ditto.
6420 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
6421 absolute movabs operand 0. Add square braces for -masm=intel.
6422 (*movabs<mode>_2): Ditto for operand 1.
6424 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6426 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
6427 combine_vcvtf2i pattern.
6429 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6431 * config/arm/arm.c (neon_valid_immediate): Remove integer
6432 CONST_DOUBLE handling. It should never occur.
6434 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
6436 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
6437 (ATOMIC_LDOP): Likewise.
6438 (atomic_ldop): Likewise.
6439 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
6440 (ATOMIC_LDOP): Likewise.
6441 (atomic_ldop): Likewise.
6443 2015-11-10 Martin Liska <mliska@suse.cz>
6445 * alloc-pool.h (allocate_raw): New function.
6446 (operator new (size_t, object_allocator<T> &a)): Use the
6447 function instead of object_allocator::allocate).
6449 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6451 * config/i386/sse.md (HALFMASKMODE): New attribute.
6452 (DOUBLEMASKMODE): New attribute.
6453 (vec_pack_trunc_qi): New.
6454 (vec_pack_trunc_<mode>): New.
6455 (vec_unpacks_lo_hi): New.
6456 (vec_unpacks_lo_si): New.
6457 (vec_unpacks_lo_di): New.
6458 (vec_unpacks_hi_hi): New.
6459 (vec_unpacks_hi_<mode>): New.
6461 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6463 * optabs.c (expand_binop_directly): Allow scalar mode for
6464 vec_pack_trunc_optab.
6465 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
6466 boolean vector producers from pattern sequence when computing VF.
6467 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
6468 vect_recog_mask_conversion_pattern.
6469 (search_type_for_mask): Choose the smallest
6470 type if different size types are mixed.
6471 (build_mask_conversion): New.
6472 (vect_recog_mask_conversion_pattern): New.
6473 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
6474 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
6476 (vectorizable_conversion): Support boolean vectors.
6477 (free_stmt_vec_info): Allow patterns for statements with no lhs.
6478 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
6480 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6482 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
6483 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
6484 Cast mask to FP mode if required.
6485 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
6486 (vcond_mask_<mode><avx512fmaskmodelower>): New.
6487 (vcond_mask_<mode><sseintvecmodelower>): New.
6488 (vcond_mask_<mode><sseintvecmodelower>): New.
6489 (vcond_mask_v2div2di): New.
6490 (vcond_mask_<mode><sseintvecmodelower>): New.
6491 (vcond_mask_<mode><sseintvecmodelower>): New.
6493 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6495 * optabs-query.h (get_vcond_mask_icode): New.
6496 * optabs-tree.c (expand_vec_cond_expr_p): Use
6497 get_vcond_mask_icode for VEC_COND_EXPR with mask.
6498 * optabs.c (expand_vec_cond_mask_expr): New.
6499 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
6500 * optabs.def (vcond_mask_optab): New.
6501 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
6502 generate redundant comparison for COND_EXPR.
6503 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
6505 (vectorizable_condition): Likewise.
6506 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
6507 cond_exp with no embedded comparison.
6508 (vect_build_slp_tree_1): Likewise.
6510 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6512 * config/i386/sse.md (maskload<mode>): Rename to ...
6513 (maskload<mode><sseintvecmodelower>): ... this.
6514 (maskstore<mode>): Rename to ...
6515 (maskstore<mode><sseintvecmodelower>): ... this.
6516 (maskload<mode><avx512fmaskmodelower>): New.
6517 (maskstore<mode><avx512fmaskmodelower>): New.
6519 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6521 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
6522 (expand_MASK_STORE): Adjust to maskstore optab changes.
6523 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
6524 Adjust to maskload, maskstore optab changes.
6525 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
6526 * optabs.def (maskload_optab): Transform into convert optab.
6527 (maskstore_optab): Likewise.
6528 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
6529 can_vec_mask_load_store_p signature change.
6530 (predicate_mem_writes): Use boolean mask.
6531 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
6532 can_vec_mask_load_store_p signature change. Allow invariant masks.
6533 (vectorizable_operation): Ignore type precision for boolean vectors.
6535 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6537 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
6538 (const_vector_mask_from_tree): New.
6539 (const_vector_from_tree): Use const_vector_mask_from_tree
6540 for boolean vectors.
6541 * optabs-query.h (get_vec_cmp_icode): New.
6542 * optabs-tree.c (expand_vec_cmp_expr_p): New.
6543 * optabs-tree.h (expand_vec_cmp_expr_p): New.
6544 * optabs.c (vector_compare_rtx): Add OPNO arg.
6545 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
6546 (expand_vec_cmp_expr): New.
6547 * optabs.def (vec_cmp_optab): New.
6548 (vec_cmpu_optab): New.
6549 * optabs.h (expand_vec_cmp_expr): New.
6550 * tree-vect-generic.c (expand_vector_comparison): Add vector
6551 comparison optabs check.
6552 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
6553 operations for VF. Add mask type computation.
6554 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
6555 (vectorizable_comparison): New.
6556 (vect_analyze_stmt): Add vectorizable_comparison.
6557 (vect_transform_stmt): Likewise.
6558 (vect_init_vector): Support boolean vector invariants.
6559 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6560 (vectorizable_condition): Directly provide vectype for invariants
6562 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
6563 (enum vect_var_kind): Add vect_mask_var.
6564 (enum stmt_vec_info_type): Add comparison_vec_info_type.
6565 (vectorizable_comparison): New.
6566 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6567 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
6568 (vect_create_destination_var): Likewise.
6569 * tree-vect-patterns.c (check_bool_pattern): Check fails
6570 if we can vectorize comparison directly.
6571 (search_type_for_mask): New.
6572 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
6573 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
6574 comparison statements.
6575 (vect_get_constant_vectors): Support boolean vector constants.
6576 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
6577 (ix86_expand_int_vec_cmp): New.
6578 (ix86_expand_fp_vec_cmp): New.
6579 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
6580 op_true and op_false.
6581 (ix86_int_cmp_code_to_pcmp_immediate): New.
6582 (ix86_fp_cmp_code_to_pcmp_immediate): New.
6583 (ix86_cmp_code_to_pcmp_immediate): New.
6584 (ix86_expand_mask_vec_cmp): New.
6585 (ix86_expand_fp_vec_cmp): New.
6586 (ix86_expand_int_sse_cmp): New.
6587 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
6588 (ix86_expand_int_vec_cmp): New.
6589 (ix86_get_mask_mode): New.
6590 (TARGET_VECTORIZE_GET_MASK_MODE): New.
6591 * config/i386/sse.md (avx512fmaskmodelower): New.
6592 (vec_cmp<mode><avx512fmaskmodelower>): New.
6593 (vec_cmp<mode><sseintvecmodelower>): New.
6594 (vec_cmpv2div2di): New.
6595 (vec_cmpu<mode><avx512fmaskmodelower>): New.
6596 (vec_cmpu<mode><sseintvecmodelower>): New.
6597 (vec_cmpuv2div2di): New.
6599 2015-11-10 Richard Biener <rguenther@suse.de>
6601 PR tree-optimization/68240
6602 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
6604 (visit_phi): For PHIs with just a single executable edge
6605 take its value directly.
6606 (expressions_equal_p): Handle VN_TOP properly.
6608 2015-11-10 Richard Biener <rguenther@suse.de>
6610 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
6611 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
6614 2015-11-10 Richard Biener <rguenther@suse.de>
6616 PR tree-optimization/56118
6617 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
6618 cost favor vectorized version.
6620 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6622 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
6623 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
6624 (neg_not_op): New code attribute.
6626 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6628 * ifcvt.c (noce_try_inverse_constants): New function.
6629 (noce_process_if_block): Call it.
6630 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
6631 * optabs.def (negcc_optab, notcc_optab): Declare.
6632 * optabs.c (emit_conditional_neg_or_complement): New function.
6633 * doc/tm.texi (Standard Names): Document negcc, notcc names.
6635 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6637 PR rtl-optimization/68236
6638 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
6639 if insn_queue doesn't exist.
6640 (haifa_sched_finish): Reset insn_queue to NULL.
6642 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
6644 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
6645 (build_def_use): Initialize terminated_this_insn.
6646 (find_best_rename_reg): Pick and check register from the tied chain.
6647 (regrename_do_replace): Mark head as renamed.
6648 (struct du_head *terminated_this_insn). New static variable.
6649 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
6650 * regrename.h (struct du_head): Add tied_chain, renamed members.
6652 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6655 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
6658 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6661 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
6662 not promote the mode for aggregate types.
6664 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6666 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
6667 * omp-low.c (build_oacc_routine_dims): New.
6669 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6671 * config/rs6000/constraints.md (wF constraint): New constraints
6672 for power9/toc fusion.
6673 (wG constraint): Likewise.
6675 * config/rs6000/predicates.md (u6bit_cint_operand): New
6676 predicate, recognize 0..63.
6677 (upper16_cint_operand): New predicate for power9 and toc fusion.
6678 (fpr_reg_operand): Likewise.
6679 (toc_fusion_or_p9_reg_operand): Likewise.
6680 (toc_fusion_mem_raw): Likewise.
6681 (toc_fusion_mem_wrapped): Likewise.
6682 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
6684 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
6686 (fusion_addis_mem_combo_load): Add support for power9 fusion of
6687 floating point loads, floating point stores, and gpr stores.
6688 (fusion_addis_mem_combo_store): Likewise.
6689 (fusion_offsettable_mem_operand): Likewise.
6691 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
6692 (emit_fusion_load_store): Likewise.
6693 (fusion_p9_p): Likewise.
6694 (expand_fusion_p9_load): Likewise.
6695 (expand_fusion_p9_store): Likewise.
6696 (emit_fusion_p9_load): Likewise.
6697 (emit_fusion_p9_store): Likewise.
6698 (fusion_wrap_memory_address): Likewise.
6700 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
6701 elements for power9 fusion.
6702 (rs6000_debug_print_mode): Rework debug information to print more
6703 information about fusion.
6704 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
6705 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
6706 offsettable memory address.
6707 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
6708 (emit_fusion_gpr_load): Move most of the code from
6709 emit_fusion_gpr_load into emit_fusion-addis that handles both
6710 power8 and power9 fusion.
6711 (emit_fusion_addis): Likewise.
6712 (emit_fusion_load_store): Likewise.
6713 (fusion_wrap_memory_address): Add support for TOC fusion.
6714 (fusion_split_address): Likewise.
6715 (fusion_p9_p): Add support for power9 fusion.
6716 (expand_fusion_p9_load): Likewise.
6717 (expand_fusion_p9_store): Likewise.
6718 (emit_fusion_p9_load): Likewise.
6719 (emit_fusion_p9_store): Likewise.
6721 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
6722 new instructions in ISA 3.0.
6723 (TARGET_CTZ): Likewise.
6724 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
6725 (TARGET_TOC_FUSION_FP): Likewise.
6727 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
6729 (UNSPEC_FUSION_ADDIS): Likewise.
6730 (QHSI mode iterator): New iterator for power9 fusion.
6731 (GPR_FUSION): Likewise.
6732 (FPR_FUSION): Likewise.
6733 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
6734 (umod<mode>3): Likewise.
6735 (divmod peephole): Likewise.
6736 (udivmod peephole): Likewise.
6737 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
6739 (ctz<mode>2_h): Likewise.
6740 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
6741 (ashdi3_extswsli_dot): Likewise.
6742 (ashdi3_extswsli_dot2): Likewise.
6743 (power9 fusion splitter): New power9/toc fusion support.
6744 (toc_fusionload_<mode>): Likewise.
6745 (toc_fusionload_di): Likewise.
6746 (fusion_gpr_load_<mode>): Update predicate function.
6747 (power9 fusion peephole2s): New power9/toc fusion support.
6748 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
6749 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
6750 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
6751 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
6752 (fusion_p9_<mode>_constant): Likewise.
6754 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
6756 * optabs.c (prepare_libcall_arg): New function.
6757 (expand_fixed_convert): Add call to prepare_libcall_arg.
6759 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
6761 * sched-int.h (dump_rgn_dependencies_dot): Declare
6762 * sched-rgn.c (dump_rgn_dependencies_dot): New function
6763 * print-rtl.h (print_insn): Add prototype
6765 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
6766 * common.opt (-fsched-verbose): Set default value to 1.
6767 * invoke.texi (-fsched-verbose): Update the option's description.
6769 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6771 * config/visium/visium.h (PRINT_OPERAND): Delete.
6772 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6773 (PRINT_OPERAND_ADDRESS): Likewise.
6774 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
6776 (visium_print_operand_punct_valid_p): ...this. New function.
6777 (TARGET_PRINT_OPERAND): Define to...
6778 (print_operand): Rename to...
6779 (visium_print_operand): ...this.
6780 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
6781 (visium_output_address): Rename to...
6782 (visium_print_operand_address): ...this.
6783 (print_operand_address): Delete.
6785 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6788 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
6789 Check that the type of the first operand is an aggregate type.
6791 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6793 * omp-low.c: Fix some OpenACC comment typos.
6794 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
6795 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
6796 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
6798 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
6800 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
6802 2015-11-09 Jeff Law <law@redhat.com>
6804 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
6805 being in gimple/ssa form. Remove redundant check for SSA_NAME.
6808 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6809 Peter Bergner <bergner@vnet.ibm.com>
6811 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
6813 (-mpower9-vector): Likewise.
6814 (-mpower9-dform): Likewise.
6815 (-mpower9-minmax): Likewise.
6816 (-mtoc-fusion): Likewise.
6817 (-mmodulo): Likewise.
6818 (-mfloat128-hardware): Likewise.
6820 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
6821 mask for ISA 3.0 (power9).
6822 (POWERPC_MASKS): Add new ISA 3.0 switches.
6823 (power9 cpu): Add power9 cpu.
6825 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
6826 (ASM_CPU_SPEC): Likewise.
6827 (EXTRA_SPECS): Likewise.
6829 * config/rs6000/rs6000-opts.h (enum processor_type): Add
6832 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
6833 (rs6000_debug_reg_global): Add support for power9 fusion.
6834 (rs6000_setup_reg_addr_masks): Cache mode size.
6835 (rs6000_option_override_internal): Until real power9 tuning is
6836 added, use -mtune=power8 for -mcpu=power9.
6837 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
6838 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
6839 of Altivec registers.
6840 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
6841 (rs6000_loop_align): Add support for power9 cpu.
6842 (rs6000_file_start): Likewise.
6843 (rs6000_adjust_cost): Likewise.
6844 (rs6000_issue_rate): Likewise.
6845 (insn_must_be_first_in_group): Likewise.
6846 (insn_must_be_last_in_group): Likewise.
6847 (force_new_group): Likewise.
6848 (rs6000_register_move_cost): Likewise.
6849 (rs6000_opt_masks): Likewise.
6851 * config/rs6000/rs6000.md (cpu attribute): Add power9.
6852 * config/rs6000/rs6000-tables.opt: Regenerate.
6854 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6855 _ARCH_PWR9 if power9 support is available.
6857 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
6858 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
6860 * configure.ac: Determine if the assembler supports the ISA 3.0
6862 * config.in (HAVE_AS_POWER9): Likewise.
6863 * configure: Regenerate.
6865 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
6868 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6870 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
6871 Remove integer CONST_DOUBLE handling. It should never occur.
6873 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6876 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
6877 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
6878 Delete VOIDmode case. Assert that mode is not VOIDmode.
6879 * config/aarch64/predicates.md (const0_operand): Remove const_double
6882 2015-11-09 Martin Liska <mliska@suse.cz>
6884 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
6885 body_info release function.
6886 * ipa-prop.c (ipa_release_body_info): New function.
6887 (ipa_analyze_node): Call the function.
6888 (ipa_node_params::~ipa_node_params): Release known_csts.
6889 * ipa-prop.h (ipa_release_body_info): Declare.
6891 2015-11-09 Martin Liska <mliska@suse.cz>
6893 * gcc.c (record_temp_file): Release name string.
6894 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
6895 * lra-lives.c (free_live_range_list): Utilize
6896 lra_live_range_pool for allocation and deallocation.
6897 (create_live_range): Likewise.
6898 (copy_live_range): Likewise.
6899 (lra_merge_live_ranges): Likewise.
6900 (remove_some_program_points_and_update_live_ranges): Likewise.
6901 (lra_create_live_ranges_1): Release point_freq_vec that can
6902 be not freed from previous iteration of the function.
6903 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
6904 * tree-sra.c (sra_deinitialize): Release all vectors in
6906 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
6907 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6908 Release edge_info for a removed edge.
6909 (thread_through_all_blocks): Free region vector.
6910 * tree-ssa.h (free_dom_edge_info): Declare function extern.
6912 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
6914 * optabs.c (expand_vec_cond_expr): Always get sign from type.
6915 * tree.c (wide_int_to_tree): Support negative values for boolean.
6916 (build_nonstandard_boolean_type): Use signed type for booleans.
6918 2015-11-09 Richard Biener <rguenther@suse.de>
6920 PR tree-optimization/68248
6921 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
6923 2015-11-09 Richard Biener <rguenther@suse.de>
6925 PR tree-optimization/56118
6926 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
6927 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
6928 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
6930 (vect_slp_analyze_data_ref_dependences): Instead of computing
6931 all dependences of the region DRs just analyze the code motions
6932 SLP vectorization will perform. Remove SLP instances that
6933 cannot have their store/load motions applied.
6934 (vect_analyze_data_refs): Allow DRs without a vectype
6935 in BB vectorization.
6937 2015-11-09 Julian Brown <julian@codesourcery.com>
6939 * final.c (output_asm_insn): Pass VOIDmode to output_address.
6940 (output_address): Add MODE argument. Pass to print_operand_address
6942 * targhooks.c (default_print_operand_address): Add MODE argument.
6943 * targhooks.h (default_print_operand_address): Update prototype.
6944 * output.h (output_address): Update prototype.
6945 * target.def (print_operand_address): Add MODE argument.
6946 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
6948 (print_operand): Pass access mode to output_address.
6949 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
6951 (mcore_print_operand): Update calls to mcore_print_operand_address.
6952 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
6954 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
6956 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
6958 (tilegx_print_operand): Don't set above global. Update calls to
6960 (tilegx_print_operand_address): Add MODE argument. Use instead of
6961 output_memory_reference_mode global.
6962 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
6963 (frv_print_operand): Pass mode to frv_print_operand_address calls.
6964 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
6966 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
6967 (cris_print_operand): Pass mode to output_address calls.
6968 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
6969 * config/aarch64/aarch64.h (aarch64_print_operand)
6970 (aarch64_print_operand_address): Remove prototypes.
6971 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
6973 (aarch64_print_operand): Make static. Update calls to output_address.
6974 (aarch64_print_operand_address): Add MODE argument. Use instead of
6975 aarch64_memory_reference_mode global.
6976 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
6978 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6979 Delete macro definitions.
6980 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
6981 * config/xtensa/xtensa.c (print_operand): Pass mode in
6982 output_address calls.
6983 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
6985 (h83000_print_operand): Update calls to h8300_print_operand_address
6987 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
6988 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
6990 (tilepro_print_operand): Pass mode to output_address.
6991 (tilepro_print_operand_address): Add MODE argument. Use instead of
6992 output_memory_reference_mode.
6993 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
6994 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
6995 to output_address calls.
6996 (nvptx_print_operand_address): Add MODE argument.
6997 * config/alpha/alpha.c (print_operand): Pass mode argument in
6998 output_address calls.
6999 * config/m68k/m68k.c (print_operand): Pass mode argument in
7000 output_address call.
7001 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
7002 (avr_print_operand): Update calls to avr_print_operand_address.
7003 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
7004 argument. Update calls to output_address.
7005 (sparc_print_operand): Pass mode to output_address.
7006 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
7008 (iq2000_print_operand): Pass mode in output_address calls.
7009 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
7011 (xstormy16_print_operand): Pass mode to
7012 xstormy16_print_operand_address calls.
7013 * config/mips/mips.c (mips_print_operand): Update calls to
7015 (mips_print_operand_address): Add MODE argument.
7016 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
7018 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
7019 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
7021 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
7022 (rx_print_operand): Update calls to output_address,
7023 rx_print_operand_address.
7024 * config/nds32/nds32.c (nds32_print_operand): Update calls to
7026 (nds32_print_operand_address): Add MODE argument.
7027 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
7028 output_address calls.
7029 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
7030 output_address call.
7031 (c6x_print_address_operand): Update calls to output_address.
7032 (c6x_print_operand_address): Pass mode to above.
7033 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
7034 (v850_print_operand): Pass mode to v850_print_operand_address,
7036 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
7037 (mmix_print_operand): Pass mode in output_address calls.
7038 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
7039 (sh_print_operand): Pass mem mode to output_address,
7040 sh_print_operand_address.
7041 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
7042 (cr16_print_operand): Pass mode to output_address,
7043 cr16_print_operand_address.
7044 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
7046 * config/microblaze/microblaze.c (print_operand): Pass mode to
7048 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
7050 (nios2_print_operand_address): Add MODE argument. Update call to
7051 nios2_print_operand_address.
7052 * config/s390/s390.c (print_operand): Pass mode to output_address.
7053 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
7054 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
7056 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
7057 Use instead of output_memory_reference_mode.
7058 (output_memory_reference_mode): Delete global.
7059 (arm_print_operand): Pass mem mode to output_address.
7060 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
7061 (m32r_print_operand): Pass mode to output_address.
7062 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
7064 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
7065 * config/i386/i386.c (ix86_print_operand): Pass mode to
7066 output_address calls.
7067 (ix86_print_operand_address): Add MODE argument.
7069 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7072 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
7073 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
7074 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
7075 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7077 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7079 PR rtl-optimization/67749
7080 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
7081 case before emitting the two blocks. Instead modify the register
7082 in the corresponding final insn of the basic block.
7084 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7086 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
7089 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
7091 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
7092 HAVE_INITFINI_ARRAY_SUPPORT.
7093 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
7095 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
7096 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
7097 Don't check HAVE_AS_SPARC_NOBITS.
7098 Heed SECTION_NOTYPE.
7100 * configure: Regenerate.
7101 * config.in: Regenerate.
7103 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7106 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
7108 2015-11-09 Richard Henderson <rth@redhat.com>
7110 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
7111 __SEG_GS, __SEG_TLS.
7112 (ix86_register_pragmas): Register address spaces __seg_fs,
7113 __seg_gs, __seg_tls.
7114 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
7115 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
7116 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
7117 * config/i386/i386.c (ix86_decompose_address): Likewise.
7118 (ix86_legitimate_address_p): Likewise.
7119 (memory_address_length): Likewise. Check mem address space too.
7120 (ix86_print_operand): Use ix86_print_operand_address_as.
7121 (ix86_print_operand_address_as): Rename from
7122 ix86_print_operand_address, add new addr_space_t parameter.
7123 Validate that either the parameter or the ix86_address segment
7124 is default address space. Handle ADDR_SPACE_SEG_TLS.
7125 (ix86_print_operand_address): New.
7126 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
7127 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
7128 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
7129 (ix86_addr_space_zero_address_valid): New.
7130 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7131 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
7132 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
7133 * config/i386/predicates.md (address_no_seg_operand): Likewise.
7134 (vsib_address_operand): Likewise.
7135 (address_mpx_no_base_operand): Likewise.
7136 (address_mpx_no_index_operand): Likewise.
7137 * doc/extend.texi (x86 Named Address Spaces): New section.
7139 * config/i386/i386.c (ix86_check_no_addr_space): New.
7140 (decide_alg): Add have_as parameter.
7141 (alg_usable_p): Likewise; disable rep algorithms if set.
7142 (ix86_expand_set_or_movmem): Notice if either MEM has a
7143 non-default address space.
7144 (ix86_expand_strlen): Likewise.
7145 * config/i386/i386.md (strmov, strset): Likewise.
7146 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
7147 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
7148 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
7149 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
7150 *cmpstrnqi_1, *strlenqi_1): Likewise.
7152 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
7153 (*movabs<mode>_2): Likewise.
7155 * dwarf2out.c (modified_type_die): Pass the address space number
7156 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
7157 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
7158 * targhooks.c (default_addr_space_debug): New.
7159 * targhooks.h (default_addr_space_debug): Declare.
7160 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
7161 * doc/tm.texi: Rebuild.
7163 * gimple.c (check_loadstore): Return false when 0 is a valid address.
7164 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
7165 null when 0 is valid in the source address space.
7166 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7167 * targhooks.c (default_addr_space_zero_address_valid): New.
7168 * targhooks.h (default_addr_space_zero_address_valid): Declare.
7169 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
7170 * doc/tm.texi: Rebuild.
7172 * cselib.c (add_mem_for_addr): Compare address spaces when
7174 (cselib_lookup_mem): Likewise.
7175 * fold-const.c (operand_equal_p): Check address spaces of
7176 pointer types before checking integer constants.
7179 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
7180 the correct type for the base.
7182 2015-11-09 Jeff Law <law@redhat.com>
7184 * tree-into-ssa.c (names_to_release): No longer static.
7185 * tree-into-ssa.h (names_to_release): Declare.
7186 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
7187 (release_free_names_and_compact_live_names): New function extracted
7188 from pass_release_ssa_names::execute.
7189 (pass_release_ssa_names::execute): Use it.
7191 2015-11-09 Alan Modra <amodra@gmail.com>
7193 * gensupport.c (add_mnemonic_string): Make len param a size_t.
7194 (gen_mnemonic_setattr): Make "size" var a size_t. Use
7195 obstack_blank_fast to shrink obstack. Cast obstack_next_free
7198 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
7200 PR rtl-optimization/68182
7201 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
7202 branch with only one successor just like unconditional branches.
7204 2015-11-08 Jeff Law <law@redhat.com>
7206 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
7207 non-FSM path has no edges marked with EDGE_DFS_BACK.
7208 (ssa_redirect_edges): No longer call mark_loop_for_removal.
7209 (thread_single_edge, def_split_header_continue_p): Remove.
7210 (bb_ends_with_multiway_branch): Likewise.
7211 (thread_through_loop_header): Remove cases of threading from
7212 latch through the header. Simplify knowing we won't thread
7214 (thread_through_all_blocks): Simplify knowing that only the FSM
7215 threader needs to handle backedges.
7217 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
7219 * doc/extend.texi (type attributes): Document scalar_storage_order.
7220 (Structure-Packing Pragmas): Rename into...
7221 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
7222 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
7223 (Warnings): Document -Wno-scalar-storage-order.
7224 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
7225 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
7226 extract_bit_field and store_bit_field.
7227 (initialize_argument_information): Adjust call to store_expr.
7228 (load_register_parameters): Adjust call to extract_bit_field.
7229 * expmed.c (check_reverse_storage_order_support): New function.
7230 (check_reverse_float_storage_order_support): Likewise.
7231 (flip_storage_order): Likewise.
7232 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
7233 of the value if it is true. Pass REVERSE to recursive call after
7234 adjusting the target offset.
7235 Do not use extraction or movstrict instruction if REVERSE is true.
7236 Pass REVERSE to store_fixed_bit_field.
7237 (store_bit_field): Add REVERSE parameter and pass to it to above.
7238 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
7239 store_split_bit_field and store_fixed_bit_field_1.
7240 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7241 order of the value if it is true and adjust the target offset.
7242 (store_split_bit_field): Add REVERSE parameter and pass it to
7243 store_fixed_bit_field. Adjust the target offset if it is true.
7244 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
7245 of the value if it is true. Pass REVERSE to recursive call after
7246 adjusting the target offset.
7247 Do not use extraction or subreg instruction if REVERSE is true.
7248 Pass REVERSE to extract_fixed_bit_field.
7249 (extract_bit_field): Add REVERSE parameter and pass to it to above.
7250 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
7251 extract_split_bit_field and extract_fixed_bit_field_1.
7252 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7253 order of the value if it is true and adjust the target offset.
7254 (extract_split_bit_field): Add REVERSE parameter and pass it to
7255 extract_fixed_bit_field. Adjust the target offset if it is true.
7256 * expmed.h (flip_storage_order): Declare.
7257 (store_bit_field): Adjust prototype.
7258 (extract_bit_field): Likewise.
7259 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
7260 (emit_group_store): Adjust call to store_bit_field.
7261 (copy_blkmode_from_reg): Likewise.
7262 (copy_blkmode_to_reg): Likewise.
7263 (write_complex_part): Likewise.
7264 (read_complex_part): Likewise.
7265 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
7266 that it isn't true if the target is a register.
7267 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
7268 and flip the storage order of the value.
7269 <BIT_IOR_EXPR>: Flip the storage order of the value.
7270 (get_bit_range): Adjust call to get_inner_reference.
7271 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
7272 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
7273 with reverse storage order.
7274 (store_expr_with_bounds): Add REVERSE parameter and pass it to
7275 recursive calls and call to store_bit_field. Force the value into a
7276 register if it is true and then flip the storage order of the value.
7277 (store_expr): Add REVERSE parameter and pass it to above.
7278 (categorize_ctor_elements_1): Adjust call to
7279 initializer_constant_valid_p.
7280 (store_constructor_field): Add REVERSE parameter and pass it to
7281 recursive calls and call to store_field.
7282 (store_constructor): Add REVERSE parameter and pass it to calls to
7283 store_constructor_field and store_expr. Set it to true for an
7284 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
7285 (store_field): Add REVERSE parameter and pass it to recursive calls
7286 and calls to store_expr and store_bit_field. Temporarily flip the
7287 storage order of the value with record type and integral mode and
7288 adjust the shift if it is true.
7289 (get_inner_reference): Add PREVERSEP parameter and set it to true
7290 upon encoutering a reference with reverse storage order.
7291 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
7292 (expand_constructor): Adjust call to store_constructor.
7293 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
7294 of the union type to store_expr in the MEM case and assert that it
7295 isn't set in the REG case. Adjust call to store_field.
7296 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
7297 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
7298 get_inner_reference and extract_bit_field. Temporarily flip the
7299 storage order of the value with record type and integral mode and
7300 adjust the shift if it is true. Flip the storage order of the value
7301 at the end if it is true.
7302 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
7303 get_inner_reference. Do not fetch an inner reference if it is true.
7304 * expr.h (store_expr_with_bounds): Ajust prototype.
7305 (store_expr): Likewise.
7306 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
7307 REF_REVERSE_STORAGE_ORDER on the reference according to it.
7308 (optimize_bit_field_compare): Deal with reverse storage order.
7309 Adjust calls to get_inner_reference and make_bit_field_ref.
7310 (decode_field_reference): Add PREVERSEP parameter and adjust call to
7311 get_inner_reference.
7312 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
7313 to decode_field_reference and make_bit_field_ref.
7314 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
7315 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
7316 (fold_comparison): Adjust call to get_inner_reference.
7317 (split_address_to_core_and_offset): Adjust call to
7318 get_inner_reference.
7319 * gimple-expr.c (useless_type_conversion_p): Return false for array
7320 types with different TYPE_REVERSE_STORAGE_ORDER flag.
7321 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
7322 REF_REVERSE_STORAGE_ORDER flag.
7323 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
7324 * output.h (assemble_real): Adjust prototype.
7325 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
7326 * stor-layout.c (finish_record_layout): Propagate the
7327 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
7328 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
7329 (TYPE_SATURATING): Adjust.
7330 (REF_REVERSE_STORAGE_ORDER): Document.
7331 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
7332 set it to true upon encoutering a reference with reverse storage order.
7333 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
7334 * tree-inline.c (remap_gimple_op_r): Propagate the
7335 REF_REVERSE_STORAGE_ORDER flag.
7336 (copy_tree_body_r): Likewise.
7337 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
7339 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
7340 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
7341 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7342 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
7343 REF_REVERSE_STORAGE_ORDER flag.
7344 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
7345 (gimple_canonical_types_compatible_p): Likewise.
7346 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
7347 (TYPE_SATURATING): Adjust.
7348 (REF_REVERSE_STORAGE_ORDER): New flag.
7349 (reverse_storage_order_for_component_p): New inline predicate.
7350 (storage_order_barrier_p): Likewise.
7351 (get_inner_reference): Adjust prototype.
7352 * varasm.c: Include expmed.h.
7353 (assemble_variable_contents): Adjust call to output_constant.
7354 (assemble_real): Add REVERSE parameter. Flip the storage
7355 order of the value if REVERSE is true.
7356 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
7357 (assemble_constant_contents): Adjust call to output_constant.
7358 (output_constant_pool_2): Adjust call to assemble_real.
7359 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
7360 TYPE_REVERSE_STORAGE_ORDER.
7361 (initializer_constant_valid_p): Add REVERSE parameter.
7362 (output_constant): Add REVERSE parameter.
7363 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
7364 <REAL_TYPE>: Adjust call to assemble_real.
7365 <COMPLEX_TYPE>: Pass it to recursive calls.
7366 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
7367 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
7368 (struct oc_local_state): Add REVERSE field.
7369 (output_constructor_array_range): Adjust calls to output_constant.
7370 (output_constructor_regular_field): Likewise.
7371 (output_constructor_bitfield): Adjust call to output_constructor.
7372 Flip the storage order of the value if REVERSE is true.
7373 (output_constructor): Add REVERSE parameter. Set it to true for an
7374 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
7375 output_constructor_bitfield.
7376 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
7377 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
7378 * builtins.c (get_object_alignment_2): Likewise.
7379 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
7380 and get_ref_base_and_extent.
7381 * dbxout.c (dbxout_expand_expr): Likewise.
7382 * dwarf2out.c (add_var_loc_to_decl): Likewise.
7383 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
7384 (loc_list_from_tree): Likewise.
7385 (fortran_common): Likewise.
7386 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
7387 get_ref_base_and_extent.
7388 (get_base_constructor): Likewise.
7389 (fold_const_aggregate_ref_1): Likewise.
7390 * gimple-laddress.c (pass_laddress::execute): Adjust call to
7391 get_inner_reference.
7392 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
7393 get_inner_reference and bail out on reverse storage order.
7394 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
7395 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
7396 build_ref_for_offset.
7397 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
7398 get_ref_base_and_extent.
7399 (ipa_polymorphic_call_context): Likewise.
7400 (extr_type_from_vtbl_ptr_store): Likewise.
7401 (check_stmt_for_type_change): Likewise.
7402 (get_dynamic_type): Likewise.
7403 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
7404 get_ref_base_and_extent.
7405 (compute_complex_assign_jump_func): Likewise.
7406 (get_ancestor_addr_info): Likewise.
7407 (compute_known_type_jump_func): Likewise.
7408 (determine_known_aggregate_parts): Likewise.
7409 (ipa_get_adjustment_candidate): Likewise.
7410 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
7411 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
7412 (build_ref_for_offset): Adjust prototype.
7413 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
7414 get_inner_reference.
7415 * tree-affine.c (tree_to_aff_combination): Adjust call to
7416 get_inner_reference.
7417 (get_inner_reference_aff): Likewise.
7418 * tree-data-ref.c (split_constant_offset_1): Likewise.
7419 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
7420 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
7421 get_inner_reference.
7422 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
7423 (dump_access): Print new fields.
7424 (create_access): Adjust call to get_ref_base_and_extent and set the
7425 REVERSE flag according to the result.
7426 (completely_scalarize_record): Set the REVERSE flag.
7427 (scalarize_elem): Add REVERSE parameter.
7428 (build_access_from_expr_1): Preserve storage order barriers.
7429 (build_accesses_from_assign): Likewise.
7430 (build_ref_for_offset): Add REVERSE parameter and set the
7431 REF_REVERSE_STORAGE_ORDER flag accordingly.
7432 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
7433 the REF_REVERSE_STORAGE_ORDER flag if there are components.
7434 (analyze_access_subtree): Likewise.
7435 (create_artificial_child_access): Set the REVERSE flag.
7436 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
7437 (turn_representatives_into_adjustments): Propagate REVERSE flag.
7438 (ipa_sra_check_caller): Adjust call to get_inner_reference.
7439 * tree-ssa-alias.c (ao_ref_base): Adjust call to
7440 get_ref_base_and_extent.
7441 (aliasing_component_refs_p): Likewise.
7442 (stmt_kills_ref_p_1): Likewise.
7443 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7444 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
7445 Return true if reverse storage order.
7446 <BIT_FIELD_REF>: Likewise.
7447 <COMPONENT_REF>: Likewise.
7448 <ARRAY_REF>: Likewise.
7449 <ARRAY_RANGE_REF>: Likewise.
7450 (split_address_cost): Likewise. Bail out if reverse storage order.
7451 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
7452 get_inner_reference. Bail out if reverse storage order.
7453 (bswap_replace): Adjust call to get_inner_reference.
7454 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
7455 the REF_REVERSE_STORAGE_ORDER flag.
7456 <BIT_FIELD_REF>: Likewise.
7457 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
7459 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
7460 to the REF_REVERSE_STORAGE_ORDER flag.
7461 <BIT_FIELD_REF>: Likewise.
7462 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
7463 (contains_storage_order_barrier_p): New predicate.
7464 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
7465 Punt on storage order barriers if necessary.
7466 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
7467 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
7468 call to get_ref_base_and_extent.
7469 (do_structure_copy): Likewise.
7470 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
7471 get_inner_reference.
7472 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
7473 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
7474 * ubsan.c (instrument_bool_enum_load): Likewise.
7475 (instrument_object_size): Likewise.
7476 * var-tracking.c (track_expr_p): Adjust call to
7477 get_ref_base_and_extent.
7478 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
7479 get_inner_reference.
7480 * config/s390/s390.c (s390_expand_atomic): Adjust call to
7482 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
7484 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
7486 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
7488 * config/sparc/sparc.opt (mfix-at697f): Add final period.
7490 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
7492 PR rtl-optimization/67864
7493 * common/config/i386/i386-common.c (ix86_option_optimization_table)
7494 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
7497 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7499 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
7502 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7504 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
7505 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
7507 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7509 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
7510 * internal-fn.c: Don't undef it here.
7511 * tree-core.h: Likewise.
7513 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7515 * builtins.c (fold_builtin_nan): Delete.
7516 (fold_builtin_memcmp): Remove case where both arguments are constant.
7517 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
7518 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
7519 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
7520 * fold-const-call.c: Include fold-const.h.
7521 (host_size_t_cst_p): New function.
7522 (build_cmp_result, fold_const_builtin_nan): Likewise.
7523 (fold_const_call_1): New function, split out from...
7524 (fold_const_call): ...here (for all three interfaces). Handle
7525 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
7527 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7529 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
7530 (fold_builtin_1): Don't call them.
7531 * fold-const-call.c: Include tm.h.
7532 (fold_const_call_ss): New variant for integer-to-integer folds.
7533 (fold_const_call): Call it.
7535 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7537 * builtins.c (fold_builtin_classify): Move constant cases to...
7538 * fold-const-call.c (fold_const_call_ss): ...here.
7540 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7542 * builtins.h (c_getstr): Move to...
7543 * fold-const.h (c_getstr): ...here.
7544 * builtins.c (c_getstr): Move to...
7545 * fold-const.c (c_getstr): ...here.
7547 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7549 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
7550 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
7552 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7554 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
7555 the dominance info; free it if we can't.
7556 (pass_call_cdce::execute): Don't free the dominance info here.
7558 2015-11-06 Jeff Law <law@redhat.com>
7560 * tree-ssa-threadedge.c (dummy_simplify): Remove.
7561 (thread_around_empty_blocks): Remove backedge_seen_p argument.
7562 If we thread to a backedge, then return false. Update recursive
7563 call to eliminate backedge_seen_p argument.
7564 (thread_through_normal_block): Remove backedge_seen_p argument.
7565 Remove backedge_seen_p argument from calls to
7566 thread_around_empty_blocks. Remove checks on backedge_seen_p.
7567 If we thread to a backedge, then return 0.
7568 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
7569 pass it to thread_through_normal_block or thread_through_empty_blocks.
7570 For joiner handling, if we see a backedge, do not try normal
7573 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7575 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
7576 * graphite-poly.c (new_scop): Initialize original_schedule.
7577 (free_scop): Free original_schedule.
7578 * graphite-poly.h (struct scop): Add field original_schedule.
7579 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
7580 (build_poly_scop): Call build_scop_original_schedule.
7582 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7584 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7585 (build_pbb_minimal_scattering_polyhedrons): New.
7586 (build_scop_scattering): Remove.
7587 (build_scop_minimal_scattering): New.
7588 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
7589 (build_poly_scop): Call build_scop_minimal_scattering.
7591 2015-11-06 Jeff Law <law@redhat.com>
7593 * cfg-flags.def (IGNORE): New edge flag.
7594 * tree-vrp.c (identify_jump_threads): Mark and clear edges
7595 scheduled for removal with EDGE_IGNORE around call into
7596 jump threader. Do no thread across edges with EDGE_IGNORE,
7597 but do allow threading across those with EDGE_DFS_BACK.
7599 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
7601 * doc/md.texi (multi-alternative constraints): Don't document
7602 alternatives inherently tied to reload for the user documentation.
7604 2015-11-06 Michael Collison <michael.collison@linaro.org>
7605 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7608 2015-08-01 Michael Collison <michael.collison@linaro.org
7609 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7611 * config/arm/arm.md (*arm_smin_cmp): New pattern.
7612 (*arm_umin_cmp): Likewise.
7614 2015-11-06 Jakub Jelinek <jakub@redhat.com>
7616 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
7617 * omp-low.c (check_omp_nesting_restrictions): Update for the
7618 various new OpenMP 4.5 nesting restrictions, clarified
7619 nesting glossary, closely nested region relationship clarified
7620 to mean explicit or implicit parallel regions (target/teams),
7621 use %</%> or %qs where appropriate.
7623 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7624 Sebastian Pop <s.pop@samsung.com>
7626 * graphite-scop-detection.c (loop_is_valid_scop): Call
7627 optimize_loop_nest_for_speed_p.
7629 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7630 Sebastian Pop <s.pop@samsung.com>
7632 * graphite-optimize-isl.c (optimize_isl): Call
7633 isl_options_set_schedule_maximize_band_depth.
7635 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7636 Sebastian Pop <s.pop@samsung.com>
7638 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
7639 and exit edges should not be a part of irreducible loop.
7640 (scop_detection::can_represent_loop_1): Loops should not be
7642 (scop_detection::harmful_stmt_in_region): All the basic block
7643 should belong to reducible loops.
7645 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
7647 * config/aarch64/aarch64-simd-builtins.def: Update builtins
7648 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
7649 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
7650 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
7651 (aarch64_tbx4v8qi): Rename to...
7652 aarch64_tbx4<mode>): ... this.
7653 (aarch64_qtbl3<mode>): New pattern.
7654 (aarch64_qtbx3<mode>): New pattern.
7655 (aarch64_qtbl4<mode>): New pattern.
7656 (aarch64_qtbx4<mode>): New pattern.
7657 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
7658 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
7659 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
7660 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
7661 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
7662 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
7663 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
7664 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
7667 2015-11-06 Mike Stump <mikestump@comcast.net>
7670 * dwarf2out.c (get_full_len): Return a value based upon the actual
7671 precision needed for the value.
7672 (add_const_value_attribute): Use a maximal wide-int for
7673 CONST_WIDE_INTs, not VOIDmode.
7674 (output_die): Don't ever output NULL with printf.
7676 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
7677 BLKmode nor VOIDmode values.
7679 2015-11-06 David Malcolm <dmalcolm@redhat.com>
7681 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
7683 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
7684 * diagnostic-core.h (warning_at_rich_loc): New declaration.
7685 (error_at_rich_loc): New declaration.
7686 (permerror_at_rich_loc): New declaration.
7687 (inform_at_rich_loc): New declaration.
7688 * diagnostic-show-locus.c (adjust_line): Delete.
7689 (struct point_state): New struct.
7690 (class colorizer): New class.
7691 (class layout_point): New class.
7692 (class layout_range): New class.
7693 (struct line_bounds): New.
7694 (class layout): New class.
7695 (colorizer::colorizer): New ctor.
7696 (colorizer::~colorizer): New dtor.
7697 (layout::layout): New ctor.
7698 (layout::print_source_line): New method.
7699 (layout::print_annotation_line): New method.
7700 (layout::get_state_at_point): New method.
7701 (layout::get_x_bound_for_row): New method.
7702 (diagnostic_show_locus): Reimplement in terms of class layout.
7703 (diagnostic_print_caret_line): Delete.
7704 * diagnostic.c (diagnostic_initialize): Replace
7705 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
7706 (diagnostic_set_info_translated): Convert param from location_t
7707 to rich_location *. Eliminate calls to set_location on the
7708 message in favor of storing the rich_location ptr there.
7709 (diagnostic_set_info): Convert param from location_t to
7711 (diagnostic_build_prefix): Break out array into...
7712 (diagnostic_kind_color): New variable.
7713 (diagnostic_get_color_for_kind): New function.
7714 (diagnostic_report_diagnostic): Colorize the option_text
7715 using the color for the severity.
7716 (diagnostic_append_note): Update for change in signature of
7717 diagnostic_set_info.
7718 (diagnostic_append_note_at_rich_loc): New function.
7719 (emit_diagnostic): Update for change in signature of
7720 diagnostic_set_info.
7722 (inform_at_rich_loc): New function.
7723 (inform_n): Update for change in signature of diagnostic_set_info.
7724 (warning): Likewise.
7725 (warning_at): Likewise.
7726 (warning_at_rich_loc): New function.
7727 (warning_n): Update for change in signature of diagnostic_set_info.
7728 (pedwarn): Likewise.
7729 (permerror): Likewise.
7730 (permerror_at_rich_loc): New function.
7731 (error): Update for change in signature of diagnostic_set_info.
7732 (error_n): Likewise.
7733 (error_at): Likewise.
7734 (error_at_rich_loc): New function.
7735 (sorry): Update for change in signature of diagnostic_set_info.
7736 (fatal_error): Likewise.
7737 (internal_error): Likewise.
7738 (internal_error_no_backtrace): Likewise.
7739 (source_range::debug): New function.
7740 * diagnostic.h (struct diagnostic_info): Eliminate field
7741 "override_column". Add field "richloc".
7742 (struct diagnostic_context): Add field "colorize_source_p".
7743 (diagnostic_override_column): Delete.
7744 (diagnostic_set_info): Convert param from location_t to
7746 (diagnostic_set_info_translated): Likewise.
7747 (diagnostic_append_note_at_rich_loc): New function.
7748 (diagnostic_num_locations): New function.
7749 (diagnostic_expand_location): Get the location from the
7751 (diagnostic_print_caret_line): Delete.
7752 (diagnostic_get_color_for_kind): New declaration.
7753 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
7754 (error_cb): Update for change in signature of "error" callback.
7755 (fatal_at): Likewise.
7756 (warning_at): Likewise.
7757 * input.c (linemap_client_expand_location_to_spelling_point): New.
7758 * pretty-print.c (text_info::set_range): New method.
7759 (text_info::get_location): New method.
7760 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
7761 (struct text_info): Eliminate "locations" array in favor of
7762 "m_richloc", a rich_location *.
7763 (textinfo::set_location): Add a "caret_p" param, and reimplement
7764 in terms of a call to set_range.
7765 (textinfo::get_location): Eliminate inline implementation in favor of
7766 an out-of-line reimplementation.
7767 (textinfo::set_range): New method.
7768 * rtl-error.c (diagnostic_for_asm): Update for change in signature
7769 of diagnostic_set_info.
7770 * tree-diagnostic.c (default_tree_printer): Update for new
7771 "caret_p" param for textinfo::set_location.
7772 * tree-pretty-print.c (percent_K_format): Likewise.
7774 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7777 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7778 * config/aarch64/aarch64.c
7779 (aarch64_can_use_per_function_literal_pools_p): New.
7780 (aarch64_use_blocks_for_constant_p): Adjust declaration
7781 and use aarch64_can_use_function_literal_pools_p.
7782 (aarch64_select_rtx_section): Update.
7784 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7786 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
7787 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
7788 (arm_output_multireg_pop): Likewise.
7789 (output_move_double): Likewise.
7790 (output_move_quad): Likewise.
7791 (output_return_instruction): Likewise.
7792 (arm_print_operand): Remove support for %( and %. print modifiers.
7793 (arm_output_shift): Make unified asm.
7794 (arm_declare_function_name): Likewise.
7795 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
7796 (ASM_APP_OFF): Adjust.
7797 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
7798 (ASM_OUTPUT_REG_POP): Likewise.
7799 * config/arm/arm.md: Adjust uses of %., %(, %)
7800 * config/arm/sync.md: Likewise.
7801 * config/arm/thumb2.md: Likewise.
7802 * config/arm/ldmstm.md: Regenerate.
7803 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
7804 * doc/invoke.texi (masm-unified-syntax): Update documentation.
7806 2015-11-06 David Malcolm <dmalcolm@redhat.com>
7808 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
7810 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
7812 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
7813 add OEP_MATCH_SIDE_EFFECTS.
7814 * fold-const.c (operand_equal_p): Update documentation; handle
7815 OEP_MATCH_SIDE_EFFECTS.
7816 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
7817 OEP_MATCH_SIDE_EFFECTS.
7819 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
7820 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7822 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
7823 * config/aarch64/aarch64-protos.h: Declare.
7824 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
7826 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
7827 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
7828 code when applicable.
7829 * config/aarch64/aarch64.md: Added enum entries.
7830 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
7832 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
7836 * ipa-polymorphic-call.c
7837 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
7838 issue when offset is out of range.
7839 (contains_type_p): Fix out of range check, clear dynamic flag.
7841 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
7843 * config.gcc (e6500): Fix cpu_is_64bit typo.
7845 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
7847 * tree-sra.c (completely_scalarize): Properly handle negative array
7848 indices using offset_int.
7850 2015-11-06 Richard Biener <rguenther@suse.de>
7852 * alloc-pool.h (object_allocator::allocate): Default-initialize
7855 2015-11-06 Richard Biener <rguenther@suse.de>
7857 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
7858 * lra.c (init_reg_info): Truncate copy_vec instead of
7859 re-allocating a new one and leaking the old.
7860 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
7862 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
7863 * postreload-gcse.c (free_mem): Free modify_mem_list and
7864 canon_modify_mem_list.
7866 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
7868 PR tree-optimization/68145
7869 * tree-vect-stmts.c (vectorizable_operation): Fix
7870 determination for booleans.
7872 2015-11-06 Tom de Vries <tom@codesourcery.com>
7874 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
7875 cond_jump, instead of split after last nondebug insn before cond_jump.
7876 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
7879 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7882 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
7883 subregs from accumulator and make sure it's a register.
7885 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
7887 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
7889 (reduc_uplus_<mode>): Remove.
7890 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
7891 loongson_extract_lo_<mode>.
7892 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
7893 reduc_smax_<mode>, reduc_smax_<mode>, use vec
7894 loongson_extract_lo_<mode>.
7895 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
7897 2015-11-06 Richard Biener <rguenther@suse.de>
7899 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
7901 (vect_stmt_in_region_p): Declare.
7902 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
7903 (destroy_bb_vec_info): Likewise.
7904 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
7905 (vect_get_and_check_slp_defs): Likewise.
7906 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
7907 (vect_slp_bb): Likewise.
7908 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
7909 in terms of vect_stmt_in_region_p.
7910 (vect_pattern_recog): Iterate over the BB region.
7911 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
7912 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
7913 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
7914 * config/i386/i386.c: Include gimple-iterator.h.
7915 * config/aarch64/aarch64.c: Likewise.
7917 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
7919 PR rtl-optimization/67753
7920 PR rtl-optimization/64164
7921 * function.c (assign_parm_setup_block): Avoid allocating a
7922 stack slot if we don't have an ABI-reserved one. Emit the
7923 copy to target_reg in the conversion seq if the copy from
7924 entry_parm is in it too. Don't use the conversion seq to copy
7925 a PARALLEL to a REG or a CONCAT.
7927 2015-11-06 Richard Biener <rguenther@suse.de>
7929 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
7932 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
7933 Thomas Schwinge <thomas@codesourcery.com>
7934 James Norris <jnorris@codesourcery.com>
7937 * gimplify.c (gimplify_scan_omp_clauses): Add support for
7938 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
7939 (gimplify_adjust_omp_clauses): Likewise.
7940 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
7941 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
7942 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
7943 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
7944 (omp_clause_code_name): Likewise.
7945 (walk_tree_1): Handle OMP_CLAUSE_TILE.
7946 * tree.h (OMP_TILE_LIST): New macro.
7948 2015-11-05 Martin Sebor <msebor@redhat.com>
7951 * doc/invoke.texi (-Wplacement-new): Document new option.
7953 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
7955 PR tree-optimization/65963
7956 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
7957 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
7959 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
7961 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
7962 (noce_convert_multiple_sets): Likewise.
7963 (noce_process_if_block): Call them.
7965 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
7967 * gimple-fold.c: Include omp-low.h.
7968 (fold_internal_goacc_dim): New.
7969 (gimple_fold_call): Call it.
7971 2015-11-05 Jakub Jelinek <jakub@redhat.com>
7972 Ilya Verbin <ilya.verbin@intel.com>
7975 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
7976 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
7977 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7978 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
7979 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
7980 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
7981 (struct cgraph_simd_clone_arg): Adjust comment.
7982 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
7983 to GOMP_target_ext. Add num_teams and thread_limit arguments.
7984 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
7985 to GOMP_target_data_ext.
7986 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
7987 to GOMP_target_update_ext.
7988 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
7989 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
7990 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
7991 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
7992 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
7993 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
7994 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
7995 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
7996 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
7997 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
7998 * tree-core.h (enum omp_clause_schedule_kind): Add
7999 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
8000 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
8001 OMP_CLAUSE_SCHEDULE_LAST value.
8002 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
8003 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
8004 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
8005 OMP_FOR_CHECK. Remove comment.
8006 * tree-pretty-print.c (dump_omp_clause): Handle
8007 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
8008 Simplify. Print schedule clause modifiers.
8009 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
8010 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
8012 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
8013 (omp_default_clause): Tweak for
8014 private/firstprivate/is_device_ptr variables on target
8015 construct and use_device_ptr on target data.
8016 (omp_check_private): Likewise.
8017 (omp_notice_variable): For references check whether what it refers
8018 to has mappable type, rather than the reference itself.
8019 (omp_is_private): Diagnose linear iteration variables on non-simd
8021 (omp_no_lastprivate): Return true only for Fortran.
8022 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
8023 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
8024 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
8025 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
8026 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
8027 lastprivate and linear when combined with distribute. Gimplify
8028 variable low-bound for array reduction. Look through
8029 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
8031 (gimplify_adjust_omp_clauses_1): For implicit references to
8032 variables with reference type and when not ref to scalar or
8033 ref to pointer, map what they refer to using tofrom and
8034 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
8035 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
8036 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
8037 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
8038 Diagnose the same var on both firstprivate and lastprivate on
8039 distribute construct.
8040 (gimplify_omp_for): Fix up handling of predetermined
8041 lastprivate or linear iter vars when combined with distribute.
8042 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
8044 (gimplify_omp_workshare): Call optimize_target_teams.
8045 * omp-low.c (struct omp_region): Add sched_modifiers field.
8046 (struct omp_for_data): Likewise.
8047 (omp_any_child_fn_dumped): New variable.
8048 (extract_omp_for_data): Fill in sched_modifiers, and mask out
8049 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
8051 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
8052 bits of OMP_CLAUSE_SCHED_KIND.
8053 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
8054 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
8055 for array section reductions.
8056 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
8057 for distribute parallel for, if there are lastprivate clauses on the
8059 (lower_rec_input_clauses): Handle non-zero low-bound on array
8061 (lower_reduction_clauses): Likewise.
8062 (lower_send_clauses): Look through POINTER_PLUS_EXPR
8063 for array section reductions.
8064 (expand_parallel_call): Use nonmonotonic entrypoints for
8065 nonmonotonic: dynamic/guided.
8066 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
8067 child_fn if current_function_decl has assembler name set, but child_fn
8068 does not. Dump the header and IL of the child function when not in SSA
8070 (expand_omp_target): Likewise. Pass num_teams and thread_limit
8071 arguments to BUILT_IN_GOMP_TARGET.
8072 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8073 Initialize the extra _looptemp_ clause to fd->loop.n2.
8074 (expand_omp_for): Use nonmonotonic entrypoints for
8075 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
8076 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
8077 again if we have dumped any child functions.
8078 (lower_omp_for_lastprivate): Determine the right count variable
8079 for distribute simd, or distribute parallel for{, simd}.
8080 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
8081 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
8083 (simd_clone_clauses_extract): Handle variable step
8084 for references and arguments passed by reference.
8085 (simd_clone_mangle): Mangle ref/uval/val variable steps.
8086 (simd_clone_adjust_argument_types): Handle
8087 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
8088 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8089 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
8090 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8091 (simd_clone_linear_addend): New function.
8092 (simd_clone_adjust): Handle variable step like similarly
8093 to constant step, use simd_clone_linear_addend to determine
8094 the actual step at runtime.
8096 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
8098 * target.def (goacc.dim_limit): New hook.
8099 * targhooks.h (default_goacc_dim_limit): Declare.
8100 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
8101 * doc/tm.texi: Rebuilt.
8102 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
8103 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
8104 (default_goacc_dim_limit): New.
8105 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8106 (nvptx_goacc_dim_limit) New.
8107 (TARGET_GOACC_DIM_LIMIT): Override.
8108 * tree-vrp.c: Include omp-low.h, target.h.
8109 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
8112 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8114 * tree-vect-generic.c (do_compare): Use -1 for true
8115 result instead of 1.
8117 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8119 * config/aarch64/aarch64.c
8120 (aarch64_can_use_per_function_literal_pools_p): New.
8121 (aarch64_use_blocks_for_constant_p): Adjust declaration
8122 and use aarch64_can_use_function_literal_pools_p.
8123 (aarch64_select_rtx_section): Update.
8125 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8127 * targhooks.c (default_get_mask_mode): Use BLKmode in
8128 case target doesn't support required vector mode.
8129 * stor-layout.c (layout_type); Check for BLKmode.
8131 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8132 Sebastian Pop <s.pop@samsung.com>
8134 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8135 Remove use of parameter_rename_map.
8137 (copy_internal_parameters): Remove.
8138 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
8139 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
8140 (free_sese_info): Do not free parameter_rename_map.
8141 (set_rename): Do not use parameter_rename_map.
8142 (rename_uses): Update call to set_rename.
8143 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
8144 * sese.h (parameter_rename_map_t): Remove.
8145 (struct sese_info_t): Remove field parameter_rename_map.
8147 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8148 Sebastian Pop <s.pop@samsung.com>
8150 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
8151 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
8152 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
8153 anonymous namespace.
8154 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
8155 (isl_id_for_pbb): Use a buffer of size 10.
8156 (isl_id_for_ssa_name): Same.
8157 * sese.c (set_rename): Add more dumps.
8159 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8161 * omp-low.c (struct omp_context): Remove reduction_map field.
8162 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
8163 (new_omp_context, delete_omp_context, scan_omp_target): Remove
8164 reduction_map handling.
8165 (lower_omp_target): Remove obsolete openacc reduction handling.
8167 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8169 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
8171 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8172 Cesar Philippidis <cesar@codesourcery.com>
8174 * config/nvptx/nvptx.c: Include gimple headers.
8175 (worker_red_size, worker_red_align, worker_red_name,
8176 worker_red_sym): New.
8177 (nvptx_option_override): Initialize worker reduction buffer.
8178 (nvptx_file_end): Write out worker reduction buffer var.
8179 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
8180 nvptx_expand_cmp_swap): New builtin expanders.
8181 (enum nvptx_builtins): New.
8182 (nvptx_builtin_decls): New.
8183 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
8184 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8185 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
8186 nvptx_lockless_update): New helpers.
8187 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
8188 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
8189 (nvptx_goacc_reduction): New.
8190 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
8191 TARGET_BUILTIN_DECL): Override.
8192 (TARGET_GOACC_REDUCTION): Override.
8194 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8195 Cesar Philippidis <cesar@codesourcery.com>
8197 * internal-fn.def (GOACC_REDUCTION): New.
8198 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
8199 * internal-fn.c (expand_GOACC_REDUCTION): New.
8200 * target.def (goacc.reduction): New OpenACC hook.
8201 * targhooks.h (default_goacc_reduction): Declare.
8202 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
8203 * doc/tm.texi: Rebuilt.
8204 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
8205 scan_sharing_clauses): Remove oacc reduction handling here.
8206 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
8207 (oacc_lower_reduction_var_helper): Delete.
8208 (lower_oacc_reductions): New.
8209 (lower_reduction_clauses): Don't handle OpenACC reductions here.
8210 (lower_oacc_head_tail): Call lower_oacc_reductions.
8211 (oacc_gimple_assign, oacc_init_reduction_array,
8212 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
8213 oacc_process_reduction_data): Delete.
8214 (lower_omp_target): Remove old OpenACC reduction handling. Insert
8215 dummy OpenACC gang reduction for reductions at outer level.
8216 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
8217 (default_goacc_reduction): New.
8218 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
8220 2015-11-04 Martin Liska <mliska@suse.cz>
8222 * cgraphunit.c (cgraph_node::expand_thunk): Call
8223 allocate_struct_function before init_function_start.
8224 (cgraph_node::expand): Use push_cfun and pop_cfun.
8225 * config/i386/i386.c (ix86_code_end): Call
8226 allocate_struct_function before init_function_start.
8227 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
8228 * function.c (init_function_start): Move preamble to all
8230 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
8231 (execute_one_pass): Handle newly added TODO_discard_function.
8232 (execute_pass_list_1): Terminate if cfun equals to NULL.
8233 (execute_pass_list): Do not push and pop cfun, expect that
8235 * tree-pass.h (TODO_discard_function): Define.
8237 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
8239 * cfganal.c (inverted_post_order_compute): Remove conditional
8240 compilation, use flag_checking.
8241 * config.in: Regenerate.
8242 * configure: Regenerate.
8243 * configure.ac: Remove ENABLE_CHECKING.
8244 * genconditions.c: Do not #undef ENABLE_CHECKING.
8245 * sese.h (bb_in_region): Comment out broken check.
8246 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
8247 conditional compilation, use flag_checking.
8249 2015-11-04 Tom de Vries <tom@codesourcery.com>
8251 PR tree-optimization/67742
8252 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
8254 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
8255 (create_variable_info_for_1): Add and handle handle_param parameter.
8256 Add restrict handling.
8257 (create_variable_info_for): Call create_variable_info_for_1 with extra
8259 (make_param_constraints): Drop restrict_name parameter. Ignore
8260 vi->only_restrict_pointers.
8261 (intra_create_variable_infos): Call create_variable_info_for_1 with
8262 extra arg. Remove restrict handling. Call make_param_constraints with
8265 2015-11-04 Tom de Vries <tom@codesourcery.com>
8267 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
8270 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8272 * config/arm/coff.h: Remove.
8274 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
8276 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
8277 check for aggregate types and beef up comment for mode check.
8279 2015-11-03 Richard Biener <rguenther@suse.de>
8281 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
8282 data references here.
8283 * tree-vect-loop.c: Include cgraph.h.
8284 (vect_analyze_loop_2): Collect data references here.
8285 * tree-vect-slp.c (find_bb_location): Inline ...
8286 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
8287 Factor in vect_slp_transform_bb.
8288 (vect_slp_transform_bb): Removed.
8289 (vect_slp_analyze_bb_1): Collect data references here.
8290 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
8292 * tree-vectorizer.h (vect_slp_bb): Declare.
8293 (vect_slp_analyze_bb): Remove.
8294 (vect_slp_transform_bb): Remove.
8295 (find_bb_location): Remove.
8296 (vect_analyze_data_refs): Remove stmt count reference parameter.
8298 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
8300 * multiple_target.c (create_dispatcher_calls): Add target check
8302 (create_target_clone): Change assembler name for versioned declarations.
8304 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
8305 Chung-Lin Tang <cltang@codesourcery.com>
8307 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
8308 * omp-low.c (check_omp_nesting_restrictions): Allow
8309 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
8312 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
8314 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
8315 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
8316 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
8318 (vmulxq_f32): Likewise.
8320 (vmulxq_f64): Rewrite to call fmulx builtin.
8321 (vmulxs_f32): Likewise.
8322 (vmulxd_f64): Likewise.
8323 (vmulx_lane_f32): Remove.
8324 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
8326 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
8328 * config/aarch64/aarch64.md (*movhf_aarch64): Use
8329 aarch64_reg_or_fp_zero for second operand.
8331 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
8333 * gimple-expr.c: Include hash-set.h and rtl.h.
8334 (mark_addressable_queue): New var.
8335 (mark_addressable): Factor actual marking into...
8336 (mark_addressable_1): ... this. Queue it up during expand.
8337 (mark_addressable_2): New.
8338 (flush_mark_addressable_queue): New.
8339 * gimple-expr.h (flush_mark_addressable_queue): Declare.
8340 * cfgexpand.c: Include gimple-expr.h.
8341 (pass_expand::execute): Flush mark_addressable queue.
8343 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
8345 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
8346 bb_no_side_effects_p tests...
8347 (tree_ssa_ifcombine_bb): ... here.
8349 PR tree-optimization/68083
8350 * tree-ssa-ifcombine.c: Include tree-ssa.h.
8351 (bb_no_side_effects_p): Test for undefined uses too.
8352 * tree-ssa.c (gimple_uses_undefined_value_p): New.
8353 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
8355 2015-11-02 Jeff Law <law@redhat.com>
8357 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
8358 cases where the loop latch edge is in the middle of an FSM path.
8360 2015-11-03 Tom de Vries <tom@codesourcery.com>
8362 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
8363 (make_param_constraints): ... this. Add and handle restrict_name
8364 parameter. Handle is_full_var case.
8365 (intra_create_variable_infos): Use make_param_constraints.
8367 2015-11-03 Tom de Vries <tom@codesourcery.com>
8369 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
8370 make_copy_constraint call with make_constraint_from call.
8372 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
8374 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
8377 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
8379 * builtins.h (fold_fma): Move to fold-const-call.h.
8380 * builtins.c: Include fold-const-call.h.
8381 (mathfn_built_in_2): New function, split out from...
8382 (mathfn_built_in_1): ...here.
8383 (do_real_to_int_conversion, fold_const_builtin_pow)
8384 (fold_const_builtin_logb, fold_const_builtin_significand)
8385 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
8386 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
8387 (fold_builtin_sincos): Use fold_const_call to handle constants.
8388 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
8389 checks for ERROR_MARK. Use fold_const_call to handle constant
8390 folds for math functions.
8391 (fold_fma): Move to fold-const-call.c.
8392 * fold-const.c: Include fold-const-call.h.
8393 * Makefile.in (OBJS): Add fold-const-call.o.
8394 (PLUGIN_HEADERS): Add fold-const-call.h.
8395 * realmpfr.h (real_from_mpfr): Allow the format to be specified
8397 * realmpfr.c (real_from_mpfr): Likewise.
8398 * fold-const-call.h, fold-const-call.c: New files.
8400 2015-11-02 Julian Brown <julian@codesourcery.com>
8402 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
8403 brackets and semicolon.
8405 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
8408 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8410 PR tree-optimization/65963
8411 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8412 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8414 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
8417 * fold-const.c: Include "md5.h".
8419 2015-11-01 Jeff Law <law@redhat.com>
8421 * vmsdbgout.c: Revert unused header file reduction patch.
8423 * config/mcore/mcore.c: Include regs.h.
8425 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8427 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
8429 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8431 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
8432 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
8433 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
8435 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
8437 * ggc-common.c: Restore needed header for checking=release.
8439 2015-10-31 Tom de Vries <tom@codesourcery.com>
8441 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
8443 2015-10-31 Tom de Vries <tom@codesourcery.com>
8445 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
8446 existing varinfo for arguments.
8448 2015-10-31 Tom de Vries <tom@codesourcery.com>
8450 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
8451 create_function_info_for. Dump constraints generated during
8452 create_function_info_for. Move intra_create_variable_infos call and
8453 function-return-values-escape bit to ...
8454 (create_function_info_for): ... here, and merge
8455 intra_create_variable_infos call with argument loop. Add and handle
8456 nonlocal_p parameter.
8458 2015-10-31 Tom de Vries <tom@codesourcery.com>
8460 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
8461 updating is alap, and seperated from preceding code. Make sure
8462 insert_vi_for_tree is seperated from surrounding code.
8464 2015-10-31 Tom de Vries <tom@codesourcery.com>
8466 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
8468 2015-10-30 Jeff Law <law@redhat.com>
8469 Nathan Sidwell <nathan@acm.org>
8471 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
8473 (MOVE_MAX): Set to 8.
8475 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
8477 * cgraph.c: Include context.h for offloading.
8478 * varpool.c: Include context.h and omp-low.h.
8480 2015-10-30 Anatoly Sokolov <aesok@post.ru>
8482 * rtl.h (contains_symbol_ref_p): Declare.
8483 (SYMBOL_REF_P): Define.
8484 * rtlanal.c (contains_symbol_ref_p: New function.
8485 * lra-constraints.c (contains_symbol_ref_p): Remove.
8486 * var-tracking.c (contains_symbol_ref): Remove.
8487 (track_expr_p): Use contains_symbol_ref_p instead of
8488 contains_symbol_ref.
8490 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8492 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
8493 * fold-const.c (get_array_ctor_element_at_index): New.
8494 (fold): Remove binary-search through CONSTRUCTOR, call previous.
8496 * fold-const.h (get_array_ctor_element_at_index): New.
8498 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
8500 * Makefile.in (OBJS): Add multiple_target.o.
8501 * attrib.c (make_attribute): Moved from config/i386/i386.c
8502 * config/i386/i386.c (make_attribute): Deleted.
8503 * multiple_target.c (create_dispatcher_calls): New.
8504 (get_attr_len): Ditto.
8505 (get_attr_str): Ditto.
8506 (separate_attrs): Ditto.
8507 (is_valid_asm_symbol): Ditto.
8508 (create_new_asm_name): Ditto.
8509 (create_target_clone): Ditto.
8510 (expand_target_clones): Ditto.
8511 (ipa_target_clone): Ditto.
8512 (ipa_dispatcher_calls): Ditto.
8513 * passes.def (pass_target_clone): Two new ipa passes.
8514 * tree-pass.h (make_pass_target_clone): Ditto.
8515 * doc/extend.texi (target_clones): New attribute description.
8517 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
8519 PR rtl-optimization/68106
8520 * lra-remat.c (input_regno_present_p): Process hard regs
8521 explicitly present in machine description insns.
8522 (call_used_input_regno_present_p): Ditto.
8523 (calculate_gen_cands): Ditto.
8526 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
8528 * config/arm/neon-testgen.ml: Fix comment typo.
8530 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8532 * rtlanal.c (reg_set_p): Expand function comment.
8534 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
8536 * alias.c: Remove unused headers.
8538 * attribs.c: Likewise.
8539 * auto-inc-dec.c: Likewise.
8540 * auto-profile.c: Likewise.
8541 * bb-reorder.c: Likewise.
8542 * bitmap.c: Likewise.
8543 * bt-load.c: Likewise.
8544 * builtins.c: Likewise.
8545 * caller-save.c: Likewise.
8546 * calls.c: Likewise.
8549 * cfganal.c: Likewise.
8550 * cfgbuild.c: Likewise.
8551 * cfgcleanup.c: Likewise.
8552 * cfgexpand.c: Likewise.
8553 * cfghooks.c: Likewise.
8554 * cfgloop.c: Likewise.
8555 * cfgloopanal.c: Likewise.
8556 * cfgloopmanip.c: Likewise.
8557 * cfgrtl.c: Likewise.
8558 * cgraph.c: Likewise.
8559 * cgraphbuild.c: Likewise.
8560 * cgraphclones.c: Likewise.
8561 * cgraphunit.c: Likewise.
8562 * cilk-common.c: Likewise.
8563 * combine-stack-adj.c: Likewise.
8564 * combine.c: Likewise.
8565 * compare-elim.c: Likewise.
8566 * convert.c: Likewise.
8567 * coverage.c: Likewise.
8568 * cppbuiltin.c: Likewise.
8569 * cprop.c: Likewise.
8571 * cselib.c: Likewise.
8572 * data-streamer-in.c: Likewise.
8573 * data-streamer-out.c: Likewise.
8574 * data-streamer.c: Likewise.
8575 * dbxout.c: Likewise.
8578 * debug.c: Likewise.
8579 * df-core.c: Likewise.
8580 * df-problems.c: Likewise.
8581 * df-scan.c: Likewise.
8583 * dojump.c: Likewise.
8584 * dominance.c: Likewise.
8585 * domwalk.c: Likewise.
8586 * double-int.c: Likewise.
8588 * dumpfile.c: Likewise.
8589 * dwarf2asm.c: Likewise.
8590 * dwarf2cfi.c: Likewise.
8591 * dwarf2out.c: Likewise.
8592 * emit-rtl.c: Likewise.
8593 * except.c: Likewise.
8594 * explow.c: Likewise.
8595 * expmed.c: Likewise.
8597 * final.c: Likewise.
8598 * fixed-value.c: Likewise.
8599 * fold-const.c: Likewise.
8600 * function.c: Likewise.
8601 * fwprop.c: Likewise.
8603 * generic-match-head.c: Likewise.
8604 * ggc-common.c: Likewise.
8605 * gimple-builder.c: Likewise.
8606 * gimple-expr.c: Likewise.
8607 * gimple-fold.c: Likewise.
8608 * gimple-iterator.c: Likewise.
8609 * gimple-low.c: Likewise.
8610 * gimple-match-head.c: Likewise.
8611 * gimple-pretty-print.c: Likewise.
8612 * gimple-ssa-isolate-paths.c: Likewise.
8613 * gimple-ssa-strength-reduction.c: Likewise.
8614 * gimple-streamer-in.c: Likewise.
8615 * gimple-streamer-out.c: Likewise.
8616 * gimple-walk.c: Likewise.
8617 * gimple.c: Likewise.
8618 * gimplify-me.c: Likewise.
8619 * gimplify.c: Likewise.
8620 * godump.c: Likewise.
8621 * graph.c: Likewise.
8622 * graphds.c: Likewise.
8623 * haifa-sched.c: Likewise.
8624 * hw-doloop.c: Likewise.
8625 * ifcvt.c: Likewise.
8626 * init-regs.c: Likewise.
8627 * internal-fn.c: Likewise.
8628 * ipa-chkp.c: Likewise.
8629 * ipa-comdats.c: Likewise.
8630 * ipa-cp.c: Likewise.
8631 * ipa-devirt.c: Likewise.
8632 * ipa-icf-gimple.c: Likewise.
8633 * ipa-icf.c: Likewise.
8634 * ipa-inline-analysis.c: Likewise.
8635 * ipa-inline-transform.c: Likewise.
8636 * ipa-inline.c: Likewise.
8637 * ipa-polymorphic-call.c: Likewise.
8638 * ipa-profile.c: Likewise.
8639 * ipa-prop.c: Likewise.
8640 * ipa-pure-const.c: Likewise.
8641 * ipa-ref.c: Likewise.
8642 * ipa-reference.c: Likewise.
8643 * ipa-split.c: Likewise.
8644 * ipa-utils.c: Likewise.
8645 * ipa-visibility.c: Likewise.
8647 * ira-build.c: Likewise.
8648 * ira-color.c: Likewise.
8649 * ira-conflicts.c: Likewise.
8650 * ira-costs.c: Likewise.
8651 * ira-emit.c: Likewise.
8652 * ira-lives.c: Likewise.
8655 * langhooks.c: Likewise.
8657 * lists.c: Likewise.
8658 * loop-doloop.c: Likewise.
8659 * loop-init.c: Likewise.
8660 * loop-invariant.c: Likewise.
8661 * loop-iv.c: Likewise.
8662 * loop-unroll.c: Likewise.
8663 * lower-subreg.c: Likewise.
8664 * lra-assigns.c: Likewise.
8665 * lra-coalesce.c: Likewise.
8666 * lra-constraints.c: Likewise.
8667 * lra-eliminations.c: Likewise.
8668 * lra-lives.c: Likewise.
8669 * lra-remat.c: Likewise.
8670 * lra-spills.c: Likewise.
8672 * lto-cgraph.c: Likewise.
8673 * lto-compress.c: Likewise.
8674 * lto-opts.c: Likewise.
8675 * lto-section-in.c: Likewise.
8676 * lto-section-out.c: Likewise.
8677 * lto-streamer-in.c: Likewise.
8678 * lto-streamer-out.c: Likewise.
8679 * lto-streamer.c: Likewise.
8681 * mode-switching.c: Likewise.
8682 * modulo-sched.c: Likewise.
8683 * optabs.c: Likewise.
8684 * opts-global.c: Likewise.
8685 * passes.c: Likewise.
8686 * plugin.c: Likewise.
8687 * postreload-gcse.c: Likewise.
8688 * postreload.c: Likewise.
8689 * predict.c: Likewise.
8690 * print-tree.c: Likewise.
8691 * profile.c: Likewise.
8693 * realmpfr.c: Likewise.
8694 * recog.c: Likewise.
8696 * reg-stack.c: Likewise.
8697 * regcprop.c: Likewise.
8698 * reginfo.c: Likewise.
8699 * regrename.c: Likewise.
8700 * regstat.c: Likewise.
8701 * reload.c: Likewise.
8702 * reload1.c: Likewise.
8703 * reorg.c: Likewise.
8704 * resource.c: Likewise.
8705 * rtl-chkp.c: Likewise.
8706 * rtl-error.c: Likewise.
8707 * rtlanal.c: Likewise.
8708 * rtlhooks.c: Likewise.
8709 * sanopt.c: Likewise.
8710 * sched-deps.c: Likewise.
8711 * sched-ebb.c: Likewise.
8712 * sched-rgn.c: Likewise.
8713 * sdbout.c: Likewise.
8714 * sel-sched-dump.c: Likewise.
8715 * sel-sched-ir.c: Likewise.
8716 * sel-sched.c: Likewise.
8718 * shrink-wrap.c: Likewise.
8719 * simplify-rtx.c: Likewise.
8720 * stack-ptr-mod.c: Likewise.
8721 * statistics.c: Likewise.
8723 * stor-layout.c: Likewise.
8724 * store-motion.c: Likewise.
8725 * stringpool.c: Likewise.
8726 * symtab.c: Likewise.
8727 * target-globals.c: Likewise.
8728 * targhooks.c: Likewise.
8729 * toplev.c: Likewise.
8730 * tracer.c: Likewise.
8731 * trans-mem.c: Likewise.
8732 * tree-affine.c: Likewise.
8733 * tree-call-cdce.c: Likewise.
8734 * tree-cfg.c: Likewise.
8735 * tree-cfgcleanup.c: Likewise.
8736 * tree-chkp-opt.c: Likewise.
8737 * tree-chkp.c: Likewise.
8738 * tree-chrec.c: Likewise.
8739 * tree-complex.c: Likewise.
8740 * tree-data-ref.c: Likewise.
8741 * tree-dfa.c: Likewise.
8742 * tree-diagnostic.c: Likewise.
8743 * tree-dump.c: Likewise.
8744 * tree-eh.c: Likewise.
8745 * tree-emutls.c: Likewise.
8746 * tree-if-conv.c: Likewise.
8747 * tree-inline.c: Likewise.
8748 * tree-into-ssa.c: Likewise.
8749 * tree-iterator.c: Likewise.
8750 * tree-loop-distribution.c: Likewise.
8751 * tree-nested.c: Likewise.
8752 * tree-nrv.c: Likewise.
8753 * tree-object-size.c: Likewise.
8754 * tree-outof-ssa.c: Likewise.
8755 * tree-parloops.c: Likewise.
8756 * tree-phinodes.c: Likewise.
8757 * tree-predcom.c: Likewise.
8758 * tree-pretty-print.c: Likewise.
8759 * tree-profile.c: Likewise.
8760 * tree-scalar-evolution.c: Likewise.
8761 * tree-sra.c: Likewise.
8762 * tree-ssa-address.c: Likewise.
8763 * tree-ssa-alias.c: Likewise.
8764 * tree-ssa-ccp.c: Likewise.
8765 * tree-ssa-coalesce.c: Likewise.
8766 * tree-ssa-copy.c: Likewise.
8767 * tree-ssa-dce.c: Likewise.
8768 * tree-ssa-dse.c: Likewise.
8769 * tree-ssa-forwprop.c: Likewise.
8770 * tree-ssa-ifcombine.c: Likewise.
8771 * tree-ssa-live.c: Likewise.
8772 * tree-ssa-loop-ch.c: Likewise.
8773 * tree-ssa-loop-im.c: Likewise.
8774 * tree-ssa-loop-ivcanon.c: Likewise.
8775 * tree-ssa-loop-ivopts.c: Likewise.
8776 * tree-ssa-loop-manip.c: Likewise.
8777 * tree-ssa-loop-niter.c: Likewise.
8778 * tree-ssa-loop-prefetch.c: Likewise.
8779 * tree-ssa-loop-unswitch.c: Likewise.
8780 * tree-ssa-loop.c: Likewise.
8781 * tree-ssa-math-opts.c: Likewise.
8782 * tree-ssa-operands.c: Likewise.
8783 * tree-ssa-phiopt.c: Likewise.
8784 * tree-ssa-phiprop.c: Likewise.
8785 * tree-ssa-pre.c: Likewise.
8786 * tree-ssa-propagate.c: Likewise.
8787 * tree-ssa-reassoc.c: Likewise.
8788 * tree-ssa-scopedtables.c: Likewise.
8789 * tree-ssa-sink.c: Likewise.
8790 * tree-ssa-strlen.c: Likewise.
8791 * tree-ssa-structalias.c: Likewise.
8792 * tree-ssa-tail-merge.c: Likewise.
8793 * tree-ssa-ter.c: Likewise.
8794 * tree-ssa-threadupdate.c: Likewise.
8795 * tree-ssa-uncprop.c: Likewise.
8796 * tree-ssa-uninit.c: Likewise.
8797 * tree-ssa.c: Likewise.
8798 * tree-ssanames.c: Likewise.
8799 * tree-stdarg.c: Likewise.
8800 * tree-streamer-in.c: Likewise.
8801 * tree-streamer-out.c: Likewise.
8802 * tree-streamer.c: Likewise.
8803 * tree-switch-conversion.c: Likewise.
8804 * tree-tailcall.c: Likewise.
8805 * tree-vect-data-refs.c: Likewise.
8806 * tree-vect-generic.c: Likewise.
8807 * tree-vect-loop-manip.c: Likewise.
8808 * tree-vect-loop.c: Likewise.
8809 * tree-vect-patterns.c: Likewise.
8810 * tree-vect-slp.c: Likewise.
8811 * tree-vect-stmts.c: Likewise.
8812 * tree-vectorizer.c: Likewise.
8813 * tree-vrp.c: Likewise.
8816 * ubsan.c: Likewise.
8817 * value-prof.c: Likewise.
8818 * var-tracking.c: Likewise.
8819 * varasm.c: Likewise.
8820 * varpool.c: Likewise.
8821 * vmsdbgout.c: Likewise.
8822 * vtable-verify.c: Likewise.
8824 * wide-int-print.cc: Likewise.
8825 * wide-int.cc: Likewise.
8826 * xcoffout.c: Likewise.
8828 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
8830 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
8831 between pass numbering and execution order.
8833 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8835 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
8836 check for dependencies.
8838 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8840 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
8843 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8845 * real.h (format_helper): New.
8846 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
8847 (real_from_target, real_nan, real_2expN, real_value_truncate)
8848 (significand_size, real_from_string2, exact_real_inverse)
8849 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
8850 (real_round, real_isinteger, real_from_integer): Replace
8851 machine_mode arguments with format_helper arguments.
8852 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
8853 (real_from_integer, real_nan, real_2expN, real_convert)
8854 (real_value_truncate, exact_real_truncate, real_to_target)
8855 (real_from_target, significand_size, real_powi, real_trunc)
8856 (real_floor, real_ceil, real_round, real_isinteger): Replace
8857 machine_mode arguments with format_helper arguments.
8858 (real_to_target_fmt, real_from_target_fmt): Delete.
8859 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
8860 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
8861 argument with real_format.
8862 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
8864 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8866 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
8867 (fixed_to_decimal, fixed_convert_from_real)
8868 (real_convert_from_fixed): Fix mode arguments to real_2expN.
8870 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8872 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
8873 SCALAR_FLOAT_MODE_P.
8875 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8877 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
8878 (completely_scalarize): Comment zero-length arrays.
8879 (get_access_replacement): Correct comment re. precondition.
8881 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8883 * config/i386/i386.c (get_builtin_code_for_version): Set priority
8884 for PROCESSOR_ZNVER1.
8885 (enum processor_model): Add M_AMDFAM17H_znver1.
8886 (struct arch_names_table): Likewise.
8887 * doc/extend.texi: ADD znver1.
8889 2015-10-30 Richard Biener <rguenther@suse.de>
8891 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
8892 fold () on single RHSs. Allow CONSTRUCTORS with trailing
8893 zeros to be folded to VECTOR_CSTs.
8894 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
8895 * fold-const.c (fold): Use build_vector_from_ctor.
8897 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
8899 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
8900 "mov %0.h[0], %1.h[0] to "neon_move".
8901 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
8902 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
8904 (*cmovsi_insn_uxtw): Likewise.
8906 2015-10-30 Tom de Vries <tom@codesourcery.com>
8908 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
8909 unsigned, and initialize, and use initial value instead of hardcoded
8910 constant. Add generic constraints dumping section. Don't dump global
8911 initializers constraints dumping section if empty. Don't update
8912 variable from if unused.
8914 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
8916 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
8917 flag_checking and/or CHECKING_P to eliminate conditional compilation
8919 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
8920 * config/bfin/bfin.c (hwloop_optimize): Likewise.
8921 * config/i386/i386.c (ix86_print_operand_address): Likewise.
8922 (output_387_binary_op): Likewise.
8923 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
8924 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
8925 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
8927 * config/rs6000/rs6000.h: Likewise.
8928 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8930 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
8932 * config/sh/sh.opt (mfdpic): Add missing period.
8934 2015-08-29 Anatoly Sokolov <aesok@post.ru>
8936 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8937 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
8938 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8939 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
8940 mcore_base_register_rtx_p, mcore_legitimate_index_p,
8941 mcore_legitimate_address_p): New functions.
8942 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8944 2015-10-29 Jeff Law <law@redhat.com>
8946 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
8948 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
8949 * tree-ssa-threadedge.c
8950 (record_temporary_equivalences_from_stmts_at_dest): Remove
8951 backedge_seen argument and associated code which invalidated
8952 equivalences based on the value of that argument.
8953 (thread_through_normal_block): Corresponding changes.
8955 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8957 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
8958 function earlier in the file.
8959 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
8960 df_regs_ever_live_p.
8962 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8964 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
8967 2015-10-29 Richard Henderson <rth@redhat.com>
8971 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8972 sse check to the exact conditions of PR 67609.
8974 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
8976 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
8977 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
8978 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
8979 of the traditional names that TFmode uses for handling IEEE
8980 extended double. If -mfloat128, add KFmode functions for all of
8981 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
8982 make TFmode use the same emulation functions as KFmode.
8983 (init_float128_ibm): Likewise.
8984 (init_float128_ieee): Likewise.
8985 (rs6000_generate_compare): For IEEE 128-bit floating point
8986 comparisons, call the unordered comparison function instead of the
8987 ordered comparison function.
8988 (rs6000_expand_float128_convert): Deal with operands that are
8989 memory operands. Restructure the code to use a switch statement on
8990 the mode. Add support for TFmode defaulting to either IBM extended
8991 double or IEEE 128-bit floating point. If the underlying types are
8992 the same, use a move instead of a conversion function.
8993 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
8994 use for IEEE 128-bit floating point constants with -mfloat128.
8995 (rs6000_c_mode_for_suffix): Likewise.
8996 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
8997 128-bit floating point with IBM extended double floating point.
8998 (rs6000_invalid_binary_op): Likewise.
8999 (rs6000_gen_le_vsx_permute): On little endian systems generate a
9000 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
9001 types that can go in vector registers.
9002 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
9003 point types that can go in vector registers on little endian
9005 (mark_swaps_for_removal): Likewise.
9006 (rs6000_analyze_swaps): Likewise.
9007 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
9009 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
9010 rework IEEE 128-bit floating point insns to deal with TFmode being
9011 either IBM extended double or IEEE 128-bit floating point.
9013 (IBM128): Update iterator to add condition that the mode is IBM
9015 (IEEE128): New iterator for IEEE 128-bit floating point.
9016 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
9017 (FLOAT128): Likewise.
9018 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
9020 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
9021 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
9022 instead of hard coding TFmode or KFmode.
9023 (negtf2_internal): Likewise.
9024 (neg<mode>2_internal): Likewise.
9025 (abs<mode>2): Likewise.
9026 (abstf2_internal): Likewise.
9027 (abs<mode>2_internal): Likewise.
9028 (ieee_128bit_neg<mode>2): Likewise.
9029 (ieee_128bit_neg<mode>2_internal): Likewise.
9030 (ieee_128bit_abs<mode>2): Likewise.
9031 (ieee_128bit_abs<mode>2_internal): Likewise.
9032 (ieee_128bit_nabs<mode>2): Likewise.
9033 (ieee_128bit_nabs<mode>2_internal): Likewise.
9034 (extendiftf2): Add explicit conversions between 128-bit floating
9035 point types. Drop the old conversions that had become unwieldy.
9036 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9037 (extendifkf2): Likewise.
9038 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9039 (extendtfkf2): Likewise.
9040 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9041 (trunciftf2): Likewise.
9042 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9043 (truncifkf2): Likewise.
9044 (float<SDI:mode><IFKF:mode>2): Likewise.
9045 (trunckftf2): Likewise.
9046 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9047 (trunctfif2): Likewise.
9048 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
9049 (extenddftf2): Rework 128-bit floating point conversions to
9050 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
9051 KFmode expanders into one function.
9052 (extenddf<mode>2): Likewise.
9053 (extenddftf2_fprs): Likewise.
9054 (extenddf<mode>2_fprs): Likewise.
9055 (extenddftf2_vsx): Likewise.
9056 (extenddf<mode>2_vsx): Likewise.
9057 (extendsftf2): Likewise.
9058 (extendsf<mode>2): Likewise.
9059 (trunctfdf2): Likewise.
9060 (trunc<mode>df2): Likewise.
9061 (trunctfdf2_internal1): Likewise.
9062 (trunc<mode>df2_internal1): Likewise.
9063 (trunctfdf2_internal2): Likewise.
9064 (trunc<mode>df2_internal2): Likewise.
9065 (trunctfsf2): Likewise.
9066 (trunc<mode>sf2): Likewise.
9067 (trunctfsf2_fprs): Likewise.
9068 (trunc<mode>sf2_fprs): Likewise.
9069 (floatsit2f): Likewise.
9070 (floatsi<mode>2): Likewise.
9071 (fix_trunc_helper): Likewise.
9072 (fix_trunc_helper<mode>): Likewise.
9073 (fix_trunctfsi2): Likewise.
9074 (fix_trunc<mode>si2): Likewise.
9075 (fix_trunctfsi2_fprs): Likewise.
9076 (fix_trunc<mode>si2_fprs): Likewise.
9077 (fix_trunctfsi2_internal): Likewise.
9078 (fix_trunc<mode>si2_internal): Likewise.
9079 (fix_trunctfdi2): Likewise.
9080 (fix_trunc<mode>di2): Likewise.
9081 (fixuns_trunctf<mode>2): Likewise.
9082 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9083 (floatditf2): Likewise.
9084 (floatdi<mode>2): Likewise.
9085 (floatuns<mode>tf2): Likewise.
9086 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
9087 (cmptf_internal1): Use a mode iterator to add support for both
9088 types (IFmode, TFmode) that support IBM extended double.
9089 (cmp<mode>_internal1): Likewise.
9090 (cmptf_internal2): Likewise.
9091 (cmp<mode>_internal2): Likewise.
9093 * doc/extend.texi (Floating Types): Document __ibm128 and
9094 __float128 on PowerPC.
9096 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9097 -mfloat128 and -mno-float128.
9099 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9101 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
9102 floating point modes that can go in vector registers.
9103 (MODES_TIEABLE_P): Move tests for vector modes before tests for
9104 scalar floating point, so that IEEE 128-bit floating point that
9105 can go in vector registers bind with vectors and not FP.
9106 (struct rs6000_args): Add libcall field.
9108 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
9109 and -mfloat128-software switches. Replace them with a binary
9111 (-mfloat128): Likewise.
9113 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
9114 128-bit floating point types in GPRs, even if the appropriate
9115 option enabling the type was not used.
9116 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
9118 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
9119 pre-decrement on IEEE 128-bit floating point values.
9120 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
9121 is IEEE 128-bit floating point.
9122 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
9123 128-bit floating point types that can go in vector registers.
9124 (rs6000_option_override_internal): Change -mfloat128-none and
9125 -mfloat128-software to -mfloat128, and move code to be near other
9126 VSX option handling.
9127 (rs6000_option_override_internal): Disable -mfloat128 if we don't
9128 have the Altivec ABI.
9129 (rs6000_init_builtins): Don't make TFmode use either IFmode or
9130 KFmode floating point nodes. Instead, have three separate nodes.
9131 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
9132 eventually moving the long double default to IEEE 128-bit floating
9134 (rs6000_opt_masks): Add -mfloat128.
9135 (struct rs6000_opt_var): Fix typo in comment.
9136 (init_cumulative_args): Initialize libcall field in
9138 (rs6000_function_arg): Treat library functions as if they had
9139 prototypes to prevent IEEE 128-bit support functions from passing
9140 arguments in both GPRs and vector registers.
9141 (rs6000_arg_partial_bytes): Likewise.
9143 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
9144 an option that can be turned on via -mcpu=<xxx>.
9146 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
9149 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9150 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
9151 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
9152 double is IBM extended double.
9154 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
9157 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
9159 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
9160 * genconditions.c: Define CHECKING_P in the generated code.
9161 * genextract.c: Use flag_checking in insn_extract.
9162 * gengtype.c (main): Remove conditional compilation.
9163 * gengtype.h: Likewise.
9165 2015-10-29 Jeff Law <law@redhat.com>
9167 PR tree-optimization/67892
9168 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
9170 (thread_through_normal_block): If we have seen a backedge, then
9171 do nothing. No longer call find_jump_threads_backwards here.
9172 (thread_across_edge): Use find_jump_threads_backwards to find
9173 jump threads if the old style threader was not successful.
9174 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
9175 gsi_last_nondebug_bb. Return NULL if the block does not end
9176 with a control statement.
9177 (find_jump_threads_backwards): Setup code moved here from
9178 tree-ssa-threadedge.c::thread_through_normal_block. Accept
9179 single edge argument instead of name & block.
9180 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
9183 2015-10-29 Tom de Vries <tom@codesourcery.com>
9185 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
9188 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9190 * omp-low.c (lower_omp_target): Remove unreachable code & merge
9193 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
9195 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
9197 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9199 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9200 guard_bb0 and use guard_bb throughout.
9202 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9204 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9207 2015-10-29 Richard Biener <rguenther@suse.de>
9210 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
9213 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
9215 * alias.c: Reorder #include statements and remove duplicates.
9217 * attribs.c: Likewise.
9218 * auto-inc-dec.c: Likewise.
9219 * auto-profile.c: Likewise.
9220 * bb-reorder.c: Likewise.
9221 * bt-load.c: Likewise.
9222 * builtins.c: Likewise.
9223 * caller-save.c: Likewise.
9224 * calls.c: Likewise.
9227 * cfganal.c: Likewise.
9228 * cfgbuild.c: Likewise.
9229 * cfgcleanup.c: Likewise.
9230 * cfgexpand.c: Likewise.
9231 * cfghooks.c: Likewise.
9232 * cfgloop.c: Likewise.
9233 * cfgloopanal.c: Likewise.
9234 * cfgloopmanip.c: Likewise.
9235 * cfgrtl.c: Likewise.
9236 * cgraph.c: Likewise.
9237 * cgraphbuild.c: Likewise.
9238 * cgraphclones.c: Likewise.
9239 * cgraphunit.c: Likewise.
9240 * cilk-common.c: Likewise.
9241 * combine-stack-adj.c: Likewise.
9242 * combine.c: Likewise.
9243 * compare-elim.c: Likewise.
9244 * convert.c: Likewise.
9245 * coverage.c: Likewise.
9246 * cppbuiltin.c: Likewise.
9247 * cprop.c: Likewise.
9249 * cselib.c: Likewise.
9250 * data-streamer-in.c: Likewise.
9251 * data-streamer-out.c: Likewise.
9252 * data-streamer.c: Likewise.
9253 * dbxout.c: Likewise.
9256 * debug.c: Likewise.
9257 * df-core.c: Likewise.
9258 * df-problems.c: Likewise.
9259 * df-scan.c: Likewise.
9261 * dojump.c: Likewise.
9262 * dominance.c: Likewise.
9263 * double-int.c: Likewise.
9265 * dumpfile.c: Likewise.
9266 * dwarf2asm.c: Likewise.
9267 * dwarf2cfi.c: Likewise.
9268 * dwarf2out.c: Likewise.
9269 * emit-rtl.c: Likewise.
9270 * except.c: Likewise.
9271 * explow.c: Likewise.
9272 * expmed.c: Likewise.
9274 * final.c: Likewise.
9275 * fixed-value.c: Likewise.
9276 * fold-const.c: Likewise.
9277 * function.c: Likewise.
9278 * fwprop.c: Likewise.
9280 * generic-match-head.c: Likewise.
9281 * ggc-common.c: Likewise.
9282 * gimple-builder.c: Likewise.
9283 * gimple-expr.c: Likewise.
9284 * gimple-fold.c: Likewise.
9285 * gimple-iterator.c: Likewise.
9286 * gimple-low.c: Likewise.
9287 * gimple-match-head.c: Likewise.
9288 * gimple-pretty-print.c: Likewise.
9289 * gimple-ssa-isolate-paths.c: Likewise.
9290 * gimple-ssa-strength-reduction.c: Likewise.
9291 * gimple-streamer-in.c: Likewise.
9292 * gimple-streamer-out.c: Likewise.
9293 * gimple-walk.c: Likewise.
9294 * gimple.c: Likewise.
9295 * gimplify-me.c: Likewise.
9296 * gimplify.c: Likewise.
9297 * godump.c: Likewise.
9298 * graph.c: Likewise.
9299 * graphite-poly.c: Likewise.
9300 * haifa-sched.c: Likewise.
9301 * hw-doloop.c: Likewise.
9302 * ifcvt.c: Likewise.
9303 * incpath.c: Likewise.
9304 * init-regs.c: Likewise.
9305 * internal-fn.c: Likewise.
9306 * ipa-chkp.c: Likewise.
9307 * ipa-comdats.c: Likewise.
9308 * ipa-cp.c: Likewise.
9309 * ipa-devirt.c: Likewise.
9310 * ipa-icf-gimple.c: Likewise.
9311 * ipa-icf.c: Likewise.
9312 * ipa-inline-analysis.c: Likewise.
9313 * ipa-inline-transform.c: Likewise.
9314 * ipa-inline.c: Likewise.
9315 * ipa-polymorphic-call.c: Likewise.
9316 * ipa-profile.c: Likewise.
9317 * ipa-prop.c: Likewise.
9318 * ipa-pure-const.c: Likewise.
9319 * ipa-ref.c: Likewise.
9320 * ipa-reference.c: Likewise.
9321 * ipa-split.c: Likewise.
9322 * ipa-utils.c: Likewise.
9323 * ipa-visibility.c: Likewise.
9325 * ira-build.c: Likewise.
9326 * ira-color.c: Likewise.
9327 * ira-conflicts.c: Likewise.
9328 * ira-costs.c: Likewise.
9329 * ira-emit.c: Likewise.
9330 * ira-lives.c: Likewise.
9333 * langhooks.c: Likewise.
9335 * lists.c: Likewise.
9336 * loop-doloop.c: Likewise.
9337 * loop-init.c: Likewise.
9338 * loop-invariant.c: Likewise.
9339 * loop-iv.c: Likewise.
9340 * loop-unroll.c: Likewise.
9341 * lower-subreg.c: Likewise.
9342 * lra-assigns.c: Likewise.
9343 * lra-coalesce.c: Likewise.
9344 * lra-constraints.c: Likewise.
9345 * lra-eliminations.c: Likewise.
9346 * lra-lives.c: Likewise.
9347 * lra-remat.c: Likewise.
9348 * lra-spills.c: Likewise.
9350 * lto-cgraph.c: Likewise.
9351 * lto-compress.c: Likewise.
9352 * lto-opts.c: Likewise.
9353 * lto-section-in.c: Likewise.
9354 * lto-section-out.c: Likewise.
9355 * lto-streamer-in.c: Likewise.
9356 * lto-streamer-out.c: Likewise.
9357 * lto-streamer.c: Likewise.
9358 * mode-switching.c: Likewise.
9359 * modulo-sched.c: Likewise.
9360 * omp-low.c: Likewise.
9361 * optabs.c: Likewise.
9362 * opts-global.c: Likewise.
9363 * passes.c: Likewise.
9364 * plugin.c: Likewise.
9365 * postreload-gcse.c: Likewise.
9366 * postreload.c: Likewise.
9367 * predict.c: Likewise.
9368 * print-tree.c: Likewise.
9369 * profile.c: Likewise.
9371 * realmpfr.c: Likewise.
9372 * recog.c: Likewise.
9374 * reg-stack.c: Likewise.
9375 * regcprop.c: Likewise.
9376 * reginfo.c: Likewise.
9377 * regrename.c: Likewise.
9378 * regstat.c: Likewise.
9379 * reload.c: Likewise.
9380 * reload1.c: Likewise.
9381 * reorg.c: Likewise.
9382 * resource.c: Likewise.
9383 * rtl-chkp.c: Likewise.
9384 * rtl-error.c: Likewise.
9385 * rtlanal.c: Likewise.
9386 * rtlhooks.c: Likewise.
9387 * sanopt.c: Likewise.
9388 * sched-deps.c: Likewise.
9389 * sched-ebb.c: Likewise.
9390 * sched-rgn.c: Likewise.
9392 * shrink-wrap.c: Likewise.
9393 * simplify-rtx.c: Likewise.
9394 * stack-ptr-mod.c: Likewise.
9395 * statistics.c: Likewise.
9397 * stor-layout.c: Likewise.
9398 * store-motion.c: Likewise.
9399 * stringpool.c: Likewise.
9400 * symtab.c: Likewise.
9401 * target-globals.c: Likewise.
9402 * targhooks.c: Likewise.
9403 * toplev.c: Likewise.
9404 * tracer.c: Likewise.
9405 * trans-mem.c: Likewise.
9406 * tree-affine.c: Likewise.
9407 * tree-call-cdce.c: Likewise.
9408 * tree-cfg.c: Likewise.
9409 * tree-cfgcleanup.c: Likewise.
9410 * tree-chkp-opt.c: Likewise.
9411 * tree-chkp.c: Likewise.
9412 * tree-chrec.c: Likewise.
9413 * tree-complex.c: Likewise.
9414 * tree-data-ref.c: Likewise.
9415 * tree-dfa.c: Likewise.
9416 * tree-diagnostic.c: Likewise.
9417 * tree-dump.c: Likewise.
9418 * tree-eh.c: Likewise.
9419 * tree-emutls.c: Likewise.
9420 * tree-if-conv.c: Likewise.
9421 * tree-inline.c: Likewise.
9422 * tree-into-ssa.c: Likewise.
9423 * tree-iterator.c: Likewise.
9424 * tree-loop-distribution.c: Likewise.
9425 * tree-nested.c: Likewise.
9426 * tree-nrv.c: Likewise.
9427 * tree-object-size.c: Likewise.
9428 * tree-outof-ssa.c: Likewise.
9429 * tree-parloops.c: Likewise.
9430 * tree-phinodes.c: Likewise.
9431 * tree-predcom.c: Likewise.
9432 * tree-pretty-print.c: Likewise.
9433 * tree-profile.c: Likewise.
9434 * tree-scalar-evolution.c: Likewise.
9435 * tree-sra.c: Likewise.
9436 * tree-ssa-address.c: Likewise.
9437 * tree-ssa-alias.c: Likewise.
9438 * tree-ssa-ccp.c: Likewise.
9439 * tree-ssa-coalesce.c: Likewise.
9440 * tree-ssa-copy.c: Likewise.
9441 * tree-ssa-dce.c: Likewise.
9442 * tree-ssa-dom.c: Likewise.
9443 * tree-ssa-dse.c: Likewise.
9444 * tree-ssa-forwprop.c: Likewise.
9445 * tree-ssa-ifcombine.c: Likewise.
9446 * tree-ssa-live.c: Likewise.
9447 * tree-ssa-loop-ch.c: Likewise.
9448 * tree-ssa-loop-im.c: Likewise.
9449 * tree-ssa-loop-ivcanon.c: Likewise.
9450 * tree-ssa-loop-ivopts.c: Likewise.
9451 * tree-ssa-loop-manip.c: Likewise.
9452 * tree-ssa-loop-niter.c: Likewise.
9453 * tree-ssa-loop-prefetch.c: Likewise.
9454 * tree-ssa-loop-unswitch.c: Likewise.
9455 * tree-ssa-loop.c: Likewise.
9456 * tree-ssa-math-opts.c: Likewise.
9457 * tree-ssa-operands.c: Likewise.
9458 * tree-ssa-phiopt.c: Likewise.
9459 * tree-ssa-phiprop.c: Likewise.
9460 * tree-ssa-pre.c: Likewise.
9461 * tree-ssa-propagate.c: Likewise.
9462 * tree-ssa-reassoc.c: Likewise.
9463 * tree-ssa-sccvn.c: Likewise.
9464 * tree-ssa-scopedtables.c: Likewise.
9465 * tree-ssa-sink.c: Likewise.
9466 * tree-ssa-strlen.c: Likewise.
9467 * tree-ssa-structalias.c: Likewise.
9468 * tree-ssa-tail-merge.c: Likewise.
9469 * tree-ssa-ter.c: Likewise.
9470 * tree-ssa-threadedge.c: Likewise.
9471 * tree-ssa-threadupdate.c: Likewise.
9472 * tree-ssa-uncprop.c: Likewise.
9473 * tree-ssa-uninit.c: Likewise.
9474 * tree-ssa.c: Likewise.
9475 * tree-ssanames.c: Likewise.
9476 * tree-stdarg.c: Likewise.
9477 * tree-streamer-in.c: Likewise.
9478 * tree-streamer-out.c: Likewise.
9479 * tree-streamer.c: Likewise.
9480 * tree-switch-conversion.c: Likewise.
9481 * tree-tailcall.c: Likewise.
9482 * tree-vect-data-refs.c: Likewise.
9483 * tree-vect-generic.c: Likewise.
9484 * tree-vect-loop-manip.c: Likewise.
9485 * tree-vect-loop.c: Likewise.
9486 * tree-vect-patterns.c: Likewise.
9487 * tree-vect-slp.c: Likewise.
9488 * tree-vect-stmts.c: Likewise.
9489 * tree-vectorizer.c: Likewise.
9490 * tree-vrp.c: Likewise.
9493 * ubsan.c: Likewise.
9494 * value-prof.c: Likewise.
9495 * var-tracking.c: Likewise.
9496 * varasm.c: Likewise.
9497 * varpool.c: Likewise.
9498 * vtable-verify.c: Likewise.
9500 * wide-int-print.cc: Likewise.
9501 * wide-int.cc: Likewise.
9502 * xcoffout.c: Likewise.
9504 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
9506 * Makefile.in (NO_PIE_CFLAGS): New.
9507 (NO_PIE_FLAG): Likewise.
9508 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9509 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9510 (BUILD_NO_PIE_CFLAGS): Likewise.
9511 (BUILD_NO_PIE_FLAG): Likewise.
9512 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
9513 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
9514 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
9515 $(BUILD_NO_PIE_CFLAGS).
9516 (BUILD_CXXFLAGS): Likewise.
9517 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
9518 $(BUILD_NO_PIE_FLAG).
9519 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
9520 (BUILD_NO_PIE_FLAG): Likewise.
9521 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9522 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9523 * configure: Regenerated.
9525 2015-10-29 Richard Biener <rguenther@suse.de>
9528 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
9529 unsigned conditonal negation to ABS_EXPR.
9531 2015-10-29 Richard Biener <rguenther@suse.de>
9533 * gimple-match-head.c (gimple_simplify): Remove premature checking
9534 of builtin_decl_implicit of function calls we simplify.
9536 2015-10-29 Bin Cheng <bin.cheng@arm.com>
9538 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
9539 (get_computation_cost_at): Ditto.
9540 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
9543 2015-10-28 Tom de Vries <tom@codesourcery.com>
9545 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
9548 2015-10-28 Jason Merrill <jason@redhat.com>
9550 * Makefile.in (TAGS): Include libcpp and libiberty.
9552 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9554 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
9555 (extract_omp_for_data): Remove OpenACC special handling of
9558 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
9559 (struct parallel): Update comment.
9560 (nvptx_reorg): Likewise.
9561 (nvptx_neuter): Cleanup whitespace.
9563 2015-10-28 Richard Henderson <rth@redhat.com>
9565 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
9567 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9570 * config/avr/predicates.md (low_io_address_operand): Don't
9571 consider MODE when computing upper bound.
9572 (io_address_operand): Likewise.
9574 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
9576 * fold-const.c (operand_equal_p): Do not verify that types are
9577 compatible for MEM_REFs.
9579 2015-10-28 Richard Biener <rguenther@suse.de>
9581 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
9582 in simplifying VEC_COND_EXPR conditions.
9584 2015-10-28 Tom de Vries <tom@codesourcery.com>
9586 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
9587 into vi_next of a full_var.
9589 2015-10-28 Tom de Vries <tom@codesourcery.com>
9591 * tree-ssa-structalias.c (new_var_info, make_heapvar)
9592 (make_constraint_from_restrict, make_constraint_from_global_restrict)
9593 (create_function_info_for, create_variable_info_for_1)
9594 (create_variable_info_for): Add and handle add_id parameter.
9595 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
9596 (init_base_vars): Add extra argument to calls to new_var_info.
9597 (get_vi_for_tree): Add extra argument to call to
9598 create_variable_info_for.
9599 (process_constraint, do_deref, process_all_all_constraints): Add extra
9600 argument to calls to new_scalar_tmp_constraint_exp.
9601 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
9602 argument to calls to make_heapvar.
9603 (make_restrict_var_constraints): Add extra argument to call to
9604 make_constraint_from_global_restrict.
9605 (intra_create_variable_infos): Add extra argument to call to
9606 create_variable_info_for_1.
9607 (ipa_pta_execute): Add extra argument to call to
9608 create_function_info_for.
9610 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9612 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
9613 (sibcall_value): Likewise.
9615 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9617 * config/nvptx/nvptx.h (struct machine_function): Add
9619 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
9620 nvptx_expand_oacc_join): Declare.
9621 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
9622 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
9623 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
9624 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
9625 UNSPECV_JOINING, UNSPECV_JOIN): New.
9626 (BITS, BITD): New mode iterators.
9627 (br_true_uni, br_false_uni): New.
9628 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
9629 (oacc_dim_size, oacc_dim_pos): New.
9630 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
9631 (oacc_fork, oacc_join): New.
9632 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
9633 (worker_load<mode>, worker_store<mode>): New.
9634 (nvptx_barsync): New.
9635 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
9636 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
9637 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
9638 worker_bcast_sym): New.
9639 (nvptx_option_override): Initialize worker broadcast buffer.
9640 (nvptx_emit_forking, nvptx_emit_joining): New.
9641 (nvptx_init_axis_predicate): New.
9642 (nvptx_declare_function_name): Init axis predicates.
9643 (nvptx_expand_call): Add fork/join markers around routine call.
9644 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
9645 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
9646 (nvptx_gen_vcast): New.
9647 (struct wcast_data_t): New.
9648 (enum propagate_mask): New.
9649 (nvptx_gen_wcast): New.
9650 (nvptx_print_operand): Add 'S' case.
9651 (struct parallel): New.
9652 (parallel::parallel, parallel::~parallel): New.
9653 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
9654 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
9655 nvptx_find_par, nvptx_discover_pars): New.
9656 (nvptx_propagate): New.
9657 (vprop_gen, nvptx_vpropagate): New.
9658 (wprop_gen, nvptx_wpropagate): New.
9660 (nvptx_single, nvptx_skip_par): New.
9661 (nvptx_process_pars, nvptx_neuter_pars): New.
9662 (ntptx_reorg): Split blocks, generate parallel structure, apply
9664 (nvptx_cannot_copy_insn_p): New.
9665 (nvptx_file_end): Emit worker broadcast decl.
9666 (nvptx_goacc_fork_join): New.
9667 (TARGET_CANNOT_COPY_INSN_P): Override.
9668 (TARGET_GOACC_FORK_JOIN): Override.
9670 2015-10-28 Richard Biener <rguenther@suse.de>
9672 * fold-const.c (negate_expr_p): Adjust the division case to
9673 properly avoid introducing undefined overflow.
9674 (fold_negate_expr): Likewise.
9676 2015-10-28 Richard Biener <rguenther@suse.de>
9678 PR tree-optimization/65962
9679 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9680 Avoid creating loop carried dependences also for outer loops
9681 of the loop a use to replace is in.
9683 2015-10-28 Richard Biener <rguenther@suse.de>
9685 * common.opt (fchecking): New flag controlling flag_checking.
9686 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
9687 * timevar.c (timer::print): Adjust output.
9688 * doc/invoke.texi (fchecking): Document.
9690 2015-10-28 Richard Biener <rguenther@suse.de>
9693 * fold-const.c (negate_expr_p): We cannot negate plus or minus
9694 if overflow is not wrapping. Likewise multiplication unless
9695 one operand is constant and not power of two.
9696 (fold_negate_expr): Adjust accordingly.
9698 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9700 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
9702 (is_oacc_parallel, is_oacc_kernels): New.
9703 (enclosing_target_ctx): May return NULL.
9704 (ctx_in_oacc_kernels_region): New.
9705 (check_oacc_kernel_gwv): New.
9706 (oacc_loop_or_target_p): Delete.
9707 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
9708 operands. Strip reductions fro kernels.
9709 (scan_omp_target): Don't calculate gwv mask.
9710 (lower_oacc_head_mark, lower_oacc_loop_marker,
9711 lower_oacc_head_tail): New.
9712 (struct oacc_collapse): New.
9713 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
9714 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9715 Remove OpenACC handling.
9716 (expand_oacc_for): New.
9717 (expand_omp_for): Call expand_oacc_for.
9718 (lower_omp_for): Call lower_oacc_head_tail.
9720 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
9722 * attribs.c (check_attribute_tables): New function, broken out from...
9723 (init_attributes): Use it.
9724 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
9725 gcc_checking_assert and checking_* functions to eliminate
9726 ENABLE_CHECKING conditionals.
9727 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
9728 (pass_expand::execute): Likewise.
9729 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
9730 * cgraphunit.c (mark_functions_to_output): Likewise.
9731 (cgraph_node::expand_thunk): Likewise.
9732 (symbol_table::compile): Likewise.
9733 * ddg.c (add_cross_iteration_register_deps): Likewise.
9734 (create_ddg_all_sccs): Likewise.
9735 * df-core.c (df_finish_pass, df_analyze): Likewise.
9736 * diagnostic-core.h: Likewise.
9737 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
9738 * dominance.c (calculate_dominance_info): Likewise.
9739 * dwarf2out.c (add_AT_die_ref): Likewise.
9740 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
9741 (loc_list_from_tree, gen_lexical_block_die): Likewise.
9742 gen_type_die_with_usage, gen_type_die): Likewise.
9743 (dwarf2out_decl): Likewise.
9744 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
9745 * except.c (duplicate_eh_regions): Likewise.
9746 * fwprop.c (register_active_defs, update_df_init): Likewise.
9747 (fwprop_init, fwprop_done): Likewise.
9748 (update_uses): Likewise.
9749 * ggc-page.c (ggc_grow): Likewise.
9750 * gimplify.c (gimplify_body): Likewise.
9751 (gimplify_hasher::equal): Likewise.
9752 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
9753 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
9755 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
9756 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
9757 * hash-table.h (::find_empty_slot_for_expand): Likewise.
9758 * ifcvt.c (if_convert): Likewise.
9759 * ipa-cp.c (ipcp_propagate_stage): Likewise.
9760 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
9761 (odr_type_p, odr_types_equivalent_p): Likewise.
9762 (add_type_duplicate, get_odr_type): Likewise.
9763 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
9764 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
9765 (sem_item_optimizer::verify_classes): Likewise.
9766 (sem_item_optimizer::traverse_congruence_split): Likewise.
9767 (sem_item_optimizer::checking_verify_classes): New.
9768 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
9770 * cfgrtl.c (commit_edge_insertions): Likewise.
9771 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
9772 (rtl_flow_call_edges_add): Likewise.
9773 * cgraph.c (symbol_table::create_edge): Likewise.
9774 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9775 * cgraph.h (symtab_node): Likewise.
9776 (symtab_node::checking_verify_symtab_nodes): Define.
9777 (cgraph_node::checking_verify_cgraph_nodes): Define.
9778 * cfghooks.h (checking_verify_flow_info): Define.
9779 * cfgloop.h (checking_verify_loop_structure): Define.
9780 * dominance.h (checking_verify_dominators): Define.
9781 * et-forest.c: Fix comment.
9782 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
9783 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9784 ENABLE_CHECKING conditionals.
9785 * ipa-inline-transform.c (save_inline_function_body): Likewise.
9786 * ipa-inline.c (inline_small_functions): Likewise.
9787 (early_inliner): Likewise.
9788 * ipa-inline.h (estimate_edge_growth): Likewise.
9789 * ipa-visibility.c (function_and_variable_visibility): Likewise.
9790 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
9791 (ipa_single_use): Likewise.
9792 * ira-int.h: Likewise.
9793 * ira.c (ira): Likewise.
9794 * loop-doloop.c (doloop_optimize_loops): Likewise.
9795 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
9796 * loop-invariant.c (move_loop_invariants): Likewise.
9797 * lra-assigns.c (lra_assign): Likewise.
9798 * lra-constraints.c (lra_constraints): Likewise.
9799 * lra-eliminations.c (lra_eliminate): Likewise.
9800 * lra-int.h (struct lra_reg): Likewise.
9801 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9802 (lra_create_live_ranges_1): Likewise.
9803 * lra-remat.c (create_remat_bb_data): Likewise.
9804 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
9806 (check_rtl): Always define. Remove incorrect guard around
9807 extract_constrain_insn call.
9808 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
9809 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9810 ENABLE_CHECKING conditionals.
9811 * lto-streamer-out.c (DFS::DFS): Likewise.
9812 (lto_output): Likewise.
9813 * lto-streamer.c (lto_streamer_init): Likewise.
9814 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
9815 expand_omp_target, execute_expand_omp): Likewise.
9816 (lower_omp_target): Likewise.
9817 * passes.c (execute_function_todo): Likewise.
9818 (execute_todo, execute_one_pass): Likewise.
9819 (verify_curr_properties): Always define.
9820 * predict.c (tree_estimate_probability: Use flag_checking,
9821 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9822 ENABLE_CHECKING conditionals.
9823 (propagate_freq): Likewise.
9824 * pretty-print.c (pp_format): Likewise.
9825 * real.c (real_to_decimal_for_mode): Likewise.
9826 * recog.c (split_all_insns): Likewise.
9827 * regcprop.c (kill_value_one_regno): Likewise.
9828 (copy_value): Likewise.
9829 (validate_value_data): Define unconditionally.
9830 * reload.c: Fix comment.
9831 * timevar.c: Include options.h
9832 * tree-ssa.h (checking_verify_ssa): Define.
9833 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
9834 * sched-deps.c (CHECK): Remove unused macro.
9835 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
9836 gcc_checking_assert and checking_* functions to eliminate
9837 ENABLE_CHECKING conditionals.
9838 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
9839 * sel-sched.c (struct moveop_static_params): Likewise.
9840 (find_best_reg_for_expr, move_cond_jump): Likewise.
9841 (move_op_orig_expr_not_found): Likewise.
9842 (code_motion_process_successors, move_op): Likewise.
9843 * ssa-iterators.h (first_readonly_imm_use): Likewise.
9844 (next_readonly_imm_use): Likewise.
9845 * store-motion.c (compute_store_table): Likewise.
9846 * symbol-summary.h (function_summary::function_summary): Likewise.
9847 * target.h (cumulative_args_t): Likewise.
9848 (get_cumulative_args, pack_cumulative_args): Likewise.
9849 * timevar.c: (timer::print): Likewise.
9850 * trans-mem.c (ipa_tm_execute): Likewise.
9851 * tree-cfg.c (move_stmt_op): Likewise.
9852 (move_sese_region_to_fn): Likewise.
9853 (gimple_flow_call_edges_add): Likewise.
9854 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9856 * tree-eh.c (remove_unreachable_handlers): Likewise.
9857 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
9858 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
9859 * tree-into-ssa.c (update_ssa): Likewise.
9860 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
9861 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
9862 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
9863 * tree-predcom.c (suitable_component_p): Likewise.
9864 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
9865 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
9866 * tree-ssa-live.c (verify_live_on_entry): Likewise.
9867 * tree-ssa-live.h (register_ssa_partition): Likewise.
9868 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
9869 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
9870 (tree_transform_and_unroll_loop): Likewise.
9871 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9872 * tree-ssa-operands.c (get_expr_operands): Likewise.
9873 * tree-ssa-propagate.c (replace_exp_1): Likewise.
9874 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9875 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
9876 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
9877 * tree-ssanames.c (release_ssa_name_fn): Likewise.
9878 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
9879 * tree-vect-loop-manip.c
9880 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
9881 (slpeel_checking_verify_cfg_after_peeling): Likewise.
9882 (vect_do_peeling_for_loop_bound): Likewise.
9883 (vect_do_peeling_for_alignment): Likewise.
9884 * tree-vrp.c (supports_overflow_infinity): Likewise.
9885 (set_value_range): Likewise.
9886 * tree.c (free_lang_data_in_cgraph): Likewise.
9887 * value-prof.c (gimple_remove_histogram_value): Likewise.
9888 (free_hist): Likewise.
9889 * var-tracking.c (canonicalize_values_star): Likewise.
9890 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
9892 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9894 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
9895 IFN_GOACC_LOOP): New.
9896 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
9897 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
9898 IFN_UNIQUE_OACC_TAIL_MARK.
9899 (enum ifn_goacc_loop_kind): New.
9900 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
9901 IFN_UNIQUE_OACC_JOIN cases.
9902 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
9903 (expand_GOACC_LOOP): New.
9904 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
9905 * omp-low.c: Include gimple-pretty-print.h.
9906 (struct oacc_loop): New.
9907 (enum oacc_loop_flags): New.
9908 (oacc_thread_numbers): New.
9909 (oacc_xform_loop): New.
9910 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
9911 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
9912 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
9913 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
9914 oacc_loop_discovery): New.
9915 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
9916 oacc_loop_process): New.
9917 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
9918 (execute_oacc_device_lower): Discover & process loops. Process
9920 * target.def (goacc.fork_join): Change sense of hook, clarify
9922 * doc/tm.texi: Regenerated.
9924 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9926 * target-insns.def (oacc_fork, oacc_join): Define.
9927 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
9928 (goacc.fork_join): New GOACC hook.
9929 * targhooks.h (default_goacc_fork_join): Declare.
9930 * omp-low.c (default_goacc_forkjoin): New.
9931 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
9932 * doc/tm.texi: Regenerate.
9934 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9936 * omp-low.c (oacc_init_rediction_array): New.
9937 (oacc_initialize_reduction_data): Initialize array.
9939 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9941 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
9943 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9945 * internal-fn.c (expand_UNIQUE): New.
9946 * internal-fn.h (enum ifn_unique_kind): New.
9947 * internal-fn.def (IFN_UNIQUE): New.
9948 * target-insns.def (unique): Define.
9949 * gimple.h (gimple_call_internal_unique_p): New.
9950 * gimple.c (gimple_call_same_target_p): Check internal fn
9952 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
9953 * tree-ssa-threadedge.c
9954 (record_temporary_equivalences_from_stmts): Likewise.
9955 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
9957 2015-10-27 Richard Henderson <rth@redhat.com>
9960 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
9961 narrowing subregs on SSE and MMX registers.
9962 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
9963 appear to be sub-words of multi-register pseudos must be rejected.
9964 * doc/tm.texi: Regenerate.
9966 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9969 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
9970 operands[0] is a reg before taking its REGNO in split condition.
9971 (*movdi_aarch64): Likewise.
9973 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9975 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
9976 Handle floating point inner modes properly.
9978 2015-10-27 Alan Hayward <alan.hayward@arm.com>
9981 (vectorizable_live_operation): Change iterator.
9983 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
9984 Aditya Kumar <aditya.k7@samsung.com>
9986 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
9987 function to schedule based on isl_schedule_node.
9988 (get_schedule_map_st): New schedule optimizer based on
9990 (scop_get_domains): New. Return the isl_union_set containing the
9991 domains of all the pbbs.
9992 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
9994 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
9997 * calls.c (prepare_call_address): Don't handle -fno-plt here.
9998 * config/i386/i386.c (ix86_expand_call): Generate indirect call
9999 via GOT for -fno-plt. Support indirect call via GOT for x32.
10000 * config/i386/predicates.md (sibcall_memory_operand): Allow
10001 GOT memory operand.
10003 2015-10-27 Richard Biener <rguenther@suse.de>
10005 PR tree-optimization/68104
10006 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
10007 strided access check ...
10008 (vect_compute_data_refs_alignment): ... here.
10010 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
10011 Joseph Myers <joseph@codesourcery.com>
10012 Mark Shinwell <shinwell@codesourcery.com>
10013 Andrew Stubbs <ams@codesourcery.com>
10014 Rich Felker <dalias@libc.org>
10016 * config.gcc: Handle --enable-fdpic.
10017 * config/sh/constraints.md (Ccl): New constraint.
10018 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
10019 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
10021 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
10023 * config/sh/sh-protos.h (function_symbol_result): New struct.
10024 (function_symbol): Return function_symbol_result.
10025 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
10027 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
10029 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
10030 (sh_option_override): Force -fPIC if FDPIC is in effect.
10031 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
10032 UNSPEC_GOTOFFFUNCDESC cases.
10033 (prepare_move_operands): Use FDPIC initial GOT register for
10034 TLS-related GOT access; inhibit cross-section address offset constants
10036 (sh_assemble_integer): New function.
10037 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
10038 PC-relative call sites.
10039 (expand_ashiftrt): Adapt invocation of function_symbol.
10040 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
10041 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
10042 UNSPEC_GOTOFFFUNCDESC.
10043 (legitimize_pic_address): Resolve function symbols to function
10044 descriptors for FDPIC. Do not use GOT-relative addressing for local
10045 data that may be read-only on FDPIC.
10046 (sh_emit_storesi, sh_emit_storehi): New functions.
10047 (sh_trampoline_init): Generate FDPIC trampolines.
10048 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
10049 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
10050 (sh_output_mi_thunk): Generate FDPIC call.
10051 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
10052 FDPIC, generate call site labels to use PC-relative addressing rather
10053 than GOT-relative addressing.
10054 (sh_conditional_register_usage): Make PIC register fixed and call used
10055 when FDPIC is in effect.
10056 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
10057 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
10058 sh_get_fdpic_reg_initial_val): New functions.
10059 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
10061 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
10062 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
10063 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
10064 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
10066 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
10067 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
10068 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
10069 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
10071 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
10072 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
10073 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
10074 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
10075 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
10076 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
10077 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
10078 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
10079 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
10080 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
10081 block_move_real, block_lump_real, block_move_real_i4,
10082 block_lump_real_i4): Add support for FDPIC calls.
10083 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
10084 call_value_pop): Adjust for new function_symbol signature.
10085 * config/sh/sh.opt (-mfdpic): New option.
10086 * doc/install.texi (Options specification): Document --enable-fdpic.
10087 * doc/invoke.texi (SH Options): Document -mfdpic.
10090 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
10092 PR tree-optimization/65963
10093 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
10094 LSHIFT_EXPRs as equivalent MULT_EXPRs.
10096 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10099 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
10100 * config/arm/constraints.md (Dp): Update callsite.
10101 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
10103 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10105 * builtins.c (fold_builtin_load_exponent): Rename to...
10106 (fold_const_builtin_load_exponent): ...this and only handle
10107 constant arguments.
10108 (fold_builtin_2): Update accordingly.
10109 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
10111 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10113 * builtins.c (fold_builtin_logb): Rename to...
10114 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
10115 (fold_builtin_significand): Rename to...
10116 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
10117 (fold_builtin_1): Update accordingly.
10119 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10121 * builtins.c (fold_builtin_fmin_fmax): Delete.
10122 (fold_builtin_2): Handle constant fmin and fmax arguments here.
10123 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
10125 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
10127 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
10128 for register extension into sign and zero register extension.
10129 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
10130 for sign and zero register extension.
10131 (cortexa57_addrcost_table): Likewise.
10132 (xgene1_addrcost_table): Likewise.
10134 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10136 * fold-const.c (fold_minmax): Delete.
10137 (fold_binary_loc): Don't call it.
10138 * match.pd: Add rules previously handled by fold_minmax.
10140 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10142 * builtins.c (fold_builtin_fma): Remove constant handling.
10143 (fold_builtin_3): Handle constant fma arguments here.
10145 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10147 * builtins.c (fold_builtin_fabs): Remove constant handling.
10148 (fold_builtin_abs): Likewise.
10150 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10152 * builtins.c (fold_builtin_copysign): Delete.
10153 (fold_builtin_2): Handle constant copysign arguments here.
10154 * match.pd: Add rules previously handled by fold_builtin_copysign.
10156 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10158 * builtins.c (fold_builtin_signbit): Delete.
10159 (fold_builtin_2): Handle constant signbit arguments here.
10160 * match.pd: Add rules previously handled by fold_builtin_signbit.
10162 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10164 * match.pd: Handle sqrt(x) cmp 0 specially.
10166 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
10168 * tree-vect-generic.c (expand_vector_operations_1): Check
10169 optab type before using it.
10171 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10173 * config/aarch64/aarch64-protos.h
10174 (struct tune_params): Add autoprefetcher_model field.
10175 * config/aarch64/aarch64.c: Include params.h
10176 (generic_tunings): Specify autoprefetcher_model value.
10177 (cortexa53_tunings): Likewise.
10178 (cortexa57_tunings): Likewise.
10179 (cortexa72_tunings): Likewise.
10180 (thunderx_tunings): Likewise.
10181 (xgene1_tunings): Likewise.
10182 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
10183 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
10184 (aarch64_override_options_internal): Set
10185 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
10187 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10189 * builtins.c (fold_builtin_exponent): Delete.
10190 (fold_builtin_2): Handle constant expN arguments here.
10191 * match.pd: Fold expN(logN(x)) -> x.
10193 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10195 * builtins.c (fold_builtin_powi): Delete.
10196 (fold_builtin_2): Handle constant powi arguments here.
10197 * match.pd: Add rules previously handled by fold_builtin_powi.
10199 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10201 * builtins.c (fold_builtin_pow): Delete in favor of...
10202 (fold_const_builtin_pow): ...this new function. Only handle constant
10204 (fold_builtin_2): Update accordingly.
10205 * match.pd: Add rules previously handled by fold_builtin_pow.
10207 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10209 * builtins.c (fold_builtin_hypot): Delete.
10210 (fold_builtin_2): Handle constant hypot arguments here.
10211 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
10212 hypot(x, x) to fabs(x)*sqrt(2).
10214 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10216 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
10217 instead of make_ssa_name if not yet in SSA form.
10219 2015-10-27 Richard Biener <rguenther@suse.de>
10221 * cfg.c (free_edge): Add function argument and use it instead of cfun.
10222 (clear_edges): Likewise.
10223 * cfg.h (clear_edges): Adjust prototype.
10224 * cfgexpand.c (pass_expand::execute): Adjust.
10225 * cfgloop.c (release_recorded_exits): Add function argument and use
10226 it instead of cfun.
10227 * cfgloop.h (release_recorded_exits): Adjust prototype.
10228 (loops_state_satisfies_p): Add overload with function argument.
10229 (loops_state_set): Likewise.
10230 (loops_state_clear): Likewise.
10231 (struct loop_iterator): Add function argument to constructor
10232 and iterator and use it instead of cfun.
10233 (FOR_EACH_LOOP_FN): New macro.
10234 (loop_optimizer_finalize): Add overload with function argument.
10235 * loop-init.c (loop_optimizer_init): Adjust.
10236 (fix_loop_structure): Likewise.
10237 (loop_optimizer_finaliz): Add function argument and use it
10239 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
10240 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
10241 * cgraph.c (release_function_body): Do not push/pop cfun.
10242 * final.c (rest_of_clean_state): Adjust.
10243 * graphite.c (graphite_finalize): Likewise.
10244 * tree-ssa-copy.c (fini_copy_prop): Likewise.
10245 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10246 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
10247 (tree_unroll_loops_completely): Likewise.
10248 (pass_complete_unrolli::execute): Likewise.
10249 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
10250 Add function argument and use it instead of cfun.
10251 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
10253 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
10254 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
10256 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
10257 * tree-ssanames.c (fini_ssanames): Add function argument and use it
10259 * tree-ssanames.c (fini_ssanames): Adjust prototype.
10260 * tree-vrp.c (execute_vrp): Adjust.
10261 * value-prof.c (free_histograms): Add function argument and use it
10263 * value-prof.h (free_histograms): Adjust prototype.
10265 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
10267 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
10268 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
10269 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
10271 2015-10-27 Tom de Vries <tom@codesourcery.com>
10273 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
10276 2015-10-27 Bin Cheng <bin.cheng@arm.com>
10278 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
10279 (inv_can_prop_to_addr_use): New function.
10280 (record_use): Call can_prop_to_addr_uses, set the new field.
10281 (get_inv_cost): Count cost if inv can't be propagated into its
10284 2015-10-26 Doug Evans <dje@google.com>
10286 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
10288 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
10290 * match.pd (fold_widened_comparison): Apply simplifications to all
10293 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
10295 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
10296 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
10297 * doc/tm.texi: Regenerated.
10298 * reorg.c (dbr_schedule): Use new hook.
10299 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
10301 2015-10-26 Jeff Law <law@redhat.com>
10303 PR tree-optimization/68013
10304 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10305 Make sure the first block in the path is in VISITED_BBs.
10307 2015-10-26 Richard Biener <rguenther@suse.de>
10308 Dominik Vogt <vogt@linux.vnet.ibm.com>
10310 PR middle-end/67443
10311 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
10312 Properly prune ref->ref for accesses outside of ref.
10314 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10316 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
10317 new statements to be inserted if inplace. Allow calls to have
10318 nonempty sequences.
10320 2015-10-26 Richard Biener <rguenther@suse.de>
10322 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
10323 (do_valueize): New function.
10324 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
10326 * tree-ssa-threadedge.c: Remove builtins.h include, include
10328 (fold_assignment_stmt): Remove.
10329 (threadedge_valueize): New function.
10330 (record_temporary_equivalences_from_stmts): Use
10331 gimple_fold_stmt_to_constant_1, note additional cleanup
10334 2015-10-26 Richard Biener <rguenther@suse.de>
10336 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
10337 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
10339 2015-10-26 Alan Hayward <alan.hayward@arm.com>
10341 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
10342 VEC_COND_EXPR types.
10344 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10346 * auto-inc-dec.c (insert_move_insn_before): Delete.
10347 (attempt_change): Remember to cost the simple move in the
10348 FORM_PRE_ADD and FORM_POST_ADD cases.
10350 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
10353 * config/sh/sh.c (sh_vector_mode_supported_p): Use
10354 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
10356 2015-10-26 Tom de Vries <tom@codesourcery.com>
10358 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
10359 factored out of ...
10360 (intra_create_variable_infos): ... here.
10362 2015-10-26 Tom de Vries <tom@codesourcery.com>
10364 * tree-ssa-structalias.c (intra_create_variable_infos): Add
10365 restrict_pointer_p and recursive_restrict_p variables.
10367 2015-10-26 Tom de Vries <tom@codesourcery.com>
10369 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
10370 get_vi_for_tree call.
10372 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10374 PR middle-end/67989
10375 * optabs.c (expand_atomic_compare_and_swap): Handle case when
10376 ptarget_oval or ptarget_bool are const0_rtx.
10378 2015-10-26 Christian Bruel <christian.bruel@st.com>
10380 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
10381 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
10382 * cp/method.c (implicitly_declare_fn): Likewise.
10383 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
10384 * java/class.c (add_method_1): Likewise.
10386 2015-10-26 Richard Biener <rguenther@suse.de>
10388 * alloc-pool.h (base_pool_allocator): Use placement new.
10389 (base_pool_allocator::remove): Likewise. Compute size outside of
10392 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10394 * builtins.c (do_real_to_int_conversion): New function.
10395 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
10396 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
10398 * match.pd: Add rules previously handled by fold_fixed_mathfn
10399 and fold_builtin_int_roundingfn.
10401 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10403 * match.pd: Use macros to define built-in operator lists.
10405 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
10406 Richard Biener <rguenther@suse.de>
10408 * genmatch.c (dt_simplify::gen): Skip captures that are
10409 part of the result.
10410 (parser::parse_expr): Allow captures in results too.
10411 * builtins.c (fold_builtin_cexp): Delete.
10412 (fold_builtin_1): Handle constant cexp arguments here.
10413 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
10415 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
10417 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
10418 conditional compilation.
10419 (base_pool_allocator::remove): Use flag_checking.
10421 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
10423 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
10425 PR middle-end/68079
10426 * dojump.c (do_compare_and_jump): Canonicalize both function and
10429 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
10432 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
10435 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10438 * ipa-polymorphic-call.c
10439 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
10440 instance offset with offset of outer type.
10442 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10444 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
10446 2015-10-23 Caroline Tice <cmtice@google.com>
10448 (from Richard Biener
10449 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
10450 call to iterative_hash_host_wide_int.
10452 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10454 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
10457 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10459 * tree-vect-generic.c (expand_vector_operations_1): Check
10460 optab exists before use it.
10462 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10464 * tree-vect-generic.c (expand_vector_condition): Avoid
10465 uninitialized variable warning.
10467 2015-10-23 Jeff Law <law@redhat.com>
10469 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
10471 (execute_todo): Call it here.
10472 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
10474 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
10476 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10477 Szabolcs Nagy <szabolcs.nagy@arm.com>
10479 * config.gcc (enable_secureplt): Add *-linux*-musl*.
10481 2015-10-23 Jeff Law <law@redhat.com>
10483 PR tree-optimization/67830
10484 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10485 Explicitly verify the mask has no bits outside the type of
10486 the innermost operands.
10488 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10489 Szabolcs Nagy <szabolcs.nagy@arm.com>
10491 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10492 (MUSL_DYNAMIC_LINKER64): Define.
10493 (GNU_USER_DYNAMIC_LINKER32): Update.
10494 (GNU_USER_DYNAMIC_LINKER64): Update.
10495 (CHOOSE_DYNAMIC_LINKER): Update.
10497 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
10498 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
10499 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10500 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10501 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10502 (CHOOSE_DYNAMIC_LINKER): Update.
10503 (INCLUDE_DEFAULTS): Redefine.
10505 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
10507 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10509 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
10510 comparing addresses.
10512 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10514 * fold-const.c (operand_equal_p): Handle matching of vector
10517 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10519 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
10521 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
10522 Andrew Pinski <apinski@cavium.com>
10524 PR rtl-optimization/67736
10525 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
10528 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10530 PR middle-end/68066
10531 * tree.c (build_truth_vector_type): Support BLK mode
10532 returned for boolean vector.
10534 2015-10-23 Alan Hayward <alan.hayward@arm.com>
10536 PR tree-optimization/65947
10538 (vect_is_simple_reduction_1): Find condition reductions.
10539 (vect_model_reduction_cost): Add condition reduction costs.
10540 (get_initial_def_for_reduction): Add condition reduction initial var.
10541 (vect_create_epilog_for_reduction): Add condition reduction epilog.
10542 (vectorizable_reduction): Condition reduction support.
10543 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
10544 * doc/sourcebuild.texi (Vector-specific attributes): Document
10547 2015-10-23 Richard Biener <rguenther@suse.de>
10549 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
10552 2015-10-23 Richard Biener <rguenther@suse.de>
10553 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10555 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
10556 into (A ^ B) - B to match.pd
10557 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
10559 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
10561 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
10563 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
10565 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
10567 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
10568 INTEGER_CST@1)): New simplifier.
10570 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
10572 * builtins.c (integer_valued_real_p): Move to fold-const.c.
10573 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
10574 (fold_builtin_ceil, fold_builtin_round): Delete.
10575 (fold_builtin_1): Handle constant trunc, floor, ceil and round
10577 * convert.c (convert_to_real): Remove narrowing of rounding
10579 * fold-const.h (integer_valued_real_unary_p)
10580 (integer_valued_real_binary_p, integer_valued_real_call_p)
10581 (integer_valued_real_single_p, integer_valued_real_p): Declare.
10582 * fold-const.c (tree_single_nonnegative_warnv_p): Move
10583 name_registered_for_update_p check to SSA_NAME case statement.
10584 Don't call tree_simple_nonnegative_warnv_p for SSA names.
10585 (integer_valued_real_unary_p, integer_valued_real_binary_p)
10586 (integer_valued_real_call_p, integer_valued_real_single_p)
10587 (integer_valued_real_invalid_p): New functions.
10588 (integer_valued_real_p): Move from fold-const.c and rework
10589 to call the functions above. Handle SSA names.
10590 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
10591 * gimple-fold.c (gimple_assign_integer_valued_real_p)
10592 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
10593 (gimple_stmt_integer_valued_real_p): New functions.
10594 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
10595 Fold f(x)->x for the same f if x is known to be integer-valued.
10596 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
10597 the result. Canonicalize floor(x) as trunc(x) if x is
10600 2015-10-23 Tom de Vries <tom@codesourcery.com>
10602 * tree-ssa-structalias.c (intra_create_variable_infos): Use
10603 make_constraint_from.
10605 2015-10-23 Tom de Vries <tom@codesourcery.com>
10607 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
10608 setting of is_full_var in case of a single field.
10610 2015-10-22 Martin Sebor <msebor@redhat.com>
10613 * config/i386/i386.opt: Add missing periods to the ends of sentences.
10614 * config/msp430/msp430.opt: Same.
10616 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
10618 * doc/extend.exp (Global Register Variables): Rewrite.
10620 2015-10-22 Jeff Law <law@redhat.com>
10622 * genattrtab.c (main): If we do not have any annul-true or annul-false
10623 slots, then write out a dummy eligible_for_annul_true or
10624 eligible_for_annul_false as needed.
10626 2015-10-22 Nick Clifton <nickc@redhat.com>
10628 * config/msp430/msp430.opt: Add -msilicon-errata and
10629 -msilicon-errata-warn.
10630 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
10632 * doc/invoke.texi: Document new options.
10634 2015-10-22 Richard Biener <rguenther@suse.de>
10636 PR tree-optimization/58497
10637 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
10638 (expand_vector_operations_1): Use it. Lower operations on
10639 all uniform vectors to scalar operations if the HW supports it.
10641 2015-10-22 Richard Biener <rguenther@suse.de>
10643 PR tree-optimization/19049
10644 PR tree-optimization/65962
10645 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
10646 to strided accesses if single-element interleaving doesn't work.
10648 2015-10-22 Richard Biener <rguenther@suse.de>
10650 PR middle-end/68046
10651 PR middle-end/61893
10652 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
10653 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
10654 (expand_unop): Likewise.
10656 2015-10-22 Richard Biener <rguenther@suse.de>
10658 * fold-const.c (fold_addr_of_array_ref_difference): Properly
10659 convert operands before folding a MINUS_EXPR.
10660 (fold_binary_loc): Move simplification of MINUS_EXPR on
10661 converted POINTER_PLUS_EXPRs ...
10662 * match.pd: ... here.
10664 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
10666 * builtins.c (fold_builtin_tan): Delete.
10667 (fold_builtin_1): Handle constant tan arguments here.
10668 * match.pd: Simplify (tan (atan x)) to x.
10670 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
10672 * builtins.c (fold_builtin_cproj): Delete.
10673 (fold_builtin_1): Handle constant arguments here.
10674 (build_complex_cproj): Move and rename to...
10675 * tree.c: (build_complex_inf): ...this.
10676 * tree.h (build_complex_inf): Declare.
10677 * match.pd: Fold cproj(x)->x if x has no infinity.
10678 Use build_complex_inf for existing cproj rules.
10680 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10683 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
10684 already have a comparison result.
10686 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10689 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
10690 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
10691 (aarch64_classify_address): Likewise.
10692 (aarch64_secondary_reload): Likewise.
10693 (aarch64_override_options_after_change_1): Adjust.
10694 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10695 Use aarch64_nopcrelative_literal_loads.
10696 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10697 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
10700 2015-10-21 Martin Sebor <msebor@redhat.com>
10703 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
10704 (print_filtered_help): Reference aliased option's name and encourage
10705 readers to use it in preference to the alias if the former is not
10706 documented. Mention when using an option is diagnosed.
10707 * gcc.c (display_help): End each sentence with a period.
10709 * common.opt: End each sentence that describes an option with
10711 * config/aarch64/aarch64.opt: Same.
10712 * config/alpha/alpha.opt: Same.
10713 * config/arc/arc.opt: Same.
10714 * config/arm/arm.opt: Same.
10715 * config/avr/avr.opt: Same.
10716 * config/bfin/bfin.opt: Same.
10717 * config/c6x/c6x.opt: Same.
10718 * config/cr16/cr16.opt: Same.
10719 * config/cris/cris.opt: Same.
10720 * config/cris/linux.opt: Same.
10721 * config/darwin.opt: Same.
10722 * config/epiphany/epiphany.opt: Same.
10723 * config/fr30/fr30.opt: Same.
10724 * config/frv/frv.opt: Same.
10725 * config/ft32/ft32.opt: Same.
10726 * config/g.opt: Same.
10727 * config/h8300/h8300.opt: Same.
10728 * config/i386/cygming.opt: Same.
10729 * config/i386/djgpp.opt: Same.
10730 * config/i386/i386.opt: Same.
10731 * config/i386/interix.opt: Same.
10732 * config/i386/mingw-w64.opt: Same.
10733 * config/i386/mingw.opt: Same.
10734 * config/ia64/ia64.opt: Same.
10735 * config/ia64/ilp32.opt: Same.
10736 * config/iq2000/iq2000.opt: Same.
10737 * config/linux.opt: Same.
10738 * config/lm32/lm32.opt: Same.
10739 * config/lynx.opt: Same.
10740 * config/m32c/m32c.opt: Same.
10741 * config/m32r/m32r.opt: Same.
10742 * config/m68k/ieee.opt: Same.
10743 * config/m68k/m68k.opt: Same.
10744 * config/mcore/mcore.opt: Same.
10745 * config/mep/mep.opt: Same.
10746 * config/microblaze/microblaze.opt: Same.
10747 * config/mips/mips.opt: Same.
10748 * config/mmix/mmix.opt: Same.
10749 * config/mn10300/mn10300.opt: Same.
10750 * config/moxie/moxie.opt: Same.
10751 * config/msp430/msp430.opt: Same.
10752 * config/nios2/elf.opt: Same.
10753 * config/nios2/nios2.opt: Same.
10754 * config/nvptx/nvptx.opt: Same.
10755 * config/pa/pa-hpux.opt: Same.
10756 * config/pa/pa-hpux1010.opt: Same.
10757 * config/pa/pa-hpux1111.opt: Same.
10758 * config/pa/pa-hpux1131.opt: Same.
10759 * config/pa/pa.opt: Same.
10760 * config/pa/pa64-hpux.opt: Same.
10761 * config/pdp11/pdp11.opt: Same.
10762 * config/rl78/rl78.opt: Same.
10763 * config/rs6000/476.opt: Same.
10764 * config/rs6000/aix64.opt: Same.
10765 * config/rs6000/darwin.opt: Same.
10766 * config/rs6000/linux64.opt: Same.
10767 * config/rs6000/rs6000.opt: Same.
10768 * config/rs6000/sysv4.opt: Same.
10769 * config/s390/s390.opt: Same.
10770 * config/s390/tpf.opt: Same.
10771 * config/sh/sh.opt: Same.
10772 * config/sol2.opt: Same.
10773 * config/sparc/long-double-switch.opt: Same.
10774 * config/sparc/sparc.opt: Same.
10775 * config/spu/spu.opt: Same.
10776 * config/stormy16/stormy16.opt: Same.
10777 * config/tilegx/tilegx.opt: Same.
10778 * config/tilepro/tilepro.opt: Same.
10779 * config/v850/v850.opt: Same.
10780 * config/vax/vax.opt: Same.
10781 * config/visium/visium.opt: Same.
10782 * config/vms/vms.opt: Same.
10783 * config/vxworks.opt: Same.
10784 * config/xtensa/xtensa.opt: Same.
10786 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10787 Sebastian Pop <s.pop@samsung.com>
10789 * graphite-scop-detection.c (parameter_index_in_region): Update call to
10790 invariant_in_sese_p_rec.
10791 * graphite-sese-to-poly.c (extract_affine): Same.
10792 * sese.c (invariant_in_sese_p_rec): Pass in an extra
10793 parameter has_vdefs.
10794 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
10795 variable depends on virtual definitions in the current region.
10796 * sese.h (invariant_in_sese_p_rec): Update declaration.
10798 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10799 Sebastian Pop <s.pop@samsung.com>
10801 * graphite-scop-detection.c (build_scops): Do not handle scops
10802 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
10803 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
10805 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
10807 * config.in: Regenerate.
10808 * configure: Regenerate.
10809 * configure.ac (CHECKING_P): Define.
10810 * system.h: Use CHECKING_P.
10812 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10815 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
10816 is negative we don't know the type.
10817 (check_stmt_for_type_change): Skip constructors of non-polymorphic
10818 types as those won't help devirutalization.
10820 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10822 * fold-const.c (operand_equal_p): Add code matching empty constructors.
10824 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
10826 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
10828 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
10829 Add comments on sign of the result.
10830 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
10831 Recurse on operand #1 instead of operand #0.
10832 <CEIL_MOD_EXPR>: Do not recurse.
10833 <ROUND_MOD_EXPR>: Likewise.
10835 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10837 * cfgrtl.c (pass_free_cfg::execute): Adjust.
10838 * final.c (dbr_sequence_length): Always define.
10839 (shorten_branches): Adjust.
10840 * genattr-common.c (main): Always define DELAY_SLOTS.
10841 * genattr.c (main): Unconditionally declare functions and define
10842 macros related to delay slots.
10843 * genattrtab.c (write_eligible_delay): Adjust.
10844 (main): Always write out delay slot functions.
10845 * opts.c (default_options_table): Adjust.
10846 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
10847 (redirect_with_delay_list_safe_p): Likewise.
10848 (fill_simple_delay_slots): Likewise.
10849 (fill_slots_from_thread): Likewise.
10850 (make_return_insns): Likewise.
10851 (dbr_schedule): Likewise.
10852 (rest_of_handle_delay_slots): Likewise.
10853 (pass_delay_slots::gate): Likewise.
10854 * toplev.c (process_options): Likewise.
10856 2015-10-21 Richard Henderson <rth@redhat.com>
10858 * targhooks.c (default_addr_space_pointer_mode): Remove check
10859 for generic address space.
10860 (default_addr_space_address_mode): Likewise.
10861 (default_addr_space_valid_pointer_mode): Likewise.
10862 (default_addr_space_legitimate_address_p): Likewise.
10863 (default_addr_space_legitimize_address): Likewise.
10864 * target.def (addr_space.pointer_mode): Update documentation
10865 of default behavior.
10866 (addr_space.address_mode): Likewise.
10869 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
10872 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10874 * builtins.c (fold_builtin_cabs): Delete.
10875 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10876 * match.pd: Add rules previously handled by fold_builtin_cabs.
10878 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10880 * fold-const.h (fold_strip_sign_ops): Delete.
10881 * fold-const.c (fold_strip_sign_ops): Likewise.
10882 (fold_unary_loc, fold_binary_loc): Remove calls to it.
10883 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
10884 (fold_builtin_ccos): Delete.
10885 (fold_builtin_pow): Don't call fold_strip_sign_ops.
10886 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
10887 Remove fndecl argument.
10888 (fold_builtin_1): Update calls accordingly. Handle constant
10889 cos, cosh, ccos and ccosh here.
10891 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10893 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
10894 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
10895 * common.opt (fssa-backprop): New option.
10896 * fold-const.h (negate_mathfn_p): Declare.
10897 * fold-const.c (negate_mathfn_p): Make public.
10898 * timevar.def (TV_TREE_BACKPROP): New.
10899 * tree-pass.h (make_pass_backprop): Declare.
10900 * passes.def (pass_backprop): Add.
10901 * gimple-ssa-backprop.c: New file.
10903 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10904 Sebastian Pop <s.pop@samsung.com>
10906 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
10907 Do not call create_empty_if_region_on_edge when cond_expr is true.
10908 (translate_isl_ast_node_for): Check whether a guard has been generated.
10910 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10912 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
10913 (operator=): Removed.
10914 (dr_info): Make alias_set number the last argument with default
10915 value of invalid_alias_set.
10916 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
10918 (rewrite_reductions_out_of_ssa): Iterate only through the
10919 basic blocks which are inside region.
10920 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
10921 * sese.h (struct sese_l): Removed assignment operator.
10922 (split_region_for_bb): Removed dead code.
10924 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10926 * graphite-poly.h (struct dr_info): Removed conversion constructor.
10927 (struct scop): Renamed scop::region to scop::scop_info
10928 (scop_set_region): Same.
10929 (SCOP_REGION): Removed
10930 (SCOP_CONTEXT): Removed.
10931 (POLY_SCOP_P): Removed.
10932 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
10933 Rename scop->region to scop->scop_info.
10934 (add_parameters_to_ivs_params): Same.
10935 (graphite_regenerate_ast_isl): Same.
10936 * graphite-poly.c (new_scop): Same.
10938 (print_scop_params): Same.
10939 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
10940 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
10941 (dot_all_scops_1): Rename scop->region to scop->scop_info.
10942 (scop_detection::nb_pbbs_in_loops): Same.
10943 (find_scop_parameters): Same.
10944 (try_generate_gimple_bb): Same.
10945 (gather_bbs::before_dom_children): Same.
10946 (gather_bbs::after_dom_children): Same.
10947 (build_scops): Same.
10948 * graphite-sese-to-poly.c (build_scop_scattering): Same.
10949 (extract_affine_chrec): Same.
10950 (extract_affine): Same.
10951 (set_scop_parameter_dim): Same.
10952 (build_loop_iteration_domains): Same.
10953 (create_pw_aff_from_tree): Same.
10954 (add_param_constraints): Same.
10955 (build_scop_iteration_domain): Same.
10956 (build_scop_drs): Same.
10957 (analyze_drs_in_stmts): Same.
10958 (insert_out_of_ssa_copy_on_edge): Same.
10959 (rewrite_close_phi_out_of_ssa):Same.
10960 (rewrite_reductions_out_of_ssa):Same.
10961 (handle_scalar_deps_crossing_scop_limits):Same.
10962 (rewrite_cross_bb_scalar_deps):Same.
10963 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
10964 (build_poly_scop):Same.
10965 (build_alias_set): Use pointer to dr_info.
10966 * graphite.c (print_graphite_scop_statistics):
10967 (graphite_transform_loops):
10968 * sese.h (struct sese_l): Remove conversion constructor.
10970 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10972 PR middle-end/67966
10973 * tree.c (verify_type): Verify that TYPE_MODE match
10974 between TYPE_CANONICAL and type.
10975 * expr.c (store_expr_with_bounds): Revert my previous change.
10976 * expmed.c (store_bit_field_1): Revert prevoius change.
10977 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
10978 to match for all types.
10980 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
10982 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
10985 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
10987 * doc/tm.texi: Regenerated.
10988 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
10989 * stor-layout.c (layout_type): Use mode to get vector mask size.
10990 * target.def (get_mask_mode): New.
10991 * targhooks.c (default_get_mask_mode): New.
10992 * targhooks.h (default_get_mask_mode): New.
10993 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
10994 for boolean vector.
10995 * tree.c (MAX_BOOL_CACHED_PREC): New.
10996 (nonstandard_boolean_type_cache): New.
10997 (build_nonstandard_boolean_type): New.
10998 (make_vector_type): Vector mask has no canonical type.
10999 (build_truth_vector_type): New.
11000 (build_same_sized_truth_vector_type): New.
11001 (truth_type_for): Support vector masks.
11002 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
11003 (build_truth_vector_type): New.
11004 (build_same_sized_truth_vector_type): New.
11005 (build_nonstandard_boolean_type): New.
11006 * tree-cfg.c (verify_gimple_comparison) Require boolean
11007 vector type for vector comparison.
11008 (verify_gimple_assign_ternary): Likewise.
11009 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
11011 * tree-vect-stmts.c (vectorizable_condition): Use boolean
11012 vector type for vector comparison.
11013 * tree-vect-generic.c (elem_op_func): Add new operand to hold
11015 (do_unop): Adjust to modified function type.
11016 (do_binop): Likewise.
11017 (do_plus_minus): Likewise.
11018 (do_negate); Likewise.
11019 (expand_vector_piecewise): Likewise.
11020 (do_cond): Likewise.
11021 (do_compare): Use comparison instead of condition.
11022 (expand_vector_divmod): Use boolean vector type for comparison.
11023 (expand_vector_operations_1): Skip scalar mask operations.
11025 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11027 * omp-low.c (simd_clone_create): Set in_other_partition
11028 for created clones.
11030 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
11032 * doc/extend.exp (Local Register Variables): Rewrite.
11034 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11036 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
11037 and x*x in cases where the operands are sign ops. Extend these
11038 rules to handle copysign as a sign op (including for cos, cosh
11039 and pow, which already treated negate and abs as sign ops).
11041 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
11044 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
11045 for 64-bit MS_ABI targets also when default incoming stack boundary
11048 2015-10-21 Richard Biener <rguenther@suse.de>
11050 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
11051 cond stmts, enhanced and split out from ...
11052 (vn_phi_eq): ... here.
11054 2015-10-21 Richard Biener <rguenther@suse.de>
11056 PR middle-end/68031
11057 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
11058 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
11059 (tree_single_nonnegative_warnv_p): ... here. For SSA names
11060 make sure they are not registered for update.
11062 2015-10-21 Richard Biener <rguenther@suse.de>
11064 PR tree-optimization/68026
11065 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
11066 unsigned VARYING values.
11068 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
11070 * asan.c (asan_emit_stack_protection): Don't pass local stack to
11071 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
11072 NULL and use local stack than.
11073 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
11074 in addition to __asan_init.
11075 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
11076 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
11077 * asan.h (asan_intercepted_p): Handle new string builtins.
11078 * ubsan.c (ubsan_use_new_style_p): New function.
11079 (ubsan_instrument_float_cast): If location is unknown, assign
11080 input_location to loc. Propagate loc to ubsan_create_data if
11081 ubsan_use_new_style_p returned true.
11083 2015-10-21 Jeff Law <law@redhat.com>
11085 * Makefile.in (OBJS): Remove sched-vis.c
11086 * sched-vis.c: Removed. Code moved into...
11087 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
11088 * rtl.h: Remove prototypes for functions now living in print-rtl.c
11089 * print-rtl.h Add prototypes for new functions in print-rtl.c.
11090 * auto-inc-dec.c: Include print-rtl.h
11091 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
11092 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
11094 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
11097 2015-10-21 Richard Biener <rguenther@suse.de>
11098 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11100 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
11102 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
11103 about signed left shift stronger and clarify the cases when they're
11105 Move (a * (1 << b)) is (a << b) to match.pd.
11106 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
11107 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
11108 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
11110 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
11112 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
11113 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
11114 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
11116 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
11118 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
11120 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
11121 Szabolcs Nagy <szabolcs.nagy@arm.com>
11122 Alan Modra <amodra@gmail.com>
11124 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
11125 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
11126 (LINK_SPEC): Add %(link_secure_plt).
11127 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
11128 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
11130 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
11131 Szabolcs Nagy <szabolcs.nagy@arm.com>
11133 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
11134 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
11136 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11138 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
11140 (fusion_load_store): Use it.
11141 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
11142 ldp and stp in VD modes.
11143 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
11144 (store_pair<mode>, VD): Likewise.
11146 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
11148 PR rtl-optimization/67609
11149 * lra-splill.c (lra_final_code_change): Don't remove all
11152 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11154 * simplify-rtx.c (simplify_binary_operation): If either operand was
11155 a constant pool reference use them if all other simplifications failed.
11157 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11159 * config/aarch64/aarch64.md
11160 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
11161 * config/aarch64/aarch64-simd.md
11162 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
11163 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
11164 (aarch64_fpconst_pow_of_2): New function.
11165 (aarch64_vec_fpconst_pow_of_2): Likewise.
11166 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
11168 (aarch64_vec_fpconst_pow_of_2): Likewise.
11169 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
11170 (aarch64_fp_vec_pow2): Likewise.
11172 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
11174 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
11175 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
11176 * config/alpha/alpha.c (alpha_function_arg_advance): Update
11177 ALPHA_ARG_SIZE usage.
11178 (alpha_arg_partial_bytes): Ditto.
11180 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11183 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
11184 error_mark_node decls.
11186 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11190 * common/config/i386/i386-common.c (ix86_handle_option): Remove
11191 OPT_miamcu handling.
11192 * config/i386/i386.c (PTA_NO_80387): New macro.
11193 (processor_alias_table): Add PTA_NO_80387 to lakemont.
11194 (ix86_option_override_internal): Update MASK_80387 from
11195 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
11196 SSE math only if 80387 is supported. Don't change
11197 MASK_FLOAT_RETURNS.
11198 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
11199 80387 is supported.
11200 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
11201 if TARGET_80387 is true and TARGET_IAMCU is false.
11202 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
11203 is true and TARGET_IAMCU_P is false.
11205 2015-10-20 Richard Biener <rguenther@suse.de>
11207 PR tree-optimization/68017
11208 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
11210 2015-10-20 Martin Liska <mliska@suse.cz>
11212 * cgraphclones.c (cgraph_node::create_virtual_clone):
11213 Verify cgraph_node.local.versionable instead of calling
11214 tree_versionable_function_p.
11215 * ipa-cp.c (determine_versionability): Save the information
11216 to ipa_node_params summary.
11217 (ipcp_versionable_function_p): Use it.
11218 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
11219 (ipcp_generate_summary): Do not compute cgraph_node
11221 * ipa-inline-analysis.c (inline_generate_summary): Compute
11222 versionability for all cgraph nodes.
11223 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
11224 ipa_node_params::versionability.
11225 * ipa-prop.h (struct ipa_node_params): Declare it.
11227 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11230 * varasm.c (assemble_variable): Move special vtv handling to..
11231 (handle_vtv_comdat_sections): .. here. New function.
11232 (output_object_block): Handle vtv sections.
11234 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
11237 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
11239 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
11241 * doc/extend.texi: Update documentation WRT inline functions.
11243 2015-10-20 Alan Modra <amodra@gmail.com>
11246 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
11247 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11248 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11250 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
11252 PR rtl-optimization/66790
11253 * df.h (DF_MIR): New macro.
11254 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
11255 (DF_MIR_INFO_BB): New macro.
11256 (DF_MIR_IN, DF_MIR_OUT): New macros.
11257 (struct df_mir_bb_info): New.
11258 (df_mir): New macro.
11259 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
11261 (df_mir_get_bb_info): New.
11262 * df-problems.c (struct df_mir_problem_data): New.
11263 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
11264 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
11265 df_mir_confluence_0, df_mir_confluence_n,
11266 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
11267 df_mir_bottom_dump, df_mir_verify_solution_start,
11268 df_mir_verify_solution_end): New.
11269 (problem_MIR): New.
11270 (df_mir_add_problem, df_mir_simulate_one_insn): New.
11271 * timevar.def (TV_DF_MIR): New.
11272 * ree.c: Include bitmap.h
11273 (add_removable_extension): Add an INIT_REGS parameter. Use it
11274 to skip zero-extensions that may get an uninitialized register.
11275 (find_removable_extensions): Compute must-initialized registers
11276 using the MIR dataflow problem. Update the call to
11277 add_removable_extension.
11278 (find_and_remove_re): Call df_mir_add_problem.
11280 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
11282 * common/config/mn10300/mn10300-common.c
11283 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
11284 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
11286 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
11288 * doc/extend.texi (Explicit Register Variables): Simplify and
11289 avoid unnecessary and confusion abbreviations. Update cross
11291 doc/implement-c.tex: Update cross reference.
11293 2015-10-19 Jeff Law <law@redhat.com>
11295 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
11296 that create irreducible loops unless the path elimiantes a multiway
11299 2015-10-19 Richard Biener <rguenther@suse.de>
11301 PR tree-optimization/67975
11302 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
11303 * tree-cfg.c (extract_true_false_controlled_edges): Split out
11304 core worker from ...
11305 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
11306 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
11307 instead of block number for PHIs with two or one args.
11308 (vn_phi_eq): Compare edge predicates of PHIs that are in different
11311 2015-10-19 Richard Biener <rguenther@suse.de>
11313 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
11314 (gimple_stmt_nonnegative_warnv_p): Use it.
11315 * match.pd (CPROJ): New operator list.
11316 (cproj (complex ...)): Move simplifications from ...
11317 * builtins.c (fold_builtin_cproj): ... here.
11319 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11321 * config/i386/i386.c (ix86_expand_vector_move): Use
11322 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
11325 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11327 * doc/invoke.texi: Replace @optindex with @opindex.
11329 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11332 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
11333 arch= is set, clear all bits in x_ix86_isa_flags, except for
11334 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
11336 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
11338 PR middle-end/68002
11339 * common.opt (fkeep-static-functions): New option.
11340 * doc/invoke.texi: Document it.
11341 * cgraphunit.c (cgraph_node::finalize_function): Use it.
11343 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11345 * sched-int.h (struct autopref_multipass_data_): Remove offset
11346 field. Add min_offset, max_offset, multi_mem_insn_p fields.
11347 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
11348 (autopref_multipass_init): Use it. Handle PARALLEL sets.
11349 (autopref_rank_data): New function.
11350 (autopref_rank_for_schedule): Use it.
11351 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
11353 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
11356 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
11358 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11360 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
11361 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
11362 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
11363 (STANDARD_STARTFILE_PREFIX_1): New.
11364 (STANDARD_STARTFILE_PREFIX_2): New.
11366 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11368 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
11369 (darwin_driver_init): Note a version-min when provided on the c/l.
11370 * config/darwin.h (%darwin_minversion): Remove.
11371 * config/i386/darwin.h: Likewise.
11372 * config/rs6000/darwin.h: Likewise.
11373 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
11374 rather than an arbitrary constant.
11376 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11378 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
11379 PPC, detect conflicts between -arch and multilib settings. Detect
11380 and warn about conflicts between multiple -arch definitions.
11382 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11384 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
11386 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11388 * lra-constraints.c (add_next_usage_insn): Change argument type
11389 from rtx to rtx_insn *.
11391 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
11393 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
11396 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
11398 * config/tilepro/gen-mul-tables.cc: Adjust include files.
11399 * config/tilegx/mul-tables.c: Regenerate.
11400 * config/tilepro/mul-tables.c: Regenerate.
11402 * config/tilegx/tilegx-c.c: Adjust include files.
11403 * config/tilegx/tilegx.c: Likewise.
11404 * config/tilepro/tilepro-c.c: Likewise.
11405 * config/tilepro/tilepro.c: Likewise.
11406 * config/aarch64/aarch64-builtins.c: Likewise.
11407 * config/aarch64/aarch64.c: Likewise.
11408 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11409 * config/alpha/alpha.c: Likewise.
11410 * config/arc/arc.c: Likewise.
11411 * config/arm/aarch-common.c: Likewise.
11412 * config/arm/arm-builtins.c: Likewise.
11413 * config/arm/arm-c.c: Likewise.
11414 * config/arm/arm.c: Likewise.
11415 * config/avr/avr-c.c: Likewise.
11416 * config/avr/avr-devices.c: Likewise.
11417 * config/avr/avr-log.c: Likewise.
11418 * config/avr/avr.c: Likewise.
11419 * config/bfin/bfin.c: Likewise.
11420 * config/c6x/c6x.c: Likewise.
11421 * config/cr16/cr16.c: Likewise.
11422 * config/cris/cris.c: Likewise.
11423 * config/darwin-c.c: Likewise.
11424 * config/darwin-driver.c: Likewise.
11425 * config/darwin.c: Likewise.
11426 * config/default-c.c: Likewise.
11427 * config/epiphany/epiphany.c: Likewise.
11428 * config/epiphany/mode-switch-use.c: Likewise.
11429 * config/epiphany/resolve-sw-modes.c: Likewise.
11430 * config/fr30/fr30.c: Likewise.
11431 * config/frv/frv.c: Likewise.
11432 * config/ft32/ft32.c: Likewise.
11433 * config/glibc-c.c: Likewise.
11434 * config/h8300/h8300.c: Likewise.
11435 * config/i386/host-cygwin.c: Likewise.
11436 * config/i386/host-mingw32.c: Likewise.
11437 * config/i386/i386-c.c: Likewise.
11438 * config/i386/i386.c: Likewise.
11439 * config/i386/msformat-c.c: Likewise.
11440 * config/i386/winnt-cxx.c: Likewise.
11441 * config/i386/winnt-stubs.c: Likewise.
11442 * config/i386/winnt.c: Likewise.
11443 * config/ia64/ia64-c.c: Likewise.
11444 * config/ia64/ia64.c: Likewise.
11445 * config/iq2000/iq2000.c: Likewise.
11446 * config/lm32/lm32.c: Likewise.
11447 * config/m32c/m32c-pragma.c: Likewise.
11448 * config/m32c/m32c.c: Likewise.
11449 * config/m32r/m32r.c: Likewise.
11450 * config/mcore/mcore.c: Likewise.
11451 * config/mep/mep-pragma.c: Likewise.
11452 * config/mep/mep.c: Likewise.
11453 * config/microblaze/microblaze-c.c: Likewise.
11454 * config/microblaze/microblaze.c: Likewise.
11455 * config/mips/mips-tables.opt
11456 * config/mips/mips.c: Likewise.
11457 * config/mmix/mmix.c: Likewise.
11458 * config/mn10300/mn10300.c: Likewise.
11459 * config/moxie/moxie.c: Likewise.
11460 * config/msp430/msp430-c.c: Likewise.
11461 * config/msp430/msp430.c: Likewise.
11462 * config/nds32/nds32-cost.c: Likewise.
11463 * config/nds32/nds32-fp-as-gp.c: Likewise.
11464 * config/nds32/nds32-intrinsic.c: Likewise.
11465 * config/nds32/nds32-isr.c: Likewise.
11466 * config/nds32/nds32-md-auxiliary.c: Likewise.
11467 * config/nds32/nds32-memory-manipulation.c: Likewise.
11468 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11469 * config/nds32/nds32-predicates.c: Likewise.
11470 * config/nds32/nds32.c: Likewise.
11471 * config/nios2/nios2.c: Likewise.
11472 * config/nvptx/mkoffload.c: Likewise.
11473 * config/nvptx/nvptx.c: Likewise.
11474 * config/pa/pa.c: Likewise.
11475 * config/pdp11/pdp11.c: Likewise.
11476 * config/rl78/rl78-c.c: Likewise.
11477 * config/rl78/rl78.c: Likewise.
11478 * config/rs6000/host-darwin.c: Likewise.
11479 * config/rs6000/rs6000-c.c: Likewise.
11480 * config/rs6000/rs6000-linux.c: Likewise.
11481 * config/rs6000/rs6000.c: Likewise.
11482 * config/rx/rx.c: Likewise.
11483 * config/s390/s390-c.c: Likewise.
11484 * config/s390/s390.c: Likewise.
11485 * config/sh/sh-c.c: Likewise.
11486 * config/sh/sh-mem.cc: Likewise.
11487 * config/sh/sh.c: Likewise.
11488 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11489 * config/sh/sh_treg_combine.cc: Likewise.
11490 * config/sol2-c.c: Likewise.
11491 * config/sol2-cxx.c: Likewise.
11492 * config/sol2-stubs.c: Likewise.
11493 * config/sol2.c: Likewise.
11494 * config/sparc/sparc-c.c: Likewise.
11495 * config/sparc/sparc.c: Likewise.
11496 * config/spu/spu-c.c: Likewise.
11497 * config/spu/spu.c: Likewise.
11498 * config/stormy16/stormy16.c: Likewise.
11499 * config/v850/v850-c.c: Likewise.
11500 * config/v850/v850.c: Likewise.
11501 * config/vax/vax.c: Likewise.
11502 * config/visium/visium.c: Likewise.
11503 * config/vms/vms-c.c: Likewise.
11504 * config/vms/vms.c: Likewise.
11505 * config/vxworks.c: Likewise.
11506 * config/winnt-c.c: Likewise.
11507 * config/xtensa/xtensa.c: Likewise.
11509 2015-10-16 Christian Bruel <christian.bruel@st.com>
11512 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
11513 (FUNCTION_BOUNDARY_P): New macro:
11514 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
11516 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
11517 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
11518 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
11519 * function.c (allocate_struct_function): Call
11520 relayout_function hook.
11521 * passes.c (rest_of_decl_compilation): Likewise.
11523 2015-10-16 Christian Bruel <christian.bruel@st.com>
11526 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
11527 * config/arm/arm.c (arm_option_override_internal): Call
11528 arm_override_options_after_change_1.
11529 (arm_override_options_after_change): New function.
11530 (arm_override_options_after_change_1): Likewise.
11531 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
11533 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11536 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11537 empty constructors.
11539 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
11541 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
11542 argument is an ADDR_EXPR.
11544 2015-10-16 Richard Biener <rguenther@suse.de>
11546 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
11547 and get rid of force_gimple_operand_gsi.
11548 (gimple_fold_builtin_memory_chk): Likewise.
11549 (gimple_fold_builtin_stxcpy_chk): Likewise.
11550 (rewrite_to_defined_overflow): Likewise.
11551 (gimple_convert_to_ptrofftype): New function.
11552 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
11554 2015-10-16 Richard Biener <rguenther@suse.de>
11556 * tree-nested.h (build_addr): Adjust prototype.
11557 * tree-nested.c (build_addr): Remove context argument and use
11559 (get_static_chain): Adjust calls to build_addr.
11560 (convert_nl_goto_reference): Likewise.
11561 (convert_tramp_reference_op): Likewise.
11562 (finalize_nesting_tree_1): Likewise.
11563 * value-prof.c (gimple_ic): Likewise.
11564 * gimple-low.c (lower_builtin_setjmp): Likewise.
11565 * tree-parloops.c (take_address_of): Likewise.
11566 (create_call_for_reduction_1): Likewise.
11567 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
11568 (gimple_gen_ic_func_profiler): Likewise.
11570 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11572 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11573 empty constructors.
11575 2015-10-16 Michael Collison <michael.collison@linaro.org>
11576 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11578 * match.pd ((x < y) && (x < z) -> x < min (y,z),
11579 (x > y) and (x > z) -> x > max (y,z))
11581 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
11582 Szabolcs Nagy <szabolcs.nagy@arm.com>
11584 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
11585 (DYNAMIC_LINKER): Renamed to ...
11586 (GLIBC_DYNAMIC_LINKER): This.
11587 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
11589 2015-10-15 Marek Polacek <polacek@redhat.com>
11591 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
11592 gimple_call_builtin instead of is_gimple_call.
11594 2015-10-15 Richard Biener <rguenther@suse.de>
11596 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
11598 2015-10-15 Richard Biener <rguenther@suse.de>
11600 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
11601 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
11602 * tree-vect-loop.c (get_initial_def_for_induction): Drop
11603 use of force_gimple_operand in favor of gimple_build.
11604 Use vect_get_new_ssa_name.
11605 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
11606 (vectorizable_mask_load_store): Likewise.
11607 (vectorizable_call): Likewise.
11608 (vectorizable_store): Likewise.
11609 (vectorizable_load): Likewise.
11610 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
11612 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
11614 PR tree-optimization/67945
11615 * tree-pass.h (PROP_gimple_opt_math): New property flag.
11616 * generic-match-head.c (canonicalize_math_p): New function.
11617 * gimple-match-head.c: Include tree-pass.h.
11618 (canonicalize_math_p): New function.
11619 * match.pd: Group math built-in rules into simplifications
11620 and canonicalizations. Guard the latter with canonicalize_math_p.
11621 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
11622 PROP_gimple_opt_math property.
11624 2015-10-15 Marek Polacek <polacek@redhat.com>
11626 PR tree-optimization/67953
11627 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
11629 2015-10-15 Jiong Wang <jiong.wang@arm.com>
11631 * config.gcc: Recognize "." in architecture base name for AArch64.
11633 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
11635 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
11637 * config/mips/mips.c (mips_setup_incoming_varargs): Use
11638 ROUND_DOWN to calculate off.
11639 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
11640 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
11643 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
11645 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
11647 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
11648 Torvald Riegel <triegel@redhat.com>
11651 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
11652 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11653 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
11654 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
11655 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
11656 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11657 trechkpt, treclaim, tsr, ttest): New define_expands.
11658 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
11659 __TM_FENCE__ for htm.
11660 * doc/extend.texi: Update documentation for htm builtins.
11662 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
11665 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
11666 REG_CFA_EXPRESSION to aligned SSE stores.
11668 2015-10-14 Jeff Law <law@redhat.com>
11670 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
11671 num_threaded_edges for successful FSM threads too.
11673 2015-10-14 Richard Biener <rguenther@suse.de>
11675 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
11676 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
11677 (vect_get_vec_def_for_operand): Remove unused parameter.
11678 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
11679 (vect_create_epilog_for_reduction): Likewise.
11680 (vectorizable_reduction): Likewise.
11681 (vectorizable_live_operation): Likewise.
11682 * tree-vect-patterns.c (type_conversion_p): Likewise.
11683 (vect_recog_vector_vector_shift_pattern): Likewise.
11684 (check_bool_pattern): Likewise.
11685 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11686 (vect_analyze_slp_cost_1): Likewise.
11687 * tree-vect-stmts.c (process_use): Likewise.
11688 (vect_get_vec_def_for_operand): Do not handle reductions.
11689 (vect_get_vec_defs): Adjust.
11690 (vectorizable_mask_load_store): Likewise.
11691 (vectorizable_call): Likewise.
11692 (vectorizable_simd_clone_call): Likewise.
11693 (vect_get_loop_based_defs): Likewise.
11694 (vectorizable_conversion): Likewise.
11695 (vectorizable_assignment): Likewise.
11696 (vectorizable_shift): Likewise.
11697 (vectorizable_operation): Likewise.
11698 (vectorizable_store): Likewise.
11699 (vectorizable_load): Likewise.
11700 (vect_is_simple_cond): Likewise.
11701 (vectorizable_condition): Likewise.
11702 (vect_is_simple_use): Remove unused parameters.
11703 (vect_is_simple_use_1): Adjust and rename.
11705 2015-10-14 Richard Biener <rguenther@suse.de>
11707 PR tree-optimization/67915
11708 * match.pd: Handle comparisons of addresses of STRING_CSTs.
11709 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
11710 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
11711 stmt folding in favor of GIMPLE one.
11713 2015-10-14 Marek Polacek <polacek@redhat.com>
11715 PR tree-optimization/67815
11716 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
11717 (reassociate_bb): Call it.
11719 2015-10-14 Richard Biener <rguenther@suse.de>
11721 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11722 Reset info at start.
11723 (vect_analyze_group_access_1): Add debug print.
11724 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
11725 (vect_compute_single_scalar_iteration_cost): ... to this.
11726 (vect_analyze_loop_2): Adjust.
11727 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
11728 * tree-vectorizer.h: ... here.
11729 (add_stmt_info_to_vec): Remove.
11730 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
11732 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
11734 * targhooks.c (default_target_option_pragma_parse): Do not warn if
11735 called on behalf of "#pragma GCC pop_options".
11737 2015-10-14 Tom de Vries <tom@codesourcery.com>
11739 * cfganal.c (verify_no_unreachable_blocks): New function.
11740 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
11741 verify_no_unreachable_blocks.
11742 cfganal.h (verify_no_unreachable_blocks): Declare.
11744 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
11746 * common.opt: Add flag_checking.
11747 * system.h (CHECKING_P): Define.
11749 2015-10-13 Jakub Jelinek <jakub@redhat.com>
11750 Aldy Hernandez <aldyh@redhat.com>
11751 Ilya Verbin <ilya.verbin@intel.com>
11753 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
11754 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
11755 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
11756 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
11757 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
11758 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
11759 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
11760 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
11761 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
11762 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
11763 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11764 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11765 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
11766 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
11767 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
11768 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
11769 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
11770 (struct cgraph_simd_clone_arg): Adjust comment.
11771 * coretypes.h (struct gomp_ordered): New forward decl.
11772 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
11773 set critical clauses to it.
11774 (gimple_build_omp_ordered): Return gomp_ordered * instead of
11775 gimple *. Add CLAUSES argument, set ordered clauses to it.
11776 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
11777 GIMPLE_OMP_ORDERED.
11778 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
11779 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
11780 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
11781 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
11782 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
11783 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
11784 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
11785 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
11787 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
11788 (gomp_critical): Add clauses field.
11789 (gomp_ordered): New struct.
11790 (is_a_helper <gomp_ordered *>::test): New inline.
11791 (gimple_build_omp_critical): Add CLAUSES argument.
11792 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
11793 instead of gimple *.
11794 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
11795 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
11796 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
11797 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
11799 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
11800 (dump_gimple_omp_target): Handle enter data and exit data.
11801 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
11802 (dump_gimple_omp_critical): Print clauses.
11803 (dump_gimple_omp_ordered): New function.
11804 (dump_gimple_omp_task): Handle taskloop.
11805 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
11806 GIMPLE_OMP_ORDERED.
11807 * gimple-walk.c (walk_gimple_op): Walk clauses on
11808 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
11809 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
11810 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
11811 (struct gimplify_omp_ctx): Add loop_iter_var,
11812 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
11813 and target_firstprivatize_array_bases fields.
11814 (delete_omp_context): Release loop_iter_var.
11815 (gimplify_bind_expr): Handle ORT_NONE.
11816 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
11817 ORT_COMBINED_TARGET.
11818 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
11819 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
11820 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
11821 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
11822 ctx->target_map_scalars_firstprivate.
11823 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
11824 data sharing clauses. For data sharing clause with VLA decl
11825 on omp target/target data don't add firstprivate for the pointer.
11826 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
11827 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
11828 the addition of ORT_COMBINED_TARGET.
11829 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
11830 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
11831 pointers as zero length array sections and
11832 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
11834 (omp_check_private): Handle omp_member_access_dummy_var vars.
11835 (find_decl_expr): New function.
11836 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
11837 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
11838 Handle OMP_CLAUSE_GANG separately. Handle
11839 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11840 clauses. Diagnose linear clause on combined
11841 distribute {, parallel for} simd construct, unless it is the loop
11842 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
11843 Handle map clauses with COMPONENT_REF. Initialize
11844 ctx->target_map_scalars_firstprivate,
11845 ctx->target_firstprivatize_array_bases and
11846 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
11847 linear clause even to target region if combined. Remove
11848 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
11849 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
11850 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
11851 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
11852 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
11853 For linear clause on worksharing loop combined with parallel add
11854 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
11855 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
11856 omp_member_access_dummy_var vars. Add lastprivate clause to outer
11857 taskloop if needed.
11858 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
11859 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
11860 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
11862 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
11863 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
11864 in target body. Handle removal of struct mapping if struct is not
11865 seen in target body. Remove GOMP_MAP_STRUCT map clause on
11866 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
11867 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
11868 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
11869 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
11870 clause appear together. Handle
11871 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
11872 clause if it has map-type-modifier always. Handle
11873 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11875 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
11876 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
11878 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
11879 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
11880 iterators in doacross loops.
11881 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
11882 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
11883 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
11884 for the addition of ORT_COMBINED_TARGET.
11885 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
11886 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
11887 and OMP_TARGET_EXIT_DATA.
11888 (gimplify_omp_ordered): New function.
11889 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
11890 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
11891 Gimplify clauses on OMP_CRITICAL.
11892 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
11893 expand_GOMP_SIMD_ORDERED_END): New functions.
11894 * internal-fn.def (GOMP_SIMD_ORDERED_START,
11895 GOMP_SIMD_ORDERED_END): New internal functions.
11896 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
11897 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
11898 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
11899 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
11900 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
11901 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
11902 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
11903 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
11904 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
11905 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
11906 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
11907 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
11908 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
11909 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
11911 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
11912 GOMP_target_data_41, adjust type.
11913 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
11914 GOMP_target_update_41, adjust type.
11915 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
11917 (struct omp_for_data): Add ordered and simd_schedule fields.
11918 (omp_member_access_dummy_var, unshare_and_remap_1,
11919 unshare_and_remap, is_taskloop_ctx): New functions.
11920 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
11921 (extract_omp_for_data): Handle taskloops and doacross loops
11922 and simd schedule modifier.
11923 (omp_adjust_chunk_size): New function.
11924 (get_ws_args_for): Use it.
11925 (lookup_sfield): Change first argument to splay_tree_key,
11926 add overload with first argument tree.
11927 (maybe_lookup_field): Likewise.
11928 (use_pointer_for_field): Handle omp_member_access_dummy_var.
11929 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
11930 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
11931 (build_outer_var_ref): Add LASTPRIVATE argument, handle
11932 taskloops and omp_member_access_dummy_var vars.
11933 (build_sender_ref): Change first argument to splay_tree_key,
11934 add overload with first argument tree.
11935 (install_var_field): For mask & 8 use &DECL_UID as key instead
11936 of the tree itself.
11937 (fixup_child_record_type): Const qualify *.omp_data_i.
11938 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
11939 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
11940 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
11941 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
11942 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
11943 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
11944 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
11946 (add_taskreg_looptemp_clauses): New function.
11947 (scan_omp_parallel): Use it.
11948 (scan_omp_task): Likewise.
11949 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11950 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
11951 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11952 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
11953 sandwiched taskloop constructs. Type check
11954 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
11955 region. Diagnose depend(source) or depend(sink:...) on
11956 target constructs or task/taskloop.
11957 (handle_simd_reference): Use get_name.
11958 (lower_rec_input_clauses): Likewise. Ignore all
11959 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
11960 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
11961 before passing it to omp_clause_{default,copy}_ctor. Handle
11962 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
11963 lastprivate_firstprivate flag for linear that needs copyin and
11964 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
11965 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
11966 on taskloop lookup decl in outer context. Pass true to
11967 build_outer_var_ref lastprivate argument. Handle
11968 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
11969 outside of outer taskloop for.
11970 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
11972 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
11973 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
11974 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
11975 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
11976 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
11977 abstract origin. Handle omp_member_access_dummy_var vars.
11978 (expand_parallel_call): Use expand_omp_build_assign.
11979 (expand_task_call): Handle taskloop construct expansion. Add
11980 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
11981 integers. Add priority argument to GOMP_task* calls. Or in
11982 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
11984 (expand_omp_build_assign): Add prototype. Add AFTER
11985 argument, if true emit statements after *GSI_P and continue linking.
11986 (expand_omp_taskreg): Adjust expand_task_call caller.
11987 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
11988 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
11989 zero_iter2_bb and first_zero_iter2 arguments, handle computation
11990 of counts even for ordered loops.
11991 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
11992 (expand_omp_ordered_source, expand_omp_ordered_sink,
11993 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
11995 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
11996 clauses on worksharing loop. Handle DOACROSS loop expansion.
11997 (expand_omp_for_static_nochunk): Handle linear clauses on
11998 worksharing loop. Adjust expand_omp_for_init_counts
12000 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
12001 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
12002 expand_omp_for_init_counts callers.
12003 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
12005 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
12006 Handle doacross loops.
12007 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12008 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
12009 GOMP_target_{41,update_41,enter_exit_data} libcalls.
12010 (expand_omp): Don't expand ordered depend constructs here, record
12011 ord_stmt instead for later expand_omp_for_generic.
12012 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12013 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12014 clause as stand-alone directive.
12015 (lower_omp_ordered_clauses): New function.
12016 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
12017 don't lower anything.
12018 (lower_omp_for_lastprivate): Use last _looptemp_ clause
12019 on taskloop for comparison.
12020 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
12021 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
12022 expansion for linear adjustments.
12023 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
12024 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
12025 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
12026 to tree * pointing to the stmt's clauses.
12027 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
12028 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
12029 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
12030 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
12031 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
12032 clauses. Always use short kind and 8-bit align shift.
12033 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
12034 (struct lower_omp_regimplify_operands_data): New type.
12035 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
12037 (lower_omp_1): Use lower_omp_regimplify_operands instead of
12038 gimple_regimplify_operands.
12039 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12040 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12041 clause as stand-alone directive.
12042 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
12043 (simd_clone_mangle): Mangle the various linear kinds
12045 (simd_clone_adjust_argument_types): Handle
12046 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
12047 (simd_clone_init_simd_arrays): Don't do anything for uval.
12048 (simd_clone_adjust): Handle
12049 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12050 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
12051 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
12052 * omp-low.h (omp_member_access_dummy_var): New prototype.
12053 * passes.def (pass_simduid_cleanup): Schedule another copy of the
12054 pass after all optimizations.
12055 * tree.c (omp_clause_code_name): Add entries for
12056 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12057 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12058 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
12059 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
12060 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
12061 OMP_CLAUSE_REDUCTION 5 arguments. Handle
12062 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12063 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
12065 * tree-core.h (enum omp_clause_linear_kind): New.
12066 (struct tree_omp_clause): Change type of map_kind
12067 from unsigned char to unsigned int. Add subcode.if_modifier
12068 and subcode.linear_kind fields.
12069 (enum omp_clause_code): Add
12070 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12071 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12072 (OMP_CLAUSE_REDUCTION): Document
12073 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12074 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
12075 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
12076 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
12078 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
12080 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
12082 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
12083 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
12085 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
12086 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
12087 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
12088 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
12089 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
12090 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
12091 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
12092 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
12093 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
12094 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
12095 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
12096 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
12097 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
12098 * tree-inline.c (remap_gimple_stmt): Handle clauses on
12099 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
12100 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
12101 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
12102 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12103 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12104 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12105 (convert_local_omp_clauses): Likewise.
12106 * tree-pretty-print.c (dump_omp_clause): Handle
12107 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12108 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12109 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
12110 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
12111 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
12112 GOMP_MAP_FORCE_DEALLOC. Handle
12113 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
12114 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
12115 and clauses on OMP_ORDERED and OMP_CRITICAL.
12116 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
12117 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
12118 (vectorize_loops): Adjust comments.
12119 (pass_simduid_cleanup::execute): Likewise.
12120 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12121 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
12122 * wide-int.h (wi::gcd): New.
12124 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12126 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
12127 (ix86_function_arg_advance): Ditto.
12128 (ix86_function_arg): Ditto.
12129 (ix86_gimplify_va_arg): Ditto.
12130 (ix86_class_max_nregs): Ditto.
12131 (inline_memory_move_cost): Ditto.
12132 (ix86_set_reg_reg_cost): Ditto.
12133 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
12135 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
12137 PR middle-end/67912
12138 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
12140 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12142 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
12143 ROUND_UP macro and UNITS_PER_WORD * 2.
12144 * config/sparc/sparc.c (sparc_compute_frame_size):
12145 Use ROUND_UP and ROUND_DOWN macros where applicable.
12146 (function_arg_record_value, function_arg_record_value_1)
12147 (function_arg_record_value_1): Ditto.
12148 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
12149 alignment to double-word.
12150 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
12151 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
12154 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
12156 * rtl.h (print_insn): Fix prototype.
12158 2015-10-13 Tom de Vries <tom@codesourcery.com>
12160 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
12161 -1. Add assert that returned entry matches phi argument.
12162 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
12163 free_stmt_vec_info_vec ...
12164 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
12167 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
12169 PR tree-optimization/67909, 67947
12170 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
12171 really skip the inner loop.
12173 2015-10-13 Jeff Law <law@redhat.com>
12175 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12176 Allow single block jump threading paths.
12178 2015-10-13 Tom de Vries <tom@codesourcery.com>
12180 PR tree-optimization/67476
12181 * doc/invoke.texi (@item parloops-schedule): New item.
12182 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
12183 * tree-parloops.c: Include params-enum.h.
12184 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
12186 2015-10-13 Tom de Vries <tom@codesourcery.com>
12188 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
12189 * params-enum.h: New file.
12190 * opts.c (handle_param): Handle case that param arg is a string.
12191 * params-list.h: Handle DEFPARAMENUM5 in params.def.
12192 * params.c (find_param): New function, factored out of ...
12193 (set_param_value): ... here.
12194 (param_string_value_p): New function.
12195 * params.h (struct param_info): Add value_names field.
12196 (find_param, param_string_value_p): Declare.
12198 2015-10-13 Tom de Vries <tom@codesourcery.com>
12200 PR tree-optimization/67476
12201 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
12203 2015-10-13 Richard Biener <rguenther@suse.de>
12205 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
12206 the data dependence vector.
12207 (vect_peeling_hash_insert): Get the peeling hash table as argument.
12208 (vect_peeling_hash_get_lowest_cost): Likewise.
12209 (vect_enhance_data_refs_alignment): Adjust.
12210 (struct _vect_peel_info, struct _vect_peel_extended_info,
12211 struct peel_info_hasher): Move from ...
12212 * tree-vectorizer.h: ... here.
12213 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
12214 (LOOP_VINFO_PEELING_HTAB): Likewise.
12215 (struct _loop_vec_info): Remove min_profitable_iters and
12216 peeling_htab members.
12217 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
12219 (destroy_loop_vec_info): Adjust.
12220 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
12221 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
12222 to estimate alias versioning cost.
12223 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
12225 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
12227 * real.h (real_isinteger): Declare.
12228 * real.c (real_isinteger): New function.
12229 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
12230 if y is an even integer.
12232 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12235 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12236 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12237 counts when these are more informative.
12239 2015-10-12 Jeff Law <law@redhat.com>
12241 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
12242 (fsm_find_control_stmt_paths): Change name of first argument to
12243 more accurately relfect what it really is. Handle simplification
12244 of GIMPLE_COND after finding a thread path for NAME.
12245 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
12246 nontrivial conditions to be handled by FSM threader.
12247 (thread_through_normal_block): Extract the name to looup via
12248 FSM threader from COND_EXPR.
12250 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
12251 restriction that traced SSA_NAME is a user variable.
12253 2015-10-12 Tom de Vries <tom@codesourcery.com>
12255 PR tree-optimization/67476
12256 * omp-low.c (expand_omp_for_generic): Add missing phis.
12258 2015-10-12 Tom de Vries <tom@codesourcery.com>
12260 PR tree-optimization/67476
12261 * omp-low.c (expand_omp_for_generic): Handle simple latch.
12263 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
12265 * config/aarch64/aarch64-simd-builtins.def: Update builtins
12266 tables: add tbl3 and tbx4.
12267 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
12268 (aarch64_tbx4v8qi): New.
12269 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
12270 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
12271 Rewrite using builtin functions.
12272 * config/aarch64/iterators.md (UNSPEC_TBX): New.
12274 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12276 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
12278 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12279 Use ROUND_UP and ROUND_DOWN macros where applicable.
12280 (rs6000_darwin64_record_arg_flush): Ditto.
12281 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
12282 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
12285 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12287 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
12288 (AARCH64_ROUND_DOWN): Ditto.
12289 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
12291 2015-10-12 Richard Biener <rguenther@suse.de>
12294 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
12295 code that analyzes IVs on each stmt but in a cheaper way avoiding
12296 quadratic behavior.
12298 2015-10-12 Nick Clifton <nickc@redhat.com>
12300 * config/msp430/msp430.c (msp430_mcu_names): Rename to
12301 msp430_mcu_data, add fields for ISA and hardware multiply
12302 support. Import latest data from the devices.csv file.
12303 (msp430_override_option): Use the data from the new array.
12304 (msp430_use_f5_series_hwmult): Likewise.
12305 (use_32bit_hwmult): Likewise.
12306 (msp430_no_hwmult): Likewise.
12307 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
12309 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
12310 not recognised then no hardware multiply support is assumed and
12311 that only the MSP430 ISA is allowed.
12313 2015-10-12 Richard Biener <rguenther@suse.de>
12315 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
12317 (vect_analyze_loop_2): ... here.
12319 2015-10-11 Jason Merrill <jason@redhat.com>
12322 * expr.c (store_field): Call store_constructor directly when
12323 storing a CONSTRUCTOR into a target smaller than its type.
12324 Guard against unsafe bitwise copy.
12326 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12328 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12329 counts when these are more informative.
12331 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12333 * tree-profile.c (tree_profiling): Do not clear
12334 pure/const when not instrumenting.
12335 (pass tree_profile): Add dump of symtab.
12337 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12339 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
12341 (fold_addr_of_array_ref_difference): Likewise.
12343 2015-10-11 Jeff Law <law@redhat.com>
12345 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
12346 tree-ssa-threadbackward.c.
12347 (fsm_find_control_statement_thread_paths): Likewise.
12348 (thread_through_normal_block): Break out FSM bits and move them
12349 into a new function in tree-ssa-threadbackward.c. Call new function
12351 Minimize header file usage.
12352 * tree-ssa-threadbackward.h: New file.
12353 * tree-ssa-threadbackward.c: Likewise.
12354 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
12356 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
12358 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
12360 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
12362 PR rtl-optimization/67864
12363 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
12364 fallthrough edges for conditional jumps. Don't sort candidate
12365 edges if not optimizing for speed.
12367 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12369 * defaults.h (REVERSE_CONDITION): New default definition.
12370 * jump.c (reversed_comparison_code_parts): Adjust.
12372 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12374 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
12375 check HARD_FRAME_POINTER_IS_ARG_POINTER.
12377 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12379 * defaults.h (FRAME_ADDR_RTX): New default definition.
12380 * builtins.c (expand_builtin_return_addr): Adjust.
12382 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12384 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
12385 * builtins.c (expand_builtin_return_addr): Adjust.
12387 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12389 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
12390 * builtins.c (expand_builtin_return_addr): Adjust.
12391 * doc/tm.texi: Likewise.
12392 * doc/tm.texi.in: Likewise.
12393 * except.c (expand_builtin_unwind_init): Likewise.
12395 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12397 * builtins.c (expand_builtin_return_addr): Adjust.
12398 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
12400 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12402 * tree.c (type_with_interoperable_signedness): New.
12403 (gimple_canonical_types_compatible_p): Use it.
12404 * tree.h (type_with_interoperable_signedness): Declare
12406 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12408 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
12409 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
12410 when OEP_ADDRESS_OF is se.
12412 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12413 Sebastian Pop <s.pop@samsung.com>
12415 * graphite-dependences.c (scop_get_dependences): Add dump of the
12416 data dependence graph.
12417 * graphite-poly.c (print_isl_union_map): New.
12418 (debug_isl_union_map): New.
12419 * graphite-poly.h (print_isl_union_map): Declare.
12420 (debug_isl_union_map): Declare.
12422 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12423 Sebastian Pop <s.pop@samsung.com>
12425 * graphite-poly.c (print_iteration_domain): Remove verbosity.
12426 Remove OpenScop formatting.
12427 (print_iteration_domains): Same.
12428 (debug_iteration_domain): Same.
12429 (debug_iteration_domains): Same.
12432 (dump_gbb_cases): Same.
12433 (dump_gbb_conditions): Same.
12434 (print_pdrs): Same.
12435 (debug_pdrs): Same.
12436 (print_pbb_body): Same.
12438 (print_scop_params): Same.
12439 (print_scop_context): Same.
12440 (print_scop): Same.
12441 (debug_pbb_domain): Same.
12443 (debug_scop_context): Same.
12444 (debug_scop): Same.
12445 (debug_scop_params): Same.
12446 * graphite-poly.h: Same.
12447 * graphite.c (graphite_transform_loops): Same.
12449 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12451 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
12452 call that isn't needed.
12454 2015-10-09 Jeff Law <law@redhat.com>
12456 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
12457 rather than moving each name to the freelist individually.
12459 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
12461 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
12462 * frame-header-opt.c: New file.
12463 * config/mips/mips-proto.h (mips_register_frame_header_opt):
12465 * config/mips/mips.c (mips_compute_frame_info): Check
12466 optimize_call_stack flag.
12467 (mips_option_override): Register new frame_header_opt pass.
12468 (mips_frame_info, mips_int_mask, mips_shadow_set,
12469 machine_function): Move these types to...
12470 * config/mips/mips.h: here.
12471 (machine_function): Add does_not_use_frame_header and
12472 optimize_call_stack fields.
12473 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
12474 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
12475 Document new flags.
12476 * config/mips/mips.opt (mframe-header-opt): Add new option.
12478 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
12480 * config/i386/i386.c
12481 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
12482 ROUND_DOWN where applicable.
12484 2015-10-09 Jeff Law <law@redhat.com>
12486 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
12489 2015-10-09 Renlin Li <renlin.li@arm.com>
12491 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
12492 operands[0] and operands[2].
12493 (neon_vtrn<mode>_insn): Likewise.
12494 (neon_vzip<mode>_insn): Likewise.
12496 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
12498 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
12499 ((X & C2) << C1): Expand to...
12500 (X {&,^,|} C2 << C1): ...This.
12501 ((X & C2) >> C1): Expand to...
12502 (X {&,^,|} C2 >> C1): ...This.
12504 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
12507 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
12508 Adjust embedded rounding/SAE specifier position.
12509 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
12510 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
12511 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
12512 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
12513 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
12515 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
12517 2015-10-09 Martin Jambor <mjambor@suse.cz>
12519 tree-optimization/67794
12520 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
12521 between types of state,ents but accept original definitions as a
12523 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
12524 iterate over definitions.
12526 2015-10-09 James Norris <jnorris@codesourcery.com>
12528 * config/rs6000/rs6000.c (rs6000_offload_options): New.
12529 (TARGET_OFFLOAD_OPTIONS): New.
12531 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
12533 PR middle-end/67891
12534 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
12536 PR middle-end/67766
12537 * function.c (expand_function_end): Move return value
12538 promotion past the handling of PARALLELs and CONCATs.
12540 PR rtl-optimization/67828
12541 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
12542 (tree_may_unswitch_on): Don't unswitch on expressions
12543 involving undefined values.
12545 2015-10-09 Richard Biener <rguenther@suse.de>
12547 * genmatch.c (print_operand): Fix formatting.
12548 (dt_node::append_simplify): Warn for multiple simplifiers
12549 that match the same pattern.
12550 * match.pd (log (exp @0)): Remove duplicates.
12552 2015-10-09 Richard Biener <rguenth@suse.de>
12555 * gimple-fold.c (optabs-query.h): Include
12556 (gimple_fold_builtin_memory_op): Allow unaligned stores
12557 when movmisalign_optabs are available.
12559 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12562 * config/arm/arm.md (movmisalign<mode>): New.
12563 * config/arm/iterators.md (HSI): New.
12565 2015-10-09 Richard Biener <rguenther@suse.de>
12567 PR tree-optimization/67891
12568 * gimple-match.h (gimple_simplified_result_is_gimple_val):
12570 (gimple_resimplify1): Declare.
12571 (gimple_resimplify2): Likewise.
12572 (gimple_resimplify3): Likewise.
12573 * gimple-match-head.c (gimple_resimplify1): Export.
12574 (gimple_resimplify2): Likewise.
12575 (gimple_resimplify3): Likewise.
12576 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
12577 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12578 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
12579 to avoid creating stmts without VN info.
12581 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
12583 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
12586 2015-10-08 Jeff Law <law@redhat.com>
12588 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
12589 and release_ssa_name in two places.
12590 (gimple_stringop_fixed_value): Similarly.
12592 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
12595 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
12596 unlink_stmt_vdef and release_ssa_name_fn.
12598 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
12601 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
12603 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
12604 SSE register save area to 16 bytes only if the incoming stack
12605 boundary is no less than 16 bytes.
12607 2015-10-08 Jeff Law <law@redhat.com>
12609 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
12610 release_ssa_name. Fix typo in comment.
12612 2015-10-08 Nathan Sidwell <nathan@acm.org>
12614 * config/nvptx/nvptx.h (struct machine_function): Add comment.
12615 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
12616 may return pointer as well as in memory.
12617 (nvptx_output_return): Likewise.
12619 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
12621 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
12622 (fold_builtin_1): Update accordingly. Handle constant arguments here.
12623 * match.pd: Add rules previously handled by fold_builtin_sqrt
12624 and fold_builtin_cbrt.
12626 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
12628 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
12629 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
12630 * fold-const.h (tree_unary_nonnegative_warnv_p)
12631 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12632 (tree_expr_nonnegative_warnv_p): Add depth parameters.
12633 * fold-const.c: Include gimple-fold.h and params.h.
12634 (tree_ssa_name_nonnegative_warnv_p): New function.
12635 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
12636 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12637 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
12638 Add a depth parameter and increment it for recursive calls to
12639 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
12640 to handle SSA names.
12641 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
12642 (gimple_stmt_nonnegative_warnv_p): Declare.
12643 * tree-vrp.c (remove_range_assertions): Remove assert that condition
12644 cannot be proven false.
12645 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
12646 (gimple_stmt_nonnegative_warnv_p): Move to...
12647 * gimple-fold.c: ...here. Add depth parameters and pass them
12648 down to the tree routines. Accept statements that aren't
12649 assignments or calls but just return false for them.
12650 (gimple_val_nonnegative_real_p): Delete.
12651 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
12652 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
12653 Check HONOR_NANs first.
12655 2015-10-08 Martin Jambor <mjambor@suse.cz>
12657 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
12660 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12662 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
12663 in the tail of outer-loop.
12665 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
12667 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
12670 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12672 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
12673 "cfghooks.h", add prototypes for introduced new functions.
12674 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
12675 checks on ability of loop unswitching to tree_unswitch_single_loop;
12676 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
12677 on innermost loop check.
12678 (tree_unswitch_single_loop): Add all required checks on ability of
12679 loop unswitching under zero recursive level guard.
12680 (tree_unswitch_outer_loop): New function.
12681 (find_loop_guard): Likewise.
12682 (empty_bb_without_guard_p): Likewise.
12683 (used_outside_loop_p): Likewise.
12684 (get_vop_from_header): Likewise.
12685 (hoist_guard): Likewise.
12686 (check_exit_phi): Likewise.
12688 2015-10-08 Marek Polacek <polacek@redhat.com>
12690 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
12693 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12696 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
12697 create_tmp_var_raw instead of create_tmp_var.
12699 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
12701 * expr.c (store_expr_with_bounds): Handle aggregate moves from
12703 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
12704 to define gimple type system; compare aggregates only by size.
12706 2015-10-07 Jeff Law <law@redhat.com>
12708 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
12709 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
12710 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
12713 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12714 Sebastian Pop <s.pop@samsung.com>
12716 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
12717 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
12718 (generate_isl_schedule): Same.
12719 * graphite-optimize-isl.c (scop_get_domains): Same.
12720 (apply_schedule_map_to_scop): Same.
12721 * graphite-poly.c (print_iteration_domains): Same.
12722 (remove_gbbs_in_scop): Same.
12725 (print_scop): Same.
12726 * graphite-poly.h (struct scop): Rename bbs to pbbs.
12727 (SCOP_BBS): Remove.
12728 * graphite-scop-detection.c (compare_bb_depths): Remove.
12729 (graphite_sort_dominated_info): Remove.
12730 (try_generate_gimple_bb): Move out of scop_detection.
12731 (all_non_dominated_preds_marked_p): Remove.
12732 (build_scop_bbs_1): Remove.
12733 (build_scop_bbs): Remove.
12734 (nb_pbbs_in_loops): Do not use SCOP_BBS.
12735 (find_scop_parameters): Same.
12736 (sese_dom_walker): Rename gather_bbs.
12737 (before_dom_children): Call try_generate_gimple_bb and collect gbb
12739 (build_scops): Call gather_bbs.
12740 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
12741 (add_conditions_to_constraints): Same.
12742 (build_scop_iteration_domain): Same.
12743 (build_scop_drs): Same.
12744 (new_pbb_from_pbb): Same.
12745 * sese.c (new_sese_info): Create bbs.
12746 * sese.h (struct sese_info_t): Add bbs.
12748 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
12750 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
12751 encoding in 64-bit mode.
12753 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
12756 * config/i386/i386.c (ix86_option_override_internal): Always use
12757 8-byte minimum stack boundary in 64-bit mode.
12758 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
12759 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
12760 Add a REG_CFA_EXPRESSION note if needed.
12761 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
12762 (ix86_handle_force_align_arg_pointer_attribute): New.
12763 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
12764 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
12765 with ix86_handle_force_align_arg_pointer_attribute.
12766 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
12768 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12769 Sebastian Pop <s.pop@samsung.com>
12771 * graphite-scop-detection.c (parameter_index_in_region): Remove
12772 use of SESE_ADD_PARAMS.
12773 (find_scop_parameters): Same.
12774 * sese.c (new_sese_info): Same.
12775 * sese.h (struct sese_info_t): Remove add_params.
12776 (SESE_ADD_PARAMS): Remove.
12778 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12779 Sebastian Pop <s.pop@samsung.com>
12781 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
12784 (copy_internal_parameters): Same.
12785 (translate_isl_ast_to_gimple): Use an sese_l.
12786 (build_iv_mapping): Same.
12787 * graphite-poly.c (new_sese): Rename new_sese_info.
12788 (free_sese): Rename free_sese_info.
12789 * graphite-poly.h (struct scop): Use an sese_info_p.
12790 (scop_set_region): Same.
12791 * graphite-scop-detection.c (struct sese_l): Moved...
12792 (get_entry_bb): Moved...
12793 (get_exit_bb): Moved...
12794 (parameter_index_in_region_1): Use an sese_info_p.
12795 (parameter_index_in_region): Same.
12796 (scan_tree_for_params): Same.
12797 (find_params_in_bb): Same.
12798 (sese_dom_walker): Use an sese_l.
12799 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
12800 (reduction_phi_p): Same.
12801 (parameter_index_in_region_1): Use an sese_info_p.
12802 (propagate_expr_outside_region): Use an sese_l.
12803 * graphite.c: Replace uses of SCOP_REGION.
12804 * sese.c (sese_record_loop): Use an sese_info_p.
12805 (build_sese_loop_nests): Same.
12806 (sese_build_liveouts_use): Same.
12807 (sese_build_liveouts_bb): Same.
12808 (sese_build_liveouts_bb): Same.
12809 (sese_bad_liveouts_use): Same.
12810 (sese_reset_debug_liveouts_bb): Same.
12811 (sese_build_liveouts): Same.
12812 (new_sese): Renamed new_sese_info.
12813 (free_sese): Renamed free_sese_info.
12814 (set_rename): Use an sese_info_p.
12815 (graphite_copy_stmts_from_block): Same.
12816 (copy_bb_and_scalar_dependences): Same.
12817 (outermost_loop_in_sese_1): Use an sese_l.
12818 (outermost_loop_in_sese): Same.
12819 (if_region_set_false_region): Use an sese_info_p.
12820 (move_sese_in_condition): Same.
12821 (scalar_evolution_in_region): Use an sese_l.
12822 * sese.h (struct sese_l): ... here.
12823 (SESE_ENTRY): Remove.
12824 (SESE_ENTRY_BB): Remove.
12825 (SESE_EXIT): Remove.
12826 (SESE_EXIT_BB): Remove.
12827 (sese_contains_loop): Use an sese_info_p.
12828 (sese_nb_params): Same.
12829 (bb_in_sese_p): Use an sese_l.
12830 (stmt_in_sese_p): Same.
12831 (defined_in_sese_p): Same.
12832 (loop_in_sese_p): Same.
12833 (sese_loop_depth): Same.
12834 (struct ifsese_s): Use an sese_info_p.
12835 (gbb_loop_at_index): Use an sese_l.
12836 (nb_common_loops): Same.
12837 (scev_analyzable_p): Same.
12839 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12841 * config/i386/i386.c (ix86_conditional_register_usage): Use
12842 CALL_USED_REGISTERS_MASK.
12843 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
12845 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12848 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
12849 * configure: Regenerated.
12851 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12854 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
12855 (ix86_set_current_function): This.
12856 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
12858 2015-10-07 Richard Biener <rguenther@suse.de>
12860 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
12861 (vinfo_for_stmt): Adjust.
12862 (set_vinfo_for_stmt): Likewise.
12863 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
12864 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
12865 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
12867 (vect_analyze_loop_1): Remove.
12868 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
12869 inner loop when vectorizing an outer loop by splitting out from ...
12870 (vect_analyze_loop_form): ... here.
12872 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12875 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
12876 Use create_tmp_var_raw instead of create_tmp_var.
12878 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
12880 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
12881 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
12882 * real.c (CACHED_FRACTION): New helper macro.
12883 (dconst_third_ptr): Use it.
12884 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
12885 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
12887 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
12889 2015-10-06 Jeff Law <law@redhat.com>
12891 PR tree-optimization/67816
12892 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
12893 from remove_jump_threads_starting_at. Accept an edge rather than
12895 * tree-ssa-threadupdate.c (removed_edges): New hash table.
12896 (remove_jump_threads_including): Note edges that get removed from
12897 the CFG for later pruning of jump threading paths including them.
12898 (thread_through_all_blocks): Remove paths which include edges that
12900 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
12901 on each outgoing edges when optimizing away a control statement.
12903 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12905 * reorg.c (emit_delay_sequence): Store list of delay slot insns
12906 in a vector instead of rtx_insn_list.
12907 (add_to_delay_list): Likewise.
12908 (delete_from_delay_slot): Likewise.
12909 (optimize_skip): Likewise.
12910 (redirect_with_delay_list_safe_p): Likewise.
12911 (check_annul_list_true_false): Likewise.
12912 (steal_delay_list_from_target): Likewise.
12913 (steal_delay_list_from_fallthrough): Likewise.
12914 (redundant_insn): Likewise.
12915 (fill_simple_delay_slots): Likewise.
12916 (fill_slots_from_thread): Likewise.
12917 (fill_eager_delay_slots): Likewise.
12918 (relax_delay_slots): Likewise.
12920 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
12922 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
12923 For -mgpopt=local, also exclude unintialized common symbols.
12924 * doc/invoke.texi (Nios II Options): Document the change.
12926 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12928 * config/aarch64/iterators.md (vwcore): Add missing cases for
12931 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12932 Sebastian Pop <s.pop@samsung.com>
12934 * graphite-poly.c (new_scop): Initialize drs.
12935 * graphite-poly.h (struct dr_info): New.
12936 (struct scop): Add drs.
12937 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
12938 (pdr_add_memory_accesses): Same.
12939 (build_poly_dr): Same.
12940 (build_alias_set): Same.
12941 (build_scop_drs): Same.
12942 (build_pbb_drs): Remove.
12943 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
12944 * tree-data-ref.h (data_reference): Remove alias_set.
12946 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12947 Sebastian Pop <s.pop@samsung.com>
12949 * graphite-poly.c (free_data_refs_aux): Remove.
12950 (free_gimple_poly_bb): Do not call free_data_refs_aux.
12951 * graphite-poly.h (struct base_alias_pair): Remove.
12952 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
12953 base_alias_pair and dr->aux.
12954 (build_alias_set): Same.
12955 * tree-data-ref.c (create_data_ref): Initialize alias_set.
12956 * tree-data-ref.h (data_reference): Add alias_set.
12958 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12959 Sebastian Pop <s.pop@samsung.com>
12961 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
12962 Do not set PDR_BASE_OBJECT_SET.
12963 * graphite-poly.h (poly_dr): Same.
12964 (PDR_BASE_OBJECT_SET): Remove.
12965 (new_poly_dr): Update decl.
12966 * graphite-sese-to-poly.c (build_poly_dr): Update call to
12968 (write_alias_graph_to_ascii_dimacs): Remove.
12969 (write_alias_graph_to_ascii_dot): Remove.
12970 (write_alias_graph_to_ascii_ecc): Remove.
12971 (dr_same_base_object_p): Remove.
12972 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
12974 (build_base_obj_set_for_drs): Remove.
12975 (dump_alias_graphs): Remove.
12976 (build_scop_drs): Remove dead code.
12978 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12979 Peter Bergner <bergner@vnet.ibm.com>
12982 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
12983 allow registers, but provide insns for the combiner to create for
12984 loads from memory. Separate VSX code from non-VSX code. For
12985 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
12986 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
12987 so that registers come before memory operations. Drop support from
12988 converting DFmode to TFmode, if the DFmode value is in a GPR
12990 (extenddftf2_fprs): Likewise.
12991 (extenddftf2_internal): Likewise.
12992 (extenddftf2_vsx): Likewise.
12993 (extendsftf2): In the expander, only allow registers, but provide
12994 insns for the combiner to create for stores and loads.
12996 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12998 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
12999 from the decl parameter.
13001 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
13004 * gimple-fold.c (gimple_fold_builtin): Add break after
13005 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
13007 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
13009 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
13010 to scop->isl_context.
13012 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13014 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
13015 (output_probe_stack_range): Rotate the loop and simplify.
13016 (thumb1_expand_prologue): Tweak sorry message.
13017 * config/arm/arm.md (probe_stack): Use bare string.
13019 2015-10-06 Nick Clifton <nickc@redhat.com>
13021 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
13023 2015-10-06 Nick Clifton <nickc@redhat.com>
13025 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
13026 (ATTR_PERSIST): New constant.
13027 (msp430_data_attr): New function - verifies an attribute that only
13028 applies to variables.
13029 (msp430_attributes): Add noinit and persistent attributes.
13030 (noinit_section): New variable.
13031 (presis_section): New variable.
13032 (TARGET_ASM_INIT_SECTIONS): Define.
13033 (msp430_init_sections): New function - initialises the noinit and
13034 persist section variables.
13035 (msp430_select_section): Add support for noinit and persist
13037 (msp430_section_type_flags): Likewise.
13038 * doc/extend.texi: Document the reent, critical, wakeup, noinit
13039 and persistent attributes.
13041 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13042 Sebastian Pop <s.pop@samsung.com>
13044 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
13045 (no_violations): Remove.
13046 (subtract_commutative_associative_deps): Remove.
13047 (compute_deps): Do not call subtract_commutative_associative_deps.
13048 (transform_is_safe): Remove.
13049 (graphite_legal_transform): Remove.
13050 * graphite-poly.h (graphite_legal_transform): Remove.
13052 2015-10-05 Aditya Kumar <hiraditya@msn.com>
13054 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
13055 which are in this region are passed so gcc_assert and remove redundant
13057 * sese.c (sese_build_liveouts): Pass only those bbs which are not
13059 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
13060 gcc_assert on that and remove unnecessary computation.
13061 (sese_build_liveouts_use): Same.
13063 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13065 * graphite-dependences.c (scop_get_reads): Renamed scop->context
13066 to scop->param_context.
13067 (scop_get_must_writes): Same.
13068 (scop_get_may_writes): Same.
13069 (scop_get_original_schedule): Same.
13070 (scop_get_transformed_schedule): Same.
13071 (subtract_commutative_associative_deps): Same.
13072 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
13073 (generate_isl_context): Same.
13074 (generate_isl_schedule): Same.
13075 (scop_to_isl_ast): Same.
13076 (graphite_regenerate_ast_isl): Same.
13077 * graphite-optimize-isl.c (scop_get_domains): Same.
13078 (optimize_isl): Renamed scop->context to scop->param_context.
13079 * graphite-poly.c (new_poly_bb): Change the type of argument to
13081 (new_scop): Renamed scop->context to scop->param_context.
13083 (print_scop_context): Same.
13084 * graphite-poly.h (new_poly_dr): Change the type of argument from
13085 void* to data_reference_p.
13086 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
13087 (new_poly_bb): Change the type of argument from void* to
13089 (pbb_set_black_box): Same.
13090 (struct scop): Rename context to param_context, ctx to isl_context.
13091 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
13092 Move declarations closer to assignment.
13093 (find_params_in_bb): Same.
13094 (find_scop_parameters): Same.
13095 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
13096 Global to be used for statement IDs.
13097 (isl_id_for_pbb): Use ssa_name_version_typesize.
13098 (simple_copy_phi_p): Move declarations closer to assignment.
13099 (build_pbb_scattering_polyhedrons): Same.
13100 (build_scop_scattering): Same.
13101 (isl_id_for_ssa_name): Same.
13102 (extract_affine_name): Same.
13103 (extract_affine_int): Same.
13104 (extract_affine): Same.
13105 (set_scop_parameter_dim): Use renamed member.
13106 (build_loop_iteration_domains): Same.
13107 (add_param_constraints): Same.
13108 (build_scop_iteration_domain): Same.
13109 (pdr_add_data_dimensions): Same.
13110 (build_poly_dr): Same.
13111 (build_scop_drs): Move declarations closer to assignment.
13112 (analyze_drs_in_stmts): Same.
13113 (insert_out_of_ssa_copy): Same.
13114 (insert_out_of_ssa_copy_on_edge): Same.
13115 (propagate_expr_outside_region): Same.
13116 (rewrite_phi_out_of_ssa): Same.
13117 (rewrite_degenerate_phi): Same.
13118 (rewrite_reductions_out_of_ssa): Same.
13119 (rewrite_cross_bb_scalar_dependence): Same.
13120 (handle_scalar_deps_crossing_scop_limits): Same.
13121 (rewrite_cross_bb_scalar_deps): Same.
13122 * graphite.c (graphite_transform_loops): Use renamed member.
13124 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
13127 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
13128 create_tmp_var_raw instead of create_tmp_var.
13130 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13133 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
13134 Use create_tmp_var_raw instead of create_tmp_var.
13136 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
13139 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
13140 split for upper-bank registers when target does not support
13142 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
13143 split when target does not support AVX512VL.
13145 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
13148 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
13149 Adjust to use create_tmp_var_raw instead of create_tmp_var.
13151 2015-10-06 Nick Clifton <nickc@redhat.com>
13153 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
13156 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13158 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
13159 (case ${target}): Add znver1.
13160 * config/i386/cpuid.h(bit_CLZERO): Define.
13161 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
13162 -march=native recognize znver1 processors.
13163 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13164 znver1, clzero def_and_undef.
13165 * config/i386/i386.c (struct processor_costs znver1_cost): New.
13166 (m_znver1): New definition.
13167 (m_AMD_MULTIPLE): Includes m_znver1.
13168 (processor_target_table): Add znver1 entry.
13169 (ix86_target_string) : Add clzero entry.
13170 (static const char *const cpu_names): Add znver1 entry.
13171 (ix86_option_override_internal): Add znver1 instruction sets.
13172 (PTA_CLZERO) : New definition.
13173 (ix86_option_override_internal): Handle new clzerooption.
13174 (ix86_issue_rate): Add znver1.
13175 (ix86_adjust_cost): Add znver1.
13176 (ia32_multipass_dfa_lookahead): Add znver1.
13177 (has_dispatch): Add znver1.
13178 * config/i386/i386.h (TARGET_znver1): New definition.
13179 (TARGET_CLZERO): Define.
13180 (TARGET_CLZERO_P): Define.
13181 (struct ix86_size_cost): Add TARGET_ZNVER1.
13182 (enum processor_type): Add PROCESSOR_znver1.
13183 * config/i386/i386.md (define_attr "cpu"): Add znver1.
13184 (set_attr znver1_decode): New definitions for znver1.
13185 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
13187 * config/i386/mmx.md (set_attr znver1_decode): New definitions
13189 * config/i386/sse.md (set_attr znver1_decode): Likewise.
13190 * config/i386/x86-tune.def: Add znver1 tunings.
13191 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
13192 * doc/invoke.texi: Add details about znver1
13194 2015-10-06 Richard Biener <rguenther@suse.de>
13196 PR tree-optimization/67859
13197 * tree-ssa-pre.c (create_expression_by_pieces): Properly
13198 discard not inserted stmts.
13200 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
13202 * doc/extend.texi (Template Instantiation): Reorder options and
13203 de-emphasize -frepo.
13204 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
13205 example instead of -frepo.
13207 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13210 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
13211 use create_tmp_var_raw rather than create_tmp_var.
13213 2015-10-06 Richard Biener <rguenther@suse.de>
13215 * tree-vectorizer.h (vec_info): New base class for...
13216 (_loop_vec_info): ... this and ...
13217 (_bb_vec_info): ... this.
13218 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
13219 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
13220 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
13221 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
13222 vect_destroy_datarefs): Adjust interface to take a vec_info *
13223 rather than both a loop_vec_info and a bb_vec_info argument.
13224 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
13225 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
13226 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
13227 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
13229 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
13230 (destroy_loop_vec_info, vect_analyze_loop_2,
13231 vect_is_simple_reduction_1, get_initial_def_for_induction,
13232 vect_create_epilog_for_reduction, vectorizable_reduction,
13233 vectorizable_live_operation, vect_transform_loop): Adjust.
13234 * tree-vect-patterns.c (type_conversion_p,
13235 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
13236 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
13237 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
13238 check_bool_pattern, vect_recog_bool_pattern,
13239 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
13240 * tree-vect-slp.c (vect_get_and_check_slp_defs,
13241 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
13242 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
13243 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
13244 (new_bb_vec_info): Initialize base classs.
13245 * tree-vect-stmts.c (record_stmt_cost, process_use,
13246 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
13247 vectorizable_mask_load_store, vectorizable_call,
13248 vectorizable_simd_clone_call, vectorizable_conversion,
13249 vectorizable_assignment, vectorizable_shift,
13250 vectorizable_operation, vectorizable_store,
13251 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
13252 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
13253 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
13255 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
13258 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
13259 create_tmp_var_raw rather than create_tmp_var.
13261 2015-10-05 Marek Polacek <polacek@redhat.com>
13263 * tree-ssa-loop-im.c
13264 (move_computations_dom_walker::before_dom_children): Don't set
13265 SSA_NAME_ANTI_RANGE_P.
13266 * tree-ssa-phiopt.c (value_replacement): Likewise.
13268 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13269 Sebastian Pop <s.pop@samsung.com>
13271 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
13273 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13274 Sebastian Pop <s.pop@samsung.com>
13276 * graphite-poly.c (new_gimple_poly_bb): ... here.
13277 (free_data_refs_aux): ... here.
13278 (free_gimple_poly_bb): ... here.
13279 (remove_gbbs_in_scop): ... here.
13280 (new_scop): Call new_sese.
13281 (free_scop): Call remove_gbbs_in_scop and free_sese.
13282 * graphite-poly.h (base_alias_pair): ... here.
13283 (new_gimple_poly_bb): Declare.
13284 (free_gimple_poly_bb): Declare.
13285 * graphite-scop-detection.c (parameter_index_in_region_1):
13286 (parameter_index_in_region): ... here.
13287 (scan_tree_for_params): ... here.
13288 (find_params_in_bb): ... here.
13289 (find_scop_parameters): ... here.
13290 (build_scops): Call find_scop_parameters.
13291 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
13292 (free_scops): Move...
13293 (single_pred_cond_non_loop_exit): Move...
13294 (sese_dom_walker::before_dom_children): Move...
13295 (sese_dom_walker::after_dom_children): Move...
13296 (build_poly_scop): Move...
13297 * graphite-sese-to-poly.h (base_alias_pair): Move...
13298 * graphite.c (free_scops): ... here.
13300 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13301 Sebastian Pop <s.pop@samsung.com>
13303 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
13304 (trivially_empty_bb_p): Move...
13305 (same_close_phi_node): Move...
13306 (new_gimple_poly_bb): Move...
13307 (compare_bb_depths): Move...
13308 (graphite_sort_dominated_info): Move...
13309 (remove_duplicate_close_phi): Move...
13310 (make_close_phi_nodes_unique): Move...
13311 (canonicalize_loop_closed_ssa): Move...
13312 (canonicalize_loop_closed_ssa_form): Move...
13313 (loop_ivs_can_be_represented): Move...
13314 (single_pred_cond_non_loop_exit): Move...
13315 (graphite_can_represent_init): Move...
13316 (graphite_can_represent_scev): Move...
13317 (stmt_has_simple_data_refs_p): Move...
13318 (stmt_has_side_effects): Move...
13319 (graphite_can_represent_stmt): Move...
13320 (scop_detection): ... here.
13321 (sese_dom_walker): ... and here.
13322 (build_scops): Call all moved functions.
13323 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
13324 (all_non_dominated_preds_marked_p): Move...
13325 (build_scop_bbs_1): Move...
13326 (build_scop_bbs): Move...
13327 (set_scop_parameter_dim): Move...
13328 (nb_pbbs_in_loops): Move...
13329 (build_poly_scop): Do not call all the moved functions.
13331 2015-10-05 Martin Jambor <mjambor@suse.cz>
13332 Jan Hubicka <hubicka@ucw.cz>
13334 * ipa-cp.c (ipcp_alignment_lattice): New type.
13335 (ipcp_param_lattices): Use the above to represent alignment.
13336 (ipcp_alignment_lattice::print): New function.
13337 (print_all_lattices): Use it to print alignment information.
13338 (ipcp_alignment_lattice::top_p): New function.
13339 (ipcp_alignment_lattice::bottom_p): Likewise.
13340 (ipcp_alignment_lattice::set_to_bottom): Likewise.
13341 (ipcp_alignment_lattice::meet_with_1): Likewise.
13342 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
13343 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
13344 (initialize_node_lattices): Likewise.
13345 (propagate_alignment_accross_jump_function): Work with the new class
13346 for alignment lattices.
13347 (propagate_constants_accross_call): Pass only the alignment lattice to
13348 propagate_alignment_accross_jump_function.
13349 (ipcp_store_alignment_results): Work with the new class for alignment
13352 2015-10-05 Marek Polacek <polacek@redhat.com>
13354 PR tree-optimization/67821
13355 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
13357 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
13360 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
13362 (mkoffload_cleanup): ... this. Adjust all users.
13363 (maybe_unlink): Look at save_temps and verbose flags instead of
13365 (main): Parse "-save-temps" flag.
13366 (generate_target_descr_file, generate_target_offloadend_file)
13367 (generate_host_descr_file, prepare_target_image): Pass it on.
13368 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
13369 (mkoffload_cleanup): New function.
13370 (maybe_unlink): Look at save_temps and verbose flags instead of
13372 (main): Instead of calling utils_cleanup, register atexit handler
13373 for mkoffload_cleanup.
13374 (main): Parse "-save-temps" flag.
13375 (compile_native, main): Pass it on.
13376 * lto-wrapper.c (compile_offload_image): Likewise.
13378 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13380 * gimple.h (gimple_op_ptr): Require a non const gimple *.
13381 (gimple_assign_lhs_ptr): Likewise.
13382 (gimple_assign_rhs1_ptr): Likewise.
13383 (gimple_assign_rhs2_ptr): Likewise.
13384 (gimple_assign_rhs3_ptr): Likewise.
13385 (gimple_call_lhs_ptr): Likewise.
13386 (gimple_call_fn_ptr): Likewise.
13387 (gimple_call_chain_ptr): Likewise.
13388 (gimple_call_arg_ptr): Likewise.
13389 (gimple_cond_lhs_ptr): Likewise.
13390 (gimple_cond_rhs_ptr): Likewise.
13391 (gimple_switch_index_ptr): Likewise.
13392 (gimple_return_retval_ptr): Likewise.
13394 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13396 * gimple.h (gimple_asm_input_op_ptr): Remove.
13397 (gimple_asm_output_op_ptr): Likewise.
13399 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13401 * gimple.h (gimple_location_ptr): Remove.
13402 * tree-vrp.c (check_all_array_refs): Adjust.
13404 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13406 * tree-ssa-operands.c (build_uses): store tree * instead of
13408 (finalize_ssa_uses): Adjust.
13409 (append_use): Likewise.
13410 (verify_ssa_operands): Likewise.
13412 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13414 * real.h (build_real_truncate): Declare.
13415 * tree.c (build_real_truncate): New function.
13416 (strip_float_extensions): Use it.
13417 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
13418 (fold_builtin_hypot, fold_builtin_pow): Likewise.
13419 * match.pd: Likewise.
13421 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
13422 Jiong Wang <jiong.wang@arm.com>
13424 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
13426 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13428 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
13429 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
13430 (aarch64_print_operand, aarch64_float_const_representable_p)
13431 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
13432 instead of REAL_VALUE_FROM_CONST_DOUBLE.
13433 * config/arc/arc.c (arc_print_operand): Likewise.
13434 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
13435 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
13436 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
13438 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
13439 (consttable_16): Likewise.
13440 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
13441 * config/avr/avr.c (avr_print_operand): Likewise.
13442 * config/bfin/bfin.md: Likewise (in a define_split).
13443 * config/c6x/c6x.md: Likewise (in a define_split).
13444 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
13445 (cr16_print_operand): Likewise.
13446 * config/cris/cris.c (cris_print_operand): Likewise.
13447 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
13448 * config/fr30/fr30.c (fr30_print_operand): Likewise.
13449 (fr30_const_double_is_zero): Likewise.
13450 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
13451 * config/frv/frv.md: Likewise (in a define_split).
13452 * config/frv/predicates.md (int_2word_operand): Likewise.
13453 * config/h8300/h8300.c (h8300_print_operand): Likewise.
13454 * config/i386/i386.c (standard_80387_constant_p): Likewise.
13455 (ix86_print_operand, ix86_split_to_parts): Likewise.
13456 * config/i386/i386.md: Likewise (in a define_split).
13457 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
13458 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
13459 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
13460 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
13461 (print_operand): Likewise.
13462 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
13463 * config/mep/mep.md: Likewise (in define_split).
13464 * config/microblaze/microblaze.c (microblaze_const_double_ok)
13465 (print_operand): Likewise.
13466 * config/mips/mips.md (consttable_float): Likewise.
13467 * config/mmix/mmix.c (mmix_intval): Likewise.
13468 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
13469 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
13470 * config/pa/pa.c (pa_singlemove_string): Likewise.
13471 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
13472 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
13473 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
13474 (output_toc): Likewise.
13475 * config/rs6000/rs6000.md: Likewise (in define_splits).
13476 * config/rx/rx.c (rx_print_operand): Likewise.
13477 * config/s390/s390.c (s390_output_pool_entry): Likewise.
13478 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13479 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
13480 (and also in define_splits).
13481 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
13482 (fp_high_losum_p): Likewise.
13483 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
13484 (*movsf_high): Likewise.
13485 * config/spu/spu.c (const_double_to_hwint): Likewise.
13486 * config/v850/v850.c (const_double_split): Likewise.
13487 * config/vax/vax.c (vax_float_literal): Likewise.
13488 * config/visium/visium.c (visium_expand_copysign): Likewise.
13489 * config/visium/visium.md: Likewise (in define_split).
13490 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13491 * config/xtensa/xtensa.c (print_operand): Likewise.
13492 (xtensa_output_literal): Likewise.
13493 * cprop.c (implicit_set_cond_p): Likewise.
13494 * dwarf2out.c (insert_float): Likewise.
13495 * expmed.c (expand_mult, make_tree): Likewise.
13496 * expr.c (compress_float_constant): Likewise.
13497 * rtlanal.c (split_double): Likewise.
13498 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13499 (simplify_const_unary_operation, simplify_binary_operation_1)
13500 (simplify_const_binary_operation): Likewise.
13501 (simplify_const_relational_operation): Likewise.
13502 * varasm.c (output_constant_pool_2): Likewise.
13504 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13506 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
13507 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13508 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
13509 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
13510 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13511 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
13512 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
13513 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
13514 (ix86_emit_swsqrtsf): Likewise.
13515 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
13516 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
13517 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13518 * config/pa/pa.c (pa_expand_builtin): Likewise.
13519 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
13520 (rs6000_scale_v2df): Likewise.
13521 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
13522 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
13523 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
13524 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
13525 (vec_ctul): Likewise.
13526 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
13527 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
13528 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
13529 * cse.c (fold_rtx): Likewise.
13530 * emit-rtl.c (immed_double_const): Likewise (in comments).
13531 (init_emit_once): Likewise.
13532 * expr.c (compress_float_constant, expand_expr_real_1)
13533 (const_vector_from_tree): Likewise.
13534 * optabs.c (expand_float, expand_fix): Likewise.
13535 * reg-stack.c (reg_to_stack): Likewise.
13536 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13537 (simplify_const_unary_operation, simplify_binary_operation_1)
13538 (simplify_const_binary_operation, simplify_relational_operation)
13539 (simplify_immed_subreg): Likewise.
13541 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13543 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
13544 * doc/tm.texi: Regenerate.
13545 * real.h (REAL_ARITHMETIC): Delete.
13546 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
13547 (ix86_expand_round_sse4): Use real_arithmetic instead of
13549 * config/i386/sse.md (round<mode>2): Likewise.
13550 * rtl.h (rtx_to_tree_code): Likewise (in comment).
13551 * explow.c (rtx_to_tree_code): Likewise (in comment).
13552 * match.pd: Likewise.
13553 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13554 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13555 (expand_pow_as_sqrts): Likewise.
13556 * tree-pretty-print.c (dump_generic_node): Remove code that
13557 was conditional on REAL_ARITHMETIC being undefined.
13559 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13561 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
13562 * doc/tm.texi: Regenerate.
13563 * real.h (real_less): Declare.
13564 (REAL_VALUES_LESS): Delete.
13565 * real.c (real_less): New function.
13566 (real_compare): Use it.
13567 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
13568 of REAL_VALUES_LESS.
13569 * config/microblaze/microblaze.c (microblaze_const_double_ok):
13571 * fold-const.c (fold_convert_const_int_from_real): Likewise.
13572 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13573 (simplify_const_relational_operation): Likewise.
13574 * tree-call-cdce.c (check_pow): Likewise.
13575 (gen_conditions_for_pow_cst_base): Likewise.
13577 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13579 * real.h (REAL_VALUES_IDENTICAL): Delete.
13580 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
13581 instead of REAL_VALUES_IDENTICAL.
13582 * fold-const.c (operand_equal_p): Likewise.
13583 * ipa-icf.c (sem_variable::equals): Likewise.
13584 * tree-complex.c (some_nonzerop): Likewise.
13585 (expand_complex_multiplication): Likewise.
13586 * tree.c (simple_cst_equal): Likewise.
13587 * varasm.c (compare_constant): Likewise.
13589 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13591 * real.h (real_equal): Declare.
13592 (REAL_VALUES_EQUAL): Delete.
13593 * real.c (real_equal): New function.
13594 (real_compare): Use it.
13595 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
13596 * doc/tm.texi: Regenerate.
13597 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
13598 real_equal instead of REAL_VALUES_EQUAL.
13599 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
13600 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
13601 (fp_const_from_val): Likewise.
13602 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
13603 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
13604 (floating_exact_log2): Likewise.
13605 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13606 * config/vax/vax.c (vax_float_literal): Likewise.
13607 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13608 * cprop.c (implicit_set_cond_p): Likewise.
13609 * expmed.c (expand_mult): Likewise.
13610 * fold-const.c (const_binop): Likewise.
13611 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13612 (simplify_const_binary_operation): Likewise.
13613 (simplify_const_relational_operation): Likewise.
13614 * tree-call-cdce.c (check_pow): Likewise.
13615 (gen_conditions_for_pow_cst_base): Likewise.
13616 * tree-inline.c (estimate_num_insns): Likewise.
13617 * tree-ssa-dom.c (record_equality): Likewise.
13618 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13619 (gimple_expand_builtin_pow): Likewise.
13620 (pass_optimize_widening_mul::execute): Likewise.
13621 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
13622 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
13623 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
13625 2015-10-05 Richard Biener <rguenther@suse.de>
13628 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
13629 consider loop header PHI defs as IVs.
13631 2015-10-05 Richard Biener <rguenther@suse.de>
13633 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
13635 (create_expression_by_pieces): ... here and build GIMPLE
13636 calls directly. Use gimple_build API and avoid force_gimple_operand.
13637 (insert_into_preds_of_block): Simplify.
13638 (do_regular_insertion): Add comment.
13640 2015-10-04 Jason Merrill <jason@redhat.com>
13642 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
13644 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
13646 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
13647 check for general register.
13648 (ix86_emit_save_regs): Ditto.
13649 (ix86_emit_save_regs_using_mov): Ditto.
13650 (ix86_emit_restore_regs_using_pop): Ditto.
13651 (ix86_emit_restore_regs_using_mov): Ditto.
13653 2015-10-03 Marek Polacek <polacek@redhat.com>
13655 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
13656 (insn-dfatab.o): Likewise.
13658 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
13660 * config.gcc (xtensa*-*-uclinux*): New configuration.
13661 * config/xtensa/uclinux.h: New file.
13662 * config/xtensa/uclinux.opt: New file.
13664 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
13666 * doc/cpp.texi (Standard Predefined Macros): Document value of
13667 __cplusplus for C++14.
13669 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
13671 * gcc.c (process_command): Use spec_machine rather than
13672 spec_host_machine to build tooldir_prefix2.
13674 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13675 Bernd Schmidt <bernds@codesourcery.com>
13677 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
13678 (Token, Stmt): Remove structs.
13679 (decls, vars, fns): Remove variables.
13680 (alloc_comment, append_stmt, is_keyword): Remove macros.
13681 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
13682 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
13683 (parse_init, parse_file): Remove functions.
13684 (read_file): Accept a pointer to a length and store into it.
13685 (process): Don't try to parse the input file, just write it out as
13686 a string, but looking for maps. Also write out the length.
13687 (main): Don't use "-S" to compile PTX code.
13689 2015-10-02 Jeff Law <law@redhat.com>
13691 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
13694 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13697 * config/nvptx/mkoffload.c (main): Scan the argument vector for
13698 -fopenmp, and skip generating an offloading image if specified.
13700 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
13702 * system.h (ROUND_UP): New macro definition.
13703 (ROUND_DOWN): Ditto.
13704 * ggc-page.c (ROUND_UP): Remove local macro definition.
13705 (PAGE_ALIGN): Implement using ROUND_UP macro.
13707 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
13708 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
13710 (ix86_compute_frame_layout): Ditto.
13711 (ix86_expand_prologue): Ditto.
13712 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
13713 to round down values.
13714 (expand_set_or_movmem_via_rep): Ditto.
13716 2015-10-02 Marek Polacek <polacek@redhat.com>
13718 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
13720 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
13722 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
13723 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
13724 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
13725 (free_gimple_bb): Renamed free_gimple_poly_bb.
13726 (try_generate_gimple_bb): Hoist loop invariant code.
13727 (analyze_drs_in_stmts): Same.
13728 (build_scop_drs): Call renamed functions.
13729 (new_pbb_from_pbb): Same.
13730 (scop_ivs_can_be_represented): Delete as functionality now moved to
13731 graphite-scop-detection.c
13732 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
13734 2015-10-02 Aditya Kumar <hiraditya@msn.com>
13736 * graphite-scop-detection.c (stmt_has_side_effects): New function
13737 outlined from stmt_simple_for_scop_p.
13738 (graphite_can_represent_stmt): Same.
13739 (stmt_simple_for_scop_p): Moved code out of this function for better
13742 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13744 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
13746 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
13748 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13750 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
13752 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
13754 PR rtl-optimization/67756
13755 * lra-constraints.c (match_reload): Add a new parameter. Use it
13756 for creating a pseudo with the same value.
13757 (curr_insn_transform): Pass a new argument to match_reload.
13759 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13761 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
13762 (expand_vec_perm_even_odd_1): Handle V64QImode.
13763 (ix86_expand_vec_perm_const_1): Try expansion with
13764 expand_vec_perm_even_odd_trunc as well.
13765 * config/i386/sse.md (VI124_AVX512F): Rename to ...
13766 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
13768 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
13769 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
13770 to V32HI and V16SI.
13771 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
13772 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
13773 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
13774 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
13775 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
13776 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
13778 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13780 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
13781 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
13783 2015-10-02 Jason Merrill <jason@redhat.com>
13786 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
13787 (diagnose_tm_1_op): Also diagnose volatile accesses in
13788 transaction_safe function.
13790 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
13792 * system.h (malloc.h): Don't include obsolete header.
13794 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13796 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
13797 (TLS_SECTION_ASM_FLAG): Delete.
13799 2015-10-02 Marek Polacek <polacek@redhat.com>
13802 * doc/invoke.texi: Document -Wduplicated-cond.
13803 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
13804 (insn-dfatab.o): Likewise.
13805 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
13808 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
13810 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
13813 2015-10-02 Renlin Li <renlin.li@arm.com>
13815 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
13817 2015-10-02 Renlin Li <renlin.li@arm.com>
13820 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
13822 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13824 PR rtl-optimization/67786
13825 PR rtl-optimization/67787
13826 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
13827 it modifies a reg used in the condition calculation.
13829 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
13831 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
13832 alternatives for reads from memory and moves from general-purpose
13834 (*aarch64_combinez_be<mode>): Likewise.
13836 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
13839 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
13840 selectany within this function without need to keep attribute.
13841 (i386_pe_encode_section_info): Remove selectany-code.
13843 2015-10-02 Richard Biener <rguenther@suse.de>
13845 * tree-ssa-sccvn.c (has_VN_INFO): New function.
13846 (free_scc_vn): Use it.
13847 (visit_use): Remove dead code and refactor to use gassign
13848 and use less indentation.
13850 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13854 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
13855 (rs6000_cannot_copy_insn_p): New function.
13856 * config/rs6000/rs6000.md (cannot_copy): New attribute.
13857 (load_toc_v4_PIC_1_normal): Set cannot_copy.
13858 (load_toc_v4_PIC_1_476): Ditto.
13860 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
13862 * graphite-scop-detection.c (struct sese_l): New conversion constructor
13863 so that this type can be pushed into a vec.
13864 (class scop_builder): use sese_l to collect scops.
13865 (get_scops): New getter function.
13866 (remove_intersecting_scops): Use sese_l instead of scops_p.
13867 (intersects): Same.
13870 (remove_subscops): Same.
13871 (build_scops): Add scops to vec<scops_p> once all the scops have been
13874 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
13876 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13877 Renamed type from gimple_bb_p to gimple_poly_bb_p.
13878 (translate_isl_ast_node_user): Same.
13879 * graphite-poly.c (new_poly_bb): Same.
13880 * graphite-poly.h (gbb_from_bb): Same.
13882 * graphite-sese-to-poly.c (new_gimple_bb):
13883 gimple_bb_p -> gimple_poly_bb_p
13884 (build_scop_scattering): Same.
13885 (find_params_in_bb): Same.
13886 (add_conditions_to_domain): Same.
13887 (sese_dom_walker::before_dom_children): Same.
13888 (analyze_drs_in_stmts): Same.
13889 (new_pbb_from_pbb): Same.
13890 (free_data_refs_aux): New pointer to type base_alias_pair.
13891 * graphite-sese-to-poly.h: Same.
13892 * sese.c (if_region_set_false_region): Fixed Indentation.
13893 (move_sese_in_condition): Same.
13895 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13896 Aditya Kumar <aditya.k7@samsung.com>
13898 PR tree-optimization/66980
13899 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
13900 when data reference analysis has failed.
13902 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13903 Aditya Kumar <aditya.k7@samsung.com>
13905 PR tree-optimization/67754
13906 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
13907 scev analysis on the same loop nest as analyze_drs_in_stmts.
13908 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
13910 (try_generate_gimple_bb): Call outermost_loop_in_sese.
13911 (analyze_drs_in_stmts): Same.
13912 * sese.c (outermost_loop_in_sese): ...here.
13914 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13915 Aditya Kumar <aditya.k7@samsung.com>
13917 PR tree-optimization/67754
13918 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
13919 recursion on the inner loops.
13921 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13923 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
13924 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
13925 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
13926 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
13927 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
13929 2015-10-01 Marek Polacek <polacek@redhat.com>
13932 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
13933 create_tmp_var_raw rather than create_tmp_var.
13935 2015-10-01 Marek Polacek <polacek@redhat.com>
13937 PR tree-optimization/67769
13938 * tree-ssa-phiopt.c (conditional_replacement): Call
13939 reset_flow_sensitive_info_in_bb.
13940 (minmax_replacement): Likewise.
13941 (abs_replacement): Likewise.
13943 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
13945 * builtins.c: Don't include gomp-constants.h.
13946 (fold_builtin_1): Don't fold acc_on_device here.
13947 * gimple-fold.c: Include gomp-constants.h.
13948 (gimple_fold_builtin_acc_on_device): New.
13949 (gimple_fold_builtin): Call it.
13951 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
13953 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
13954 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
13956 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
13958 * config/arm/aarch-common-protos.h
13959 (aarch_accumulator_forwarding): New.
13960 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13961 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
13962 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13963 * config/arm/cortex-a53.md: Rewrite.
13965 2015-10-01 Richard Biener <rguenther@suse.de>
13967 * gimple-match.h (mprts_hook): Declare.
13968 * gimple-match.head.c (mprts_hook): Define.
13969 (maybe_push_res_to_seq): Use new hook.
13970 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13971 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
13972 (vn_ssa_aux::has_constants): Remove.
13973 * tree-ssa-sccvn.c: Include gimple-match.h.
13974 (VN_INFO_GET): Assert we don't re-use SSA names.
13975 (vn_get_expr_for): Remove.
13976 (expr_has_constants): Likewise.
13977 (stmt_has_constants): Likewise.
13978 (simplify_binary_expression): Likewise.
13979 (simplify_unary_expression): Likewise.
13980 (vn_lookup_simplify_result): New hook.
13981 (visit_copy): Adjust.
13982 (visit_reference_op_call): Likewise.
13983 (visit_phi): Likewise.
13984 (visit_use): Likewise.
13985 (process_scc): Likewise.
13986 (init_scc_vn): Likewise.
13987 (visit_reference_op_load): Likewise. Use match-and-simplify and
13988 a gimple seq for inserted expressions.
13989 (try_to_simplify): Remove GENERIC stmt combining code.
13990 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
13991 * tree-ssa-pre.c (eliminate_insert): Adjust.
13992 (eliminate_dom_walker::before_dom_children): Likewise.
13994 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13996 * doc/invoke.texi (Optimization Options): Add
13997 -freorder-blocks-algorithm=.
13998 (Optimize Options) <-O>: Add -freorder-blocks.
13999 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
14000 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
14001 <-freorder-blocks>: Also enabled at levels -O and -Os.
14002 <-freorder-blocks-algorithm=>: Document new option.
14004 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14006 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
14007 with flag_reorder_blocks_algorithm.
14008 * common.opt (freorder-blocks-algorithm=): New flag.
14009 (reorder_blocks_algorithm): New enum.
14010 * flag-types.h (reorder_blocks_algorithm): New enum.
14011 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
14012 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
14014 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14016 * bb-reorder.c: Add intro comment.
14017 (reorder_basic_blocks_software_trace_cache): Print a header to
14019 (edge_order): New function.
14020 (reorder_basic_blocks_simple): New function.
14021 (reorder_basic_blocks): Choose between the STC and the simple
14022 algorithms (always choose the former).
14024 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14026 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
14027 function, factored out from ...
14028 (reorder_basic_blocks): ... here.
14030 2015-10-01 Tom de Vries <tom@codesourcery.com>
14032 * tree-cfg.c (dump_function_to_file): Dump function attributes using
14033 __attribute__(()) string. Move dumping of function attributes to before
14036 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
14039 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
14040 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
14041 based on gold linker version.
14042 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
14043 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
14044 * configure, config.in: Regenerate.
14046 2015-10-01 Alan Modra <amodra@gmail.com>
14048 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
14049 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
14050 (rs6000_output_mi_thunk): Likewise.
14052 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14054 * config/nvptx/mkoffload.c (process): Change offload data format.
14056 2015-09-30 Jeff Law <law@redhat.com>
14058 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
14059 with constant conditions.
14060 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
14061 (remove_ctrl_stmt_and_useless_edges): No longer static.
14062 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
14063 (remove_ctrl_stmt_and_useless_edges): Likewise.
14065 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14066 Cesar Philippidis <cesar@codesourcery.com>
14068 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
14069 (TARGET_GOACC_VALIDATE_DIMS): Override.
14070 * target.def (TARGET_GOACC): New target hook prefix.
14071 (validate_dims): New hook.
14072 * targhooks.h (default_goacc_validate_dims): New.
14073 * omp-low.c (oacc_validate_dims): New.
14074 (execute_oacc_device_lower): New.
14075 (default_goacc_validate_dims): New.
14076 (pass_data_oacc_device_lower): New.
14077 (pass_oacc_device_lower): New pass.
14078 (make_pass_oacc_device_lower): New.
14079 * tree-pass.h (make_pass_oacc_device_lower): Declare.
14080 * passes.def (pass_oacc_device_lower): Add it.
14081 * doc/tm.texi: Rebuilt.
14082 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
14083 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
14085 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14087 PR rtl-optimization/67037
14088 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
14090 2015-09-30 Bernd Schmidt <bernds@redhat.com>
14092 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
14093 * passes.c: Include tree-ssanames.h.
14094 (execute_function_todo): Flush the pending free SSA_NAMEs after
14095 eliminating unreachable basic blocks.
14096 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
14097 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
14098 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
14099 (flush_ssanames_freelist): New function.
14100 (release_ssaname_fn): Put released names on the queue.
14101 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
14102 * tree-ssanames.h (flush_ssanames_freelist): Declare.
14104 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14106 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
14107 (generate_target_descr_file, generate_target_offloadend_file)
14108 (generate_host_descr_file, prepare_target_image): Pass it on.
14109 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
14110 (compile_native, main): Pass it on.
14111 * lto-wrapper.c (compile_offload_image): Likewise.
14113 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14114 Ilya Verbin <ilya.verbin@intel.com>
14115 Andrey Turetskiy <andrey.turetskiy@intel.com>
14117 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
14118 (prepare_target_image, main): Refactor argv building to use
14121 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14123 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
14124 * config/spu/spu.c (spu_expand_atomic_op): New function.
14125 * config/spu/spu.md (AINT): New mode iterator.
14126 (ATOMIC): New code iterator.
14127 (atomic_name, atomic_pred): New code predicates.
14128 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
14129 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
14130 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
14131 "atomic_<atomic_name>_fetch<mode>"): Likewise.
14133 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
14135 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
14137 (scalar_chain::convert_reg): Likewise.
14139 2015-09-30 Richard Biener <rguenther@suse.de>
14141 * builtins.c: Add comment that no new simplifications should
14144 2015-09-30 Marek Polacek <polacek@redhat.com>
14146 PR tree-optimization/67690
14147 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
14148 reset_flow_sensitive_info_in_bb.
14149 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14150 * tree-ssanames.c: Include "gimple-iterator.h".
14151 (reset_flow_sensitive_info_in_bb): New function.
14152 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
14154 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14156 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
14157 variable, replacing it with...
14158 (offload_abi): ... this new variable. Adjust all users.
14159 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
14161 2015-09-30 Matthias Klose <doko@ubuntu.com>
14163 * configure.ac: Remove extraneous ;;.
14164 * configure: Regenerate.
14166 2015-09-29 James Bowman <james.bowman@ftdichip.com>
14168 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
14169 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
14170 predicate, disallow register for operand 2.
14172 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
14174 * graphite-dependences.c (scop_get_dependences): Moved in down
14175 in order to be visible to its caller.
14176 * graphite-poly.h: Removed compute_deps, and extend_schedule.
14178 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14179 Aditya Kumar <aditya.k7@samsung.com>
14181 PR tree-optimization/67754
14182 * graphite-optimize-isl.c (optimize_isl): Call
14183 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
14185 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14187 * builtins.c (expand_builtin_acc_on_device): Delete.
14188 (expand_builtin): Don't call it.
14189 (fold_builtin_1): Fold acc_on_device.
14191 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
14193 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
14194 (ix86_nsaved_sseregs): Likewise.
14196 2015-09-29 Jeff Law <law@redhat.com>
14198 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
14199 computation of unused value.
14201 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
14202 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
14203 inline macro expansion.
14205 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
14207 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
14208 (gen_shl_sext): Likewise.
14209 * config/sh/sh.md (divsi3): Likewise.
14210 (imm->ext_dest_operand splitter): Likewise.
14212 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14213 Aditya Kumar <aditya.k7@samsung.com>
14215 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
14216 (nb_data_writes_in_bb): Remove.
14217 (split_pbb): Remove.
14218 (split_reduction_stmt): Remove.
14219 (is_reduction_operation_p): Remove.
14220 (phi_contains_arg): Remove.
14221 (follow_ssa_with_commutative_ops): Remove.
14222 (detect_commutative_reduction_arg): Remove.
14223 (detect_commutative_reduction_assign): Remove.
14224 (follow_inital_value_to_phi): Remove.
14225 (edge_initial_value_for_loop_phi): Remove.
14226 (initial_value_for_loop_phi): Remove.
14227 (used_outside_reduction): Remove.
14228 (detect_commutative_reduction): Remove.
14229 (translate_scalar_reduction_to_array_for_stmt): Remove.
14230 (remove_phi): Remove.
14231 (dr_indices_valid_in_loop): Remove.
14232 (close_phi_written_to_memory): Remove.
14233 (translate_scalar_reduction_to_array): Remove.
14234 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
14235 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
14236 (rewrite_commutative_reductions_out_of_ssa): Remove.
14237 (build_poly_scop): Remove call to
14238 rewrite_commutative_reductions_out_of_ssa.
14240 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
14242 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
14243 Add new insn types for vector load and store pairs.
14244 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
14245 types "neon_ldp{,_q}".
14246 * config/arm/cortex-a57.md (neon_load_c): Add insn types
14248 (neon_store_complex): Add insn types "neon_stp{,_q}".
14249 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
14250 "neon_{ldp,stp}_q".
14252 2015-09-29 Jeff Law <law@redhat.com>
14254 * config/rx/constraints.md (Int08): Fix undefined left shift
14256 (Sint08, Sint16, Sint24): Likewise.
14257 * config/rx/rx.c (rx_get_stack_layout): Likewise.
14259 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
14262 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
14263 left shift behaviour.
14264 * config/msp430/constraints.md ('L' constraint): Similarly.
14265 ('Ys' constraint): Similarly.
14267 2015-09-29 Richard Biener <rguenther@suse.de>
14269 PR tree-optimization/67170
14270 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
14271 the translate function pointer parameter to get the
14272 bool whether to disambiguate only by reference.
14273 (walk_non_aliased_vuses): Likewise.
14274 * tree-ssa-alias.c (maybe_skip_until): Adjust.
14275 (get_continuation_for_phi_1): Likewise.
14276 (get_continuation_for_phi): Likewise.
14277 (walk_non_aliased_vuses): Likewise.
14278 * tree-ssa-sccvn.c (const_parms): New bitmap.
14279 (vn_reference_lookup_3): Adjust for interface change.
14280 Disambiguate parameters pointing to readonly memory.
14281 (free_scc_vn): Free const_parms.
14282 (run_scc_vn): Initialize const_parms from a fn spec attribute.
14284 2015-09-29 Richard Biener <rguenther@suse.de>
14286 PR tree-optimization/67741
14287 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
14288 builtin calls with correct signature.
14290 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
14293 * config/i386/i386.c: Include dbgcnt.h.
14294 (has_non_address_hard_reg): New.
14295 (convertible_comparison_p): New.
14296 (scalar_to_vector_candidate_p): New.
14297 (remove_non_convertible_regs): New.
14298 (scalar_chain): New.
14299 (scalar_chain::scalar_chain): New.
14300 (scalar_chain::~scalar_chain): New.
14301 (scalar_chain::add_to_queue): New.
14302 (scalar_chain::mark_dual_mode_def): New.
14303 (scalar_chain::analyze_register_chain): New.
14304 (scalar_chain::add_insn): New.
14305 (scalar_chain::build): New.
14306 (scalar_chain::compute_convert_gain): New.
14307 (scalar_chain::replace_with_subreg): New.
14308 (scalar_chain::replace_with_subreg_in_insn): New.
14309 (scalar_chain::emit_conversion_insns): New.
14310 (scalar_chain::make_vector_copies): New.
14311 (scalar_chain::convert_reg): New.
14312 (scalar_chain::convert_op): New.
14313 (scalar_chain::convert_insn): New.
14314 (scalar_chain::convert): New.
14315 (convert_scalars_to_vector): New.
14316 (pass_data_stv): New.
14318 (make_pass_stv): New.
14319 (ix86_option_override): Created and register stv pass.
14320 (flag_opts): Add -mstv.
14321 (ix86_option_override_internal): Likewise.
14322 * config/i386/i386.md (SWIM1248x): New.
14323 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
14324 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
14325 (*anddi3_doubleword): New.
14326 (*zext<mode>_doubleword): New.
14327 (*zextsi_doubleword): New.
14328 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
14329 (*<code>di3_doubleword): New.
14330 * config/i386/i386.opt (mstv): New.
14331 * dbgcnt.def (stv_conversion): New.
14333 2015-09-29 Tom de Vries <tom@codesourcery.com>
14335 * tree-cfg.c (dump_function_to_file): Dump function attributes.
14337 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
14340 * config/sh/sh.c (sh_override_options_after_change): New.
14341 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
14342 (sh_option_override): Move align_loops, align_jumps and
14343 align_functions handling into sh_override_options_after_change.
14345 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14347 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
14348 (nvptx_record_offload_symbol): Record function execution geometry.
14349 * config/nvptx/mkoffload.c (process): Include launch geometry in
14351 * omp-low.c (oacc_launch_pack): New.
14352 (replace_oacc_fn_attrib): New.
14353 (set_oacc_fn_attrib): New.
14354 (get_oacc_fn_attrib): New.
14355 (expand_omp_target): Create keyed varargs for GOACC_parallel call
14357 * omp-low.h (get_oacc_fn_attrib): Declare.
14358 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
14359 (DEF_FUNCTION_TYPE_VAR_11): Delete.
14360 * tree.h (OMP_CLAUSE_EXPR): New.
14361 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
14363 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14364 Sebastian Pop <s.pop@samsung.com>
14366 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
14368 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14369 Sebastian Pop <s.pop@samsung.com>
14371 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
14372 * graphite-scop-detection.c (struct sese_l): New type.
14373 (get_entry_bb): API for getting entry bb of SESE.
14374 (get_exit_bb): API for getting exit bb of SESE.
14375 (class debug_printer): New type. Simple printer in debug mode.
14376 (trivially_empty_bb_p): New. Return true when BB is empty or
14377 contains only debug instructions.
14378 (graphite_can_represent_expr): Call scalar_evoution_in_region
14379 instead of analyze_scalar_evolution. Pass in scop instead of only
14381 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
14383 (stmt_simple_for_scop_p): Same.
14384 (harmful_stmt_in_bb): Same.
14385 (graphite_can_represent_loop): Deleted.
14386 (struct scopdet_info): Deleted.
14387 (scopdet_basic_block_info): Deleted.
14388 (build_scops_1): Deleted.
14389 (bb_in_sd_region): Deleted.
14390 (find_single_entry_edge): Deleted.
14391 (find_single_exit_edge): Deleted.
14392 (create_single_entry_edge): Deleted.
14393 (sd_region_without_exit): Deleted.
14394 (create_single_exit_edge): Deleted.
14395 (unmark_exit_edges): Deleted.
14396 (mark_exit_edges): Deleted.
14397 (create_sese_edges): Deleted.
14398 (build_graphite_scops): Deleted.
14399 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
14400 (build_scops): Use the new scop_builder to build scops.
14401 (dot_all_scops_1): Use the new pretty printer. Print loop father
14403 (loop_body_is_valid_scop): New. Return true if loop body is a
14405 (class scop_builder): New. Builds SCoPs for polyhedral
14407 (scop_builder): New constructor.
14408 (static sese_l invalid_sese): sese_l with invalid edges.
14409 (get_sese): Get an sese (from a loop) if possible, invalid_sese
14411 (get_nearest_dom_with_single_entry): Get nearest dominator of a
14412 basic_block with single entry. Return NULL if we get to the
14413 beginning of a function.
14414 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
14415 a basic_block with single exit. Return NULL if we get to the
14416 beginning of a function.
14417 (print_sese): Pretty-print SESE.
14418 (merge_sese): Merge two SESEs if possible and return the new SESE.
14419 (build_scop_depth): Start building the SCoP within a loop nest.
14420 (build_scop_breadth): Start building the SCoP at a single loop
14421 depth. Merge adjacent SESEs if valid.
14422 (can_represent_loop_1): Returns true if Graphite can represent
14423 loop inside SCoP. Helper for can_represent_loop.
14424 (can_represent_loop): Returns true if Graphite can represent LOOP
14425 and all its nested loops in SCoP.
14426 (loop_is_valid_scop): Returns true if LOOP and all its nests
14427 constitute a valid SCoP.
14428 (region_has_one_loop): Returns true of a region has only one loop.
14429 (add_scop): Add SCoP to the list of valid scops. Removes an
14430 already existing scop if it intersects with or subsumed by this one.
14431 (harmful_stmt_in_region): Returns true if SCoP has any statment
14432 which cannot be represented by Graphite.
14433 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
14434 (remove_subscops): Remove any SCoP from the list of already found
14435 SCoPs, if subsumed by S1.
14436 (intersects): Return true if region bounded by SCoPs S1 and S2
14438 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
14439 * graphite.c (print_graphite_scop_statistics):
14440 (print_graphite_statistics): Print SCoP info while debugging.
14441 (graphite_initialize): Early exit in case number of loops in a
14442 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
14443 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14444 (graphite_finalize):
14445 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
14446 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
14447 (recompute_all_dominators): Recalculate POST_DOMINATORS.
14448 * tree-cfg.c (print_loops): Print the function name while printing
14451 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14452 Sebastian Pop <s.pop@samsung.com>
14454 PR tree-optimization/67700
14455 * graphite-sese-to-poly.c (parameter_index_in_region): Call
14456 invariant_in_sese_p_rec.
14457 (extract_affine): Same.
14458 (rewrite_cross_bb_scalar_deps): Call update_ssa.
14459 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
14460 * sese.h (invariant_in_sese_p_rec): Declare.
14462 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
14464 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
14466 2015-09-28 Jiong Wang <jiong.wang@arm.com>
14469 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14470 Jiong Wang <jiong.wang@arm.com>
14472 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14473 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14474 (REG_CLASS_NAMES): Likewise.
14475 (REG_CLASS_CONTENTS): Likewise.
14476 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14477 (aarch64_register_move_cost): Likewise.
14478 (aarch64_load_symref_appropriately): Invoke the new added pattern if
14480 * config/aarch64/constraints.md (Uc0): New constraint.
14482 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
14484 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
14486 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
14488 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
14489 SECTION_EXCLUDE in XO mapping class.
14491 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
14494 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
14495 and handle ne and eq codes.
14496 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
14497 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
14498 CONST_INT_P. Use reverse_condition.
14499 (sh_split_treg_set_expr): Likewise.
14501 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
14503 * config/arm/types.md (type): Add rotate_imm.
14504 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
14505 ROR immediate case.
14506 (*rorsi3_insn_uxtw): Likewise.
14507 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
14508 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
14509 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
14511 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14513 PR rtl-optimization/67481
14514 * ifcvt.c (contains_ccmode_rtx_p): New function.
14515 (insn_valid_noce_process_p): Use it.
14517 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14519 PR rtl-optimization/67456
14520 PR rtl-optimization/67464
14521 PR rtl-optimization/67465
14522 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
14523 move in the mode of x. Handle combination of complex and simple
14524 block pairs as well as the case when one is empty.
14526 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14528 * doc/gimple.texi: Update references to gimple_statement_base.
14529 * gdbhooks.py: Likewise.
14530 * gimple.h: Likewise.
14532 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14534 * config/sparc/driver-sparc.c: map LEON to leon3
14536 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14538 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
14539 and make it inverse to change default
14540 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
14542 * doc/invoke.texi: Document change of default
14544 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14546 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
14547 true on %f0 for a target without FPU.
14548 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
14550 (untyped_return): Do not load %f0 for a target without FPU.
14552 2015-09-28 Andrew Pinski <apinski@cavium.com>
14554 * config/aarch64/aarch64.md (prefetch):
14555 Change the predicate of operand 0 to register_operand.
14557 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
14559 * config/i386/predicates.md (register_sse4nonimm_operand): New
14561 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
14562 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
14563 Use register_sse4nonimm_operand as operand 0 predicate.
14564 (*vec_extractv8hi_sse2): Remove insn pattern.
14565 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
14566 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
14568 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
14569 Kaz Kojima <kkojima@gcc.gnu.org>
14572 * config/sh/sh-protos.h (sh_lra_p): Declare.
14573 * config/sh/sh.c (sh_lra_p): Make non-static.
14574 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
14575 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
14576 Expand into addsi3_scr if operands[2] if needed.
14577 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
14578 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
14579 (addsi3_scr, *addsi3): New insn_and_split patterns.
14581 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
14583 PR rtl-optimization/64164
14584 PR tree-optimization/67312
14585 PR middle-end/67340
14586 PR middle-end/67490
14588 * cfgexpand.c (parm_in_stack_slot_p): Remove.
14589 (ssa_default_def_partition): Remove.
14590 (get_rtl_for_parm_ssa_default_def): Remove.
14591 (set_rtl): Check that RTL assignments match expectations.
14592 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
14593 default def location for params and results. Record SSA names
14594 or types in REG and MEM attrs, respectively.
14595 (set_parm_rtl): New.
14596 (expand_one_ssa_partition): Drop logic that assigned MEMs with
14597 unassigned addresses.
14598 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
14599 deferred stack alloc vars.
14600 (expand_used_vars): Skip partitions holding parm default defs.
14601 Move adjust_one_expanded_partition_var loop...
14602 (pass_expand::execute): ... here. Drop redundant assert.
14603 Adjust comments before the final loop over all ssa names.
14604 Require assigned rtl of parms and results to match exactly.
14605 Reset its attributes to match them, not any other variables in
14606 the same partition.
14607 (expand_debug_expr): Use entry value for PARM's default defs
14608 only iff they have zero nondebug uses.
14609 * cfgexpand.h (parm_in_stack_slot_p): Remove.
14610 (get_rtl_for_parm_ssa_default_def): Remove.
14611 (set_parm_rtl): Declare.
14612 * doc/invoke.texi: Improve wording.
14613 * explow.c (promote_decl_mode): Fix promote_function_mode for
14614 result decls not by reference.
14615 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
14616 bypass TYPE_MODE to get the actual vector mode.
14617 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
14618 2015-08-19's changes as follows. Drop include of
14619 basic-block.h and df.h.
14620 (rtl_for_parm): Remove.
14621 (maybe_reset_rtl_for_parm): Remove.
14622 (parm_in_unassigned_mem_p): Remove.
14623 (use_register_for_decl): Add logic for RESULT_DECLs matching
14624 assign_parms' behavior.
14625 (split_complex_args): Revert.
14626 (assign_parms_augmented_arg_list): Revert. Add comment
14627 referencing the logic above.
14628 (assign_parm_adjust_stack_rtl): Revert.
14629 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
14630 of SET_DECL_RTL. Set up a REG if the parm demands so.
14631 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
14632 calls into a single set_parm_rtl. Set up a temporary RTL
14633 temporarily for expand_assignment.
14634 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
14635 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
14636 (assign_bounds): Revert.
14637 (assign_parms): Revert. Use set_parm_rtl.
14638 (allocate_struct_function): Relayout result and parms of
14639 non-abstruct functions.
14640 (expand_function_start): Revert. Use set_parm_rtl. If the
14641 result is not a hard reg, create a pseudo from the promoted
14642 mode of the default def. Promote static chain mode.
14643 * tree-outof-ssa.c (remove_ssa_form): Drop unused
14644 partition_has_default_def. Set up
14645 partitions_for_parm_default_defs.
14646 (finish_out_of_ssa): Remove partition_has_default_def.
14647 Release partitions_for_parm_default_defs.
14648 * tree-outof-ssa.h (struct ssaexpand): Remove
14649 partition_has_default_def. Add
14650 partitions_for_parm_default_defs.
14651 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
14653 (build_ssa_conflict_graph): Fix conflict-detection of default
14654 defs of even unused default defs of params and results.
14655 (for_all_parms): New.
14656 (create_default_def): New.
14657 (register_default_def): New.
14658 (coalesce_with_default): New.
14659 (create_outofssa_var_map): Create default defs for all parms
14660 and results, and register their partitions. Add GIMPLE_RETURN
14661 operands as coalesce candidates with results. Add default
14662 defs of each parm or result as coalesce candidates with its
14663 other defs. Mark each result def, and each default def of
14664 parms, as used_in_copy.
14665 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
14666 with the ssa names, even anonymous ones. Drop
14667 parm_in_stack_slot_p calls. Require same signedness and
14669 (coalesce_ssa_name): Add coalesce candidates for all defs of
14670 each parm and result, even unused ones.
14671 (parm_default_def_partition_arg): New type.
14672 (set_parm_default_def_partition): New.
14673 (get_parm_default_def_partitions): New.
14674 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
14675 * tree-ssa-live.c (partition_view_init): Regard unused defs of
14676 parms and results as used.
14677 (verify_live_on_entry): Don't error out just because they're
14680 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
14682 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14683 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
14684 (output_fde): Don't output length for debug_frame on AIX.
14685 (output_call_frame_info): Don't output length for debug_frame on AIX.
14686 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
14687 HAVE_XCOFF_DWARF_EXTRAS.
14688 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
14689 HAVE_XCOFF_DWARF_EXTRAS.
14690 (output_compilation_unit_header): Don't output length on AIX.
14691 (output_pubnames): Don't output length on AIX.
14692 (output_aranges): Delete argument. Compute length locally. Don't
14693 output length on AIX.
14694 (output_line_info): Don't output length on AIX.
14695 (dwarf2out_finish): Don't compute aranges_length.
14696 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14697 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
14698 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
14699 symbol decoration for AIX.
14700 (rs6000_xcoff_debug_unwind_info): New.
14701 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
14703 (rs6000_xcoff_declare_function_name): Emit different
14704 .function pseudo-op when DWARF2_DEBUG. Don't call
14705 xcoffout_declare_function for DWARF2_DEBUG.
14706 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
14708 * config/rs6000/aix71.h: New.
14709 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
14711 * configure: Regenerate.
14712 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
14715 2015-09-26 Jeff Law <law@redhat.com>
14717 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
14719 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
14722 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
14725 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
14726 undefined behaviour.
14728 * config/cris/cris.md (asrandb): Fix left shift undefined
14730 (asrandw): Likewise.
14732 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
14735 * lra-constarints.c (match_reload): Check presence of the input pseudo
14736 in the output operand.
14738 2015-09-25 Tobias Burnus <burnus@net-b.de>
14740 * doc/invoke.texi (-fsanitize): Minor wording tweak.
14742 2015-09-25 Tobias Burnus <burnus@net-b.de>
14744 * doc/invoke.texi (-fsanitize): Update URLs.
14746 2015-09-25 Teresa Johnson <tejohnson@google.com>
14748 * opts.c (finish_options): Unset -freorder-blocks-and-partition
14749 if not using profile.
14751 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
14753 PR pretty-print/67567
14754 * pretty-print.c (pp_string): Add gcc_checking_assert.
14755 * pretty-print.h (output_buffer_append_r): Likewise.
14757 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
14760 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
14761 addr2 individually. Don't emit logical or insn if one is known to
14762 be aligned approriately.
14763 (sh_expand_cmpnstr): Likewise.
14765 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
14767 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
14768 __builtin_aarch64_fp[sc]r arguments into a register.
14770 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
14772 * config.gcc (x86_archs): Replace lakemount with lakemont.
14773 (with_cpu): Likewise.
14774 (with_arch): Likewise.
14775 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14776 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
14777 __tune_lakemount__ with __tune_lakemont__.
14778 * config/i386/i386.c (lakemount_cost): Renamed to ...
14779 (lakemont_cost): This.
14780 (m_LAKEMOUNT): Renamed to ...
14781 (m_LAKEMONT): This.
14782 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
14783 (processor_target_table): Replace "lakemount" with "lakemont".
14784 (processor_alias_table): Likewise.
14785 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
14786 PROCESSOR_LAKEMONT.
14787 (ix86_adjust_cost): Likewise.
14788 (ia32_multipass_dfa_lookahead): Likewise.
14789 * config/i386/i386.h (processor_type): Likewise.
14790 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
14791 * doc/invoke.texi: Replace lakemount with lakemont. Replace
14792 Lakemount with Lakemont.
14794 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
14796 * config.gcc (x86_archs): Replace iamcu with lakemount.
14797 (with_cpu): Likewise.
14798 (with_arch): Likewise.
14799 * doc/invoke.texi: Likewise.
14800 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14801 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
14802 __tune_iamcu__ with __tune_lakemount__.
14803 * config/i386/i386.c (iamcu_cost): Renamed to ...
14804 (lakemount_cost): This.
14805 (m_IAMCU): Renamed to ...
14806 (m_LAKEMOUNT): This.
14807 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
14808 (processor_target_table): Replace "iamcu" with "lakemount".
14809 (processor_alias_table): Likewise.
14810 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
14811 PROCESSOR_LAKEMOUNT.
14812 (ix86_adjust_cost): Likewise.
14813 (ia32_multipass_dfa_lookahead): Likewise.
14814 * config/i386/i386.h (processor_type): Likewise.
14815 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
14817 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
14819 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
14820 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
14822 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
14823 (pa_expand_compare_and_swap_loop): New.
14824 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
14825 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
14826 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
14827 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
14828 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
14831 2015-09-24 Michael Collison <michael.collison@linaro.org>
14834 * read-md.c (read_name): Allow mode iterators inside angle
14835 brackets in rtl expressions.
14837 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
14840 * ira-color.c (update_allocno_cost): Add parameter.
14841 (update_costs_from_allocno): Decrease conflict cost. Pass the new
14844 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14847 * opts-common.c (prune_options): Discard all -fdiagnostics-color
14848 but the last one, which is moved to the front to be processed
14850 * opts.c (enable_warning_as_error): Reject options that do not
14853 2015-09-24 Jiong Wang <jiong.wang@arm.com>
14855 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
14857 2015-09-24 Jiong Wang <jiong.wang@arm.com>
14859 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
14860 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
14861 (aarch64_cannot_force_const_mem): Likewise.
14862 (aarch64_classify_address): Likewise.
14863 (aarch64_classify_symbolic_expression): Likewise.
14864 (aarch64_print_operand): Likewise.
14865 (aarch64_classify_symbol): Likewise.
14866 (aarch64_mov_operand_p): Likewise.
14867 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
14868 (aarch64_mov_operand): Likewise.
14870 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
14872 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
14873 for info->spe_gp_size.
14875 2015-09-24 Richard Biener <rguenther@suse.de>
14878 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
14881 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
14883 * tree-object-size.c (plus_stmt_object_size)
14884 (cond_expr_object_size): Change the formal parameters from gimple
14886 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
14887 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
14888 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
14890 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14892 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
14893 Check for ld -type pie on Solaris 11.x and 12.
14894 * configure: Regenerate.
14895 * config.in: Regenerate.
14897 * gcc.c (LD_PIE_SPEC): Allow redefinition.
14899 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
14900 (STARTFILE_SPEC): Use it.
14901 (ENDFILE_CRTEND_SPEC): Define.
14902 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
14903 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
14904 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
14905 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
14906 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
14907 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
14908 (ENDFILE_ARCH_SPEC): Define.
14909 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
14911 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14913 * configure.ac (gcc_cv_solaris_crts): New test.
14914 * configure. Regenerate.
14915 * config.in: Regenerate.
14916 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
14917 HAVE_SOLARIS_CRTS variant.
14919 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14921 * tree-inline.h (count_insns_seq): Delete prototype.
14922 (estimate_num_insns_seq): Define prototype.
14923 * tree-inline.c (count_insns_seq): Delete.
14924 (estimate_num_insns_seq): Remove static qualifier.
14925 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
14926 with estimate_num_insns_seq.
14928 2015-09-24 Richard Biener <rguenther@suse.de>
14930 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
14932 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
14933 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
14935 (ao_ref_init_from_vn_reference): Record clique and base in the
14937 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
14939 2015-09-24 Richard Biener <rguenther@suse.de>
14941 PR tree-optimization/48885
14942 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
14943 as not including any restrict tags from other pointers.
14945 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14947 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
14948 character when appending to offload_targets.
14950 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
14951 offload targets by commas, not colons.
14952 * config.in: Regenerate.
14953 * configure: Likewise.
14954 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
14955 instead of setting up the default offload targets here...
14956 (process_command): ..., do it here.
14958 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
14959 targets are separated by commas.
14960 * config.h.in: Regenerate.
14962 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14963 Nathan Sidwell <nathan@codesourcery.com>
14965 * omp-low.h (omp_reduction_init_op): Declare.
14966 * omp-low.c (omp_reduction_init_op): New, broken out of ...
14967 (omp_reduction_init): ... here. Call it.
14968 * tree-parloops.c (initialize_reductions): Use
14969 omp_reduction_init_op.
14971 2015-09-23 Richard Biener <rguenther@suse.de>
14973 PR middle-end/67662
14974 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
14975 undefined overflow unless they will cancel out.
14977 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
14979 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
14982 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
14985 * opts.h (write_langs): Declare.
14986 * opts-global.c (write_langs): Make it extern.
14988 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
14991 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
14992 overlapping regs when matching the pattern.
14994 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14996 * config/aarch64/aarch64-simd.md
14997 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
14998 (aarch64_float_truncate_hi_v4sf_le): New.
14999 (aarch64_float_truncate_hi_v4sf_be): Likewise.
15001 2015-09-23 Richard Biener <rguenther@suse.de>
15003 * tree-ssa-structalias.c (intra_create_variable_infos): Build
15004 representatives for all restrict qualified pointer destinations.
15006 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
15008 * config/i386/i386.md (define_code_attr mshift): New.
15009 (define_mode_iterator SWI1248_AVX512BW): Rename ...
15010 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
15012 (define_insn "*k<logic><mode>"): Use new iterator name.
15013 (define_insn "*<mshift><mode>3"): New.
15015 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
15017 PR middle-end/67649
15018 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
15019 mark the block as accessible.
15021 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
15023 * function.c (thread_prologue_and_epilogue_insns): Delete
15024 orig_entry_edge argument to try_shrink_wrapping.
15025 * shrink-wrap.c (can_get_prologue): New function.
15026 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
15027 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
15028 can_get_prologue where needed. Remove code that finds a single
15029 edge for the prologue. Remove code that tests if any reg clobbered
15030 by the prologue is live on the prologue edge. Remove code that finds
15031 the new prologue edge after duplicating blocks. Make a new prologue
15033 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
15035 2015-09-22 Jeff Law <law@redhat.com>
15037 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
15040 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
15042 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
15043 -Wtemplates, -Wnamespaces): Document.
15045 2015-09-22 Tom de Vries <tom@codesourcery.com>
15047 PR tree-optimization/67671
15048 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
15049 pointer references as restrict.
15051 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
15053 * config/nios2/nios2.c (nios2_legitimize_address): When handling
15054 'reg + reloc' cases, allow first operand to be non-REG, and use
15055 force_reg() to enforce address pattern.
15057 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
15060 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
15061 (define_mode_iterator VI12_AVX_AVX512F): New.
15062 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
15063 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
15064 (define_insn "*<code><mode>3"): ... Into new pattern using
15065 VI12_AVX_AVX512F iterators without masking.
15067 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15069 * config.gcc: Support "skylake-avx512".
15070 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15071 PROCESSOR_SKYLAKE_AVX512.
15072 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
15073 (processor_target_table): Add "skylake-avx512".
15074 (PTA_SKYLAKE_AVX512): Define.
15075 (ix86_option_override_internal): Add "skylake_avx512".
15076 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
15077 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
15078 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
15079 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
15080 * doc/invoke.texi (skylake-avx512): New.
15082 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15084 * config/i386/i386.md (define_insn "kunpckhi"): Fix
15085 operand in pattern.
15086 (define_insn "kunpcksi"): Ditto.
15087 (define_insn "kunpckdi"): Ditto.
15089 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15091 * config/i386/i386.md (define_split not/xor SWI1248x): Use
15092 iterator instead of fixed modes.
15094 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15096 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15097 Adjust declaration.
15098 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
15099 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
15100 out_result. Update to support update-fetch operations.
15101 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
15102 Adjust for change to aarch64_gen_atomic_ldop.
15103 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
15104 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
15105 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
15106 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
15107 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
15109 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15111 * config/aarch64/aarch64-protos.h
15112 (aarch64_atomic_ldop_supported_p): Declare.
15113 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
15114 (enum aarch64_atomic_load_op_code): New.
15115 (aarch64_emit_atomic_load_op): New.
15116 (aarch64_gen_atomic_ldop): Update to support load-operate
15118 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
15120 (aarch64_atomic_<atomic_optab><mode>): New.
15121 (aarch64_atomic_<atomic_optab><mode>_lse): New.
15122 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
15123 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
15124 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
15126 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15128 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
15129 (UNSPECV_ATOMIC_LDOP_OR): New.
15130 (UNSPECV_ATOMIC_LDOP_BIC): New.
15131 (UNSPECV_ATOMIC_LDOP_XOR): New.
15132 (UNSPECV_ATOMIC_LDOP_PLUS): New.
15133 (ATOMIC_LDOP): New.
15134 (atomic_ldop): New.
15135 (aarch64_atomic_load<atomic_ldop><mode>): New.
15137 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15139 * config/aarch64/aarch64.md
15140 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
15143 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15145 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15147 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
15148 (aarch64_gen_atomic_ldop): New.
15149 (aarch64_split_atomic_op): Fix whitespace and add a comment.
15150 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
15151 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
15152 (atomic_exchange<mode>): Replace with an expander.
15153 (aarch64_atomic_exchange<mode>): New.
15154 (aarch64_atomic_exchange<mode>_lse): New.
15155 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
15156 (aarch64_atomic_swp<mode>): New.
15158 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15160 * tree-inline.c (expand_call_inline): Use inform for extra note.
15161 Do not give a note with UNKNOWN_LOCATION.
15162 Replace input_location with gimple_location (stmt).
15163 Use true/false instead of TRUE/FALSE.
15165 2015-09-22 Tom de Vries <tom@codesourcery.com>
15167 PR tree-optimization/67666
15168 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
15169 with single field non-conservative.
15171 2015-09-21 David S. Miller <davem@davemloft.net>
15175 2015-09-11 David S. Miller <davem@davemloft.net>
15177 * config/sparc/constraints.md: Make "U" constraint a real register
15179 * config/sparc/sparc.c (TARGET_LRA_P): Define.
15180 (D_MODES, DF_MODES): Add missing cast.
15181 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15182 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15183 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15185 * config/sparc/sparc.h (PROMOTE_MODE): Define.
15186 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15187 provide these insn when flag_pic.
15189 2015-09-17 David S. Miller <davem@davemloft.net>
15191 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
15193 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
15195 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15196 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15197 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15198 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15199 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15200 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15201 provide when flag_pic.
15203 2015-09-21 Jeff Law <law@redhat.com>
15205 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
15208 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15210 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
15212 2015-09-21 Richard Biener <rguenther@suse.de>
15214 * passes.c (rest_of_decl_compilation): Do not call
15215 dwarf2out_early_global_decl for aliases.
15217 2015-09-21 Richard Biener <rguenther@suse.de>
15220 * dwarf2out.c (add_location_or_const_value_attribute): Remove
15221 attribute parameter. Early exit if either DW_AT_const_value
15222 or DW_AT_location are present already.
15223 (gen_variable_die): Adjust caller.
15224 (dwarf2out_late_global_decl): Likewise.
15226 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15229 * config/sh/sh.c (sh_remove_overlapping_post_inc,
15230 sh_peephole_emit_move_insn): Add new functions.
15231 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
15232 sh_peephole_emit_move_insn): Declere them.
15233 * config/sh/sh.md: Use them in various peephole2 patterns.
15235 2015-09-21 Richard Biener <rguenther@suse.de>
15237 PR middle-end/67651
15238 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
15239 address with -fno-delete-null-pointer-checks.
15241 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
15243 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
15244 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
15245 (reduc_uplus_v16qi): Remove.
15247 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
15248 (reduc_<VEC_reduc_name>_v2df): Remove.
15249 (reduc_<VEC_reduc_name>_v4sf): Remove.
15250 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
15252 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
15253 gen_ function by removing * prefix.
15254 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
15256 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
15258 PR middle-end/60832
15259 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
15260 Print i_bound without converting it to a tree.
15262 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
15264 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
15265 operands[4] operands[5] swap with std::swap, removed tmp variable.
15266 (arm_evpc_neon_vzip): Replaced in0/in1 and
15267 out0/out1 swaps with std::swap, removed x variable.
15268 (arm_evpc_neon_vtrn): Replaced in0/int1 and
15269 out0/out1 swaos with std::swap, removed x variable.
15270 (arm_expand_vec_perm_const_1): Replaced
15271 d->op0/d->op1 swap with std::swap, removed x variable.
15272 (arm_evpc_neon_vuzp): Replaced in0/in1 and
15273 out0/out1 swaps with std::swap, removed x variable.
15275 2015-09-21 Jonathan Yong <10walls@gmail.com>
15277 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
15278 sysroot/usr/lib/32api for additional win32 libraries,
15279 fixes failing Cygwin bootstrapping.
15281 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15283 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
15285 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15288 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
15289 (*mov_t_msb_neg): Rewrite negc pattern.
15291 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15293 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
15294 immediate generation code.
15296 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15298 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
15299 redundant immediate generation code.
15301 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15303 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
15304 (AARCH64_NUM_BITMASKS): Remove.
15305 (aarch64_bitmasks_cmp): Remove.
15306 (aarch64_build_bitmask_table): Remove.
15308 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15310 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
15311 slow immediate matching loops with a faster algorithm.
15313 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15315 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
15318 2015-09-20 Jeff Law <law@redhat.com>
15320 PR tree-optimization/47679
15321 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
15322 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
15323 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
15324 (thread_through_normal_block): Use record_temporary_equivalences.
15326 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
15328 * coretypes.h (gimple): Change typedef to be a forward declaration.
15329 * gimple.h (gimple_statement_base): rename to gimple.
15330 * (all functions and types using gimple): Adjust.
15331 * *.[ch]: Likewise.
15333 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
15334 David Edelsohn <dje.gcc@gmail.com>
15336 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
15337 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15338 (EH_FRAME_THROUGH_COLLECT2): Define.
15339 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15340 (ASM_OUTPUT_DWARF_PCREL): Define.
15341 (ASM_OUTPUT_DWARF_DATAREL): Define.
15343 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
15345 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
15348 2015-09-18 Jeff Law <law@redhat.com>
15350 PR tree-optimization/47679
15351 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
15353 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
15354 object. Update constructor.
15355 (pass_dominator::execute): Corresponding chagnes to declaration
15356 and initialization of avail_exprs_stack. Update constructor call
15357 for dom_opt_dom_walker object.
15358 (lookup_avail_expr, record_cond): Accept additional argument. Pass
15359 it down to children as needed.
15360 (record_equivalences_from_incoming_edge): Likewise.
15361 (eliminate_redundant_computations): Likewise.
15362 (record_equivalences_from_stmt): Likewise.
15363 (simplify_stmt_for_jump_threading): Likewise.
15364 (record_temporary_equivalences): Likewise.
15365 (optimize_stmt): Likewise.
15366 (dom_opt_dom_walker::thread_across_edge): Update access to
15367 avail_exprs_stack object and pass it to children as needed.
15368 (dom_opt_dom_walker::before_dom_children): Similarly.
15369 (dom_opt_dom_walker::after_dom_children): Similarly.
15370 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
15371 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
15372 Add avail_expr_stack argument. Pass it to children as needed.
15373 (dummy_simplify): Likewise.
15374 (simplify_control_stmt_condition): Likewise.
15375 (thread_around_empty_blocks): Likewise.
15376 (thread_through_normal_block): Likewise.
15377 (thread_across_edge): Likewise.
15378 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15379 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
15381 PR tree-optimization/47679
15382 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
15384 (dom_opt_dom_walker): New private member holding the const_and_copies
15385 object. Update constructor.
15386 (pass_dominator::execute): Corresponding changes to declaration
15387 and initialization of const_and_copies. Update constructor call
15388 for the dom_opt_dom_walker object.
15389 (record_temporary_equivalences): Accept const_and_copies argument
15390 pass it down to children as needed.
15391 (record_equality): Likewise.
15392 (record_equivalences_from_incoming_edge): Likewise.
15393 (cprop_into_successor_phis, optimize_stmt): Likewise.
15394 (eliminate_redundant_computations): Likewise.
15395 (dom_opt_dom_walker::thread_across_edge): Update access to
15396 const_and_copies object and pass it to children as needed.
15397 (dom_opt_dom_walker::before_dom_children): Similarly.
15398 (dom_opt_dom_walker::after_dom_children): Similarly.
15400 PR tree-optimization/47679
15401 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
15402 it into the avail_exprs_stack class.
15403 (pass_dominator::execute): Corresponding changes to declaration
15404 and initialization of avail_exprs. Pass avail_exprs to
15405 dump_dominator_optimization_stats.
15406 (record_cond): Extract avail_exprs from avail_exprs_stack.
15407 (lookup_avail_expr): Similarly.
15408 (htab_staticstics): Remove unnecessary prototype. Move to earlier
15410 (dump_dominator_optimization_stats): Make static and prototype.
15411 Add argument for the hash table to dump.
15412 (debug_dominator_optimization_stats): Remove.
15413 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
15415 (debug_dominator_optimization_stats): Similarly.
15416 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
15417 "void" in prototype for pop_to_marker method. Add accessor method
15418 for the underlying avail_exprs table.
15420 * tree-ssa-threadedge.c: Remove trailing whitespace.
15422 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
15424 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
15426 (pa_ldil_cint_p): Likewise.
15427 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
15428 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
15430 * config/pa/pa.md: Likewise.
15432 2015-09-18 David Malcolm <dmalcolm@redhat.com>
15434 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
15435 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
15436 (diagnostic_show_locus): Likewise.
15437 (diagnostic_print_caret_line): Likewise.
15438 * diagnostic-show-locus.c: New file.
15440 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
15442 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
15443 "back" parameter. Declare label in #if block.
15445 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
15447 PR middle-end/67619
15448 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
15449 the address to a register.
15451 2015-09-18 Jeff Law <law@redhat.com>
15453 PR tree-optimization/47679
15454 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
15455 * tree-ssa-dom.c: Remove unnecessary header includes.
15456 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
15457 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
15458 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
15459 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
15460 (pass_phi_only_cprop::execute): Likewise.
15461 (make_pass_phi_only_cprop): Likewise.
15462 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
15463 uses of file scoped statics by passing the required objects
15464 as parameters wherever needed.
15466 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
15467 David Edelsohn <dje.gcc@gmail.com>
15469 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
15470 EH_FRAME_THROUGH_COLLECT2.
15471 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
15473 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
15474 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
15475 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
15476 * except.c (switch_to_exception_section): Use a read-only section
15477 even if EH_FRAME_SECTION_NAME is undefined.
15478 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
15479 * collect2.c (write_c_file_stat): Provide dbase on AIX.
15480 (scan_prog_file): Don't export __dso_handle nor
15481 __gcc_unwind_dbase.
15482 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15483 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15484 (ASM_OUTPUT_DWARF_PCREL): Define.
15485 (ASM_OUTPUT_DWARF_DATAREL): Define.
15486 (EH_FRAME_THROUGH_COLLECT2): Define.
15487 (EH_FRAME_IN_DATA_SECTION): Delete.
15488 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
15489 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
15491 (rs6000_asm_output_dwarf_datarel): Declare.
15492 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
15493 (rs6000_aix_asm_output_dwarf_datarel): New.
15494 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
15495 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
15496 (EH_FRAME_THROUGH_COLLECT2): Define.
15497 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
15498 (EH_FRAME_THROUGH_COLLECT2): Define.
15499 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15500 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
15501 (EH_FRAME_THROUGH_COLLECT2): New.
15502 (ASM_OUTPUT_DWARF_DATAREL): New.
15503 * doc/tm.texi: Regenerate.
15505 2015-09-18 Richard Biener <rguenther@suse.de>
15507 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
15508 we're in early phase.
15509 (schedule_generic_params_dies_gen): Likewise.
15510 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
15511 work as possible, retaining unhandled cases.
15512 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
15513 clear out generic_type_instances at the end.
15514 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
15515 (dwarf2out_early_finish): ... here. Do most of
15516 gen_remaining_tmpl_value_param_die_attribute here.
15518 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
15520 PR tree-optimization/67283
15521 * tree-sra.c (type_consists_of_records_p): Rename to...
15522 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15523 (completely_scalarize_record): Rename to...
15524 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15525 (scalarize_elem): New.
15526 (analyze_all_variable_accesses): Follow renamings.
15528 2015-09-18 Richard Biener <rguenther@suse.de>
15530 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
15533 2015-09-18 Richard Biener <rguenther@suse.de>
15535 PR tree-optimization/66142
15536 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
15537 treat MEM[&x] and x the same.
15538 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
15539 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
15540 when we simplified sth.
15541 (vn_reference_maybe_forwprop_address): Likewise.
15542 (valueize_refs_1): When we simplified through
15543 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
15544 set valueized_anything to true.
15545 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
15546 one ref kills the other instead of just a offset-based test.
15547 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
15548 for the operand_equal_p test to compare bases and also compare
15551 2015-09-17 Christian Bruel <christian.bruel@st.com>
15553 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
15555 2015-09-17 Richard Henderson <rth@redhat.com>
15558 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
15559 pointers that encode the alignment of the object.
15561 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
15563 PR rtl-optimization/66790
15564 * df-problems.c (LIVE): Amend documentation.
15566 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
15568 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
15570 (GTFILES): Replace optabs.c with optabs-libfunc.c.
15571 * genopinit.c (main): Add an include guard to insn-opinit.h.
15572 Protect the rtx_code parts with NUM_RTX_CODE.
15573 * optabs.h: Split parts out to...
15574 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
15575 * optabs.c: Split parts out to...
15576 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
15577 * cilk-common.c: Include optabs-query.h rather than optabs.h.
15578 * fold-const.c: Likewise.
15579 * target-globals.c: Likewise.
15580 * tree-if-conv.c: Likewise.
15581 * tree-ssa-forwprop.c: Likewise.
15582 * tree-ssa-loop-prefetch.c: Likewise.
15583 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
15584 Remove unncessary include files.
15585 * tree-ssa-phiopt.c: Likewise.
15586 * tree-ssa-reassoc.c: Likewise.
15587 * tree-switch-conversion.c: Likewise.
15588 * tree-vect-data-refs.c: Likewise.
15589 * tree-vect-generic.c: Likewise.
15590 * tree-vect-loop.c: Likewise.
15591 * tree-vect-patterns.c: Likewise.
15592 * tree-vect-slp.c: Likewise.
15593 * tree-vect-stmts.c: Likewise.
15594 * tree-vrp.c: Likewise.
15595 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
15596 rather than optabs.h.
15597 * expr.c: Include optabs-tree.h.
15598 * function.c: Likewise.
15600 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
15602 PR middle-end/65958
15603 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
15604 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
15605 * config/arm/arm.c: Include common/common-target.h.
15606 (use_return_insn): Return 0 if the static chain register was saved
15607 above a non-APCS frame.
15608 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
15609 (struct scratch_reg): New.
15610 (get_scratch_register_on_entry): New function.
15611 (release_scratch_register_on_entry): Likewise.
15612 (arm_emit_probe_stack_range): Likewise.
15613 (output_probe_stack_range): Likewise.
15614 (arm_expand_prologue): Factor out code dealing with the IP register
15615 for nested function and adjust it for stack checking.
15616 Invoke arm_emit_probe_stack_range if static builtin stack checking
15618 (thumb1_expand_prologue): Sorry out if static builtin stack checking
15620 (arm_expand_epilogue): Add the saved static chain register, if any, to
15621 the amount of pre-pushed registers to pop.
15622 (arm_frame_pointer_required): Return true if static stack checking is
15623 enabled and we want to catch the exception with the EABI unwinder.
15624 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
15625 (UNSPEC_PROBE_STACK_RANGE): Likewise.
15626 * config/arm/arm.md (probe_stack): New insn.
15627 (probe_stack_range): Likewise.
15629 2015-09-17 Richard Biener <rguenther@suse.de>
15631 * genmatch.c (parser::parse_expr): Improve error message
15632 for mis-placed flags.
15634 2015-09-17 Richard Biener <rguenther@suse.de>
15636 * passes.c (rest_of_decl_compilation): Always call early_global_decl
15637 debug hook when we created a varpool node.
15638 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
15639 dwarf2out_early_global_decl, when not just add location or
15640 value attributes to existing DIEs.
15642 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
15644 * config/aarch64/aarch64.md (copysigndf3): New.
15645 (copysignsf3): Likewise.
15647 2015-09-17 David S. Miller <davem@davemloft.net>
15649 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
15650 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
15651 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15652 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15653 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15654 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15655 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15656 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15657 provide when flag_pic.
15659 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
15661 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
15662 object_allocator change.
15664 2015-09-17 Bin Cheng <bin.cheng@arm.com>
15666 PR tree-optimization/66388
15667 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
15668 (dump_iv): Dump no_overflow information.
15669 (alloc_iv): Initialize new field for struct iv.
15670 (mark_bivs): Count number of no_overflow bivs.
15671 (find_deriving_biv_for_expr, record_biv_for_address_use): New
15673 (idx_find_step): Call new functions above.
15674 (add_candidate_1, add_candidate): New paramter.
15675 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
15676 (get_computation_aff): Simplify convertion of cand for BIV.
15677 (get_computation_cost_at): Step cand's base if necessary.
15679 2015-09-17 Bin Cheng <bin.cheng@arm.com>
15681 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
15683 (tree_simplify_using_condition): Ditto.
15684 (simplify_using_initial_conditions): Ditto.
15685 (loop_exits_before_overflow): Pass new argument to function
15686 simplify_using_initial_conditions. Remove case for type conversions
15688 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
15690 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
15691 in iv base using loop initial conditions.
15693 2015-09-16 Jeff Law <law@redhat.com>
15695 PR tree-optimization/47679
15696 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
15697 (free_all_edge_infos): Use it.
15698 (allocate_edge_info): Free preexisting edge info data.
15699 (pass_dominator::execute): Set up initial edge info structures.
15700 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
15701 thread_across_edge.
15702 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
15703 If non-null, then push/pop markers appropriately.
15704 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15705 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
15706 thread-across_edge.
15708 2015-09-16 James Bowman <james.bowman@ftdichip.com>
15710 * config/ft32/ft32.c: Fix the memory address space predicate.
15712 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
15715 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
15716 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15718 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15720 * toplev.h (check_global_declaration): Remove declaration.
15721 * toplev.c (check_global_declaration): Move to ...
15722 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
15723 (analyze_functions): Update call.
15725 2015-09-16 David S. Miller <davem@davemloft.net>
15727 * lra-constraints.c (simplify_operand_subreg): Do not assume that
15728 lowpart of a SUBREG has offset zero.
15730 2015-09-16 Jeff Law <law@redhat.com>
15732 PR tree-optimization/47679
15733 * tree-ssa-dom.c (enum expr_kind): Moved from here to
15734 tree-ssa-scopedtables.h.
15735 (struct hashable_expr, class expr_hash_elt): Likewise.
15736 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
15737 Move associated methods into tree-ssa-scopedtables.c.
15738 (avail_expr_hash, initialize_expr_from_cond): Similarly.
15739 (hashable_expr_equal_p, add_expr_commutative): Likewise.
15740 (add_hashable_expr): Likewise.
15741 (record_cond): Delete element directly.
15742 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
15743 private copy ctor and assignment operator methods.
15744 (expr_elt_hasher): Inline trivial methods.
15745 (initialize_expr_from_cond): Prototype.
15746 * tree-ssa-scopedtables.c: Add necessary includes, functions and
15747 methods that were previously in tree-ssa-dom.c. Improve various
15750 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
15752 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
15754 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
15757 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15760 2015-09-16 Richard Biener <rguenther@suse.de>
15762 PR middle-end/67253
15763 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
15764 location of possibly shared trees.
15766 2015-09-16 Richard Biener <rguenther@suse.de>
15768 PR middle-end/67271
15769 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
15771 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
15773 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
15774 offset and size computations instead of HOST_WIDE_INT.
15776 2015-09-16 Richard Biener <rguenther@suse.de>
15778 PR middle-end/67442
15779 * fold-const.c (extract_muldiv_1): Properly extend multiplication
15780 result before builting a tree via wide_int_to_tree.
15782 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
15784 * Makefile.in: Add memory-block.cc
15785 (pool_allocator::initialize): Use fixed block size.
15786 (pool_allocator::release): Use memory_block_pool.
15787 (pool_allocator::allocate): Likewise.
15788 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
15790 * cfg.c (initialize_original_copy_tables): Likewise.
15791 * cselib.c (elt_list_pool, elt_loc_list_pool,
15792 cselib_val_pool): Likewise.
15793 * df-problems.c (df_chain_alloc): Likewise.
15794 * df-scan.c (df_scan_alloc): Likewise.
15795 * dse.c (cse_store_info_pool, rtx_store_info_pool,
15796 read_info_type_pool, insn_info_type_pool, bb_info_pool,
15797 group_info_pool, deferred_change_pool): Likewise.
15798 * et-forest.c (et_nodes, et_occurrences): Likewise.
15799 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
15800 ipcp_agg_lattice_pool): Likewise.
15801 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
15802 * ipa-profile.c (histogram_pool): Likewise.
15803 * ipa-prop.c (ipa_refdesc_pool): Likewise.
15804 * ira-build.c (live_range_pool, allocno_pool, object_pool,
15805 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
15806 * ira-color.c (update_cost_record_pool): Likewise.
15807 * lra-lives.c (lra_live_range_pool): Likewise.
15808 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
15809 * memory-block.cc: New file.
15810 * memory-block.h: New file.
15811 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
15812 * sched-deps.c (sched_deps_init): Likewise.
15813 * sel-sched-ir.c (sched_lists_pool): Likewise.
15814 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
15815 * tree-sra.c (access_pool): Likewise.
15816 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15817 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
15818 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
15819 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15820 * tree-ssa-strlen.c (strinfo_pool): Likewise.
15821 * tree-ssa-structalias.c (variable_info_pool): Likewise.
15822 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
15823 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
15825 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
15827 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
15829 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
15832 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
15834 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
15835 to pass TLS call argument, according to current ABI.
15836 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
15837 callx0 for TLS call, according to current ABI.
15839 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
15841 * tree-eh.c (lower_try_finally_dup_block): Clear location information
15842 on stack restore statements.
15843 (decide_copy_try_finally): Do not consider a stack restore statement as
15844 coming from sources.
15846 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
15848 * config/alpha/alpha.c (alpha_expand_block_clear): Use
15849 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
15851 2015-09-15 Jeff Law <law@redhat.com>
15853 PR tree-optimization/47679
15854 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
15855 methods and private members.
15856 (avail_exprs_stack): Similarly. Change type of global
15857 from a pair of expr_hash_elt_t to the new class.
15858 (expr_elt_hasher::hash): Corresponding changes.
15859 (expr_elt_hasher::equal): Similarly.
15860 (avail_expr_hash): Similarly.
15861 (pass_dominator::execute): Similarly.
15862 (dom_opt_dom_walker::thread_across_edge): Similarly.
15863 (record_cond): Similarly.
15864 (dom_opt_dom_walker::before_dom_children): Similarly.
15865 (dom_opt_dom_walker::after_dom_children): Similarly.
15866 (lookup_avail_expr): Likewise.
15867 (initialize_hash_element): Now a expr_hash_elt constructor.
15868 (initialize_hash_element_from_expr): Similarly.
15869 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
15870 (free_expr_hash_elt): Call dtor for the element.
15871 (remove_local_expressions_from_table): Now the "pop_to_marker"
15872 method in the available_exprs_stack class.
15873 (avail_expr_stack::record_expr): Method factored out.
15874 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
15876 (hashable_expr_equal_p): Fix formatting.
15878 2015-09-15 David Malcolm <dmalcolm@redhat.com>
15880 * input.h (location_get_source_line): Drop "expanded_location"
15881 param in favor of a file and line number.
15882 * input.c (location_get_source_line): Likewise.
15883 (dump_location_info): Update for change in signature of
15884 location_get_source_line.
15885 * diagnostic.c (diagnostic_print_caret_line): Likewise.
15887 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
15889 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
15890 Bump to 4KB for SJLJ exceptions.
15891 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
15892 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
15893 * doc/tm.texi: Regenerate.
15895 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15897 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
15898 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
15901 2015-09-15 Richard Biener <rguenther@suse.de>
15903 PR tree-optimization/67470
15904 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
15905 structure for PHI hoisting by inserting a forwarder block
15908 2015-09-15 Christian Bruel <christian.bruel@st.com>
15910 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
15911 (arm_option_print): New function.
15913 2015-09-15 Christian Bruel <christian.bruel@st.com>
15916 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
15917 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
15918 Remove flags parameter.
15919 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
15920 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
15921 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
15922 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
15923 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
15924 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
15925 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
15926 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
15928 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15930 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
15932 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
15933 AARCH64_VALID_SIMD_DREG_MODE.
15935 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15937 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
15938 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
15939 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
15940 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
15941 aarch64_ld4_lane<mode>): Combine together, making...
15942 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15943 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15944 aarch64_st4_lane<mode>): Combine together, making...
15945 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15946 * config/aarch64/iterators.md (nregs): Add comment.
15948 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15950 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
15951 Change operand mode from <V_TWO_ELEM> to BLK.
15952 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
15953 (aarch64_vec_store_lanesoi_lane<mode): Likewise
15954 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15955 (aarch64_ld2_lane<mode>): Likewise.
15956 (aarch64_st2_lane<VQ:mode>): Likewise.
15957 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
15959 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15961 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
15962 Change operand mode from <V_FOUR_ELEM> to BLK.
15963 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
15964 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
15965 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15966 (aarch64_ld4_lane<mode>): Likewise.
15967 (aarch64_st4_lane<mode>): Likewise.
15968 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
15970 2015-09-15 Richard Biener <rguenther@suse.de>
15972 PR middle-end/67563
15973 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
15974 transfer EH info from old to new stmt.
15975 (replace_call_with_value): Likewise.
15976 (replace_call_with_call_and_fold): Likewise.
15977 (gimple_fold_builtin_memory_op): Likewise.
15978 (gimple_fold_builtin_memset): Likewise.
15979 (gimple_fold_builtin_stpcpy): Likewise.
15980 (gimple_fold_call): Likewise.
15982 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15984 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
15986 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
15987 (aarch64_simd_intEI_type_node): Likewise.
15988 (aarch64_simd_builtin_std_type): Remove EImode case.
15989 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
15990 * config/aarch64/aarch64-modes.def: Remove EImode.
15992 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15994 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
15995 Change operand mode from <V_THREE_ELEM> to BLK.
15996 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
15997 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
15998 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15999 (aarch64_ld3_lane<mode>): Likewise.
16000 (aarch64_st3_lane<mode>): Likewise.
16001 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
16003 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16005 * config/aarch64/aarch64-simd.md
16006 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
16007 Change all TImode operands to BLKmode.
16008 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
16009 Change all EImode operands to BLKmode.
16010 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
16011 Change all OImode operands to BLKmode.
16013 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
16014 and call set_mem_size.
16015 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
16017 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
16019 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16021 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
16023 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
16025 (vec_store_lanesci_lane<mode>): Rename to...
16026 (aarch64_vec_store_lanesci_lane<mode>): ...this.
16028 (vec_store_lanesxi_lane<mode>): Rename to...
16029 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
16031 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
16032 aarch64_st4_lane<mode>): Follow renaming.
16034 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16036 * config/s390/s390.c (s390_const_operand_ok): Add missing
16039 2015-09-15 Richard Biener <rguenther@suse.de>
16042 * lto-streamer.h (lto_location_cache::current_sysp): Properly
16044 * lto-streamer-out.c (clear_line_info): Likewise.
16046 2015-09-15 Richard Biener <rguenther@suse.de>
16048 * doc/match-and-simplify.texi: Fix wording.
16050 2015-09-15 Bin Cheng <bin.cheng@arm.com>
16052 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
16053 unnecessary type conversion in op1.
16055 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
16057 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
16058 (dup_block_and_redirect): Delete function.
16059 (can_dup_for_shrink_wrapping): New function.
16060 (fix_fake_fallthrough_edge): New function.
16061 (try_shrink_wrapping): Rewrite function.
16062 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
16064 2015-09-14 Rich Felker <dalias@libc.org>
16066 * configure.ac: Change target pattern for sh TLS support
16067 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
16068 * configure: Regenerate.
16070 2015-09-14 Jeff Law <law@redhat.com>
16072 PR tree-optimization/47679
16073 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
16074 type rather than void *.
16076 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
16079 * diagnostic.c (diagnostic_initialize): Do not set
16080 some_warnings_are_errors.
16081 (diagnostic_finish): Use DK_WERROR count instead.
16082 (diagnostic_report_diagnostic): Do not set
16083 some_warnings_are_errors.
16084 * diagnostic.h (struct diagnostic_context): Remove
16085 some_warnings_are_errors.
16087 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
16089 * config/sparc/predicates.md (const_all_ones_operand): Use
16090 CONSTM1_RTX to simplify definition.
16092 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
16095 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
16098 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
16100 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
16101 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
16102 OPT_fshow_column to handled saved option cases.
16103 (append_compiler_options): Do not skip the above added options.
16105 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16108 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
16109 nopcrelative_literal_loads.
16110 (aarch64_classify_address): Likewise.
16111 (aarch64_constant_pool_reload_icode): Define.
16112 (aarch64_secondary_reload): Handle secondary reloads for
16114 (aarch64_override_options): Handle nopcrelative_literal_loads.
16115 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
16116 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
16118 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
16119 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
16120 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
16122 * doc/invoke.texi (mpc-relative-literal-loads): Document.
16124 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
16126 PR middle-end/67401
16127 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
16128 sync_compare_and_swap_optab libcall to target_oval.
16130 2015-09-14 Marek Polacek <polacek@redhat.com>
16132 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
16134 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
16136 2015-09-11 Mark Wielaard <mjw@redhat.com>
16139 * toplev.c (check_global_declaration): Check and use
16140 warn_unused_const_variable.
16141 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
16142 (-Wunused-variable): Remove non-constant. For C implies
16143 -Wunused-const-variable.
16144 (-Wunused-const-variable): New.
16146 2015-09-14 Richard Biener <rguenther@suse.de>
16148 * doc/match-and-simplify.texi: Update for changed syntax
16149 of inner ifs and the new switch expression.
16151 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16153 * config/i386/haswell.md: New file describing Haswell pipeline.
16154 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
16155 haswell-like processors.
16156 (ix86_reassociation_width): Increase reassociation width for 64-bit
16157 Haswell processor family.
16158 * config/i386/i386.md: Introduce haswell cpu and include new md file.
16160 2015-09-14 Richard Biener <rguenther@suse.de>
16162 * doc/match-and-simplify.texi: Fixup some formatting issues
16163 and document the 's' flag.
16165 2015-09-13 Olivier Hainque <hainque@adacore.com>
16166 Eric Botcazou <ebotcazou@adacore.com>
16168 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
16169 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
16170 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
16171 (TARGET_CPU_gr5): Likewise.
16172 (TARGET_CPU_gr6): Likewise.
16173 (MULTILIB_DEFAULTS): Likewise.
16174 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
16175 for mcpu=gr5 and mcpu=gr6.
16176 (MULTILIB_DIRNAMES): Adjust accordingly.
16178 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16180 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
16181 (mem_ref_p): Likewise.
16182 (outermost_indep_loop): Adjust.
16183 (mem_ref_in_stmt): Likewise.
16184 (determine_max_movement): Likewise.
16185 (mem_ref_alloc): Likewise.
16186 (record_mem_ref_loc): Likewise.
16187 (set_ref_stored_in_loop): Likewise.
16188 (mark_ref_stored): Likewise.
16189 (gather_mem_refs_stmt): Likewise.
16190 (mem_refs_may_alias_p): Likewise.
16191 (for_all_locs_in_loop): Likewise.
16192 (struct rewrite_mem_ref_loc): Likewise.
16193 (rewrite_mem_refs): Likewise.
16194 (struct first_mem_ref_loc_1): Likewise.
16195 (first_mem_ref_loc): Likewise.
16196 (struct sm_set_flag_if_changed): Likewise.
16197 (execute_sm_if_changed_flag_set): Likewise.
16198 (execute_sm): Likewise.
16199 (hoist_memory_references):
16200 (struct ref_always_accessed): Likewise.
16201 (ref_always_accessed_p): Likewise.
16202 (refs_independent_p): Likewise.
16203 (record_dep_loop): Likewise.
16204 (ref_indep_loop_p_1): Likewise.
16205 (ref_indep_loop_p_2): Likewise.
16206 (ref_indep_loop_p): Likewise.
16207 (can_sm_ref_p): Likewise.
16208 (find_refs_for_sm): Likewise.
16209 (tree_ssa_lim_finalize): Likewise.
16211 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16213 * dwarf2out.c (dw_attr_ref): Remove typedef.
16214 (dw_line_info_ref): Likewise.
16215 (pubname_ref): Likewise.
16216 (dw_ranges_ref): Likewise.
16217 (dw_ranges_by_label_ref): Likewise.
16218 (comdat_type_node_ref): Likewise.
16220 (get_AT_low_pc): Likewise.
16221 (get_AT_hi_pc): Likewise.
16222 (get_AT_string): Likewise.
16223 (get_AT_flag): Likewise.
16224 (get_AT_unsigned): Likewise.
16225 (get_AT_ref): Likewise.
16226 (get_AT_file): Likewise.
16227 (remove_AT): Likewise.
16228 (print_die): Likewise.
16229 (check_die): Likewise.
16230 (die_checksum): Likewise.
16231 (attr_checksum_ordered): Likewise.
16232 (struct checksum_attributes): Likewise.
16233 (collect_checksum_attributes): Likewise.
16234 (die_checksum_ordered): Likewise.
16235 (same_die_p): Likewise.
16236 (is_declaration_die): Likewise.
16237 (clone_die): Likewise.
16238 (clone_as_declaration): Likewise.
16239 (copy_declaration_context): Likewise.
16240 (break_out_comdat_types): Likewise.
16241 (copy_decls_walk): Likewise.
16242 (output_location_lists): Likewise.
16243 (external_ref_hasher::hash): Likewise.
16244 (optimize_external_refs_1): Likewise.
16245 (build_abbrev_table): Likewise.
16246 (size_of_die): Likewise.
16247 (unmark_all_dies): Likewise.
16248 (size_of_pubnames): Likewise.
16249 (output_die_abbrevs): Likewise.
16250 (output_die): Likewise.
16251 (output_pubnames): Likewise.
16252 (add_ranges_num): Likewise.
16253 (add_ranges_by_labels): Likewise.
16254 (add_high_low_attributes): Likewise.
16255 (gen_producer_string): Likewise.
16256 (dwarf2out_set_name): Likewise.
16257 (new_line_info_table): Likewise.
16258 (prune_unused_types_walk_attribs): Likewise.
16259 (prune_unused_types_update_strings): Likewise.
16260 (prune_unused_types): Likewise.
16261 (resolve_addr): Likewise.
16262 (optimize_location_lists_1): Likewise.
16263 (index_location_lists): Likewise.
16264 (dwarf2out_finish): Likewise.
16266 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16268 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
16270 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16272 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
16273 (dump_asserts_for): Adjust.
16274 (register_new_assert_for): Likewise.
16275 (process_assert_insertions): Likewise.
16276 (insert_range_assertions): Likewise.
16278 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16280 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
16281 and remove typedef.
16282 (new_temp_expr_table): Adjust.
16283 (free_temp_expr_table): Likewise.
16284 (version_to_be_replaced_p): Likewise.
16285 (make_dependent_on_partition): Likewise.
16286 (add_to_partition_kill_list): Likewise.
16287 (remove_from_partition_kill_list): Likewise.
16288 (add_dependence): Likewise.
16289 (finished_with_expr): Likewise.
16290 (process_replaceable): Likewise.
16291 (kill_expr): Likewise.
16292 (kill_virtual_exprs): Likewise.
16293 (mark_replaceable): Likewise.
16294 (find_replaceable_in_bb): Likewise.
16295 (find_replaceable_exprs): Likewise.
16296 (debug_ter): Likewise.
16298 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16300 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
16301 (struct btr_user): Rename from btr_user_s.
16302 (struct btr_def): Rename from btr_def_s.
16303 (find_btr_def_group): Adjust.
16304 (add_btr_def): Likewise.
16305 (new_btr_user): Likewise.
16306 (note_other_use_this_block): Likewise.
16307 (compute_defs_uses_and_gen): Likewise.
16308 (link_btr_uses): Likewise.
16309 (build_btr_def_use_webs): Likewise.
16310 (block_at_edge_of_live_range_p): Likewise.
16311 (btr_def_live_range): Likewise.
16312 (combine_btr_defs): Likewise.
16313 (move_btr_def): Likewise.
16314 (migrate_btr_def): Likewise.
16315 (migrate_btr_defs): Likewise.
16317 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16319 * var-tracking.c (shared_hash_def): Rename to shared_hash.
16320 (shared_hash): Remove typedef.
16321 (struct dataflow_set): Adjust.
16322 (shared_hash_unshare): Likewise.
16323 (dataflow_set_merge): Likewise.
16324 (vt_initialize): Likewise.
16325 (vt_finalize): Likewise.
16327 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16329 * var-tracking.c (struct location_chain): Rename from
16330 location_chain_def.
16331 (struct variable_part): Adjust.
16332 (variable_htab_free): Likewise.
16333 (unshare_variable): Likewise.
16334 (get_init_value): Likewise.
16335 (get_addr_from_local_cache): Likewise.
16336 (drop_overlapping_mem_locs): Likewise.
16337 (val_reset): Likewise.
16338 (struct variable_union_info): Likewise.
16339 (variable_union): Likewise.
16340 (find_loc_in_1pdv): Likewise.
16341 (insert_into_intersection): Likewise.
16342 (intersect_loc_chains): Likewise.
16343 (canonicalize_loc_order_check): Likewise.
16344 (canonicalize_values_mark): Likewise.
16345 (canonicalize_values_star): Likewise.
16346 (canonicalize_vars_star): Likewise.
16347 (variable_merge_over_cur): Likewise.
16348 (remove_duplicate_values): Likewise.
16349 (variable_post_merge_new_vals): Likewise.
16350 (variable_post_merge_perm_vals): Likewise.
16351 (find_mem_expr_in_1pdv): Likewise.
16352 (dataflow_set_preserve_mem_locs): Likewise.
16353 (dataflow_set_remove_mem_locs): Likewise.
16354 (variable_part_different_p): Likewise.
16355 (onepart_variable_different_p): Likewise.
16356 (find_src_set_src): Likewise.
16357 (dump_var): Likewise.
16358 (set_slot_part): Likewise.
16359 (clobber_slot_part): Likewise.
16360 (delete_slot_part): Likewise.
16361 (vt_expand_var_loc_chain): Likewise.
16362 (emit_note_insn_var_location): Likewise.
16363 (vt_finalize): Likewise.
16365 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16367 * dse.c (store_info_t): Remove typedef.
16368 (group_info_t): Likewise.
16369 (const_group_info_t): Likewise.
16370 (deferred_change_t): Likewise.
16371 (get_group_info): Adjust.
16372 (free_store_info): Likewise.
16373 (canon_address): Likewise.
16374 (clear_rhs_from_active_local_stores): Likewise.
16375 (record_store): Likewise.
16376 (replace_read): Likewise.
16377 (check_mem_read_rtx): Likewise.
16378 (scan_insn): Likewise.
16379 (remove_useless_values): Likewise.
16380 (dse_step1): Likewise.
16381 (dse_step2_init): Likewise.
16382 (dse_step2_nospill): Likewise.
16383 (scan_stores_nospill): Likewise.
16384 (scan_reads_nospill): Likewise.
16385 (dse_step3_exit_block_scan): Likewise.
16386 (dse_step3): Likewise.
16387 (dse_step5_nospill): Likewise.
16388 (dse_step6): Likewise.
16390 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16392 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
16393 (alias_set_entry): Remove typedef.
16394 (alias_set_subset_of): Adjust.
16395 (alias_sets_conflict_p): Likewise.
16396 (init_alias_set_entry): Likewise.
16397 (get_alias_set): Likewise.
16398 (new_alias_set): Likewise.
16399 (record_alias_subset): Likewise.
16401 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
16403 * doc/install.texi (Downloading the source): Mark up
16404 contrib/download_prerequisites properly and drop leading "./".
16406 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16408 * config/arc/arc.h: Remove define of STRUCT_VALUE.
16409 * config/lm32/lm32.h: Likewise.
16410 * config/mep/mep.h: Likewise.
16411 * config/visium/visium.h: Likewise.
16412 * system.h: Poison STRUCT_VALUE macro.
16414 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
16416 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
16417 CONSTANT_P operands.
16419 2015-09-11 David S. Miller <davem@davemloft.net>
16421 * config/sparc/constraints.md: Make "U" constraint a real register
16423 * config/sparc/sparc.c (TARGET_LRA_P): Define.
16424 (D_MODES, DF_MODES): Add missing cast.
16425 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
16426 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
16427 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
16429 * config/sparc/sparc.h (PROMOTE_MODE): Define.
16430 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
16431 provide these insn when flag_pic.
16433 2015-09-11 Jeff Law <law@redhat.com>
16435 PR tree-optimization/47679
16436 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
16437 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
16438 member with m_. Update inline member functions as necessary. Add
16440 * tree-ssa-scopedtables.c: Update const_and_copies's member
16441 functions to use m_ prefix to access the stack.
16443 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16445 * graphite-optimize-isl.c (disable_tiling): Remove.
16446 (get_schedule_for_band): Do not use disable_tiling.
16447 (get_prevector_map): Delete function.
16448 (enable_polly_vector): Remove.
16449 (get_schedule_for_band_list): Remove dead code.
16451 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16453 * graphite-optimize-isl.c (get_tile_map): Refactor.
16454 (get_schedule_for_band): Same.
16455 (getScheduleForBand): Same.
16456 (get_prevector_map): Same.
16457 (get_schedule_for_band_list): Same.
16458 (get_schedule_map): Same.
16459 (get_single_map): Same.
16460 (apply_schedule_map_to_scop): Same.
16461 (optimize_isl): Same.
16463 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16466 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
16468 * config/aarch64/iterators.md (GPF_TF_F16): New.
16471 2015-09-10 Nathan Sidwell <nathan@acm.org>
16473 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
16474 (nvptx_reorg): Adjust comments.
16476 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
16479 * configure.ac: Check if setenv and unsetenv are declared.
16480 * configure: Rebuild.
16481 * config.in: Rebuild.
16482 * system.h: Declare setenv and unsetenv if not declared.
16484 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16486 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
16487 commentary to simplify permute mask adjustment equation.
16488 (special_handling_values): Add SH_VPERM.
16489 (const_load_sequence_p): New function.
16490 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
16491 the mask loaded from the constant pool.
16492 (adjust_vperm): New function.
16493 (handle_special_swappables): Call adjust_vperm.
16494 (dump_swap_insn_table): Handle SH_VPERM.
16496 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
16498 * shrink-wrap.c (requires_stack_frame_p): Remove static.
16499 * shrink-wrap.h (requires_stack_frame_p): Put back.
16501 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
16503 * reload1.c (elimination_costs_in_insn): Locally turn
16504 -Wmaybe-uninitialized into a warning.
16506 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
16508 * shrink-wrap.c (requires_stack_frame_p): Make static.
16509 (prepare_shrink_wrap): Likewise.
16510 (dup_block_and_redirect): Likewise.
16511 * shrink-wrap.h: Remove declarations of those functions.
16513 2015-09-10 Mark Wielaard <mjw@redhat.com>
16515 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
16517 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
16520 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
16521 missing simplify_gen_subreg.
16523 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16525 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
16526 the vector element is bigger than 64 bit.
16528 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16530 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
16531 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
16533 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16535 * config/s390/s390.c: Add V1TImode to constant pool modes.
16537 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16540 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
16541 predicate. Set predicable_short_it attr to "no".
16543 2015-09-10 Jiong Wang <jiong.wang@arm.com>
16545 PR rtl-optimization/67421
16546 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
16547 left wide shift tranformation.
16549 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16551 * common/config/arc/arc-common.c: Remove references to A5.
16552 * config/arc/arc-opts.h: Likewise.
16553 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
16554 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
16555 * config/arc/t-arc-newlib: Likewise.
16557 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16559 * config/arc/arc.md (length): Fix attribute length for conditional
16560 executed instructions with long immediate.
16562 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16564 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
16565 type for second alternative.
16567 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
16569 * doc/invoke.texi (Downloading GCC): Mention
16570 contrib/download_prerequisites script.
16572 2015-09-10 Jakub Jelinek <jakub@redhat.com>
16575 * gimplify.c (gimplify_omp_for): If inner stmt is not found
16576 for combined loop, assert seen_error () and return GS_ERROR.
16578 PR middle-end/67521
16579 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
16580 if decl is already in outer->variables.
16582 PR middle-end/67517
16583 * gimplify.c (gimplify_scan_omp_clauses): Instead of
16584 asserting that decl is not specified in octx->variables,
16585 break out of the loop if it is.
16588 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
16589 iterator is not explicitly determined, but is defined inside
16590 of the combined workshare region, handle it like if it has
16591 DECL_EXPR in OMP_FOR_PRE_BODY.
16593 2015-09-09 Nathan Sidwell <nathan@acm.org>
16595 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
16596 (*cmp<mode>): Add assembler spacing.
16597 (setcc_int<mode>, set_cc_float<mode>): Likewise.
16598 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
16600 (write_func_decl_from_insn): Refactor argument loops & comma emission.
16601 (nvptx_expand_call): Likewise.
16602 (nvptx_output_call_insn): Likewise.
16603 (nvptx_reorg_subreg): Add spacing.
16605 2015-09-09 Marek Polacek <polacek@redhat.com>
16607 PR middle-end/67512
16608 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
16611 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
16614 * doc/invoke.texi ([Wsubobject-linkage]): Document.
16616 2015-09-09 Tom de Vries <tom@codesourcery.com>
16618 * params-list.h: Add missing copyright notice.
16620 2015-09-09 Nathan Sidwell <nathan@acm.org>
16622 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
16623 sel_truesi, not andsi.
16625 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16627 * config/arm/arm.md (*subsi3_compare0): Rename to...
16628 (subsi3_compare0): ... This.
16629 (modsi3): New define_expand.
16630 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
16631 when operand is power of 2.
16633 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16635 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
16636 (*neg<mode>2_compare0): Rename to...
16637 (neg<mode>2_compare0): ... This.
16638 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
16639 Move check for speed inside the if-then-elses. Reflect
16640 CSNEG sequence in MOD by power of 2 case.
16642 2015-09-09 Alan Modra <amodra@gmail.com>
16645 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
16646 reload replacement for PRE_MODIFY address reg.
16648 2015-09-09 Sebastian Pop <s.pop@samsung.com>
16650 PR tree-optimization/53852
16651 * config.in: Regenerate.
16652 * configure: Regenerate.
16653 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
16654 * graphite-optimize-isl.c (optimize_isl): Stop computation when
16655 PARAM_MAX_ISL_OPERATIONS is reached.
16656 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
16657 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
16658 result equal to isl_stat_ok as the status now can be isl_error_quota.
16659 (subtract_commutative_associative_deps): Same.
16660 (compute_deps): Same.
16662 2015-09-08 Aditya Kumar <hiraditya@msn.com>
16663 Sebastian Pop <s.pop@samsung.com>
16665 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
16666 Return the parameter if it was saved in corresponding
16667 parameter_rename_map of the region.
16668 (copy_def): Copy def from sese region to the newly created region.
16669 (copy_internal_parameters): Copy all the internal parameters defined
16670 within a region to the newly created region.
16671 (graphite_regenerate_ast_isl): Copy parameters to the new region before
16672 translating isl to gimple.
16673 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
16674 the loop-nest does not have any data-references.
16675 (build_graphite_scops): Create a scop only when there is at least one
16677 (contains_only_close_phi_nodes): Deleted.
16678 (print_graphite_scop_statistics): Deleted
16679 (print_graphite_statistics): Deleted
16680 (limit_scops): Deleted.
16681 (build_scops): Removed call to limit_scops.
16682 * sese.c (new_sese): Construct.
16683 (free_sese): Destruct.
16684 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
16686 (set_rename): Pass sese region so that parameters inside the region can
16687 be added to its parameter_rename_map.
16688 (rename_uses): Pass sese region.
16689 (graphite_copy_stmts_from_block): Do not copy parameters that have been
16690 generated in the header of the scop. For each SSA_NAME in the
16691 parameter_rename_map rename its usage.
16692 (invariant_in_sese_p_rec): Return false if tree t is defined outside
16694 (scalar_evolution_in_region): If the tree t is invariant just return t.
16695 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
16696 struct sese to keep track of all the parameters which need renaming.
16697 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
16699 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
16701 2015-09-08 Tom de Vries <tom@codesourcery.com>
16703 * Makefile.in (generated_files): Add params.list.
16704 (params.list, s-params.list): Add rule.
16705 * params.h (enum compiler_param): Include params-list.h. Move define
16706 DEFPARAM, include params.def and undef DEFPARAM ...
16707 * params-list.h: ... here. New file.
16709 2015-09-08 David Malcolm <dmalcolm@redhat.com>
16711 * pretty-print.h (printer_fn): Fix typo in comment.
16713 2015-09-07 Jeff Law <law@redhat.com>
16715 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
16717 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16719 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
16720 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
16721 (arm_neon_fp16_hw): New.
16723 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16725 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
16726 UNITS_PER_WORD >= 4.
16728 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16730 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
16731 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
16732 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
16733 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
16734 (aarch64_float_extend_lo_v2df): Rename to...
16735 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
16737 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
16738 (float_extend_lo): Add v4sf.
16740 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
16741 * config/aarch64/iterators.md (VQ_HSF): New iterator.
16742 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
16743 (Vwide): New mode_attr.
16745 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16747 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
16748 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
16749 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
16750 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
16751 V4HF and V8HF variants to iterator.
16753 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
16755 * config/aarch64/iterators.md (VDQF_F16): New.
16756 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
16758 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16760 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
16761 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16762 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
16763 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
16764 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
16765 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16766 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
16767 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
16768 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
16769 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
16770 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
16771 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16772 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
16773 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
16774 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
16775 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
16776 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
16777 vld1q_dup_f16): New.
16779 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16781 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
16782 Reparameterize to...
16783 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
16784 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
16785 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
16787 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
16789 (float_truncate_lo_): Use BUILTIN_VDF iterator.
16791 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
16793 * config/aarch64/iterators.md (VDF, Vdtype): New.
16794 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
16796 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16798 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
16799 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
16800 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
16801 Add __builtin_aarch64_simd_hf.
16802 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
16803 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
16804 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
16805 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
16806 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
16807 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
16808 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
16809 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
16810 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
16812 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
16813 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
16814 (VDC, Vdbl): Add V4HF.
16816 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16818 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
16819 V4HFmode and V8HFmode.
16820 (aarch64_split_simd_move): Add case for V8HFmode.
16821 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
16822 (aarch64_simd_builtin_std_type): Handle HFmode.
16823 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
16825 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
16826 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
16827 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
16829 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
16832 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
16833 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
16835 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
16836 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
16837 vst1q_lane_f16): New.
16838 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
16839 (VALLDI_F16, VALL_F16): New.
16840 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
16841 Add cases for V4HF and V8HF.
16842 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
16844 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16846 * config/arm/arm-builtins.c (VAR11, VAR12): New.
16847 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
16848 vld4_dup): Add v4hf variant.
16849 (vget_high, vget_low): Add v8hf variant.
16850 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
16851 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
16852 v4hf and v8hf variants.
16854 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
16856 (V_DOUBLE): Add case for V4HF.
16858 (V_HALF): Add case for V8HF.
16859 (VDQX): Add V4HF, V8HF.
16860 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
16861 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
16863 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
16864 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
16865 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
16866 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
16867 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
16868 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
16869 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
16870 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
16871 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
16873 (neon_vcreate, neon_vreinterpretv8qi<mode>,
16874 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16875 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
16876 Change VDX to VD_RE.
16878 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
16879 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
16880 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
16882 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
16883 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
16884 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
16885 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
16886 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
16887 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
16888 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
16889 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
16890 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
16892 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16894 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
16895 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
16896 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
16897 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
16898 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16899 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
16900 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
16901 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
16902 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
16903 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
16906 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16908 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
16910 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
16912 * config/arm/arm-builtins.c (v8hf_UP): New.
16913 (arm_init_simd_builtin_types): Initialise Float16x8_t.
16915 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
16917 * config/arm/arm_neon.h (float16x8_t): New typedef.
16919 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16921 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
16922 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
16923 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
16924 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
16925 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16926 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
16927 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
16928 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
16929 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16930 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
16932 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
16934 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
16935 non-alphanumeric characters in the symbol name.
16937 2015-09-07 Marek Polacek <polacek@redhat.com>
16939 PR inline-asm/67448
16940 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
16943 2015-09-07 Marek Polacek <polacek@redhat.com>
16945 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16947 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
16949 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
16952 2015-09-04 Jakub Jelinek <jakub@redhat.com>
16954 PR middle-end/67452
16955 * tree-ssa-live.c: Include cfgloop.h.
16956 (remove_unused_locals): Clear loop->simduid if simduid is about
16957 to be removed from cfun->local_decls.
16959 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16962 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
16965 2015-09-04 Tom de Vries <tom@codesourcery.com>
16967 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
16969 2015-09-04 Jeff Law <law@redhat.com>
16971 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
16972 unnecessary constructor. It's now trivial and implemented inside...
16973 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
16974 constructor. Add comments to various methods. Remove unused
16976 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
16977 * tree-vrp.c (identify_jump_threads): Likewise.
16978 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
16979 indentation issues.
16980 (thread_across_edge): Similarly.
16981 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
16982 arguments in constructor call.
16984 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
16986 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
16987 temp path contains a '-'.
16989 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
16990 Petr Murzin <petr.murzin@intel.com>
16991 Kirill Yukhin <kirill.yukhin@intel.com>
16993 * config/i386/i386-builtin-types.def
16994 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
16995 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
16996 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
16997 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
16998 * config/i386/i386.c
16999 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
17000 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17001 IX86_BUILTIN_SCATTERALTDIV16SI.
17002 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
17003 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
17004 __builtin_ia32_scatteraltdiv8si.
17005 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
17006 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17007 IX86_BUILTIN_SCATTERALTDIV16SI.
17008 (ix86_vectorize_builtin_scatter): New.
17009 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
17010 ix86_vectorize_builtin_scatter.
17012 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
17013 Petr Murzin <petr.murzin@intel.com>
17014 Kirill Yukhin <kirill.yukhin@intel.com>
17016 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
17017 * doc/tm.texi: Regenerate.
17018 * target.def: Add scatter builtin.
17019 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
17020 for loads/stores in case of gather/scatter accordingly.
17021 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17022 STMT_VINFO_GATHER_P(S).
17023 (vect_check_gather): Rename to ...
17024 (vect_check_gather_scatter): this.
17025 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
17026 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
17027 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17028 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
17029 variable and new checkings for it accordingly.
17030 * tree-vect-stmts.c
17031 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17032 STMT_VINFO_GATHER_P(S).
17033 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17034 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
17036 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17038 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
17040 (mulv16qi3): New define_expand.
17042 2015-09-03 Martin Sebor <msebor@redhat.com>
17045 * doc/extend.texi (Other Builtins): Document when the address
17046 of a built-in function can be taken.
17048 2015-09-03 Richard Biener <rguenther@suse.de>
17050 * dwarf2out.c (flush_limbo_die_list): Split out from ...
17051 (dwarf2out_early_finish): ... here.
17052 (dwarf2out_finish): Do not call dwarf2out_early_finish but
17053 flush_limbo_die_list. Assert we have no deferred asm names.
17055 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17057 * optabs.c (expand_binop): Don't create a broadcast vector with a
17058 source element wider than the inner mode.
17060 2015-09-03 Richard Biener <rguenther@suse.de>
17062 * varasm.c (output_constant): Use fold_convert instead of
17065 2015-09-03 Tom de Vries <tom@codesourcery.com>
17067 PR tree-optimization/65637
17068 * omp-low.c (expand_omp_for_static_chunk): Handle case that
17069 fin_bb has 2 predecessors.
17071 2015-09-03 Tom de Vries <tom@codesourcery.com>
17073 PR tree-optimization/65637
17074 * omp-low.c (find_phi_with_arg_on_edge): New function.
17075 (expand_omp_for_static_chunk): Fix inner loop phi.
17077 2015-09-03 Tom de Vries <tom@codesourcery.com>
17079 PR tree-optimization/65637
17080 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
17083 2015-09-03 Tom de Vries <tom@codesourcery.com>
17085 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
17087 2015-09-03 Tom de Vries <tom@codesourcery.com>
17089 * doc/invoke.texi (parloops-chunk-size): Add item.
17090 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
17091 * tree-parloops.c: Include params.h.
17092 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
17093 param parloops-chunk-size is used.
17095 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17097 PR middle-end/67351
17098 * fold-const.c (fold_binary_loc) : Move
17099 Transform (x >> c) << c into x & (-1<<c) or
17100 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
17101 types using simplify and match.
17102 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
17103 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
17105 2015-09-03 Richard Biener <rguenther@suse.de>
17108 * tree-ssa-structalias.c (ctor_for_analysis): New function.
17109 (create_variable_info_for_1): Use ctor_for_analysis instead
17110 of get_constructor.
17111 (create_variable_info_for): Likewise.
17113 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
17116 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
17117 in new callgraph edge.
17119 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
17124 * config/aarch64/aarch64-simd.md
17125 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
17126 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
17127 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
17128 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
17130 2015-09-02 Alan Modra <amodra@gmail.com>
17132 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
17133 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
17134 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
17136 2015-09-02 Alan Modra <amodra@gmail.com>
17139 * config/rs6000/predicates.md (current_file_function_operand): Don't
17140 return true for weak symbols.
17141 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
17143 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
17144 Andrew Bennett <andrew.bennett@imgtec.com>
17146 * config/mips/mips-opts.h (mips_cb_setting): New enum.
17147 * config/mips/mips-protos.h: Add definitions for
17148 mips_output_jump and mips_output_equal_conditional_branch
17149 * config/mips/mips.c (MIPS_JR): Change to support the
17151 (mips_emit_compare): Add support for the MIPS R6 conditional
17153 (mips_process_sync_loop): Likewise.
17154 (mips_output_order_conditional_branch): Likewise.
17155 (mips16_build_call_stub): Change MIPS_CALL to
17157 (mips_print_operand_punctuation): Update 's' case to only
17158 apply to micromips r2.
17159 (mips_adjust_insn_length): Add support for forbidden slot
17161 (mips_avoid_hazard): Likewise.
17162 (mips_reorg_process_insns): Likewise.
17163 (mips_output_jump): New function.
17164 (mips_output_equal_conditional_branch): Likewise.
17165 (mips_output_conditional_branch): Use jrc/bc if compact
17166 branch support is enabled. Ensure the forbidden slots
17167 between the two branch instructions is filled with a nop.
17168 (mips_option_override): Add support to process the compact
17169 branch option and set the correct defaults. Prevent
17170 non-explict relocs being using for MIPS R6.
17171 (mips_trampoline_init): Add compact branch support.
17172 (mips_mult_zero_zero_cost): Allow zero initialisation of
17173 accumulators with TARGET_DSP.
17174 * config/mips/mips.h (TARGET_CB_NEVER): New define.
17175 (TARGET_CB_MAYBE): New define.
17176 (TARGET_CB_ALWAYS): New define.
17177 (ISA_HAS_DELAY_SLOTS): New define.
17178 (ISA_HAS_COMPACT_BRANCHES): New define.
17179 (ISA_HAS_JRC): New define.
17180 (MIPS_BRANCH_C): New define.
17181 (MIPS_CALL): Removed.
17182 (MICROMIPS_J): Removed.
17183 * config/mips/mips.md (compact_form): New attr.
17184 (hazard): Add support for forbidden slots.
17185 (define_delay): Add support for compact branches.
17186 (*branch_order<mode>): Likewise.
17187 (*branch_order<mode>_inverted): Likewise.
17188 (*branch_equality<mode>): Likewise.
17189 (*branch_equality<mode>_inverted): Likewise.
17190 (*jump_absolute): Likewise.
17191 (*jump_pic): Likewise.
17192 (indirect_jump): Use mips_output_jump to produce assembly output.
17193 (tablejump_<mode>"): Likewise.
17194 (*<optab>"): Likewise.
17195 (<optab>_internal): Likewise.
17196 (sibcall_internal): Likewise.
17197 (sibcall_value_internal): Likewise.
17198 (sibcall_value_multiple_internal): Likewise.
17199 (call_internal): Likewise.
17200 (call_split): Likewise.
17201 (call_internal_direct): Likewise.
17202 (call_direct_split): Likewise.
17203 (call_value_internal): Likewise.
17204 (call_value_split): Likewise.
17205 (call_value_internal_direct): Likewise.
17206 (call_value_direct_split): Likewise.
17207 (call_value_multiple_internal): Likewise.
17208 (call_value_multiple_split): Likewise.
17209 (mips_get_fcsr_mips16_<mode>): Likewise.
17210 (mips_set_fcsr_mips16_<mode>): Likewise.
17211 (tls_get_tp_mips16_<mode>): Likewise.
17212 * config/mips/mips.opt: Add -mcompact-branches option.
17213 * config/mips/predicates.md (order_operator): Ensure the
17214 conditional compact branches are only used if the ISA them.
17215 * doc/invoke.texi: Document -mcompact-branches option.
17217 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
17220 * lra-lives.c (process_bb_lives): Process move pseudos with the
17221 same value for copies and preferences
17222 * lra-constraints.c (match_reload): Create match reload pseudo
17223 with the same value from single dying input pseudo.
17225 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
17228 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
17230 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
17232 * trans-mem.c: Add contributed-by.
17233 * trans-mem.h: Same.
17235 2015-09-01 Richard Biener <rguenther@suse.de>
17237 * expr.c (expand_expr_real_1): For expanding TERed defs
17238 set the current location to that of the def if not UNKNOWN.
17240 2015-09-01 David Sherwood <david.sherwood@arm.com>
17242 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
17244 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17246 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
17247 then_cost, else_cost fields. Change branch_cost field to unsigned int.
17248 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
17249 Include rtl-iter.h.
17250 (noce_simple_bbs): New function.
17251 (noce_try_move): Bail if basic blocks are not simple.
17252 (noce_try_store_flag): Likewise.
17253 (noce_try_store_flag_constants): Likewise.
17254 (noce_try_addcc): Likewise.
17255 (noce_try_store_flag_mask): Likewise.
17256 (noce_try_cmove): Likewise.
17257 (noce_try_minmax): Likewise.
17258 (noce_try_abs): Likewise.
17259 (noce_try_sign_mask): Likewise.
17260 (noce_try_bitop): Likewise.
17261 (bbs_ok_for_cmove_arith): New function.
17262 (noce_emit_all_but_last): Likewise.
17263 (noce_emit_insn): Likewise.
17264 (noce_emit_bb): Likewise.
17265 (noce_try_cmove_arith): Handle non-simple basic blocks.
17266 (insn_valid_noce_process_p): New function.
17267 (contains_mem_rtx_p): Likewise.
17268 (bb_valid_for_noce_process_p): Likewise.
17269 (noce_process_if_block): Allow non-simple basic blocks
17272 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
17274 * tree-ssa-dom.c (record_equivalences_from_phis,
17275 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
17276 (lookup_avail_expr): Likewise, and remove comment and unused temp.
17278 2015-09-01 Nick Clifton <nickc@redhat.com>
17280 * config/msp430/msp430.opt (mcpu): Fix typo.
17282 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17284 * config/aarch64/aarch64.c (aarch64_set_current_function):
17285 Re-layout any vector parameters have non-simd layout.
17286 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
17288 (aarch64_simd_expand_args): Delete call to the above.
17290 2015-08-31 Mike Frysinger <vapier@gentoo.org>
17292 * doc/invoke.texi (asan-stack): Add space before option.
17294 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17296 * tree.h (zerop): New function.
17297 * tree.c (zerop): Likewise.
17298 (element_precision): Handle expressions.
17299 * match.pd (define_predicates): Add zerop.
17300 (x <= +Inf): Fix comment.
17301 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
17302 * fold-const.c (fold_binary_loc): ... here. Remove.
17304 2015-08-31 Richard Biener <rguenther@suse.de>
17306 PR middle-end/67381
17307 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
17309 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17311 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
17312 (CEXPI): New operator list.
17313 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
17314 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
17316 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
17318 2015-08-31 Tom de Vries <tom@codesourcery.com>
17320 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
17321 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
17323 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
17324 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
17325 (rewrite_into_loop_closed_ssa): ... here.
17326 (replace_uses_in_dominated_bbs): Remove function.
17327 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
17328 rewrite_into_loop_closed_ssa_1.
17330 2015-08-31 Michael Matz <matz@suse.de>
17332 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
17333 enter entry and exit blocks for reverse post order.
17335 2015-08-31 Richard Biener <rguenther@suse.de>
17337 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
17338 (lto_location_cache::current_sysp): Likewise.
17339 (output_block::current_sysp): Likewise.
17340 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
17341 (lto_location_cache::apply_location_cache): Properly record
17342 system header locations.
17343 (lto_location_cache::input_location): Input whether a file
17344 is a system header.
17345 * lto-streamer-out.c (lto_output_location): Stream whether a file
17346 is a system header.
17348 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17351 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
17353 2015-08-31 Tom de Vries <tom@codesourcery.com>
17355 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
17356 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
17357 Improve function header comments.
17359 2015-08-30 Michael Collison <michael.collison@linaro.org>
17362 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
17365 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17367 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
17368 special_handling bitfield.
17369 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
17370 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
17371 that represents a general xxpermdi.
17372 (insn_is_swappable_p): Add handling for vec_concat of two
17373 doublewords, which maps to a specific xxpermdi.
17374 (adjust_xxpermdi): New function.
17375 (adjust_concat): Likewise.
17376 (handle_special_swappables): Call adjust_xxpermdi and
17378 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
17380 2015-08-30 Rich Felker <dalias@libc.org>
17382 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
17383 case instead of sh[123456ble]-*-*.
17385 2015-08-29 Anatoly Sokolov <aesok@post.ru>
17387 * ira.c (print_unform_and_important_classes,
17388 print_translated_classes): Remove reg_class_names static array.
17389 (print_unform_and_important_classes): Rename to ...
17390 (print_uniform_and_important_classes): ... this.
17391 (ira_debug_allocno_classes): Update accordingly.
17393 2015-08-29 Tom de Vries <tom@codesourcery.com>
17395 PR tree-optimization/46193
17396 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
17399 2015-08-28 Jeff Law <law@redhat.com>
17402 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17403 unable to find X NE 0 in the tables, return X as the simplified
17405 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17406 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17408 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17409 after removing the control flow statement and unnecessary edges.
17411 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
17414 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17416 PR tree-optimization/67283
17417 * tree-sra.c (type_consists_of_records_p): Rename to...
17418 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17420 (completely_scalarize_record): Rename to...
17421 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
17423 (scalarize_elem): New.
17425 2015-08-28 Jiong Wang <jiong.wang@arm.com>
17427 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
17428 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
17429 (aarch64_symbol_type): Likewise.
17430 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17432 (aarch64_expand_mov_immediate): Likewise.
17433 (aarch64_print_operand): Likewise.
17434 (aarch64_classify_tls_symbol): Likewise.
17436 2015-08-28 Richard Biener <rguenther@suse.de>
17438 * cgraphunit.c (symbol_table::compile): Move early debug generation
17440 (symbol_table::finalize_compilation_unit): ... back here and
17441 add a !seen_error () guard.
17443 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17445 * toplev.c (process_options): Do not use flag_loop_block,
17446 flag_loop_interchange, and flag_loop_strip_mine. Add check for
17447 flag_loop_optimize_isl.
17449 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17451 * Makefile.in (OBJS): Remove graphite-blocking.o and
17452 graphite-interchange.o.
17453 * common.opt (floop-strip-mine, floop-interchange, floop-block):
17454 Alias of floop-nest-optimize.
17455 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
17456 Document as alias of -floop-nest-optimize.
17457 * graphite-blocking.c: Remove.
17458 * graphite-interchange.c: Remove.
17459 * graphite-optimize-isl.c: Include dumpfile.h.
17460 (getScheduleForBand): Add dump for tiled loops. Use
17461 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
17462 * graphite-poly.c (scop_max_loop_depth): Remove.
17463 (print_scattering_function_1): Remove.
17464 (print_scattering_function): Remove.
17465 (print_scattering_functions): Remove.
17466 (debug_scattering_function): Remove.
17467 (debug_scattering_functions): Remove.
17468 (apply_poly_transforms): Remove use of flag_loop_block,
17469 flag_loop_strip_mine, and flag_loop_interchange.
17470 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
17472 (print_pdr_access_layout): Remove.
17473 (print_pdr): Print ISL representation.
17474 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
17475 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
17477 (openscop_print_pbb_domain): Remove.
17478 (print_pbb): Remove call to print_scattering_function.
17479 (openscop_print_scop_context): Remove.
17480 (print_scop_context): Do not print matrices anymore.
17481 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
17482 SCOP_TRANSFORMED_SCHEDULE.
17483 (print_isl_set): Add printing of a new line.
17484 (print_isl_map): Same.
17485 (print_isl_aff): Same.
17486 (print_isl_constraint): Same.
17487 (loop_to_lst): Remove.
17488 (scop_to_lst): Remove.
17489 (lst_indent_to): Remove.
17490 (print_lst): Remove.
17491 (debug_lst): Remove.
17492 (dot_lst_1): Remove.
17494 (reverse_loop_at_level): Remove.
17495 (reverse_loop_for_pbbs): Remove.
17496 * graphite-poly.h (pdr_dim_iter_domain): Remove.
17497 (pdr_nb_params): Remove.
17498 (pdr_alias_set_dim): Remove.
17499 (pdr_subscript_dim): Remove.
17500 (pdr_iterator_dim): Remove.
17501 (pdr_parameter_dim): Remove.
17502 (same_pdr_p): Remove.
17503 (struct poly_scattering): Remove.
17504 (struct poly_bb): Remove _original, _transformed, _saved.
17505 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
17506 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
17507 (PBB_NB_LOCAL_VARIABLES): Remove.
17508 (PBB_NB_SCATTERING_TRANSFORM): Remove.
17509 (schedule_to_scattering): Remove.
17510 (number_of_write_pdrs): Remove.
17511 (pbb_dim_iter_domain): Remove.
17512 (pbb_nb_params): Remove.
17513 (pbb_nb_scattering_orig): Remove.
17514 (pbb_nb_scattering_transform): Remove.
17515 (pbb_nb_dynamic_scattering_transform): Remove.
17516 (pbb_nb_local_vars): Remove.
17517 (pbb_iterator_dim): Remove.
17518 (pbb_parameter_dim): Remove.
17519 (psco_scattering_dim): Remove.
17520 (psct_scattering_dim): Remove.
17521 (psct_local_var_dim): Remove.
17522 (psco_iterator_dim): Remove.
17523 (psct_iterator_dim): Remove.
17524 (psco_parameter_dim): Remove.
17525 (psct_parameter_dim): Remove.
17526 (psct_dynamic_dim): Remove.
17527 (psct_static_dim): Remove.
17528 (psct_add_local_variable): Remove.
17529 (new_lst_loop): Remove.
17530 (new_lst_stmt): Remove.
17531 (free_lst): Remove.
17532 (copy_lst): Remove.
17533 (lst_add_loop_under_loop): Remove.
17534 (lst_depth): Remove.
17535 (lst_dewey_number): Remove.
17536 (lst_dewey_number_at_depth): Remove.
17537 (lst_pred): Remove.
17538 (lst_succ): Remove.
17539 (lst_find_pbb): Remove.
17540 (find_lst_loop): Remove.
17541 (lst_find_first_pbb): Remove.
17542 (lst_empty_p): Remove.
17543 (lst_find_last_pbb): Remove.
17544 (lst_contains_p): Remove.
17545 (lst_contains_pbb): Remove.
17546 (lst_create_nest): Remove.
17547 (lst_remove_from_sequence): Remove.
17548 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
17549 (lst_niter_for_loop): Remove.
17550 (pbb_update_scattering): Remove.
17551 (lst_update_scattering_under): Remove.
17552 (lst_update_scattering): Remove.
17553 (lst_insert_in_sequence): Remove.
17554 (lst_replace): Remove.
17555 (lst_substitute_3): Remove.
17556 (lst_distribute_lst): Remove.
17557 (lst_remove_all_before_including_pbb): Remove.
17558 (lst_remove_all_before_excluding_pbb): Remove.
17559 (struct scop): Remove original_schedule, transformed_schedule, and
17561 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
17562 (SCOP_SAVED_SCHEDULE): Remove.
17563 (poly_scattering_new): Remove.
17564 (poly_scattering_free): Remove.
17565 (poly_scattering_copy): Remove.
17566 (store_scattering_pbb): Remove.
17567 (store_lst_schedule): Remove.
17568 (restore_lst_schedule): Remove.
17569 (store_scattering): Remove.
17570 (restore_scattering_pbb): Remove.
17571 (restore_scattering): Remove.
17572 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
17573 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
17574 compute the scattering polyhedron dimension from the dimension of
17576 (build_scop_scattering): Update call to
17577 build_pbb_scattering_polyhedrons.
17578 (build_poly_scop): Remove call to scop_to_lst.
17579 * graphite.c (graphite_transform_loops): Add call to print_scop.
17580 (gate_graphite_transforms): Remove use of flag_loop_block,
17581 flag_loop_interchange, and flag_loop_strip_mine.
17583 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17585 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
17586 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
17587 -floop-nest-optimize.
17588 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
17589 (generate_luj_sepclass): Remove.
17590 (generate_luj_options): Remove.
17591 (set_options): Remove opt_luj.
17592 (scop_to_isl_ast): Remove opt_luj.
17593 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
17594 flag_loop_unroll_jam.
17595 (getPrevectorMap_full): Remove.
17596 (getScheduleForBandList): Remove map_sepcl.
17597 (getScheduleMap): Same.
17598 (apply_schedule_map_to_scop): Remove sepcl.
17599 (optimize_isl): Same.
17600 * graphite-poly.c (apply_poly_transforms): Remove check for
17601 flag_loop_unroll_jam.
17602 (new_poly_bb): Remove map_sepclass.
17603 * graphite-poly.h (struct poly_bb): Same.
17604 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
17605 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
17606 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
17607 * toplev.c (process_options): Remove flag_loop_unroll_jam.
17609 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
17612 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
17613 (addqi3_cc): Ditto.
17614 (UNSPEC_ADD_CARRY): Remove.
17615 (addqi3_cconly_overflow): New expander.
17616 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
17617 Adjust for changed add<mode>3_carry.
17618 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
17619 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
17620 (<plusminus_insn><mode>3_carry): Remove expander.
17621 (*<plusminus_insn><mode>3_carry): Split insn pattern to
17622 add<mode>3_carry and sub<mode>3_carry.
17623 (plusminus_carry_mnemonic): Remove code attribute.
17624 (add<mode>3_carry): Canonicalize insn pattern.
17625 (*addsi3_carry_zext): Ditto.
17626 (sub<mode>3_carry): Ditto.
17627 (*subsi3_carry_zext): Ditto.
17628 (adcx<mode>3): Remove insn pattern.
17629 (addcarry<mode>): New insn pattern.
17630 (subborrow<mode>): Ditto.
17631 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
17632 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
17633 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
17634 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
17635 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
17636 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
17637 Rewrite expander to not clobber carry flag chains.
17639 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
17641 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
17642 instead of a rotate.
17644 2015-08-27 Marek Polacek <polacek@redhat.com>
17646 PR middle-end/67005
17647 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
17648 an entry into an irreducible region.
17650 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17652 * configure: Regenerate.
17654 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17656 PR tree-optimization/67283
17657 * tree-sra.c (type_consists_of_records_p): Rename to...
17658 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17660 (completely_scalarize_record): Rename to...
17661 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
17662 (scalarize_elem): New.
17664 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17666 * tree-sra.c (completely_scalarize_var): Rename to...
17667 (create_total_scalarization_access): ... Here. Drop call to
17668 completely_scalarize_record.
17670 (analyze_all_variable_accesses): Replace completely_scalarize_var
17671 with create_total_scalarization_access and completely_scalarize_record.
17673 2015-08-27 Alan Modra <amodra@gmail.com>
17676 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
17679 2015-08-27 Richard Biener <rguenther@suse.de>
17681 * passes.c (rest_of_decl_compilation): Guard early_global_decl
17682 call with !seen_error ().
17683 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
17684 early debug generation and finish...
17685 (symbol_table::compile): ... here to put it after a !seen_error ()
17688 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17690 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
17693 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17694 Andre Vieira <andre.simoesdiasvieira@arm.com>
17696 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
17697 (*cb<optab><mode>1): Likewise.
17698 (*tb<optab><mode>1): Likewise.
17699 (*cb<optab><mode>1): Likewise.
17700 * config/aarch64/iterators.md (inv_cb): New code attribute.
17701 (inv_tb): Likewise.
17702 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
17703 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
17705 2015-08-27 Richard Biener <rguenther@suse.de>
17707 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
17709 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
17711 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
17714 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
17716 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
17719 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
17721 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
17722 floating point in VSX registers.
17723 (rs6000_output_move_128bit): Always print out the set insn if we
17724 can't generate an appropriate 128-bit move.
17725 (rs6000_generate_compare): Add support for IEEE 128-bit floating
17726 point in VSX registers comparisons.
17727 (rs6000_expand_float128_convert): Likewise.
17729 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
17730 predicate for only GPR hard registers.
17732 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
17733 modes to iterators. Add new iterators for moving 128-bit values in
17734 scalar FPR registers and VSX registers.
17735 (FMOVE128): Likewise.
17736 (FMOVE128_FPR): Likewise.
17737 (FMOVE128_GPR): Likewise.
17738 (FMOVE128_VSX): Likewise.
17739 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
17742 (IBM128): Likewise.
17743 (TFIFKF): Likewise.
17744 (RELOAD): Add IEEE 128-bit floating point modes.
17745 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
17746 floating point in VSX registers modes.
17747 (signbit<mode>2, IBM128 iterator): Likewise.
17748 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
17749 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
17750 (negtf2): Likewise.
17751 (neg<mode>2, TFIFKF iterator): Likewise.
17752 (negtf2_internal): Likewise.
17753 (abstf2): Likewise.
17754 (abs<mode>2, TFIFKF iterator): Likewise.
17755 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
17756 VSX insn support for negate, absolute value, and negative absolute
17758 (ieee_128bit_vsx_neg<mode>2): Likewise.
17759 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
17760 (ieee_128bit_vsx_abs<mode>2): Likewise.
17761 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17762 (ieee_128bit_vsx_nabs<mode>2): Likewise.
17763 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17764 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
17765 floating point in VSX registers.
17766 (unpack<mode>_dm): Likewise.
17767 (unpack<mode>_nodm): Likewise.
17768 (pack<mode>): Likewise.
17769 (unpackv1ti): Likewise.
17770 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
17771 (packv1ti): Likewise.
17772 (pack<mode>, FMOVE128_VSX iterator): Likewise.
17773 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
17775 (extenddftf2_internal): Likewise.
17776 (trunctfdf2): Likewise.
17777 (trunctfdf2_internal2): Likewise.
17778 (fix_trunc_helper): Likewise.
17779 (fix_trunctfdi2"): Likewise.
17780 (floatditf2): Likewise.
17781 (floatuns<mode>tf2): Likewise.
17782 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
17783 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
17784 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
17785 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
17786 (float<SDI:mode><IFKF:mode>2): Likewise.
17787 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
17789 2015-08-26 Renlin Li <renlin.li@arm.com>
17791 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
17793 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
17794 Jiong Wang <jiong.wang@arm.com>
17796 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
17797 (tlsie_tiny_<mode>): New define_insn.
17798 (tlsie_tiny_sidi): Likewise.
17799 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
17801 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
17802 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17804 (aarch64_expand_mov_immediate): Likewise.
17805 (aarch64_print_operand): Likewise.
17806 (arch64_classify_tls_symbol): Likewise.
17808 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17810 * config/arm/arm-arches.def: Replace single value flags with
17811 an initializer built from ARM_FSET_MAKE_CPU1.
17812 * config/arm/arm-cores.def: Likewise.
17813 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
17814 derivation from the ARM_CORE macro definition, use the given value
17816 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
17817 ARM_ARCH macro definition, use the given value instead.
17819 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17821 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
17823 (struct builtin_description): Replace field mask with field
17825 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
17826 (IWMMXT2_BUILTIN): Likewise.
17827 (IWMMXT2_BUILTIN2): Likewise.
17828 (FP_BUILTIN): Likewise.
17829 (CRC32_BUILTIN): Likewise.
17830 (CRYPTO_BUILTIN): Likewise.
17831 (iwmmx_mbuiltin): Likewise.
17832 (iwmmx2_mbuiltin): Likewise.
17833 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
17834 struct builtin_description.
17836 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17838 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
17839 (struct builtin_description): Change type of mask to unsigned
17841 * config/arm/arm-protos.h (insn_flags): Declare as type
17843 (tune_flags): Likewise.
17844 * config/arm/arm.c (feature_count): New.
17845 (insn_flags): Define as type arm_feature_set.
17846 (tune_flags): Likewise.
17847 (struct processors): Define field flags as type arm_feature_set.
17848 (all_cores): Update for change to struct processors.
17849 (all_architectures): Likewise.
17850 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
17852 (arm_option_override_internal): Likewise.
17853 (arm_option_override): Likewise.
17855 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
17856 Jiong Wang <jiong.wang@arm.com>
17858 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
17859 tls size for tiny, small, large memory model.
17860 (aarch64_load_symref_appropriately): Support new symbol types.
17861 (aarch64_expand_mov_immediate): Likewise.
17862 (aarch64_print_operand): Likewise.
17863 (aarch64_classify_tls_symbol): Likewise.
17864 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
17865 (aarch64_symbol_type): Likewise.
17866 * config/aarch64/aarch64.md (tlsle): Deleted.
17867 (tlsle12_<mode>): New define_insn.
17868 (tlsle24_<mode>): Likewise.
17869 (tlsle32_<mode>): Likewise.
17870 (tlsle48_<mode>): Likewise.
17871 * doc/sourcebuild.texi (AArch64-specific attributes): Document
17874 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17876 * config/arm/arm-protos.h (FL_NONE): New.
17878 (arm_feature_set): New.
17879 (ARM_FSET_MAKE): New.
17880 (ARM_FSET_MAKE_CPU1): New.
17881 (ARM_FSET_MAKE_CPU2): New.
17882 (ARM_FSET_CPU1): New.
17883 (ARM_FSET_CPU2): New.
17884 (ARM_FSET_EMPTY): New.
17885 (ARM_FSET_ANY): New.
17886 (ARM_FSET_HAS_CPU1): New.
17887 (ARM_FSET_HAS_CPU2): New.
17888 (ARM_FSET_HAS_CPU): New.
17889 (ARM_FSET_ADD_CPU1): New.
17890 (ARM_FSET_ADD_CPU2): New.
17891 (ARM_FSET_DEL_CPU1): New.
17892 (ARM_FSET_DEL_CPU2): New.
17893 (ARM_FSET_UNION): New.
17894 (ARM_FSET_INTER): New.
17895 (ARM_FSET_XOR): New.
17896 (ARM_FSET_EXCLUDE): New.
17897 (AFM_FSET_IS_EMPTY): New.
17898 (ARM_FSET_CPU_SUBSET): New.
17900 2015-08-26 Jiong Wang <jiong.wang@arm.com>
17902 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17903 SYMBOL_TLSLE to SYMBOL_TLSLE24.
17904 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17906 (aarch64_expand_mov_immediate): Likewise.
17907 (aarch64_print_operand): Likewise.
17908 (aarch64_classify_symbol): Likewise.
17910 2015-08-26 Jiong Wang <jiong.wang@arm.com>
17912 * config/aarch64/aarch64.opt (mtls-size): New entry.
17913 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
17914 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
17915 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
17917 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17919 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
17920 ARM_CORE entry. Fix some white-space.
17921 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
17922 ARM_CORE definition.
17924 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17926 * fold-const.c (fold_binary_loc) : Move Optimize
17927 root(x)*root(y) as root(x*y) to match.pd.
17928 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
17929 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
17930 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
17931 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
17932 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
17933 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
17934 (mult (exps:s @0) (exps:s @1)) : New simplifier.
17935 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
17936 (rdiv @0 (exps:s @1)) : New simplifier.
17938 2015-08-25 Joseph Myers <joseph@codesourcery.com>
17940 * gcc.c (driver::finalize): Only assign to extra_specs if
17943 2015-08-25 Marek Polacek <polacek@redhat.com>
17945 PR middle-end/67330
17946 * varasm.c (declare_weak): Return after giving an error.
17948 2015-08-25 David Malcolm <dmalcolm@redhat.com>
17950 * gcc-main.c (main): Add params to driver ctor.
17951 * gcc.c (class env_manager): New.
17953 (env_manager::init): New.
17954 (env_manager::get): New.
17955 (env_manager::xput): New.
17956 (env_manager::restore): New.
17957 Poison getenv and putenv.
17958 (DEFAULT_TARGET_SYSTEM_ROOT): New.
17959 (target_system_root): Update initialization to use
17960 DEFAULT_TARGET_SYSTEM_ROOT.
17961 (struct spec_list): Add field "default_ptr".
17962 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
17963 (init_spec): Likewise.
17964 (set_spec): Clear field "default_ptr".
17965 (read_specs): Free "spec" and "buffer".
17966 (xputenv): Reimplement in terms of env_manager.
17967 (process_command): Replace ::getenv calls with calls to the
17968 env_manager singleton.
17969 (process_brace_body): Free string in three places.
17970 (driver::driver): New.
17971 (driver::~driver): New.
17972 (used_arg): Convert from a function to...
17973 (class used_arg_t): ...this class, and...
17974 (used_arg): ...this new global instance.
17975 (used_arg_t::finalize): New function.
17976 (getenv_spec_function): Add "const" to local "value". Replace
17977 ::getenv call with call to the env_manager singleton.
17978 (path_prefix_reset): New function.
17979 (driver::finalize): New function.
17980 * gcc.h (driver::driver): New.
17981 (driver::~driver): New.
17982 (driver::finalize): New.
17984 2015-08-25 Nathan Sidwell <nathan@acm.org>
17986 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
17987 target doesn't have one.
17989 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
17992 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
17994 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
17997 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
17998 a define_insn, remove second alternative.
18000 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
18001 Joseph Myers <joseph@codesourcery.com>
18003 * gcc.c (struct switchstr): Expand comment.
18005 2015-08-25 Nathan Sidwell <nathan@acm.org>
18007 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
18008 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
18010 2015-08-25 Richard Biener <rguenther@suse.de>
18012 PR middle-end/67306
18013 * genmatch.c (expr::gen_transform): Verify the result of
18014 builtin_decl_implicit.
18015 (dt_simplify::gen_1): Likewise.
18017 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
18019 * config/arm/constraints.md: Also list Cs and US ARM-specific
18020 constraints as used.
18022 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
18025 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
18027 (nonpic_symbol_mentioned_p): Likewise.
18028 (sh_delegitimize_address): Likewise.
18029 (sh_function_ok_for_sibcall): Take into account weak symbols.
18030 (sh_expand_sym_label2reg): New.
18031 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
18032 * config/sh/sh.md (UNSPEC_PCREL): New enum.
18033 (call_pcrel): Use sh_expand_sym_label2reg.
18034 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
18035 (symPCREL_label2reg) New expand.
18037 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18039 * graphite-poly.c: Change type of region from void* to sese.
18040 * graphite-poly.h (struct scop): Changing the type of scop::region
18041 from void* to sese. Change accessor macro accordingly.
18042 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
18044 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18046 * graphite-scop-detection.c (stmt_simple_for_scop_p):
18047 Constrain only on INTEGER_TYPE.
18049 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18052 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
18053 -mefficient-unaligned-vsx on ISA 2.7.
18055 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
18056 option to a masked option.
18058 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
18059 logic for -mefficient-unaligned-vsx so that it is set via an arch
18060 ISA option, instead of being set if -mtune=power8 is set. Move
18061 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
18062 near other default option handling.
18064 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18066 * genflags.c (gen_macro): Delete.
18067 (gen_proto): Don't create GEN.*CALL.* macros.
18068 * gensupport.h (get_file_location): Declare.
18069 * gensupport.c (rtx_locs): New variable.
18070 (read_md_rtx): Record rtx locations.
18071 (get_file_location): New function.
18072 * target-insns.def (call, call_pop, call_value, call_value_pop)
18073 (sibcall, sibcall_value): New patterns.
18074 * gentarget-def.c (parse_argument): New function.
18075 (def_target_insn): Use it. Handle optional operands. Raise an
18076 error if an .md pattern has the wrong number of operands for the
18077 pattern name. Remove the names of unused operands from the prototype.
18078 * builtins.c (expand_builtin_apply): Use targetm functions
18079 instead of HAVE_call_value and GEN_CALL_VALUE.
18080 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
18081 and sibcall_value_pop.
18082 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
18084 * config/alpha/alpha.md (untyped_call): Likewise.
18085 * config/iq2000/iq2000.md (untyped_call): Likewise.
18086 * config/m68k/m68k.md (untyped_call): Likewise.
18087 * config/mips/mips.md (untyped_call): Likewise.
18088 * config/pa/pa.md (untyped_call): Likewise.
18089 * config/rs6000/rs6000.md (untyped_call): Likewise.
18090 * config/sparc/sparc.md (untyped_call): Likewise.
18091 * config/tilegx/tilegx.md (untyped_call): Likewise.
18092 * config/tilepro/tilepro.md (untyped_call): Likewise.
18093 * config/visium/visium.md (untyped_call): Likewise.
18094 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
18095 gen_call_value instead of GEN_CALL_VALUE.
18096 * config/arm/arm.md (untyped_call): Likewise.
18097 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
18100 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18102 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
18103 (have_cbranchcc4): New variable.
18104 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
18105 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
18106 (if_convert): Initialize have_cbranchcc4.
18108 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18110 * builtins.c (expand_cmpstrn): Rename to...
18111 (expand_cmpstrn_or_cmpmem): ...this.
18112 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
18113 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
18114 Remove mode argument.
18115 (expand_builtin): Update accordingly.
18117 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18119 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
18120 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
18121 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
18122 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
18123 Add predicates for operands 0 and 3.
18124 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
18126 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
18127 immediate_operand to nonmemory_operand.
18129 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18131 * df-scan.c (df_insn_info_init_fields): New function, split out
18133 (df_insn_create_insn_record): ...here.
18134 (df_insn_info_free_fields): New function, split out from...
18135 (df_insn_info_delete): ...here.
18136 (df_insn_rescan): Use the new functions instead of freeing and
18137 reallocating the df_insn_info.
18139 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18141 * doc/install.texi (Binaries): Remove links no longer valid.
18143 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
18145 * config/nvptx/mkoffload.c (process): Replace
18146 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
18148 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
18151 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
18153 2015-08-24 Renlin Li <renlin.li@arm.com>
18155 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
18156 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
18157 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
18158 * config/arm/constraints.md ("j"): Add check for high code.
18160 2015-08-24 Tom de Vries <tom@codesourcery.com>
18162 PR tree-optimization/65468
18163 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
18166 2015-08-24 Nathan Sidwell <nathan@acm.org>
18168 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
18169 change to nvptx_type_from_mode call. Use arg_promotion for both
18170 split and non-split args.
18172 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18174 * target-insns.def (movstr): New pattern.
18175 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
18176 (expand_movstr): Use targetm rather than HAVE_movstr/
18179 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18181 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
18184 2015-08-24 Andrew Pinski <apinski@cavium.com>
18186 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
18187 AARCH64_EXTRA_TUNING_OPTION.
18188 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
18190 (aarch64_extra_tuning_flags): Base the shifted value on the index
18191 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
18192 * config/aarch64/aarch64.c: Remove the last argument to
18193 AARCH64_EXTRA_TUNING_OPTION.
18195 2015-08-23 Nathan Sidwell <nathan@acm.org>
18197 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
18199 (nvptx_declare_function_name): Insert formatting tabs for
18202 2015-08-23 Tom de Vries <tom@codesourcery.com>
18204 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
18205 parm_decl, rather than generating a dummy default def in cfun.
18206 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
18207 ssa_name from cfun and child_fn do not share a stmt as def stmt.
18208 (move_stmt_op): Handle PARM_DECl.
18209 (gather_ssa_name_hash_map_from): New function.
18210 (move_sese_region_to_fn): Add default defs for function params, and add
18211 them to vars_map. Release copied ssa names.
18212 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
18214 2015-08-23 Tom de Vries <tom@codesourcery.com>
18216 * doc/sourcebuild.texi: Rename vect_no_int_max with
18217 vect_no_int_min_max. Update description.
18219 2015-08-22 Andrew Pinski <apinski@cavium.com>
18221 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
18222 * config/aarch64/aarch64-protos.h
18223 (aarch64_fusion_pairs_index): New enum.
18224 (aarch64_fusion_pairs): Base the shifted value on the index instead
18225 Rewrite AARCH64_FUSE_ALL to be based on the end index.
18226 of the argument to AARCH64_FUSION_PAIR.
18227 * config/aarch64/aarch64.c: Remove the last argument to
18228 AARCH64_FUSION_PAIR.
18230 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
18232 * dominance.c (new_zero_array): Define.
18233 (dom_info): Redefine as class with proper encapsulation.
18234 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
18236 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
18237 allocations/deallocations. Pass function as parameter (instead of
18239 (dom_info::get_idom): Define accessor method.
18240 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
18241 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
18242 (calculate_dominance_info): Adjust to use dom_info class.
18243 (verify_dominators): Likewise.
18245 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
18247 * print-rtl.c (print_rtx): Check the correct range for
18248 flag_dump_unnumbered_links to behave as documented.
18250 PR rtl-optimization/67227
18251 PR rtl-optimization/64164
18252 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
18253 (nonoverlapping_memrefs_p): Test offsets and sizes when given
18254 identical gimple_reg exprs.
18256 2015-08-21 Nathan Sidwell <nathan@acm.org>
18258 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
18260 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
18261 crtl->stack_alignment_needed to determine alignment.
18262 (nvptx_get_drap_rtx): New.
18263 (TARGET_GET_DRAP_RTX): Override.
18264 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
18266 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18268 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
18270 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18272 * configure.ac: Remove uwin* cases.
18273 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
18274 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
18275 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
18276 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
18277 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
18278 i[34567]86-*-uwin*, powerpc-*-beos*.
18280 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
18282 * gencodes.c (gencodes): Print the comma for the preceding
18283 enum value rather than the current one. Use aliased enum values
18284 rather than #defines for compiled-out patterns.
18285 (main): Update accordingly. Replace LAST_INSN_CODE with
18287 * lra.c (insn_code_data): Update accordingly.
18288 (finish_insn_code_data_once, get_static_insn_data): Likewise.
18289 * recog.h (target_recog): Likewise.
18290 (preprocess_insn_constraints): Change parameter to unsigned int.
18291 * recog.c (preprocess_insn_constraints): Likewise.
18292 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
18293 * tree-vect-stmts.c (vectorizable_operation): Simplify.
18295 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
18297 PR rtl-optimization/61657
18298 * loop-iv.c (iv_number_of_iterations): Declare up and down as
18299 unsigned. Remove superflous uint64_t cast.
18301 2014-08-21 Felix Yang <felix.yang@huawei.com>
18302 Jiji Jiang <jiangjiji@huawei.com>
18304 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
18305 argument and get builtin function code directly from CALL.
18306 (gimple_stringop_fixed_value): Modified accordingly.
18307 (gimple_stringops_transform, gimple_stringops_values_to_profile):
18308 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
18310 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
18312 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
18314 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18316 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
18318 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
18319 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
18320 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
18321 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
18322 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
18323 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
18324 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
18325 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
18326 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
18327 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
18329 * match.pd (SIN ) : New Operator.
18330 (TAN) : New Operator.
18331 (mult (SQRT@1 @0) @1) : New simplifier.
18332 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
18333 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18334 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18335 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
18336 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
18337 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
18338 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
18339 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
18340 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
18341 (rdiv @0 (POW:s @1 @2)) : New simplifier.
18343 2015-08-21 Bin Cheng <bin.cheng@arm.com>
18345 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
18346 loop if EXPR is simplified to const value.
18348 2015-08-21 Yury Gribov <y.gribov@samsung.com>
18350 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18351 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
18353 2015-08-21 Richard Biener <rguenther@suse.de>
18355 PR middle-end/67285
18356 * gimple-fold.c (replace_stmt_with_simplification): Assert
18357 seq is empty when replacing a call with itself but different
18359 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
18360 a call require that it is const.
18362 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18364 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
18365 * builtins.c (get_object_alignment_2): Adjust.
18366 * varasm.c (align_variable): Likewise.
18367 (get_variable_align): Likewise.
18368 (build_constant_desc): Likewise.
18369 (force_const_mem): Likewise.
18370 * doc/tm.texi.in: Likewise.
18371 * doc/tm.texi: Regenerate.
18373 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18375 * genconfig.c (main): Always define HAVE_cc0.
18376 * recog.c (rest_of_handle_peephole2): Adjust.
18378 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18380 * reorg.c (relax_delay_slots): Don't use #if to check value of
18383 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18385 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
18386 * targhooks.c (default_have_conditional_execution): Adjust.
18388 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18390 * rtl.h (rtvec_all_equal_p): Declare.
18391 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
18392 * rtl.c (rtvec_all_equal_p): New function.
18393 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
18394 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
18395 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
18396 * config/arm/arm.c (neon_vdup_constant): Likewise.
18397 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
18398 * config/tilegx/constraints.md (W, Y): Likewise.
18399 * config/tilepro/constraints.md (W, Y): Likewise.
18400 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
18401 (classify_immediate): Use unwrap_const_vec_duplicate.
18402 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
18403 (reg_or_v2s8bit_operand): Likewise.
18404 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
18405 (reg_or_v4s8bit_operand): Likewise.
18407 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18409 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
18410 (vec_shasigma_be): New #define.
18411 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
18412 (VPMSUMH): Likewise.
18413 (VPMSUMW): Likewise.
18414 (VPMSUMD): Likewise.
18415 (VPMSUM): New BU_P8V_OVERLOAD_2.
18416 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
18417 entries for VEC_MADD and VEC_VPMSUM.
18419 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
18421 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
18422 Multiply argument avr_n_flash by 64 to match unit of "KiB".
18423 (avr_pgm_check_var_decl): Same.
18425 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
18427 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
18428 initialization of HFmode scalar type (float16_t) to...
18429 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
18432 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
18434 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
18435 having an -mfp16-format.
18437 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18439 * config/i386/predicates.md (vector_all_ones_operand): Use
18440 CONSTM1_RTX to simplify definition.
18442 2015-08-20 Richard Biener <rguenther@suse.de>
18444 * toplev.c (compile_file): Remove loop calling late_global_decl
18446 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
18447 on decls we assembled.
18449 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
18451 * common/config/aarch64/aarch64-common.c
18452 (AARCH64_CPU_NAME_LENGTH): Delete.
18453 (aarch64_option_extension): New.
18454 (all_extensions): Likewise.
18455 (processor_name_to_arch): Likewise.
18456 (arch_to_arch_name): Likewise.
18458 (all_architectures): Likewise.
18459 (aarch64_get_extension_string_for_isa_flags): Likewise.
18460 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
18461 architecture names.
18462 * config/aarch64/aarch64-protos.h
18463 (aarch64_get_extension_string_for_isa_flags): New.
18464 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
18465 (aarch64_option_print): Get the string to print from
18466 aarch64_get_extension_string_for_isa_flags.
18467 (aarch64_declare_function_name): Likewise.
18468 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
18469 (MCPU_TO_MARCH_SPEC): This.
18470 (ASM_CPU_SPEC): Use it.
18471 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
18472 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
18473 (EXTRA_SPEC_FUNCTIONS): Use it.
18475 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
18477 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
18478 expansion when !ISA_HAS_LWL_LWR.
18479 (mips_block_move_straight): Update the size of elements copied to
18480 account for alignment when !ISA_HAS_LWL_LWR.
18481 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
18483 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18485 * expr.c (expand_expr_real_2): Check gimple statement during
18486 LSHIFT_EXPR expand.
18488 2015-08-19 Magnus Granberg <zorry@gentoo.org>
18490 * common.opt (fstack-protector): Initialize to -1.
18491 (fstack-protector-all): Likewise.
18492 (fstack-protector-strong): Likewise.
18493 (fstack-protector-explicit): Likewise.
18494 * configure.ac: Add --enable-default-ssp.
18495 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
18496 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
18498 * doc/install.texi: Document --enable-default-ssp.
18499 * config.in: Regenerated.
18500 * configure: Likewise.
18502 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
18504 PR rtl-optimization/64164
18505 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
18506 (parm_in_stack_slot_p): ... this. Disregard mode, what
18507 matters is whether the parm will live in a pseudo or a stack
18509 (expand_one_ssa_partition): Deal with params without a default
18510 def. Disregard mode.
18511 * cfgexpand.h: Renamed function declaration.
18512 * tree-ssa-coalesce.c: Adjust.
18513 * function.c (split_complex_args): Allocate stack slot for
18514 unassigned parms before splitting.
18515 (parm_in_unassigned_mem_p): New. Use it instead of
18516 parm_maybe_byref_p throughout this file.
18517 (assign_parm_setup_block): Use it. Accept pseudos in the
18518 expand-assigned rtl.
18519 (assign_parm_setup_reg): Drop BLKmode requirement.
18520 (assign_parm_setup_stack): Allocate and fill in the address of
18521 unassigned MEM parms.
18523 2015-08-19 David Sherwood <david.sherwood@arm.com>
18525 * genmodes.c (emit_mode_unit_size_inline): New function.
18526 (emit_mode_unit_precision_inline): New function.
18527 (emit_insn_modes_h): Emit new #define. Emit new functions.
18528 (emit_mode_unit_size): New function.
18529 (emit_mode_unit_precision): New function.
18530 (emit_mode_adjustments): Add mode_unit_size adjustments.
18531 (emit_insn_modes_c): Emit new arrays.
18532 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
18533 use new inline methods.
18535 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18537 * config/aarch64/aarch64.c (bit_count): Delete prototype
18539 (aarch64_print_operand): Use popcount_hwi instead of the above.
18541 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18543 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
18546 2015-08-19 Marek Polacek <polacek@redhat.com>
18548 PR middle-end/67133
18549 * gimple-ssa-isolate-paths.c
18550 (insert_trap_and_remove_trailing_statements): Rename to ...
18551 (insert_trap): ... this. Don't remove trailing statements; split
18553 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
18555 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
18558 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
18559 conditionalize the whole on __GNUC__. Add fallback code
18560 depending neither on undefined nor implementation-defined behaviour.
18562 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18564 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
18565 whitespaces with tab.
18567 2015-08-19 Florian Weimer <fweimer@redhat.com>
18569 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
18570 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
18571 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
18572 Move Name_Ids instantiation to the Prj.Proc package, to avoid
18575 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18577 * config/arm/arm.c (bounds_check): Use %wd print format
18578 for HOST_WIDE_INT arguments.
18580 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
18582 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
18583 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
18584 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
18585 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
18586 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
18587 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
18588 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
18589 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
18590 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
18593 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
18595 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
18596 function.c, graphite-scop-detection.c, haifa-sched.c,
18597 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
18598 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
18599 varasm.c: Remove typedefs of structs.
18601 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18603 * config/rs6000/altivec.h (vec_adde): New define.
18604 (vec_addec): Likewise.
18605 (vec_double): Likewise.
18606 (vec_bperm): Likewise.
18607 (vec_gb): Likewise.
18608 * config/rs6000/rs6000-builtin.def (ADDE): New
18609 BU_ALTIVEC_OVERLOAD_3.
18611 (DOUBLE): New BU_VSX_OVERLOAD_1.
18612 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
18613 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
18614 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
18615 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
18616 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
18617 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
18618 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
18619 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
18620 and P8V_BUILTIN_VEC_VBPERMQ.
18622 2015-08-18 Jason Merrill <jason@redhat.com>
18624 * print-tree.c (print_node): Handle TREE_BINFO.
18626 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18628 PR middle-end/36757
18629 * builtins.c (expand_builtin_signbit): Add asserts to make sure
18630 we can expand BUILT_IN_SIGNBIT inline.
18631 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
18632 * doc/extend.texi: Document the type-generic __builtin_signbit.
18634 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
18636 PR rtl-optimization/67218
18637 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
18638 (simplify_unary_operation_1): Use it.
18640 2015-08-18 Marek Polacek <polacek@redhat.com>
18642 PR middle-end/67222
18643 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
18644 if the call isn't valid.
18645 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
18646 gimple_call_builtin_p.
18647 (call_may_clobber_ref_p_1): Likewise.
18648 (stmt_kills_ref_p): Likewise.
18650 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
18652 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
18653 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
18654 (mips_hard_regno_scratch_ok): Likewise.
18655 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
18656 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
18658 2015-08-18 Bin Cheng <bin.cheng@arm.com>
18660 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
18661 (determine_value_range): Call refine_value_range_using_guard for
18662 each loop initial condition to improve value range.
18664 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
18666 * config/i386/i386.c: Remove include of fibheap.h.
18668 2015-08-17 Richard Biener <rguenther@suse.de>
18670 PR tree-optimization/67221
18671 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
18672 (sccvn_dom_walker::before_dom_children): Mark backedges of
18673 non-executable blocks as not executable.
18675 2015-08-17 David Sherwood <david.sherwood@arm.com>
18677 * config/arm/arm.c (neon_element_bits): Replace call to
18678 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
18679 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
18680 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
18681 (neon_vdup_lane<mode>): Likewise.
18682 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
18683 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
18684 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
18685 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
18686 * config/spu/spu.c (arith_immediate_p): Likewise.
18687 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
18688 * expr.c (expand_expr_real_2): Likewise.
18689 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
18690 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18691 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
18692 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
18694 * fold-const.c (fold_binary_loc): Replace call to
18695 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
18696 GET_MODE_UNIT_PRECISION (m).
18698 2015-08-17 Mike Stump <mikestump@comcast.net>
18700 * config/arm/arm.c (arm_block_move_unaligned_straight):
18701 Emit normal move instead of unaligned load when source or destination
18702 are appropriately aligned.
18704 2015-08-17 Richard Biener <rguenther@suse.de>
18705 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18707 PR middle-end/16107
18708 * match.pd (div (coss (op @0) : New simplifier.
18710 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
18712 PR rtl-optimization/64164
18714 PR middle-end/66983
18715 PR rtl-optimization/67000
18716 PR middle-end/67034
18717 PR middle-end/67035
18718 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18719 * tree-ssa-copyrename.c: Removed.
18720 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18721 -ftree-coalesce-vars.
18722 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18723 * common.opt (ftree-copyrename): Ignore.
18724 (ftree-coalesce-inlined-vars): Likewise.
18725 * doc/invoke.texi: Remove the ignored options above.
18726 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18727 * tree-ssa-coalesce.h: ... here.
18728 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18729 headers required by it.
18730 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18731 across variables when flag_tree_coalesce_vars. Check register
18732 use and promoted modes to allow coalescing. Do not coalesce
18733 maybe-byref parms with SSA_NAMEs of other variables, or
18734 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
18735 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18736 with its member functions to tree-ssa-coalesce.c.
18737 (var_map_base_init): Likewise. Renamed to
18738 compute_samebase_partition_bases.
18739 (partition_view_normal): Drop want_bases parameter.
18740 (partition_view_bitmap): Likewise.
18741 * tree-ssa-live.h: Adjust declarations.
18742 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
18743 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18744 default defs at the entry point.
18745 (dump_part_var_map): New.
18746 (compute_optimized_partition_bases): New, called by...
18747 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18748 of compute_samebase_partition_bases. Adjust.
18749 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18750 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
18751 (ssa_default_def_partition): New.
18752 (get_rtl_for_parm_ssa_default_def): New.
18753 (align_local_variable, add_stack_var): Support anonymous SSA
18755 (defer_stack_allocation): Likewise. Declare earlier.
18756 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18757 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18758 Do no record deferred-allocation marker in
18759 SA.partition_to_pseudo.
18760 (expand_stack_vars): Adjust check for the marker in it.
18761 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18762 redundant MEM attr setting.
18763 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18765 (expand_one_stack_var): ... this. New wrapper to check and
18766 skip already expanded SSA partitions.
18767 (record_alignment_for_reg_var): New, factored out of...
18768 (expand_one_var): ... this.
18769 (expand_one_ssa_partition): New.
18770 (adjust_one_expanded_partition_var): New.
18771 (expand_one_register_var): Check and skip already expanded SSA
18773 (expand_used_vars): Don't create DECLs for anonymous SSA
18774 names. Expand all SSA partitions, then adjust all SSA names.
18775 (pass::execute): Replace the loops that set
18776 SA.partition_to_pseudo from partition leaders and cleared
18777 DECL_RTL for multi-location variables, and that which used to
18778 rename vars and set attrs, with one that clears DECL_RTL and
18779 checks that PARMs and RESULTs default_defs match DECL_RTL.
18780 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18781 * emit-rtl.c: Include stor-layout.h.
18782 (set_reg_attrs_for_parm): Handle NULL decl.
18783 (set_reg_attrs_for_decl_rtl): Take mode from expression if
18785 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
18786 rather than its possibly-NULL DECL.
18787 * explow.c (promote_ssa_mode): New.
18788 * explow.h (promote_ssa_mode): Declare.
18789 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18790 (read_complex_part): Export.
18791 * expr.h (read_complex_part): Declare.
18792 * cfgexpand.h (parm_maybe_byref_p): Declare.
18793 * function.c: Include cfgexpand.h.
18794 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18795 (use_register_for_parm_decl): Wrapper for the above to
18796 special-case the result_ptr.
18797 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18798 (split_complex_args): Take assign_parm_data_all argument.
18799 Pass it to rtl_for_parm. Set up rtl and context for split
18800 args. Reset complex parm before fetching its default decl
18802 (assign_parms_unsplit_complex): Use the default-def complex
18803 parm rtl if it matches the components.
18804 (assign_parms_augmented_arg_list): Adjust.
18805 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18806 multiple locations. Recognize split complex args.
18807 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18808 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18809 (assign_parm_setup_block): Prefer SSA-assigned location, and
18810 fill in its address if the memory location of a maybe-byref
18811 parm was not assigned by cfgexpand.
18812 (assign_parm_setup_reg): Likewise. Adjust its mode as
18813 needed. Use entry_parm for equiv if stack_parm is NULL. Make
18814 sure passed_pointer parms don't need conversion. Copy address
18815 or value as needed.
18816 (assign_parm_setup_stack): Prefer SSA-assigned location.
18817 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18818 rtl before testing for pointer bounds. Special-case result_ptr.
18819 (expand_function_start): Maybe reset DECL_RTL of result.
18820 Prefer SSA-assigned location for result and static chain.
18821 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
18822 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
18823 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18824 anonymous SSA names. Use promote_ssa_mode.
18825 (get_temp_reg): Likewise.
18826 (remove_ssa_form): Adjust.
18827 * stor-layout.c (layout_decl): Don't set mem attributes of
18829 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18830 and get its reg_usage for reg invalidation.
18831 (compute_bb_dataflow): Pass it insn.
18832 (emit_notes_in_bb): Likewise.
18834 2015-08-14 Marek Polacek <polacek@redhat.com>
18836 * tree-core.h (tree_base): Fix typo.
18838 2015-08-14 Marek Polacek <polacek@redhat.com>
18840 PR middle-end/67133
18841 * gimple.c (infer_nonnull_range_by_attribute): Check that the
18842 nonnull argument position is not outside function arguments.
18844 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
18847 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
18848 'lconst_atomic' with 'const_atomic'.
18849 (atomic_fetch_<optab><mode>): Likewise.
18850 (atomic_<optab>_fetch<mode>): Likewise.
18851 * config/aarch64/iterators.md (lconst-atomic): Move below
18853 (const_atomic): New.
18855 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
18856 Bernd Schmidt <bernds@codesourcery.com>
18858 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
18860 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
18861 (DWARF2_DEBUGGING_INFO): Don't define.
18862 * debug.h (dwarf2_lineno_debug_hooks): Declare.
18863 * toplev.c (process_options): Add a case for it.
18864 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
18865 (dwarf2out_init): Skip most initializations if
18866 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
18868 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
18869 DWARF2_LINENO_DEBUGGING_INFO.
18870 * opts.c (set_debug_level): Likewise.
18872 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
18874 * config/arm/types.md (is_neon_type): Add missing types.
18876 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
18878 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
18880 * config/i386/i386.c (PTA_SKYLAKE): New macros.
18881 (processor_alias_table): Add skylake description.
18882 (enum processor_model): Add skylake processor.
18883 (arch_names_table): Add skylake record.
18884 * doc/invoke.texi: Add skylake item.
18886 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
18888 * ira-int.h: Include recog.h.
18889 * ira-build.c: Don't include recog.h.
18890 * ira-color.c: Likewise.
18891 * ira-conflicts.c: Likewise.
18892 * ira-costs.c: Likewise.
18893 * ira-emit.c: Likewise.
18894 * ira-lives.c: Likewise.
18896 * sched-deps.c: Likewise.
18897 * sel-sched.c: Likewise.
18898 * target-globals.c: Likewise.
18900 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
18903 * reload1.c (elimination_costs_in_insn): Make it obvious to the
18904 compiler that the n_dups and n_operands loop bounds are invariant.
18906 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18908 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
18909 expressions in A and B.
18911 2015-08-13 Richard Biener <rguenther@suse.de>
18913 * tree.c (nonnull_arg_p): Move from ...
18914 * tree-vrp.c (nonnull_arg_p): ... here.
18915 * tree.h (nonnull_arg_p): Declare.
18916 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
18917 here, register ptr != 0 for nonnull_arg_p pointer arguments.
18918 Properly initialize static chain and by-reference result pointer.
18919 (run_scc_vn): Adjust.
18921 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18923 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
18926 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18928 * config/aarch64/aarch64-protos.h
18929 (aarch64_gen_atomic_cas): Declare.
18930 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
18931 Choose appropriate instruction pattern for the target.
18932 (aarch64_gen_atomic_cas): New.
18933 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
18934 (atomic_compare_and_swap<mode>_1): Rename to
18935 aarch64_compare_and_swap<mode>. Fix some indentation.
18936 (aarch64_compare_and_swap<mode>_lse): New.
18937 (aarch64_atomic_cas<mode>): New.
18939 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18941 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
18944 2015-08-13 Richard Biener <rguenther@suse.de>
18946 PR tree-optimization/67191
18947 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
18948 assert we value-numbered last stmts operand because it can validly
18949 trigger for unreachable code.
18951 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18953 PR rtl-optimization/67103
18954 * ifcvt.c (noce_try_store_flag_constants): Move
18955 x = (-(test != 0) & (b - a)) + a transformation to...
18956 (noce_try_cmove): ... Here. Try it if normal conditional
18959 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18961 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
18963 * config/mips/mips.md (processor): Remove w32 and w64.
18965 2015-08-13 Richard Biener <rguenther@suse.de>
18967 PR tree-optimization/66502
18968 PR tree-optimization/67167
18969 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
18970 backedge arguments.
18971 (vn_phi_lookup): Adjust.
18972 (vn_phi_insert): Likewise.
18973 (visit_phi): Prefer to value-number to another PHI node
18974 over value-numbering to a PHI argument.
18975 (init_scc_vn): Mark DFS back edges.
18977 2015-08-13 Richard Biener <rguenther@suse.de>
18979 * gimple.h (gcall::code_): New constant static member.
18980 (gcond::code_): Likewise.
18981 * gimple.c (gcall::code_): Define.
18982 (gcond::code_): Likewise.
18983 (is_a_helper <const gcond *>): Add.
18984 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
18985 and forward to a new gcall overload with less checking and a
18986 cheaper way to access the operand.
18987 (gimple_call_lhs_ptr): Likewise.
18988 (gimple_call_set_lhs): Likewise.
18989 (gimple_call_internal_p): Likewise.
18990 (gimple_call_with_bounds_p): Likewise.
18991 (gimple_call_set_with_bounds): Likewise.
18992 (gimple_call_internal_fn): Likewise.
18993 (gimple_call_set_ctrl_altering): Likewise.
18994 (gimple_call_ctrl_altering_p): Likewise.
18995 (gimple_call_fntype): Likewise.
18996 (gimple_call_fn): Likewise.
18997 (gimple_call_fn_ptr): Likewise.
18998 (gimple_call_set_fndecl): Likewise.
18999 (gimple_call_fndecl): Likewise.
19000 (gimple_call_chain): Likewise.
19001 (gimple_call_num_args): Likewise.
19002 (gimple_call_arg): Likewise.
19003 (gimple_call_arg_ptr): Likewise.
19004 (gimple_call_set_arg): Likewise.
19005 (gimple_call_noreturn_p): Likewise.
19006 (gimple_cond_code): Likewise.
19007 (gimple_cond_lhs): Likewise.
19008 (gimple_cond_rhs): Likewise.
19009 (gimple_has_lhs): Reduce checking.
19011 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19013 PR middle-end/25529
19014 * match.pd (div (mult @0 @1) @1) : New simplifier.
19016 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19019 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
19020 predicate to allow construction of vector constants using the
19021 VSLDOI vector shift instruction.
19023 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
19026 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
19027 the number of bytes to be shifted left and filled in with either
19028 all zero or all one bits.
19029 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
19031 (output_vec_const_move): On power8, generate XXLORC to generate
19032 a vector constant with all 1's. Do a split if we need to use a
19033 VSLDOI instruction.
19035 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
19036 properly test for the MSB.
19038 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
19039 vector constants that can be created with VSLDOI.
19041 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19044 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19045 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19046 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19047 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19048 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19049 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19050 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19051 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19052 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19054 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
19056 * config/xtensa/constraints.md (define_constraint "Y"): New
19058 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
19059 * config/xtensa/linux.h (ASM_SPEC): Likewise.
19060 * config/xtensa/predicates.md (move_operand): Match constants
19061 and symbols in the presence of TARGET_AUTO_LITPOOLS.
19062 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
19063 immediate references to TLS data.
19064 (xtensa_emit_move_sequence): Don't force constants to memory in
19065 the presence of TARGET_AUTO_LITPOOLS.
19066 (print_operand): Add 'y' format, same as default, but capable of
19067 printing SF mode constants as well.
19068 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
19069 (movsf_internal): Add movi pattern that loads literal.
19070 (movsf, movdf): Don't force constants to memory in the presence
19071 of TARGET_AUTO_LITPOOLS.
19072 (movdf_internal): Add 'Y' constraint.
19073 * config/xtensa/xtensa.opt (mauto-litpools): New option.
19074 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
19076 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19078 * config/arm/arm-fpus.def: Replace booleans with feature flags.
19080 * config/arm/arm.c (ARM_FPU): Update macro.
19081 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
19082 (TARGET_FP16): Likewise.
19083 (TARGET_CRYPTO): Likewise.
19084 (TARGET_NEON): Likewise.
19085 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
19088 2015-08-12 Tom de Vries <tom@codesourcery.com>
19092 * doc/install.texi: Remove --with_host_libstdcxx item. Update
19093 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
19094 accordingly. Mention default for --with-stage1-ldflags.
19096 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19098 * config/arm/arm.h (arm_fpu_feature_set): New.
19099 (ARM_FPU_FSET_HAS): New.
19100 (FPU_FL_NONE): New.
19101 (FPU_FL_NEON): New.
19102 (FPU_FL_FP16): New.
19103 (FPU_FL_CRYPTO): New.
19105 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19107 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
19108 after -mcmodel=large -fPIC sorry.
19110 2015-08-12 Richard Biener <rguenther@suse.de>
19112 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
19113 comparison operand order and commutative ternary op operand order.
19114 (sccvn_dom_walker::cond_stack): New state to track temporary
19116 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
19118 (sccvn_dom_walker::record_cond): Add a single temporary conditional
19120 (sccvn_dom_walker::record_conds): Add a temporary conditional
19121 expressions and all related expressions also true/false.
19122 (sccvn_dom_walker::before_dom_children): Record temporary
19123 expressions based on the controlling condition of a single
19124 predecessor. When trying to simplify a conditional statement
19125 lookup expressions we might have inserted earlier.
19127 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
19130 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
19131 to ARM core registers.
19133 2015-08-12 Nathan Sidwell <nathan@acm.org>
19135 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
19136 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
19138 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
19140 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
19141 line with comments.
19142 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
19144 2015-08-12 Richard Biener <rguenther@suse.de>
19146 * gimple.h (remove_pointer): New trait.
19147 (GIMPLE_CHECK2): New inline template function.
19148 (gassign::code_): New constant static member.
19149 (is_a_helper<const gassign *>): Add.
19150 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
19151 and forward to a new gassign overload with less checking and a
19152 cheaper way to access the operand.
19153 (gimple_assign_lhs_ptr): Likewise.
19154 (gimple_assign_set_lhs): Likewise.
19155 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
19157 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
19159 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
19161 (gimple_assign_rhs_code): Likewise.
19162 * gimple.c (gassign::code_): Define.
19164 2015-08-12 Richard Biener <rguenther@suse.de>
19166 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19167 Eliminate edges marked as not executable by SCCVN.
19168 * tree-ssa-sccvn.c: Include gimple-iterator.h.
19169 (cond_dom_walker): Rename to sccvn_dom_walker.
19170 (sccvn_dom_walker::before_dom_children): Value-number defs
19172 (run_scc_vn): Remove loop value-numbering all SSA names.
19173 Drop not visited SSA names to varying.
19175 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19177 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19178 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19179 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19180 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19181 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19182 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19183 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19184 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19185 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19187 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
19190 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
19191 to enum feature_priority and feature_list.
19192 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
19193 and isa_names_table.
19195 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
19197 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
19198 vect_induction_def.
19200 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19204 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
19205 account when deciding what was the command-line status.
19207 2015-08-11 Nathan Sidwell <nathan@acm.org>
19209 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
19211 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
19212 we're not the only contributor to target phi.
19214 2015-08-11 Jiong Wang <jiong.wang@arm.com>
19216 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
19219 2015-08-11 Tom de Vries <tom@codesourcery.com>
19221 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
19223 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
19225 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
19227 * config/i386/i386.md (cpu): Remove knl.
19229 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19232 PR middle-end/66332
19233 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
19234 open-coded sequence.
19235 * omp-low.c (oacc_process_reduction_data): Remove handline of
19236 GOMP_DEVICE_HOST_NONSHM.
19238 * lto-streamer-in.c (lto_input_mode_table): Adjust to
19239 GET_MODE_INNER changes.
19241 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19242 Ilya Verbin <ilya.verbin@intel.com>
19244 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
19246 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
19248 * doc/options.texi (EnabledBy): Document that the argument must be
19250 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
19251 Not enabled by -Wall.
19252 * optc-gen.awk: Give nicer error messages. Detect if the argument
19253 of EnabledBy is not a Common option.
19254 * common.opt (Wnull-dereference): Not enabled by -Wall.
19255 * opt-functions.awk (lang_enabled_by): Nicer error messages.
19257 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
19259 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
19260 model == 0x4f as Broadwell.
19262 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
19264 PR rtl-optimization/67028
19265 * combine.c (simplify_comparison): Fix comment. Rearrange code.
19266 Add test to see if a const_int fits in the new mode.
19268 2015-08-07 DJ Delorie <dj@redhat.com>
19270 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
19272 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
19274 PR rtl-optimization/67029
19275 * ira-color.c: Include "recog.h" before including "ira-int.h".
19276 * target-globals.c: Likewise.
19277 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
19278 adds an alternative_mask argument and use it instead of
19279 preferred_alternatives.
19280 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
19281 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
19282 * sched-deps.c: Include "ira-int.h" after including "ira.h".
19283 (sched_analyze_insn): Update call to
19284 ira_implicitly_set_insn_hard_regs.
19285 * sel-sched.c: Include "ira-int.h" after including "ira.h".
19286 (implicit_clobber_conflict_p): Update call to
19287 ira_implicitly_set_insn_hard_regs.
19289 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19291 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
19293 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
19296 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
19297 currently_expanding_to_rtl is set.
19299 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
19301 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
19302 * configure: Regenerate.
19304 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19305 Jiong Wang <jiong.wang@arm.com>
19307 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
19308 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
19309 (REG_CLASS_NAMES): Likewise.
19310 (REG_CLASS_CONTENTS): Likewise.
19311 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
19312 (aarch64_register_move_cost): Likewise.
19313 (aarch64_load_symref_appropriately): Invoke the new added pattern if
19315 * config/aarch64/constraints.md (Uc0): New constraint.
19317 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19319 * config/aarch64/constraints.md (Usf): Add the test of
19320 aarch64_is_noplt_call_p.
19322 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19324 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
19326 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
19327 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
19328 (call_symbol): Likewise.
19330 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
19332 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
19333 for vectorizing multiplication patterns.
19334 * tree-vectorizer.h: Adjust the number of patterns.
19336 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19338 * config/i386/sse.md (*vec_concatv2df): Declare added
19339 alternatives as sselog type.
19341 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19343 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
19346 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19348 * config/s390/s390.c (s390_expand_tbegin): Expand either
19349 tbegin_1_z13 or tbegin_1 depending on VX flag.
19350 * config/s390/s390.md ("tbegin_1_z13"): New expander.
19352 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19354 * config/s390/s390.opt: Clarify description for -mzvector
19355 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
19358 2015-08-06 Richard Biener <rguenther@suse.de>
19360 * gimple.h (gimple_call_set_fn): Access op member directly.
19361 (gimple_call_chain_ptr): Likewise.
19362 (gimple_call_set_chain): Likewise.
19363 (gimple_cond_lhs_ptr): Likewise.
19364 (gimple_cond_set_lhs): Likewise.
19365 (gimple_cond_rhs_ptr): Likewise.
19366 (gimple_cond_set_rhs): Likewise.
19367 (gimple_cond_true_label): Likewise.
19368 (gimple_cond_set_true_label): Likewise.
19369 (gimple_cond_set_false_label): Likewise.
19370 (gimple_cond_false_label): Likewise.
19371 (gimple_label_label): Likewise.
19372 (gimple_label_set_label): Likewise.
19373 (gimple_goto_set_dest): Likewise.
19374 (gimple_asm_input_op): Likewise.
19375 (gimple_asm_input_op_ptr): Likewise.
19376 (gimple_asm_set_input_op): Likewise.
19377 (gimple_asm_output_op): Likewise.
19378 (gimple_asm_output_op_ptr): Likewise.
19379 (gimple_asm_set_output_op): Likewise.
19380 (gimple_asm_clobber_op): Likewise.
19381 (gimple_asm_set_clobber_op): Likewise.
19382 (gimple_asm_label_op): Likewise.
19383 (gimple_asm_set_label_op): Likewise.
19384 (gimple_switch_index): Likewise.
19385 (gimple_switch_index_ptr): Likewise.
19386 (gimple_return_retval_ptr): Likewise.
19387 (gimple_return_retval): Likewise.
19388 (gimple_return_set_retval): Likewise.
19389 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
19390 (gimple_switch_label): Likewise.
19391 (gimple_switch_set_label): Likewise.
19393 2015-08-06 Richard Biener <rguenther@suse.de>
19395 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
19396 bool comparison canonicalization and restrict to integers.
19398 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
19400 * coretypes.h (enum symbol_visibility): Relocate here.
19401 * flag-types.h (enum symbol_visibility): Remove.
19402 * tree-core.h (enum symbol_visibility): Remove.
19404 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
19407 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
19408 for no_split_stack function attribute along with
19410 (rs6000_expand_split_stack_prologue): Likewise.
19412 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
19413 Jeff Law <law@redhat.com>
19416 * doc/invoke.texi (Wnull-dereference): New.
19417 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
19418 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
19419 Warn for potential NULL dereferences.
19420 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
19421 * ubsan.c (instrument_nonnull_arg): Call
19422 infer_nonnull_range_by_attribute.
19423 (instrument_nonnull_return): Likewise.
19424 * common.opt (Wnull-dereference); New.
19425 * gimple.c (infer_nonnull_range): Remove bool arguments.
19426 (infer_nonnull_range_by_dereference): New.
19427 (infer_nonnull_range_by_attribute): New.
19428 * gimple.h: Update declarations.
19430 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19432 * gensupport.c (sequence_num): Replace with...
19433 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
19434 ...these new variables.
19435 (init_rtx_reader_args_cb): Update accordingly.
19436 (get_num_code_insns): Likewise.
19437 (read_md_rtx): Rework to use a while loop and get_c_test.
19438 Use the new counters. Remove redundant DEFINE_SUBST case.
19439 * genoutput.c (gen_split): Delete.
19440 (main): Don't call it.
19442 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19444 * gensupport.h (get_c_test): Declare.
19445 * gensupport.c (get_c_test): New function.
19446 * genconditions.c (main): Use it.
19447 * genrecog.c (validate_pattern): Likewise.
19448 (match_pattern_1): Likewise. Remove c_test argument.
19449 (match_pattern): Update accordingly and remove c_test argument.
19450 (main): Update accordingly.
19452 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19454 * gensupport.h (get_num_insn_codes): Declare.
19455 * gensupport.c (get_num_insn_codes): New function.
19456 * genattrtab.c (optimize_attrs): Rename max_insn_code to
19458 (main): Likewise. Use get_num_insn_codes.
19459 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
19461 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19463 PR middle-end/66311
19464 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
19465 is zero- rather than sign-extended.
19467 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19469 * target-insns.def (can_extend): Delete.
19471 2015-08-05 Richard Biener <rguenther@suse.de>
19473 PR tree-optimization/67121
19474 * tree-if-conv.c (combine_blocks): Clear range-info produced
19475 by stmts no longer executed conditionally.
19477 2015-08-05 Nick Clifton <nickc@redhat.com>
19479 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
19480 to allow identical far pointers to remain.
19482 2015-08-05 Richard Biener <rguenther@suse.de>
19484 PR middle-end/67120
19485 * match.pd: Compare address bases with == if they are decls
19486 or SSA names, not operand_equal_p. Otherwise fail.
19488 2015-08-05 Richard Biener <rguenther@suse.de>
19490 PR tree-optimization/67055
19491 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
19494 * g++.dg/torture/pr67055.C: New testcase.
19496 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19498 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
19500 (define_attr "enabled"): Handle avx521vl and noavx512vl.
19501 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
19502 AVX-512 alternative out of SSE.
19503 (define_insn "*vec_concatv2df"): Ditto.
19505 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19507 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
19508 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
19509 CODE_FOR_avx_ptestv4di.
19510 * config/i386/sse.md (define_mode_iterator V_AVX): New.
19511 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
19512 (define_insn "avx_ptest256"): Merge this ...
19513 (define_insn "sse4_1_ptest"): And this ...
19514 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
19516 2015-08-05 Richard Biener <rguenther@suse.de>
19518 PR tree-optimization/67109
19519 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
19520 against too big groups. Print whether this is a load or store
19521 group. Rename from ...
19522 (vect_analyze_group_access): ... this which is now a wrapper
19523 dissolving an invalid group.
19524 (vect_analyze_data_ref_accesses): Print whether this is a load
19527 2015-08-05 Richard Biener <rguenther@suse.de>
19529 PR middle-end/67107
19530 * match.pd: Guard const_binop result checking against NULL_TREE
19533 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
19535 * cse.c (cse_insn): Restoring old behaviour for src_eqv
19536 when dest and value in the REG_EQUAL are same and dest
19537 is STRICT_LOW_PART.
19539 2015-08-04 Anatoly Sokolov <aesok@post.ru>
19541 * config/moxie/moxie.h (PRINT_OPERAND,
19542 PRINT_OPERAND_ADDRESS): Remove macros.
19543 * config/moxie/moxie-protos.h (moxie_print_operand,
19544 moxie_print_operand_address): Remove declaration.
19545 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
19546 TARGET_PRINT_OPERAND_ADDRESS): Define.
19547 (moxie_print_operand, moxie_print_operand_address): Make static.
19549 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
19552 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
19553 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
19555 2015-08-04 Richard Biener <rguenther@suse.de>
19557 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
19559 (dt_operand::gen_gimple_expr): Adjust.
19561 2015-08-04 Richard Biener <rguenther@suse.de>
19563 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
19564 bool compares on RHS.
19565 * match.pd: Add X ==/!= !X is false/true pattern.
19567 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
19569 * config/aarch64/aarch64.c: Change inner loop statement cost
19570 to be consistent with other targets.
19572 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
19574 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
19577 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
19579 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
19580 (machine_function): Remove pseudos field.
19582 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19584 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19585 Exit early and use target_option_current_node if processing current
19588 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19590 * doc/extend.texi (AArch64 Function Attributes): New node.
19591 (AArch64 Pragmas): Likewise.
19593 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19595 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19596 Initialize simd builtins if TARGET_SIMD.
19597 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
19598 Make sure that the builtins are initialized only once no matter how
19599 many times the function is called.
19600 (aarch64_init_builtins): Unconditionally initialize crc builtins.
19601 (aarch64_relayout_simd_param): New function.
19602 (aarch64_simd_expand_args): Use above during argument expansion.
19603 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
19604 simd builtins if TARGET_SIMD.
19605 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
19607 (aarch64_relayout_simd_types): Likewise.
19609 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19611 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
19612 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
19613 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
19614 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19616 (aarch64_reset_previous_fndecl): New function.
19617 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
19619 * config/aarch64/aarch64-c.c: New file.
19620 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
19621 Push and pop options at beginning and end. Remove ifdef
19622 __ARM_FEATURE_CRC32.
19623 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
19624 Add pragma +nothing+simd and +nothing+crypto where appropriate.
19625 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
19626 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
19628 (aarch64_register_pragmas): Likewise.
19629 (aarch64_reset_previous_fndecl): Likewise.
19630 (aarch64_process_target_attr): Likewise.
19631 (aarch64_override_options_internal): Likewise.
19633 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19635 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
19637 (aarch64_can_inline_p): Likewise.
19638 (TARGET_CAN_INLINE_P): Define.
19640 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19642 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
19643 Remove static. Handle OPT_mgeneral_regs_only,
19644 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
19645 OPT_momit_leaf_frame_pointer.
19646 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
19647 (aarch64_attr_opt_type): New enum.
19648 (aarch64_attribute_info): New struct.
19649 (aarch64_handle_attr_arch): New function.
19650 (aarch64_handle_attr_cpu): Likewise.
19651 (aarch64_handle_attr_tune): Likewise.
19652 (aarch64_handle_attr_isa_flags): Likewise.
19653 (aarch64_attributes): New table.
19654 (aarch64_process_one_target_attr): New function.
19655 (num_occurences_in_str): Likewise.
19656 (aarch64_process_target_attr): Likewise.
19657 (aarch64_option_valid_attribute_p): Likewise.
19658 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19659 * config/aarch64/aarch64-protos.h: Include input.h
19660 (aarch64_handle_option): Declare prototype.
19662 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19664 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
19665 * config/aarch64/aarch64.c: Include target-globals.h
19666 (aarch64_previous_fndecl): New variable.
19667 (aarch64_set_current_function): New function.
19668 (TARGET_SET_CURRENT_FUNCTION): Define.
19670 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19672 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
19673 (explicit_arch): Likewise.
19674 (x_aarch64_isa_flags): Likewise.
19675 (mgeneral-regs-only): Mark as Save.
19676 (mfix-cortex-a53-835769): Likewise.
19677 (mcmodel=): Likewise.
19678 (mstrict-align): Likewise.
19679 (momit-leaf-frame-pointer): Likewise.
19680 (mtls-dialect): Likewise.
19681 (master=): Likewise.
19682 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
19683 (aarch64_isa_flags): Remove extern declaration.
19684 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
19685 to indicate success or failure.
19686 (aarch64_validate_march): Likewise.
19687 (aarch64_validate_mtune): Likewise.
19688 (aarch64_isa_flags): Delete.
19689 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
19690 instead of aarch64_isa_flags.
19691 (aarch64_get_tune_cpu): New function.
19692 (aarch64_get_arch): Likewise.
19693 (aarch64_override_options): Use above and set up explicit_tune_core
19695 (aarch64_print_extension): Move earlier in file. Add isa_flags
19696 argument and use that instead of the global aarch64_isa_flags.
19697 (aarch64_option_save): New function.
19698 (aarch64_option_restore): Likewise.
19699 (aarch64_option_print): Likewise.
19700 (aarch64_declare_function_name): Likewise.
19701 (aarch64_start_file): Delete.
19702 (TARGET_ASM_FILE_START): Do not define.
19703 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
19704 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
19707 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19709 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
19710 flag_omit_leaf_frame_pointer to 2.
19712 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19714 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
19716 (TARGET_FIX_ERR_A53_835769): New macro.
19717 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19718 handling of opts->x_aarch64_fix_a53_err835769.
19719 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
19720 than aarch64_fix_a53_err835769.
19721 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
19722 * config/aarch64/aarch64-linux.h: Likewise.
19724 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
19726 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
19727 ix86_expand_int_movcc as boolean.
19729 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19731 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
19732 (aarch64_cpu_string): Likewise.
19733 (aarch64_tune_string): Likewise.
19734 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
19735 (aarch64_parse_extension): Return aarch64_parse_opt_result.
19736 Add extra argument to put result into.
19737 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
19738 (aarch64_parse_cpu): Add arguments to put results into. Return
19739 aarch64_parse_opt_result.
19740 (aarch64_parse_tune): Likewise.
19741 (aarch64_override_options_after_change_1): New function.
19742 (aarch64_override_options_internal): New function.
19743 (aarch64_validate_mcpu): Likewise.
19744 (aarch64_validate_march): Likewise.
19745 (aarch64_validate_mtune): Likewise.
19746 (aarch64_override_options): Update to reflect above changes.
19747 Move some logic into aarch64_override_options_internal.
19748 Initialize target_option_default_node and target_option_current_node.
19749 (aarch64_override_options_after_change): Move logic into
19750 aarch64_override_options_after_change_1 and call it with global_options.
19751 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
19752 flag values from that.
19754 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19756 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19757 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
19758 * config/aarch64/aarch64.c (struct processor): Add arch field.
19759 (all_architectures): Handle above, move above all_cores.
19760 (all_cores): Handle above.
19761 (aarch64_parse_arch): Handle above changes.
19762 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
19763 above. Update comments.
19764 (armv8.1-a): Likewise.
19765 * config/aarch64/aarch64-cores.def: Update according to above.
19766 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
19767 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
19768 aarch64_arch_driver_info.
19770 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19772 * config/aarch64/aarch64.c (struct processor): Add ident field.
19773 Rename core sched_core.
19774 (all_cores): Handle above changes.
19775 (all_architectures): Likewise.
19776 (aarch64_parse_arch): Likewise.
19777 (aarch64_override_options): Likewise.
19779 2015-08-04 Richard Biener <rguenther@suse.de>
19781 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19782 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
19783 comparisons embedded in [VEC_]COND_EXPRs.
19785 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
19787 * tree-if-conv.c: Fix various typos in comments.
19788 * tree-vect-stmts.c: Likewise.
19790 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19792 PR tree-optimization/67043
19793 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
19794 preheader after hoisting invariant in it.
19795 (find_defs): Force recomputation of all luids.
19797 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
19799 * config/rs6000/htm.md (tabort.): Restrict the source operand to
19800 using a base register.
19802 2015-08-03 David Malcolm <dmalcolm@redhat.com>
19804 * main.c (main): Pass in NULL for toplev's external_timer.
19805 * timevar.c: Include coretypes.h.
19806 (class timer::named_items): New.
19807 (timer::named_items::named_items): New.
19808 (timer::named_items::~named_items): New.
19809 (timer::named_items::push): New.
19810 (timer::named_items::pop): New.
19811 (timer::named_items::print): New.
19812 (timer::timer): Initialize field "m_jit_client_items".
19813 (timer::~timer): New.
19814 (timer::push): Move bulk of implementation to...
19815 (timer::push_internal): ...here. New function.
19816 (timer::pop): Move bulk of implementation to...
19817 (timer::pop_internal): ...here. New function.
19818 (timer::push_client_item): New.
19819 (timer::pop_client_item): New.
19820 (timer::print_row): New function, taken from timer::print.
19821 (timer::print): Print "GCC items" header if we also have client
19822 items. Move row-printing to timer::print_row. Print any client
19824 (timer::get_topmost_item_name): New method.
19825 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
19826 (TV_JIT_CLIENT_CODE): New.
19827 * timevar.h (timer::push_client_item): New declaration.
19828 (timer::pop_client_item): New declaration.
19829 (timer::get_topmost_item_name): New method.
19830 (timer::push_internal): New declaration.
19831 (timer::pop_internal): New declaration.
19832 (timer::print_row): New declaration.
19833 (timer::named_items): New declaration.
19834 (timer::m_jit_client_items): New field.
19835 (timer): Add friend class named_items.
19836 (auto_timevar::auto_timevar): Add timer param.
19837 (auto_timevar::~auto_timevar): Use field "m_timer".
19838 (auto_timevar::m_timer): New field.
19839 * toplev.c (initialize_rtl): Add g_timer as param when
19840 constructing auto_timevar instance.
19841 (toplev::toplev): Add "external_timer" param, and use it to
19842 initialize the "g_timer" global if non-NULL.
19843 (toplev::~toplev): If this created "g_timer", delete it.
19844 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
19845 with "external_timer" timer *.
19847 2015-08-03 Alexander Basov <coohpt@gmail.com>
19849 PR middle-end/64744
19850 PR middle-end/48470
19851 PR middle-end/43404
19852 * cfgexpand.c (expand_one_var): Add check if stack is going to
19853 be used in naked function.
19854 * expr.c (expand_expr_addr_expr_1): Remove excess checking
19855 whether expression should not reside in MEM.
19856 * function.c (use_register_for_decl): Do not use registers for
19857 non-register things (volatile, float, BLKMode) in naked functions.
19859 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
19862 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
19863 Adjust splits to match new pattern.
19865 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19867 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
19870 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
19871 point in VSX registers.
19873 * config/rs6000/constraints.md (wb constraint): Document unused
19875 (we constraint): Likewise.
19876 (wo constraint): Likewise.
19877 (wp constraint): New constraint for IEEE 128-bit floating point in
19879 (wq constraint): Likewise.
19881 * config/rs6000/predicates.md (easy_fp_constant): Add support for
19882 IEEE 128-bit floating point in VSX registers.
19883 (easy_scalar_constant): Likewise.
19885 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
19886 constraints (wp, wq) for IEEE 128-bit floating point in VSX
19888 (rs6000_init_hard_regno_mode_ok): Likewise.
19890 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
19891 floating point in VSX registers.
19894 (VSX_M2): Likewise.
19900 (vsx_le_permute_<mode>): Add support to properly swap bytes for
19901 IEEE 128-bit floating point in VSX registers on little endian.
19902 (vsx_le_undo_permute_<mode>): Likewise.
19903 (vsx_le_perm_load_<mode>): Likewise.
19904 (vsx_le_perm_store_<mode>): Likewise.
19905 (splitters for IEEE 128-bit fp moves): Likewise.
19907 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
19910 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
19911 floating point in VSX registers.
19914 * doc/md.text (Machine Constraints): Document wp and wq
19915 constraints on PowerPC.
19917 2015-08-03 Jeff Law <law@redhat.com>
19919 PR middle-end/66314
19920 PR gcov-profile/66899
19921 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
19922 iterate over the jump threading paths when an element in the
19923 jump threading paths array is eliminated.
19925 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
19927 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
19929 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
19931 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
19932 is_use_properly_guarded the variable def_preds. Free its
19933 contents before returning.
19934 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
19935 (is_use_properly_guarded): Replace local variable def_preds with
19936 a parameter. Adjust accordingly. Only update *def_preds if it's
19939 2015-08-03 Richard Biener <rguenther@suse.de>
19941 * genmatch.c (simplify::for_subst_vec): New member.
19942 (binary_ok): New helper for for lowering.
19943 (lower_for): Delay substituting operators into result expressions
19944 if we can merge the results eventually again.
19945 (capture_info::walk_result): Adjust for user_id appearing as
19946 result expression operator.
19947 (expr::gen_transform): Likewise.
19948 (dt_simplify::gen_1): Likewise.
19949 (dt_simplify::gen): Pass not substituted operators to tail
19950 functions or initialize local variable with it.
19951 (decision_tree::gen): Adjust function signature.
19952 * match.pd: Fix tests against global code and add default
19953 cases to switch stmts.
19955 2015-08-03 Richard Biener <rguenther@suse.de>
19957 * genmatch.c (dt_simplify::gen): Create captures array
19958 with an initializer.
19960 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19962 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
19963 the host compiler is affected by placement new aliasing bug.
19964 * configure: Regenerate.
19965 * Makefile.in (ALIASING_FLAGS): New variable.
19966 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
19968 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19971 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
19972 (negmulsf3_vfp): Likewise.
19973 (muldf3negdf_vfp): Disable for -frounding-math.
19974 (mulsf3negsf_vfp): Likewise.
19975 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
19976 fix MULT cost with -frounding-math.
19978 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19980 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
19981 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
19982 explicit. Prefer to add the flag whenever possible.
19983 (noce_process_if_block): Try noce_try_store_flag_constants before
19986 2015-08-03 Richard Biener <rguenther@suse.de>
19988 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
19989 New hash-map to record equivalent transforms.
19990 (dt_node::analyze): Populate the equivalent transforms hash-map.
19991 (dt_simplify::info): Add reference to hash-map entry.
19992 (dt_simplify::gen): If we have split out a function for the
19993 transform, generate a call to it.
19994 (sinfo_hashmap_traits::hash): New function.
19995 (compare_op): New helper function for ...
19996 (sinfo_hashmap_traits::equal_keys): ... this new function.
19997 (decision_tree::gen): Split out common equivalent transforms
20000 2015-08-03 Richard Biener <rguenther@suse.de>
20002 * gimple-fold.c (fold_gimple_assign): Remove folding of
20003 the comparison in COND_EXPRs.
20005 2015-08-03 Richard Biener <rguenther@suse.de>
20007 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
20008 on the rhs of assignments first simplify the embedded
20011 2015-08-03 Richard Biener <rguenther@suse.de>
20013 PR tree-optimization/66917
20014 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
20016 (DR_VECT_AUX): New macro.
20017 (set_dr_misalignment): Adjust.
20018 (dr_misalignment): Likewise.
20019 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20020 Compute whether the base is at least element aligned.
20021 * tree-vect-stmts.c (ensure_base_align): Adjust.
20022 (vectorizable_store): If the base is not element aligned
20023 preserve alignment of the original access if misalignment is unknown.
20024 (vectorizable_load): Likewise.
20026 2015-08-02 Martin Sebor <msebor@redhat.com>
20028 * doc/invoke.texi (Wframe-address): Document it.
20029 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
20030 Clarify possible effects of calling the functions with non-zero
20031 arguments and mention -Wframe-address.
20032 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
20034 2015-08-01 Michael Collison <michael.collison@linaro.org
20035 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20037 * config/arm/arm.md (*arm_smin_cmp): New pattern.
20038 (*arm_umin_cmp): Likewise.
20040 2015-08-01 Caroline Tice <cmtice@google.com>
20043 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
20045 (vtbl_find_mangled_name): New function.
20046 (vtbl_register_mangled_name): New function.
20047 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
20048 mangled name in mangled name vectors.
20049 (find_or_create_vtbl_map_node): Ditto.
20050 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
20051 update recursion_depth on function entry; pass it to every recursive
20052 call; automatically exit if depth > 25 (give up looking at that point).
20053 (verify_bb_vtables): Initialize recursion_depth and pass it to
20054 var_is_used_for_virtual_call_p.
20055 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
20056 global variable decls.
20057 (vtbl_register_mangled_name): New extern function decl.
20059 2015-08-01 Tom de Vries <tom@codesourcery.com>
20061 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
20063 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
20065 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
20066 operation_no_trapping_overflow. Allow non-overflow operations.
20067 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
20070 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
20073 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
20075 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20077 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
20078 Enable for TARGET_32BIT.
20079 (*if_move_neg): Likewise.
20081 2015-07-31 Nick Clifton <nickc@redhat.com>
20083 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
20084 Returns true for __model__.
20085 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20087 2015-07-31 Alan Modra <amodra@gmail.com>
20090 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
20091 (rs6000_emit_prologue): Set it.
20092 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
20094 2015-07-31 Richard Biener <rguenther@suse.de>
20096 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
20097 -> X == (C1 ^ C2) which is already implemented in match.pd.
20098 Remove redundant dispatching to fold_relational_const.
20099 Move unordered self and NaN compares ...
20100 * match.pd: ... as patterns here. Remove some stray captures
20103 2015-07-31 Petr Murzin <petr.murzin@intel.com>
20105 * config/i386/i386.c
20106 (bdesc_special_args): Convert mask type from signed to unsigned for
20108 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
20109 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
20110 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
20111 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
20112 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
20113 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
20114 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
20115 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
20116 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
20117 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
20118 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
20119 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
20120 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
20121 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
20122 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
20123 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
20124 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
20125 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
20126 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
20127 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
20128 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
20129 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
20130 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
20131 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
20132 * config/i386/i386-builtin-types.def
20133 (V16QI_FTYPE_V16SI): Remove.
20134 (V8DF_FTYPE_V8SI): Ditto.
20135 (V8HI_FTYPE_V8DI): Ditto.
20136 (V8SI_FTYPE_V8DI): Ditto.
20137 (V8SF_FTYPE_V8DF): Ditto.
20138 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
20139 (V16HI_FTYPE_V16SI): Ditto.
20140 (V16SF_FTYPE_V16HI): Ditto.
20141 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
20142 (V16SF_FTYPE_V16SI): Ditto.
20143 (V4DI_FTYPE_V4DI): Ditto.
20144 (V16SI_FTYPE_V16SF): Ditto.
20145 (V16SF_FTYPE_FLOAT): Ditto.
20146 (V8DF_FTYPE_DOUBLE): Ditto.
20147 (V8DI_FTYPE_INT64): Ditto.
20148 (V8DI_FTYPE_V4DI): Ditto.
20149 (V16QI_FTYPE_V8DI): Ditto.
20150 (UINT_FTYPE_V4SF): Ditto.
20151 (UINT64_FTYPE_V4SF): Ditto.
20152 (UINT_FTYPE_V2DF): Ditto.
20153 (UINT64_FTYPE_V2DF): Ditto.
20154 (V16SI_FTYPE_V16SI): Ditto.
20155 (V8DI_FTYPE_V8DI): Ditto.
20156 (V16SI_FTYPE_PV4SI): Ditto.
20157 (V16SF_FTYPE_PV4SF): Ditto.
20158 (V8DI_FTYPE_PV2DI): Ditto.
20159 (V8DF_FTYPE_PV2DF): Ditto.
20160 (V4DI_FTYPE_PV2DI): Ditto.
20161 (V4DF_FTYPE_PV2DF): Ditto.
20162 (V16SI_FTYPE_PV2SI): Ditto.
20163 (V16SF_FTYPE_PV2SF): Ditto.
20164 (V8DI_FTYPE_PV4DI): Ditto.
20165 (V8DF_FTYPE_PV4DF): Ditto.
20166 (V8SF_FTYPE_FLOAT): Ditto.
20167 (V4SF_FTYPE_FLOAT): Ditto.
20168 (V4DF_FTYPE_DOUBLE): Ditto.
20169 (V8SF_FTYPE_PV4SF): Ditto.
20170 (V8SI_FTYPE_PV4SI): Ditto.
20171 (V4SI_FTYPE_PV2SI): Ditto.
20172 (V8SF_FTYPE_PV2SF): Ditto.
20173 (V8SI_FTYPE_PV2SI): Ditto.
20174 (V16SF_FTYPE_PV8SF): Ditto.
20175 (V16SI_FTYPE_PV8SI): Ditto.
20176 (V8DI_FTYPE_V8SF): Ditto.
20177 (V4DI_FTYPE_V4SF): Ditto.
20178 (V2DI_FTYPE_V4SF): Ditto.
20179 (V64QI_FTYPE_QI): Ditto.
20180 (V32HI_FTYPE_HI): Ditto.
20181 (V8UHI_FTYPE_V8UHI): Ditto.
20182 (V16UHI_FTYPE_V16UHI): Ditto.
20183 (V32UHI_FTYPE_V32UHI): Ditto.
20184 (V2UDI_FTYPE_V2UDI): Ditto.
20185 (V4UDI_FTYPE_V4UDI): Ditto.
20186 (V8UDI_FTYPE_V8UDI): Ditto.
20187 (V4USI_FTYPE_V4USI): Ditto.
20188 (V8USI_FTYPE_V8USI): Ditto.
20189 (V16USI_FTYPE_V16USI): Ditto.
20190 (V2DF_FTYPE_V2DF_UINT64): Ditto.
20191 (V2DI_FTYPE_V2DF_V2DF): Ditto.
20192 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
20193 (V8DF_FTYPE_V8DF_V8DI): Ditto.
20194 (V4SF_FTYPE_V4SF_UINT64): Ditto.
20195 (V4SI_FTYPE_V4SF_V4SF): Ditto.
20196 (V16SF_FTYPE_V16SF_V16SI): Ditto.
20197 (V64QI_FTYPE_V32HI_V32HI): Ditto.
20198 (V32HI_FTYPE_V16SI_V16SI): Ditto.
20199 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
20200 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
20201 (V32HI_FTYPE_V64QI_V64QI): Ditto.
20202 (V32HI_FTYPE_V32HI_V32HI): Ditto.
20203 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
20204 (V16SI_FTYPE_V16SI_V4SI): Ditto.
20205 (V16SI_FTYPE_V16SI_V16SI): Ditto.
20206 (V16SI_FTYPE_V32HI_V32HI): Ditto.
20207 (V16SI_FTYPE_V16SI_SI): Ditto.
20208 (V8DI_FTYPE_V8DI_V8DI): Ditto.
20209 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
20210 (V8DI_FTYPE_V16SI_V16SI): Ditto.
20211 (V8DI_FTYPE_V8DI_V2DI): Ditto.
20212 (QI_FTYPE_QI): Ditto.
20213 (SI_FTYPE_SI): Ditto.
20214 (DI_FTYPE_DI): Ditto.
20215 (QI_FTYPE_QI_QI): Ditto.
20216 (QI_FTYPE_QI_INT): Ditto.
20217 (HI_FTYPE_HI_INT): Ditto.
20218 (SI_FTYPE_SI_INT): Ditto.
20219 (DI_FTYPE_DI_INT): Ditto.
20220 (HI_FTYPE_V16QI_V16QI): Ditto.
20221 (SI_FTYPE_V32QI_V32QI): Ditto.
20222 (DI_FTYPE_V64QI_V64QI): Ditto.
20223 (QI_FTYPE_V8HI_V8HI): Ditto.
20224 (HI_FTYPE_V16HI_V16HI): Ditto.
20225 (SI_FTYPE_V32HI_V32HI): Ditto.
20226 (QI_FTYPE_V4SI_V4SI): Ditto.
20227 (QI_FTYPE_V8SI_V8SI): Ditto.
20228 (QI_FTYPE_V2DI_V2DI): Ditto.
20229 (QI_FTYPE_V4DI_V4DI): Ditto.
20230 (QI_FTYPE_V8DI_V8DI): Ditto.
20231 (HI_FTYPE_V16SI_V16SI): Ditto.
20232 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
20233 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
20234 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
20235 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
20236 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
20237 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
20238 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
20239 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
20240 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
20241 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
20242 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
20243 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
20244 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
20245 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
20246 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
20247 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
20248 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
20249 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
20250 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
20251 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
20252 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
20253 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
20254 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
20255 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
20256 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
20257 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
20258 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
20259 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
20260 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
20261 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
20262 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
20263 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
20264 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
20265 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
20266 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
20267 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
20268 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
20269 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
20270 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
20271 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
20272 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
20273 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
20274 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
20275 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
20276 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
20277 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
20278 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
20279 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
20280 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
20281 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
20282 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
20283 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
20284 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
20285 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
20286 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
20287 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
20288 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
20289 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
20290 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
20291 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
20292 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
20293 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
20294 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
20295 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
20296 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
20297 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
20298 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
20299 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
20300 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
20301 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
20302 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
20303 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
20304 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
20305 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
20306 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
20307 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
20308 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
20309 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
20310 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
20311 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
20312 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
20313 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
20314 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
20315 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
20316 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
20317 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
20318 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
20319 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
20320 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
20321 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
20322 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
20323 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
20324 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
20325 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
20326 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
20327 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
20328 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
20329 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
20330 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
20331 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
20332 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
20333 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
20334 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
20335 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
20336 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
20337 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
20338 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
20339 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
20340 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
20341 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
20342 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
20343 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
20344 (HI_FTYPE_HI): Ditto.
20345 (HI_FTYPE_V16QI): Ditto.
20346 (SI_FTYPE_V32QI): Ditto.
20347 (DI_FTYPE_V64QI): Ditto.
20348 (QI_FTYPE_V8HI): Ditto.
20349 (HI_FTYPE_V16HI): Ditto.
20350 (SI_FTYPE_V32HI): Ditto.
20351 (QI_FTYPE_V4SI): Ditto.
20352 (QI_FTYPE_V8SI): Ditto.
20353 (HI_FTYPE_V16SI): Ditto.
20354 (QI_FTYPE_V2DI): Ditto.
20355 (QI_FTYPE_V4DI): Ditto.
20356 (QI_FTYPE_V8DI): Ditto.
20357 (V16QI_FTYPE_HI): Ditto.
20358 (V32QI_FTYPE_SI): Ditto.
20359 (V64QI_FTYPE_DI): Ditto.
20360 (V8HI_FTYPE_QI): Ditto.
20361 (V16HI_FTYPE_HI): Ditto.
20362 (V32HI_FTYPE_SI): Ditto.
20363 (V4SI_FTYPE_QI): Ditto.
20364 (V4SI_FTYPE_HI): Ditto.
20365 (V8SI_FTYPE_QI): Ditto.
20366 (V8SI_FTYPE_HI): Ditto.
20367 (V2DI_FTYPE_QI): Ditto.
20368 (V4DI_FTYPE_QI): Ditto.
20369 (HI_FTYPE_HI_HI): Ditto.
20370 (SI_FTYPE_SI_SI): Ditto.
20371 (DI_FTYPE_DI_DI): Ditto.
20372 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
20373 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
20374 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
20375 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
20376 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
20377 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
20378 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
20379 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
20380 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
20381 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
20382 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
20383 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
20384 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
20385 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
20386 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
20387 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
20388 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
20389 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
20390 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
20391 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
20392 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
20393 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
20394 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
20395 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
20396 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
20397 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
20398 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
20399 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
20400 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
20401 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
20402 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
20403 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
20404 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
20405 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
20406 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
20407 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
20408 (V16SI_FTYPE_HI): Ditto.
20409 (V8DI_FTYPE_QI): Ditto.
20410 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
20411 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
20412 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
20413 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
20414 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
20415 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
20416 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
20417 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
20418 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
20419 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
20420 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
20421 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
20422 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
20423 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
20424 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
20425 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
20426 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
20427 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
20428 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
20429 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
20430 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
20431 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
20432 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
20433 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
20434 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
20435 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
20436 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
20437 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
20438 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
20439 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
20440 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
20441 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
20442 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
20443 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
20444 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
20445 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
20446 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
20447 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
20448 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
20449 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
20450 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
20451 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
20452 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
20453 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
20454 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
20455 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
20456 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
20457 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
20458 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
20459 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
20460 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
20461 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
20462 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
20463 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
20464 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
20465 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
20466 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
20467 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
20468 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
20469 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
20470 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
20471 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
20472 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
20473 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
20474 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
20475 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
20476 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
20477 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
20478 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
20479 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
20480 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
20481 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
20482 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
20483 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
20484 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
20485 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
20486 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
20487 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
20488 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
20489 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
20490 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
20491 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
20492 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
20493 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
20494 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
20495 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
20496 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
20497 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
20498 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
20499 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
20500 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
20501 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
20502 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
20503 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
20504 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
20505 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
20506 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
20507 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
20508 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
20509 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
20510 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
20511 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
20512 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
20513 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
20514 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
20515 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
20516 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
20517 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
20518 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
20519 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
20520 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
20521 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
20522 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
20523 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
20524 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
20525 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
20526 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
20527 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
20528 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
20529 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
20530 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
20531 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
20532 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
20533 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
20534 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
20535 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
20536 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
20537 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
20538 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
20539 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
20540 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
20541 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
20542 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
20543 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
20544 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
20545 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
20546 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
20547 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
20548 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
20549 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
20550 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
20551 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
20552 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
20553 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
20554 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
20555 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
20556 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
20557 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
20558 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
20559 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
20560 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
20561 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
20562 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
20563 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
20564 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
20565 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
20566 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
20567 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
20568 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
20569 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
20570 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
20571 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
20572 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
20573 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
20574 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
20575 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
20576 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
20577 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
20578 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
20579 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
20580 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
20581 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
20582 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
20583 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
20584 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
20585 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
20586 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
20587 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
20588 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
20589 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
20590 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
20591 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
20592 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
20593 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
20594 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
20595 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
20596 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
20597 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
20598 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
20599 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
20600 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
20601 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
20602 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
20603 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
20604 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
20605 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
20606 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
20607 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
20608 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
20609 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
20610 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
20611 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
20612 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
20613 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
20614 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
20615 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
20616 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
20617 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
20618 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
20619 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
20620 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
20621 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
20622 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
20623 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
20624 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
20625 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
20626 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
20627 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
20628 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
20629 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
20630 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
20631 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
20632 (QI_FTYPE_V8DF_INT_QI): Ditto.
20633 (QI_FTYPE_V4DF_INT_QI): Ditto.
20634 (QI_FTYPE_V2DF_INT_QI): Ditto.
20635 (HI_FTYPE_V16SF_INT_HI): Ditto.
20636 (QI_FTYPE_V8SF_INT_QI): Ditto.
20637 (QI_FTYPE_V4SF_INT_QI): Ditto.
20638 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
20640 2015-07-31 Richard Biener <rguenther@suse.de>
20642 * gimple-fold.c (fold_gimple_assign): Remove folding of
20645 2015-07-31 Tom de Vries <tom@codesourcery.com>
20647 PR tree-optimization/66846
20648 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
20649 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
20650 (expand_omp_target) [ENABLE_CHECKING]: Same.
20651 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
20652 cfun if !LOOPS_NEED_FIXUP.
20653 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
20654 that omp_for already has its own loop struct.
20655 * tree-parloops.c (create_phi_for_local_result)
20656 (create_call_for_reduction): Handle simple latch bb.
20657 (create_parallel_loop): Add simple latch bb to preserve
20658 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
20659 (gen_parallel_loop): Remove call to cancel_loop_tree.
20660 (parallelize_loops): Skip loops that are inner loops of parallelized
20662 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
20663 verify_loop_structure.
20665 2015-07-30 Anatoly Sokolov <aesok@post.ru>
20667 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
20668 * config/v850/v850.md (RV_REGNUM): New constants.
20669 * config/v850/v850.c (v850_libcall_value): New functions.
20670 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
20671 (TARGET_LIBCALL_VALUE): Define.
20673 2015-07-30 Anatoly Sokolov <aesok@post.ru>
20675 * rtl.h (lowpart_subreg): Move in file.
20676 * loop-iv.c (lowpart_subreg): Move to...
20677 * simplify-rtx.c (lowpart_subreg): ...here.
20678 (simplify_binary_operation_1): Use lowpart_subreg instead of
20679 simplify_gen_subreg.
20680 * expr.c (expand_expr_real_2): Ditto.
20681 * emit-rtl.c (gen_lowpart_common): Ditto.
20682 * combine.c (gen_lowpart_for_combine): Ditto.
20683 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
20684 expand_debug_source_expr): Ditto.
20686 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
20688 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
20689 (expand_builtin_atomic_clear): Remove support for atomic_clear
20692 2015-07-30 Richard Biener <rguenther@suse.de>
20694 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
20695 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
20696 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
20697 redundant operand canonicalization.
20699 2015-07-30 David Sherwood <david.sherwood@arm.com>
20701 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
20702 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
20703 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
20704 * config/arm/arm.c (neon_valid_immediate): Likewise.
20705 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
20706 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
20707 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
20708 (expand_vec_perm_vpshufb2_vpermq): Likewise.
20709 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
20710 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
20711 * config/i386/sse.md
20712 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
20713 (*ssse3_palignr<mode>_perm): Likewise.
20714 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
20715 * config/spu/spu.c (arith_immediate_p): Likewise.
20716 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
20717 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
20719 2015-07-30 Richard Biener <rguenther@suse.de>
20721 * genmatch.c (decision_tree::gen_gimple): Merge with ...
20722 (decision_tree::gen_generic): ... this into ...
20723 (decision_tree::gen): ... this.
20724 (main): Adjust callers.
20726 2015-07-30 Richard Biener <rguenther@suse.de>
20728 * genmatch.c (verbose): New global.
20729 (warning_at): Add overload with source_location.
20730 (capture_info::capture_info): Add bool whether generating gimple
20731 or generic. Add gimple member.
20732 (capture_info::cinfo): Add capture member.
20733 (capture_info::walk_match): Record capture. Warn on
20734 non-captured leafs.
20735 (capture_info::walk_c_expr): Add more fragments captures cannot
20736 escape through. Warn on escaped captures.
20737 (dt_simplify::gen_1): Warn on operands we force to have no
20739 (main): Initialize verbose.
20740 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
20742 2015-07-30 Richard Biener <rguenther@suse.de>
20744 PR middle-end/67053
20745 * match.pd: Allow both operands to independently have conversion
20746 when simplifying compares of addresses.
20748 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
20752 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
20753 around those cases that need one.
20755 2015-07-29 Aditya Kumar <hiraditya@msn.com>
20757 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
20759 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
20761 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
20762 New. Copied from config/i386/gnu-user.h.
20763 (ASM_COMMENT_START): Likewise.
20764 (DBX_REGISTER_NUMBER): Likewise.
20766 2015-07-29 Richard Biener <rguenther@suse.de>
20768 * gimple-fold.c (fold_gimple_cond): Remove.
20769 (fold_stmt_1): Do not call it.
20771 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
20773 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
20774 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
20776 * config/aarch64/aarch64-modes.def: Add HFmode.
20778 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20779 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
20781 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
20782 aarch64_promoted_type): New.
20784 (aarch64_float_const_representable_p): Disable HFmode.
20785 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
20786 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
20787 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
20789 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
20790 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
20792 * config/aarch64/iterators.md (GPF_F16): New.
20794 2015-07-29 Richard Biener <rguenther@suse.de>
20796 * match.pd: Merge address comparison patterns and make them
20797 handle some more cases.
20799 2015-07-29 Richard Biener <rguenther@suse.de>
20801 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
20802 (parser::parse_capture): Add bool argument on whether to reject
20804 (parser::parse_expr): Adjust.
20805 (parser::parse_op): Likewise.
20806 (parser::parse_pattern): Likewise.
20808 2015-07-29 Richard Biener <rguenther@suse.de>
20810 * gimple-fold.c (has_use_on_stmt): New function.
20811 (replace_stmt_with_simplification): Use it to allow
20812 abnormals originally referenced in the stmt.
20813 (fold_stmt_1): Canonicalize operand order.
20815 2015-07-28 David Sherwood <david.sherwood@arm.com>
20817 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
20818 GET_MODE_INNER unconditionally.
20819 * config/spu/spu.c (arith_immediate_p): Likewise.
20820 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
20821 * expmed.c (synth_mult): Remove check for VOIDmode result from
20823 (expand_mult_const): Likewise.
20824 * fold-const.c (fold_binary_loc): Replace call to element_precision
20825 with call to GET_MODE_PRECISION.
20826 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
20828 (emit_mode_inner): Likewise.
20829 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
20831 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
20832 (GET_MODE_UNIT_PRECISION): Likewise.
20833 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
20834 * simplify-rtx.c (simplify_immed_subreg): Likewise.
20835 * stor-layout.c (bitwise_type_for_mode): Update assert.
20836 (element_precision): Remove.
20838 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20840 * target-insns.def (reload_load_address): New targetm instruction
20842 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
20844 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20846 * target-insns.def (atomic_test_and_set): New targetm instruction
20848 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
20849 HAVE_*/gen_* interface.
20851 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20853 * target-insns.def (can_extend, ptr_extend): New targetm instruction
20855 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
20856 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
20857 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
20858 * rtlanal.c (nonzero_bits1): Likewise.
20859 (num_sign_bit_copies1): Likewise.
20861 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20863 * target-insns.def (eh_return): New targetm instruction pattern.
20864 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
20866 * function.c (thread_prologue_and_epilogue_insns): Remove
20867 preprocessor condition.
20869 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20871 * target-insns.def (indirect_jump): New targetm instruction pattern.
20872 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
20875 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20877 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
20878 instead of nonimmediate_operand. Remove C condiition.
20880 2015-07-28 Richard Biener <rguenther@suse.de>
20882 * match.pd: Add more simplification of address comparisons.
20884 2015-07-28 Richard Biener <rguenther@suse.de>
20886 * match.pd: Re-order two cases in comparison with max/min
20887 value simplification to make it apply for bools.
20889 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20891 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
20892 Handle simple SIGN_EXTEND or ZERO_EXTEND.
20893 (aarch64_rtx_costs): Properly strip extend or extract before
20894 passing down to rtx costs again.
20896 2015-07-28 Nick Clifton <nickc@redhat.com>
20898 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
20899 Optimizes the case where -mes0 is active and a constant symbolic
20901 * config/rl78/rl78-protos.h: Prototype the new function.
20902 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
20904 2015-07-28 Tom de Vries <tom@codesourcery.com>
20906 * tree-parloops.c (reduc_stmt_res): New function.
20907 (initialize_reductions, add_field_for_reduction)
20908 (create_phi_for_local_result, create_loads_for_reductions)
20909 (create_stores_for_reduction, build_new_reduction): Handle case that
20910 reduc_stmt is a phi.
20911 (gather_scalar_reductions): Allow double_reduc reductions.
20913 2015-07-28 Richard Biener <rguenther@suse.de>
20915 * fold-const.c (fold_comparison): Remove equality folding
20916 of decl addresses ...
20917 * match.pd: ... here and merge with existing pattern.
20919 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20921 PR tree-optimization/66828
20922 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
20923 from int64_t to uint64_t.
20925 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
20927 * opts-common.c (read_cmdline_option): List DriverOnly enum values
20928 as valid only in the error message of the driver, not in the
20929 messages of the language compilers.
20931 2015-07-27 Tom de Vries <tom@codesourcery.com>
20933 * tree-parloops.c (gather_scalar_reductions): Simplify function
20936 2015-07-27 Marek Polacek <polacek@redhat.com>
20938 * ipa-devirt.c (types_same_for_odr): Fix typo.
20940 2015-07-27 Jason Merrill <jason@redhat.com>
20943 * dwarf2out.c (gen_inlined_subroutine_die): Check
20944 cgraph_function_possibly_inlined_p.
20946 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
20948 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
20949 Place integer variant first.
20950 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20952 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
20955 * config/arm/arm-builtins.c (enum arm_builtins):
20956 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
20957 (ARM_BUILTIN_NEON_BASE): Rename macro to....
20958 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
20959 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
20960 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
20962 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
20965 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
20966 Add qualifier_lane_index.
20967 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
20968 (arm_getlane_qualifiers): Use qualifier_lane_index.
20969 (arm_lanemac_qualifiers): Rename to...
20970 (arm_mac_n_qualifiers): ...this.
20971 (LANEMAC_QUALIFIERS): Rename to...
20972 (MAC_N_QUALIFIERS): ...this.
20973 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
20974 (arm_setlane_qualifiers): Use qualifier_lane_index.
20975 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
20976 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
20977 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
20978 (arm_expand_neon_builtin): Handle qualifier_lane_index.
20980 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
20981 * config/arm/arm.c (bounds_check): Likewise, improve error message.
20982 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
20983 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
20984 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
20985 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
20986 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
20987 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
20988 qualifiers to TERNOP_IMM.
20989 (vdup_lane): Change qualifiers to GETLANE.
20990 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
20991 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
20992 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
20993 vqdmlsl_n): Change qualifiers to MAC_N.
20995 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
20996 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
20997 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
20998 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
20999 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
21000 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
21001 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
21002 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
21003 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
21004 Remove call to neon_lane_bounds.
21006 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
21008 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
21009 Place integer variant first.
21011 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
21013 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
21014 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
21015 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
21016 for armv6kz targets.
21017 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
21018 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
21019 (FL_FOR_ARCH6ZK): Remove.
21020 (FL_FOR_ARCH6KZ): New.
21021 (arm_arch6zk): New declaration.
21022 * config/arm/arm-tables.opt: Regenerate.
21023 * config/arm/arm.c (arm_arch6kz): New.
21024 (arm_option_override): Set arm_arch6kz.
21025 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
21026 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
21027 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
21029 2015-07-27 Marek Polacek <polacek@redhat.com>
21033 * doc/invoke.texi: Document -Wtautological-compare.
21035 2015-07-27 Richard Biener <rguenther@suse.de>
21037 * genmatch.c (decision_tree::gen_gimple): Split out large
21038 subtrees into separate functions.
21039 (decision_tree::gen_generic): Likewise.
21041 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
21043 * config/alpha/alpha.c: Use SUBREG_P predicate.
21044 * config/alpha/predicates.md: Ditto.
21046 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21048 * config.host (s390*-*-*): Include driver-native.c only when
21049 building with s390* as host *and* target.
21051 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
21054 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
21055 T bit register modified_between_p check.
21057 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21059 * config/i386/i386.c: Use SUBREG_P predicate.
21060 * config/i386/i386.md: Ditto.
21061 * config/i386/sse.md: Ditto.
21062 * config/i386/predicates.md: Ditto.
21064 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21067 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
21068 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
21070 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21072 * Makefile.in: Remove use of TREEBROWSER.
21073 * config.in: Regenerated.
21074 * configure: Regenerated.
21075 * configure.ac: Remove definition of TREEBROWSER.
21076 * tree-browser.c: Removed.
21077 * tree-browser.def: Removed.
21079 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21081 * graphite-scop-detection.c: Include gimple-pretty-print.h.
21082 (stmt_simple_for_scop_p): Print when a stmt is not handled in
21084 (scopdet_basic_block_info): Print when a loop or bb cannot be
21085 represented in Graphite.
21087 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21090 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
21091 execution guard when min_size is less than size_needed.
21093 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21095 * doc/install.texi: Document supported versions of ISL.
21097 2015-07-25 Jeff Law <law@redhat.com>
21101 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21102 unable to find X NE 0 in the tables, return X as the simplified
21104 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21105 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21106 to VISISTED_BBS. */
21107 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21108 after removing the control flow statement and unnecessary edges.
21110 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
21113 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21115 PR rtl-optimization/64164
21116 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21117 * tree-ssa-copyrename.c: Removed.
21118 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21119 -ftree-coalesce-vars.
21120 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21121 * common.opt (ftree-copyrename): Ignore.
21122 (ftree-coalesce-inlined-vars): Likewise.
21123 * doc/invoke.texi: Remove the ignored options above.
21124 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21125 * tree-ssa-coalesce.h: ... here.
21126 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21127 headers required by it.
21128 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21129 across variables when flag_tree_coalesce_vars. Check register
21130 use and promoted modes to allow coalescing. Moved to
21131 tree-ssa-coalesce.c.
21132 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21133 with its member functions to tree-ssa-coalesce.c.
21134 (var_map_base_init): Likewise. Renamed to
21135 compute_samebase_partition_bases.
21136 (partition_view_normal): Drop want_bases parameter.
21137 (partition_view_bitmap): Likewise.
21138 * tree-ssa-live.h: Adjust declarations.
21139 * tree-ssa-coalesce.c: Include explow.h.
21140 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21141 default defs at the entry point.
21142 (dump_part_var_map): New.
21143 (compute_optimized_partition_bases): New, called by...
21144 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21145 of compute_samebase_partition_bases. Adjust.
21146 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21147 * cfgexpand.c (leader_merge): New.
21148 (get_rtl_for_parm_ssa_default_def): New.
21149 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21150 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21151 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21152 redundant MEM attr setting.
21153 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21155 (expand_one_stack_var): ... this. New wrapper to check and
21156 skip already expanded SSA partitions.
21157 (record_alignment_for_reg_var): New, factored out of...
21158 (expand_one_var): ... this.
21159 (expand_one_ssa_partition): New.
21160 (adjust_one_expanded_partition_var): New.
21161 (expand_one_register_var): Check and skip already expanded SSA
21163 (expand_used_vars): Don't create DECLs for anonymous SSA
21164 names. Expand all SSA partitions, then adjust all SSA names.
21165 (pass::execute): Replace the loops that set
21166 SA.partition_to_pseudo from partition leaders and cleared
21167 DECL_RTL for multi-location variables, and that which used to
21168 rename vars and set attrs, with one that clears DECL_RTL and
21169 checks that PARMs and RESULTs default_defs match DECL_RTL.
21170 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21171 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21172 * explow.c (promote_ssa_mode): New.
21173 * explow.h (promote_ssa_mode): Declare.
21174 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21175 * function.c: Include cfgexpand.h.
21176 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21177 (use_register_for_parm_decl): Wrapper for the above to
21178 special-case the result_ptr.
21179 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21180 (split_complex_args): Take assign_parm_data_all argument.
21181 Pass it to rtl_for_parm. Set up rtl and context for split
21183 (assign_parms_augmented_arg_list): Adjust.
21184 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21185 multiple locations. Recognize split complex args.
21186 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21187 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21188 (assign_parm_setup_block): Prefer SSA-assigned location.
21189 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21190 if stack_parm is NULL.
21191 (assign_parm_setup_stack): Prefer SSA-assigned location.
21192 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21193 rtl before testing for pointer bounds. Special-case result_ptr.
21194 (expand_function_start): Maybe reset DECL_RTL of result.
21195 Prefer SSA-assigned location for result and static chain.
21196 Factor out DECL_RESULT and SET_DECL_RTL.
21197 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21198 anonymous SSA names. Use promote_ssa_mode.
21199 (get_temp_reg): Likewise.
21200 (remove_ssa_form): Adjust.
21201 * stor-layout.c (layout_decl): Don't set mem attributes of
21203 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21204 and get its reg_usage for reg invalidation.
21205 (compute_bb_dataflow): Pass it insn.
21206 (emit_notes_in_bb): Likewise.
21208 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21210 * config/i386/i386.c (ix86_va_start): Remove
21211 unneeded !TARGET_64BIT check.
21212 (ix86_gimplify_va_arg): Ditto.
21214 2015-07-24 Tom de Vries <tom@codesourcery.com>
21216 * graphite-sese-to-poly.c (build_poly_scop): Always call
21217 rewrite_commutative_reductions_out_of_ssa.
21219 2015-07-24 Tom de Vries <tom@codesourcery.com>
21221 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
21222 flag_associative_math to FLOAT_TYPE_P. Honour
21223 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
21225 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21228 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
21229 and "%qD" in warning_at instead of "%q+D" in warning.
21231 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21233 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
21234 (ix86_function_abi): Cleanup.
21236 2015-07-24 Michael Darling <darlingm@gmail.com>
21239 * acinclude.m4: Reflects renaming of configure.in to configure.ac
21240 * configure: Likewise
21241 * configure.ac: Likewise
21242 * doc/install.texi: Likewise
21243 * doc/tm.texi: Likewise
21244 * doc/tm.texi.in: Likewise
21246 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21248 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
21249 manually swapping values.
21250 * cse.c (fold_rtx): Likewise.
21251 * lra-eliminations.c (form_sum): Likewise.
21253 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21256 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
21257 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
21258 (*jcc_1, *jcc_2, jump, simple_return_internal)
21259 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
21260 Set length_nobnd attribute instead of length attribute.
21261 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
21262 (length_nobnd): Remove attribute.
21263 (length): Remove length_nobnd processing.
21265 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
21267 * gimplify.c (omp_default_clause): New function. Reorganize flow
21268 for clarity. Broken out of ...
21269 (omp_notice_variable): ... here.
21271 2015-07-24 Gary Funck <gary@intrepid.com>
21273 PR middle-end/66984
21274 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
21275 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
21277 2015-07-24 Tom de Vries <tom@codesourcery.com>
21279 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
21280 exit-first loop transform.
21282 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
21285 * tree-cfg.c (struct replace_decls_d): New struct.
21286 (replace_block_vars_by_duplicates_1): New function.
21287 (replace_block_vars_by_duplicates): Use it to replace the decls
21288 in the value exprs by duplicates.
21290 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21292 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
21293 -shared, -symbolic, -rdynamic.
21295 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21298 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
21299 -dynamic-linker within %{!static %{!shared, and -rdynamic within
21302 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
21305 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
21306 edge summary is available.
21308 2015-07-24 Richard Biener <rguenther@suse.de>
21310 * genmatch.c (struct dt_node): Add statistic fields.
21311 (dt_node::analyze): New method.
21312 (decision_tree::gen_gimple): Call analyze on the root node
21313 and print statistics to stderr.
21314 (decision_tree::gen_generic): Likewise.
21316 2015-07-24 Richard Biener <rguenther@suse.de>
21318 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
21319 against the highest or lowest possible integer ...
21320 * match.pd: ... as patterns here.
21322 2015-07-24 Richard Biener <rguenther@suse.de>
21324 * genmatch.c (struct capture_info): Add same_as field.
21325 (capture_info::capture_info): Initialize same_as.
21326 (capture_info::walk_match): Compute same_as.
21327 (capture_info::walk_result): Compute stuff for the leader.
21328 (capture_info::walk_c_expr): Likewise.
21329 (dt_simplify::gen_1): Only look at leaders when deciding
21330 to force no side-effects or emit side-effects of omitted operands.
21332 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21334 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
21335 reg note to the GPR -> FPR save instructions.
21337 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21339 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
21341 (s390_expand_insv): Don't generate risbg pattern for constant zero
21343 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
21344 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
21347 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21349 * config/s390/s390.c (s390_reorg): Clean up handling of processors
21352 (s390_issue_rate): Likewise.
21353 (s390_sched_reorder): Likewise.
21354 (s390_sched_variable_issue): Likewise.
21355 (s390_loop_unroll_adjust): Likewise.
21356 (s390_option_override): Likewise.
21358 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21360 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
21361 processor capabilities with -march=native.
21362 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
21363 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
21364 (S390_TARGET_BITS_STRING): Macro to simplify specs.
21366 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21368 * config/s390/s390.c (s390_issue_rate): Handle
21369 PROCESSOR_2094_Z9_EC.
21370 (s390_option_override): Likewise.
21371 (s390_adjust_priority): Likewise.
21373 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21375 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
21376 when cross compiling.
21378 2015-07-24 Richard Biener <rguenther@suse.de>
21380 * fold-const.c (maybe_canonicalize_comparison_1): Move
21381 A code CST canonicalization ...
21382 * match.pd: ... to a pattern here.
21384 2015-07-24 Jiong Wang <jiong.wang@arm.com>
21387 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21389 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21390 (HONOR_REG_ALLOC_ORDER): Define.
21392 2015-07-24 Richard Biener <rguenther@suse.de>
21394 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
21395 * fold-const.c (fold_comparison): Move parameter does not
21396 alias &local simplification ...
21397 * match.pd: ... as a pattern here.
21399 2015-07-24 Richard Biener <rguenther@suse.de>
21401 * gimple-fold.c (replace_stmt_with_simplification): Special-case
21402 valueizing call operands.
21403 * gimple-match-head.c (maybe_push_res_to_seq): Take
21404 number of call arguments from ops array.
21405 (do_valueize): New function.
21406 (gimple_simplify): Return true if valueization changed
21407 any operand even if the result didn't simplify further.
21409 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21411 PR middle-end/25530
21412 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
21414 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21416 PR middle-end/25529
21417 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
21419 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21421 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
21424 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21426 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
21429 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
21431 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
21432 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
21434 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
21435 ms_va_list_type_node initialization.
21437 2015-07-23 Jeff Law <law@redhat.com>
21440 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21441 unable to find X NE 0 in the tables, return X as the simplified
21443 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21444 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21445 to VISISTED_BBS. */
21446 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21447 after removing the control flow statement and unnecessary edges.
21449 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
21451 * tree-pass.h (get_current_pass_name): Removed.
21453 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21455 PR rtl-optimization/64164
21456 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21457 * tree-ssa-copyrename.c: Removed.
21458 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21459 -ftree-coalesce-vars.
21460 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21461 * common.opt (ftree-copyrename): Ignore.
21462 (ftree-coalesce-inlined-vars): Likewise.
21463 * doc/invoke.texi: Remove the ignored options above.
21464 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21465 * tree-ssa-coalesce.h: ... here.
21466 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21467 headers required by it.
21468 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21469 across variables when flag_tree_coalesce_vars. Check register
21470 use and promoted modes to allow coalescing. Moved to
21471 tree-ssa-coalesce.c.
21472 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21473 with its member functions to tree-ssa-coalesce.c.
21474 (var_map_base_init): Likewise. Renamed to
21475 compute_samebase_partition_bases.
21476 (partition_view_normal): Drop want_bases parameter.
21477 (partition_view_bitmap): Likewise.
21478 * tree-ssa-live.h: Adjust declarations.
21479 * tree-ssa-coalesce.c: Include explow.h.
21480 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21481 default defs at the entry point.
21482 (dump_part_var_map): New.
21483 (compute_optimized_partition_bases): New, called by...
21484 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21485 of compute_samebase_partition_bases. Adjust.
21486 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21487 * cfgexpand.c (leader_merge): New.
21488 (get_rtl_for_parm_ssa_default_def): New.
21489 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21490 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21491 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21492 redundant MEM attr setting.
21493 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21495 (expand_one_stack_var): ... this. New wrapper to check and
21496 skip already expanded SSA partitions.
21497 (record_alignment_for_reg_var): New, factored out of...
21498 (expand_one_var): ... this.
21499 (expand_one_ssa_partition): New.
21500 (adjust_one_expanded_partition_var): New.
21501 (expand_one_register_var): Check and skip already expanded SSA
21503 (expand_used_vars): Don't create DECLs for anonymous SSA
21504 names. Expand all SSA partitions, then adjust all SSA names.
21505 (pass::execute): Replace the loops that set
21506 SA.partition_to_pseudo from partition leaders and cleared
21507 DECL_RTL for multi-location variables, and that which used to
21508 rename vars and set attrs, with one that clears DECL_RTL and
21509 checks that PARMs and RESULTs default_defs match DECL_RTL.
21510 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21511 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21512 * explow.c (promote_ssa_mode): New.
21513 * explow.h (promote_ssa_mode): Declare.
21514 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21515 * function.c: Include cfgexpand.h.
21516 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21517 (use_register_for_parm_decl): Wrapper for the above to
21518 special-case the result_ptr.
21519 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21520 (split_complex_args): Take assign_parm_data_all argument.
21521 Pass it to rtl_for_parm. Set up rtl and context for split
21523 (assign_parms_augmented_arg_list): Adjust.
21524 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21525 multiple locations. Recognize split complex args.
21526 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21527 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21528 (assign_parm_setup_block): Prefer SSA-assigned location.
21529 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21530 if stack_parm is NULL.
21531 (assign_parm_setup_stack): Prefer SSA-assigned location.
21532 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21533 rtl before testing for pointer bounds. Special-case result_ptr.
21534 (expand_function_start): Maybe reset DECL_RTL of result.
21535 Prefer SSA-assigned location for result and static chain.
21536 Factor out DECL_RESULT and SET_DECL_RTL.
21537 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21538 anonymous SSA names. Use promote_ssa_mode.
21539 (get_temp_reg): Likewise.
21540 (remove_ssa_form): Adjust.
21541 * stor-layout.c (layout_decl): Don't set mem attributes of
21543 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21544 and get its reg_usage for reg invalidation.
21545 (compute_bb_dataflow): Pass it insn.
21546 (emit_notes_in_bb): Likewise.
21548 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
21551 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
21553 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
21554 (rs6000_emit_2insn_and): Handle dot forms.
21555 * config/rs6000/rs6000.md (and<mode>3): Adjust.
21556 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
21557 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
21559 2015-07-23 Richard Biener <rguenther@suse.de>
21561 * generic-match-head.c: Include cgraph.h.
21562 * gimple-match-head.c: Likewise.
21563 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
21565 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
21566 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
21569 2015-07-23 Richard Biener <rguenther@suse.de>
21571 * gimple-fold.c (fold_gimple_cond): Do not require folding
21572 results to pass valid_gimple_rhs_p.
21573 * tree-cfg.h (fold_cond_expr_cond): Remove.
21574 * tree-cfg.c (fold_cond_expr_cond): Likewise.
21575 (make_edges): Do not call it.
21576 * tree-inline.c (tree_function_versioning): Likewise.
21578 2015-07-23 Tom de Vries <tom@codesourcery.com>
21580 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
21581 vect_force_simple_reduction.
21582 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
21583 (vect_is_simple_reduction_1): Add and handle
21584 need_wrapping_integral_overflow parameter.
21585 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
21586 need_wrapping_integral_overflow parameter.
21587 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
21588 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
21591 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
21593 PR tree-optimization/66926,66951
21594 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
21595 INNER_LOOP and fix up condition for renaming virtual operands.
21597 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21599 * combine.c (try_combine): Use std::swap instead of manually
21602 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
21604 * config/mips/i6400.md: New file.
21605 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
21606 (mips64r6): Likewise.
21608 * config/mips/mips-tables.opt: Regenerate.
21609 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
21610 (mips_issue_rate): Add support for i6400.
21611 (mips_multipass_dfa_lookahead): Likewise.
21612 * config/mips/mips.h (TUNE_I6400): Define.
21613 * config/mips/mips.md: Include i6400.md.
21614 (processor): Add i6400.
21615 * doc/invoke.texi (-march=@var{arch}): Add i6400.
21617 2015-07-23 Richard Biener <rguenther@suse.de>
21619 PR middle-end/66916
21620 * match.pd: Guard widen and sign-change comparison simplification
21623 2015-07-23 Richard Biener <rguenther@suse.de>
21625 PR tree-optimization/66945
21626 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
21627 ::before_dom_children): Force the propagators idea of
21628 non-executable edges to materialize, not what the folder
21631 2015-07-23 Richard Biener <rguenther@suse.de>
21633 * gimple.h (gimple_cond_make_false): Use 0 != 0.
21634 (gimple_cond_make_true): Use 1 != 0.
21636 2015-07-22 DJ Delorie <dj@redhat.com>
21638 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
21641 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
21642 (ashrhi3): Likewise.
21643 (lshrhi3): Likewise.
21644 (movhi): Take advantage of zero-extend to load small constants.
21645 (movpsi): Likewise.
21646 (and<mode>3): Likewise.
21647 (zero_extendqihi2): Likewise.
21648 (zero_extendqisi2): New.
21649 * config/msp430/constraints.md (N,O): New.
21650 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
21652 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
21655 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
21656 to enum feature_priority and feature_list.
21657 (fold_builtin_cpu): Add F_AES to enum processor_features
21658 and isa_names_table.
21660 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
21663 * config/i386/linux-common.h (MPX_SPEC): Use linker option
21664 for 64bit target only.
21666 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
21668 * config/nvptx/nvptx.c: Expand some comments.
21670 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
21672 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
21673 (cortex_a53_advsimd): ...This.
21675 2015-07-22 Richard Biener <rguenther@suse.de>
21677 * genmatch.c (expr::gen_transform): Clarify error message
21678 and display location.
21680 2015-07-22 Richard Biener <rguenther@suse.de>
21682 * genmatch.c (struct operand): Add location member.
21683 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
21685 (struct simplify): Remove match_location and result_location
21687 (elsehwere): Adjust.
21689 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
21691 * config/mips/m5100.md: New file.
21692 * config/mips/mips-cpus.def (m5100, m5101): Define.
21693 * config/mips/mips-tables.opt: Regenerate.
21694 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
21695 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
21696 -march=m5101 to -mips32r5.
21697 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
21698 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
21700 * config/mips/mips.md: Include m5100.md.
21701 (processor): Add m5100.
21702 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
21704 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
21706 * config/mips/mips-cpus.def (interaptiv): Define.
21707 * config/mips/mips-tables.opt: Regenerate.
21708 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
21710 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
21711 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
21713 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21716 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21717 (HONOR_REG_ALLOC_ORDER): Define.
21719 2015-07-22 Richard Biener <rguenther@suse.de>
21721 PR tree-optimization/66952
21722 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
21723 blocks we end up executing unconditionally reset all SSA
21724 info such as range and alignment.
21725 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
21726 * tree-ssanames.c (reset_flow_sensitive_info): New function.
21728 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
21730 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
21733 2015-07-22 Richard Biener <rguenther@suse.de>
21735 * genmatch.c (parser::parse_result): Properly handle
21736 match with result operands and conditions.
21738 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
21741 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
21742 Add qualifier_struct_load_store_lane_index.
21743 (aarch64_types_loadstruct_lane_qualifiers): Use
21744 qualifier_struct_load_store_lane_index for lane index argument for
21746 (aarch64_types_storestruct_lane_qualifiers): Ditto.
21747 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21748 (aarch64_simd_expand_args): Add new argument describing mode of
21749 builtin. Check lane bounds for arguments with
21750 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21751 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
21752 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21753 (aarch64_simd_expand_builtin): Handle arguments with
21754 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
21755 aarch64_simd_expand_args.
21756 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
21757 vst[234]_lane with BUILTIN_VALLDIF.
21758 * config/aarch64/aarch64-simd.md:
21759 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
21760 endianness reversal on lane index.
21761 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
21762 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
21763 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
21764 (vec_store_lanesci_lane<mode>): Ditto.
21765 (vec_store_lanesxi_lane<mode>): Ditto.
21766 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
21767 reversal of lane index.
21768 (aarch64_ld3_lane<mode>): Ditto.
21769 (aarch64_ld4_lane<mode>): Ditto.
21770 (aarch64_st2_lane<mode>): Ditto.
21771 (aarch64_st3_lane<mode>): Ditto.
21772 (aarch64_st4_lane<mode>): Ditto.
21773 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
21774 to qmode. Add new mode parameter. Update uses.
21775 (__LD3_LANE_FUNC): Ditto.
21776 (__LD4_LANE_FUNC): Ditto.
21777 (__ST2_LANE_FUNC): Ditto.
21778 (__ST3_LANE_FUNC): Ditto.
21779 (__ST4_LANE_FUNC): Ditto.
21781 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
21783 * doc/invoke.texi (Language Independent Options): Rename node to
21784 Diagnostic Message Formatting Options.
21786 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
21789 * lra-remat.c (operand_to_remat): Prevent using insns with input
21790 subregs processed separately by IRA.
21792 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
21794 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
21796 (single_imm_use): Check for iterator node.
21797 (num_imm_uses): Likewise.
21798 * tree-ssa-operands.c (has_zero_uses_1): Delete.
21799 (single_imm_use_1): Check for iterator node.
21801 2015-07-21 Mike Frysinger <vapier@gentoo.org>
21802 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21804 * configure.ac: Add check for new options in isl-0.15.
21805 * config.in, configure: Rebuilt.
21806 * graphite-blocking.c: Include <isl/constraint.h>
21807 * graphite-interchange.c, graphite-poly.c: Likewise.
21808 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
21809 * graphite.c: Likewise.
21810 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
21812 * graphite-dependences.c: Include <isl/constraint.h>.
21813 (max_number_of_out_dimensions): Returns isl_stat.
21814 (extend_schedule_1): Likewise
21815 (extend_schedule): Corresponding changes.
21816 * graphite-optimize-isl.c: Include <isl/constraint.h> and
21818 (getSingleMap): Change return type of isl_stat.
21819 (optimize_isl): Conditionally use
21820 isl_options_set_schedule_serialize_sccs.
21821 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
21822 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
21824 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
21827 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
21828 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
21830 2015-07-21 Richard Biener <rguenther@suse.de>
21832 PR tree-optimization/66948
21833 * genmatch.c (capture_info::walk_match): Also recurse to
21834 captures. Properly compute expr state from captures of
21836 * match.pd: Add single-use guards to
21837 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
21839 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
21841 * config/nvptx/mkoffload.c (process): Add static destructor call.
21843 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21845 PR middle-end/66915
21846 * match.pd (A - B -> A + (-B)): Don't allow folding
21847 when type if a fixed-point type.
21849 2015-07-20 DJ Delorie <dj@redhat.com>
21851 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
21852 (iorqi3_real): Likewise for set1.
21854 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
21856 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
21859 2015-07-20 Aditya Kumar <hiraditya@msn.com>
21861 * graphite-isl-ast-to-gimple.c:
21862 Refactor so that each function can access 'region'. This will help
21863 maintain a parameter rename_map within a region.
21865 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
21867 * config/rs6000/rs6000.md (*lt0_disi): New.
21869 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
21872 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
21873 "available letters" comment.
21874 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
21875 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
21876 and_2rld_operand): Delete.
21877 (and_operand): Adjust.
21878 (rotate_mask_operator): New.
21879 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
21880 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
21881 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
21882 extract_ME): Delete.
21883 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21884 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
21885 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
21886 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21887 rs6000_emit_2insn_and): New.
21888 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
21889 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
21890 includes_rldic_lshift_p, includes_rldicr_lshift_p,
21891 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
21892 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21893 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
21894 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
21895 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21896 rs6000_emit_2insn_and): New.
21897 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
21898 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
21900 <NOT>: Don't fall through to next case.
21901 <AND>: Handle the various rotate-and-mask cases directly.
21902 <IOR>: Always cost as one insn.
21903 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
21904 (and<mode>3): Adjust expander for the new patterns.
21905 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
21906 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
21907 (*and<mode>3_imm_dot_shifted): New.
21908 (*and<mode>3_mask): Delete, rewrite as ...
21909 (and<mode>3_mask): ... New.
21910 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
21911 (andsi3_internal0_nomc): Delete.
21912 (*andsi3_internal6): Delete.
21913 (*and<mode>3_2insn): New.
21914 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21915 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21916 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
21917 *insvdi_internal3): Delete.
21918 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
21919 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
21920 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
21921 *ior<mode>_mask): New.
21922 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
21923 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21924 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21925 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21927 (ashr<mode>3): Delete expander.
21928 (*ashr<mode>3): Rename to ...
21929 (ashr<mode>3): ... This.
21930 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
21931 (*rotldi3_internal4, *rotldi3_internal5 and split,
21932 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
21933 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
21934 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
21935 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
21936 (splitter for loading a mask): Adjust.
21937 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
21939 2015-07-20 Marek Polacek <polacek@redhat.com>
21941 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
21942 output_add_clobbers, output_added_clobbers_hard_reg_p,
21943 gen_rtx_scratch): Remove declarations.
21945 2015-07-20 Marek Polacek <polacek@redhat.com>
21948 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
21950 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21952 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
21953 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
21955 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21957 * combine.c (combine_simplify_rtx): Move simplification step
21958 before various transformations/substitutions.
21960 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
21962 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
21963 (struct int_traits): Likewise.
21965 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21967 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
21968 function to vmsdbgout_function_decl.
21970 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
21973 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
21974 from misaligned positions.
21975 (ix86_expand_pinsr): Reject insertions to misaligned positions.
21977 2015-07-18 Sebastian Pop <s.pop@samsung.com>
21979 PR middle-end/46851
21980 PR middle-end/60340
21981 * Makefile.in: Removed omega.o.
21982 * common.opt: Document flag fcheck-data-deps as deprecated.
21983 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
21984 its associated params: omega-max-vars, omega-max-geqs,
21985 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
21986 omega-max-keys, omega-eliminate-redundant-constraints.
21987 * doc/loop.texi: Remove all the section on Omega.
21988 * graphite-blocking.c: Include missing params.h: it used to be
21989 included through tree-data-ref.h and omega.h.
21990 * graphite-isl-ast-to-gimple.c: Same.
21991 * graphite-optimize-isl.c: Same.
21992 * graphite-sese-to-poly.c: Same.
21993 * graphite.c: Same.
21996 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21997 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21998 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
21999 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
22000 * passes.def: Remove pass_check_data_deps.
22001 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
22002 (dump_conflict_function): Same.
22003 (dump_subscript): Same.
22004 (print_direction_vector): Same.
22005 (print_dir_vectors): Same.
22006 (print_lambda_vector): Same.
22007 (print_dist_vectors): Same.
22008 (dump_data_dependence_relation): Same.
22009 (dump_data_dependence_relations): Same.
22010 (dump_dist_dir_vectors): Same.
22012 (init_omega_eq_with_af): Removed.
22013 (omega_extract_distance_vectors): Removed.
22014 (omega_setup_subscript): Removed.
22015 (init_omega_for_ddr_1): Removed.
22016 (init_omega_for_ddr): Removed.
22017 (ddr_consistent_p): Removed.
22018 (compute_affine_dependence): Do not use omega to check data
22020 (compute_data_dependences_for_bb): Removed.
22021 (analyze_all_data_dependences): Removed.
22022 (tree_check_data_deps): Removed.
22023 * tree-data-ref.h: Do not include omega.h.
22024 (compute_data_dependences_for_bb): Removed.
22025 (tree_check_data_deps): Removed.
22026 * tree-ssa-loop.c (pass_check_data_deps): Removed.
22027 (make_pass_check_data_deps): Removed.
22028 * tree-ssa-phiopt.c: Include params.h.
22029 * tree-vect-data-refs.c: Same.
22030 * tree-vect-slp.c: Same.
22032 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
22034 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
22035 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
22036 (mem->fpreg splitters): Ditto.
22037 (general_operand->nonimmediate_operand splitter): Use explicit modes.
22038 Disable DFmode for TARGET_64BIT.
22040 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
22043 * config/i386/i386.c (ix86_expand_prologue): Replicate static
22044 chain on the stack.
22046 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22048 * config/nvptx/mkoffload.c (process): Constify host data.
22049 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22050 Constify host data.
22051 (generate_host_descr_file): Likewise.
22053 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
22054 Sebastian Pop <s.pop@samsung.com>
22056 PR middle-end/61929
22057 * graphite-dependences.c (add_pdr_constraints): Renamed
22058 pdr->extent to pdr->subscript_sizes.
22059 * graphite-interchange.c (build_linearized_memory_access): Add
22060 back all gcc_assert's that the "isl_int to isl_val conversion"
22061 patch has removed. Refactored.
22062 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
22063 * graphite-poly.c (new_poly_dr): Same.
22064 (free_poly_dr): Same.
22065 * graphite-poly.h (struct poly_dr): Same.
22066 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
22067 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
22068 * graphite-scop-detection.h: Fix space.
22069 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
22070 back all gcc_assert's removed by a previous patch.
22071 (wrap): Remove the_isl_ctx global variable that the same patch has
22073 (build_loop_iteration_domains): Same.
22074 (add_param_constraints): Same.
22075 (pdr_add_data_dimensions): Same. Refactored.
22076 (build_poly_dr): Renamed extent to subscript_sizes.
22078 2015-07-17 Marek Polacek <polacek@redhat.com>
22080 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
22081 * match.pd: ... here.
22083 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22085 * config/nvptx/mkoffload.c (process): Constify target data.
22086 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22087 Constify target data.
22088 (generate_target_offloadend_file): Likewise.
22090 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
22092 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
22093 to allow renaming of PHI arguments on edges incoming from outer
22094 loop header, add corresponding check before start PHI iterator.
22095 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
22096 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
22097 with true force_vectorize. Set-up dominator for outer loop too.
22098 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
22099 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
22100 was marked with force_vectorize and has restricted cfg.
22101 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
22103 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
22104 do peeling for outer loops.
22106 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
22107 Matthias Klose <doko@ubuntu.com>
22109 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
22110 build-sysroot, sysroot from the `Miscenalleous configure options' to
22111 the `Directories' section and strip trailing `/' from with_sysroot.
22112 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
22113 * configure: Regenerated.
22115 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22118 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
22119 (TARGET_HARD_DF_REGS): Ditto.
22120 (TARGET_HARD_XF_REGS): Ditto.
22121 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
22122 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
22123 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
22124 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
22125 (*movsf_internal): Add alternatives 16 and 17. Enable
22126 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
22128 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22130 PR rtl-optimization/66891
22131 * calls.c (expand_call): Wrap precompute_register_parameters with
22132 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
22134 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
22136 * config/nvptx/mkoffload.c (process): Constify mapping variables.
22137 Define target data struct and initialize it.
22139 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
22141 PR rtl-optimization/66626
22142 * ira.h (emit-rtl.h): Include.
22143 (non_spilled_static_chain_regno_p): New.
22144 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
22145 unless it is non spilled static chain pseudo.
22146 (assign_hard_rego): Spill memory profitable allocno unless it is
22147 non spilled static chain pseudo.
22148 (allocno_spill_priority_compare): Put non spilled static chain
22149 pseudo at the end of sorted array.
22150 (improve_allocation): Do nothing if we have static chain and
22152 (allocno__priority_compare_func): Put non spilled static chain
22153 pseudo at the beginning of sorted array.
22154 (move_spill_restore): Ignore non spilled static chain pseudo.
22155 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
22156 to non spilled static chain pseudo.
22157 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
22158 pseudo at the beginning of sorted array.
22159 (spill_for): Spill non spilled static chain pseudo last.
22160 * lra-constraints.c (lra_constraints): Remove static chain pseudo
22161 check for equivalence.
22163 2015-07-16 Martin Liska <mliska@suse.cz>
22166 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
22167 dst_ctx if it does not exist.
22169 2015-07-16 Martin Liska <mliska@suse.cz>
22171 * hash-set.h (remove): New function.
22172 (iterator): New iteration class for hash_set.
22174 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22176 * genattrtab.c (make_canonical): Add a file_location parameter.
22177 Use fatal_at rather than fatal.
22178 (get_attr_value): Likewise. Update call to make_canonical.
22179 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
22180 (make_internal_attr): Update calls accordingly.
22182 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22184 * read-md.h (message_with_line, error_with_line): Delete.
22185 * read-md.c (message_with_line, error_with_line): Delete.
22186 * gensupport.h: Include read-md.h.
22187 (md_rtx_info): New structure.
22188 (read_md_rtx): Use it. Return a bool success value.
22189 * gensupport.c (read_md_rtx): Likewise.
22190 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
22191 (main): Update after interface changes.
22192 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
22193 (main): Update after interface changes.
22194 * genattrtab.c (insn_code_number): Delete.
22195 (optimize_attrs): Add a max_insn_code parameter and use it instead
22196 of insn_code_number.
22197 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
22198 Use *_at rather than *_with_line functions.
22199 (gen_insn): Likewise.
22200 (gen_delay): Likewise.
22201 (gen_insn_reserv): Likewise.
22202 (gen_bypass): Take an md_rtx_info rather than an rtx.
22203 (main): Update after interface changes. Use a local max_insn_code
22204 variable instead of insn_code_number.
22205 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
22206 an rtx. Use fatal_at rather than fatal.
22207 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
22208 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
22209 (gen_absence_set, gen_final_absence_set, gen_automaton)
22210 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
22211 (main): Update after interface changes.
22212 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
22214 (main): Update after interface changes.
22215 * genconditions.c (main): Use new read_md_rtx interface.
22216 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
22217 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
22218 (main): Update after interface changes.
22219 * genemit.c (insn_code_number, insn_index_number): Delete.
22220 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22221 Use fatal_at rather than fatal.
22222 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
22224 (gen_split): Likewise.
22225 (main): Update after interface changes.
22226 * genextract.c (line_no): Delete.
22227 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22228 Update call to walk_rtx.
22229 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
22230 rather than message_with_line.
22231 (walk_rtx): Add an md_rtx_info argument. Update call to
22232 VEC_safe_set_locstr.
22233 (main): Update after interface changes.
22234 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
22235 and lineno. Use error_at rather than separate message_with_line
22236 calls and have_error assignments.
22237 (main): Update after interface changes.
22238 * genmddump.c (main): Use new read_md_rtx interface.
22239 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
22240 (main): Update after interface changes.
22241 * genoutput.c (next_code_number): Delete.
22242 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22243 (gen_peephole, gen_expand, gen_split): Likewise.
22244 (note_constraint): Likewise. Use *_at rather than *_with_line
22246 (main): Update after interface changes.
22247 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
22249 (main): Update after interface changes.
22250 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
22251 than an rtx and lineno.
22252 (process_define_constraint): Likewise.
22253 (process_define_register_constraint): Likewise.
22254 (main): Update after interface changes.
22255 * genrecog.c (next_insn_code, pattern_lineno): Delete.
22256 (validate_pattern): Replace top-level rtx with an md_rtx_info.
22257 Use *_at rather than *_with_line functions.
22258 (match_pattern_2): Likewise.
22259 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
22260 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
22261 Use *_at rather than *_with_line functions.
22262 * gentarget-def.c (add_insn): New function.
22263 (main): Use it. Use new read_md_rtx interface.
22265 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22267 * gensupport.h (compute_test_codes): Take a file_location rather
22268 than a line number.
22269 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
22270 rather than *_with_line functions.
22271 (process_define_predicate): Update call to compute_test_codes.
22272 * genpreds.c (validate_exp): Take a file_location rather than a
22273 line number. Use *_at functions rather than *_with_line functions.
22274 (process_define_predicate): Update call to validate_exp.
22275 (constraint_data): Replace lineno field with a file_location.
22276 (add_constraint): Take a file_location rather than a line number.
22277 Use *_at functions rather than *_with_line functions. Fix error
22278 message for address constraints. Update after changes to
22279 validate_exp, constraint_data and compute_test_codes.
22280 (process_define_constraint): Update accordingly.
22281 (process_define_register_constraint): Likewise.
22283 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22285 * genoutput.c (data): Use a file_location to record the source
22288 (idata, idata_end): Remove initialization.
22289 (constraint_data): Replace lineno with a file_location.
22290 (output_insn_data): Update after changes to data.
22291 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
22292 (scan_operands): Likewise, using *_at rather than *_with_line
22294 (process_template): Likewise.
22295 (validate_insn_alternatives): Likewise.
22296 (validate_insn_operands): Likewise.
22297 (validate_optab_operands): Likewise.
22298 (init_insn_for_nothing): Initialize idata and idata_end.
22299 (note_constraint): Update after changes to constraint_data,
22300 using at rather than with_line functions.
22301 (mdep_constraint_len): Take a file_location rather than a
22302 line number. Use at rather than with_line functions.
22304 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22306 * read-md.h (fatal_at): Declare.
22307 * read-md.c (fatal_at): New function.
22308 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
22309 to record the source position.
22310 (check_attr_test): Take a file_location instead of a line number.
22311 Use fatal_at instead of fatal.
22312 (check_attr_value): Update after above changes, using "at"
22313 rather than "with_line" reporting functions.
22314 (convert_set_attr_alternative): Likewise.
22315 (gen_attr): Likewise.
22316 (check_defs): Likewise. Don't assign to read_md_filename.
22317 (gen_insn): Update initialization after above changes.
22318 (gen_delay): Likewise.
22319 (write_insn_cases): Print the filename for a define_peephole.
22320 (gen_insn_reserv): Take a line number as argument and update
22321 the call to check_attr_test.
22322 (main): Pass a line number to gen_insn_reserv.
22324 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22326 * read-md.h (file_location): New structure.
22327 (directive_handler_t): Take a file_location rather than a line number.
22328 (message_at, error_at): Declare.
22329 (read_skip_construct): Delete.
22330 * read-md.c (message_with_line_1): Replace with...
22331 (message_at_1): ...this new function.
22332 (message_at, error_at): New functions.
22333 (message_with_line, error_with_line): Update to use message_at_1.
22334 (handle_enum): Take a file_location rather than a line number
22335 and use error_at for error reporting.
22336 (handle_include): Likewise.
22337 (read_skip_construct): Likewise. Make static.
22338 (handle_file): Update after above changes. Pass a file_location
22339 rather than a line number to handle_directive.
22340 * gensupport.c (queue_elem): Replace separate filename and lineno
22341 with a file_location.
22342 (queue_pattern): Replace filename and lineno arguments with a
22343 file_location. Update after change to queue_elem.
22344 (process_define_predicate): Replace lineno argument with a
22345 file_location and use error_at for error reporting. Update
22346 after above changes.
22347 (process_rtx): Likewise.
22348 (subst_pattern_match): Likewise.
22349 (get_alternatives_number): Likewise.
22350 (alter_predicate_for_insn): Likewise.
22351 (rtx_handle_directive): Likewise.
22352 (is_predicable): Update after above changes, using error_at rather
22353 than error_with_line.
22354 (has_subst_attribute): Likewise.
22355 (identify_predicable_attribute): Likewise.
22356 (alter_attrs_for_subst_insn): Likewise.
22357 (process_one_cond_exec): Likewise.
22358 (process_substs_on_one_elem): Likewise.
22359 (process_define_subst): Likewise.
22360 (check_define_attr_duplicates): Likewise.
22361 (read_md_rtx): Update after change to queue_elem.
22363 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22365 * genoutput.c (next_index_number): Delete.
22366 (data): Remove index_number.
22367 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
22368 (main): Remove manipulation of next_index_number.
22370 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22372 * genattrtab.c (check_attr_value): Remove handling of null attrs.
22373 (make_canonical): Likewise.
22375 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
22377 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
22378 instead of adjust_address_nv.
22379 (restore_stack_nonlocal): Likewise.
22380 (nonlocal_goto): Likewise.
22382 2015-07-16 Tom de Vries <tom@codesourcery.com>
22384 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
22385 not have a corresponding loop header phi.
22387 2015-07-16 Tom de Vries <tom@codesourcery.com>
22389 * tree-parloops.c (create_loads_for_reductions): Handle case that
22390 reduction is unused.
22392 2015-07-16 Richard Biener <rguenther@suse.de>
22394 PR tree-optimization/66894
22395 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
22396 about deriving NE_EXPR from truncated values.
22398 2015-07-16 Martin Liska <mliska@suse.cz>
22401 (object_allocator): Add new class.
22402 (pool_allocator::initialize): Use the underlying class.
22403 (pool_allocator::allocate): Likewise.
22404 (pool_allocator::remove): Likewise.
22405 (operator new): A new generic allocator.
22406 * asan.c (struct asan_mem_ref): Remove unused members.
22407 (asan_mem_ref_new): Replace new operator with
22408 object_allocator::allocate.
22409 (free_mem_ref_resources): Change deallocation.
22410 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
22411 with object_allocator.
22412 * config/sh/sh.c (add_constant): Replace new operator with
22413 object_allocator::allocate.
22414 (sh_reorg): Change call to a release method.
22415 * cselib.c (struct elt_list): Remove unused members.
22416 (new_elt_list): Replace new operator with
22417 object_allocator::allocate.
22418 (new_elt_loc_list): Likewise.
22419 (new_cselib_val): Likewise.
22420 (unchain_one_elt_list): Change delete operator with remove method.
22421 (unchain_one_elt_loc_list): Likewise.
22422 (unchain_one_value): Likewise.
22423 (cselib_finish): Release newly added static allocators.
22424 * cselib.h (struct cselib_val): Remove unused members.
22425 (struct elt_loc_list): Likewise.
22426 * df-problems.c (df_chain_alloc): Replace pool_allocator with
22428 * df-scan.c (struct df_scan_problem_data): Likewise.
22429 (df_scan_alloc): Likewise.
22430 * df.h (struct dataflow): Likewise.
22431 * dse.c (struct read_info_type): Likewise.
22432 (struct insn_info_type): Likewise.
22433 (struct dse_bb_info_type): Likewise.
22434 (struct group_info): Likewise.
22435 (struct deferred_change): Likewise.
22436 (get_group_info): Likewise.
22437 (delete_dead_store_insn): Likewise.
22438 (free_read_records): Likewise.
22439 (replace_read): Likewise.
22440 (check_mem_read_rtx): Likewise.
22441 (scan_insn): Likewise.
22442 (dse_step1): Likewise.
22443 (dse_step7): Likewise.
22444 * et-forest.c (struct et_occ): Remove unused members.
22445 (et_new_occ): Use allocate instead of new operator.
22446 (et_new_tree): Likewise.
22447 (et_free_tree): Call release method explicitly.
22448 (et_free_tree_force): Likewise.
22449 (et_free_pools): Likewise.
22450 (et_split): Use remove instead of delete operator.
22451 * et-forest.h (struct et_node): Remove unused members.
22452 * ipa-cp.c: Change pool_allocator to object_allocator.
22453 * ipa-inline-analysis.c: Likewise.
22454 * ipa-profile.c: Likewise.
22455 * ipa-prop.c: Likewise.
22456 * ipa-prop.h: Likewise.
22457 * ira-build.c (initiate_cost_vectors): Cast return value.
22458 (ira_allocate_cost_vector): Likewise.
22459 * ira-color.c (struct update_cost_record): Remove unused members.
22460 * lra-int.h (struct lra_live_range): Likewise.
22461 (struct lra_copy): Likewise.
22462 (struct lra_insn_reg): Likewise.
22463 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
22464 * lra.c (new_insn_reg): Replace new operator with allocate method.
22465 (free_insn_regs): Same for operator delete.
22466 (finish_insn_regs): Release new static allocator.
22467 (finish_insn_recog_data): Likewise.
22468 (lra_free_copies): Replace delete operator with remove method.
22469 (lra_create_copy): Replace operator new with allocate method.
22470 (invalidate_insn_data_regno_info): Same for remove method.
22471 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
22472 (free_debug_insn_changes): Replace delete operator with remove method.
22473 (replace_oldest_value_reg): Replace operator new with allocate method.
22474 (pass_cprop_hardreg::execute): Release new static variable.
22475 * sched-deps.c (sched_deps_init): Change pool_allocator to
22477 * sel-sched-ir.c: Likewise.
22478 * sel-sched-ir.h: Likewise.
22479 * stmt.c (expand_case): Likewise.
22480 (expand_sjlj_dispatch_table): Likewise.
22481 * tree-sra.c (struct access): Remove unused members.
22482 (struct assign_link): Likewise.
22483 (sra_deinitialize): Release newly added static pools.
22484 (create_access_1):Replace operator new with allocate method.
22485 (build_accesses_from_assign): Likewise.
22486 (create_artificial_child_access): Likewise.
22487 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
22488 pool_allocator to object_allocator.
22489 * tree-ssa-pre.c: Likewise.
22490 * tree-ssa-reassoc.c: Likewise.
22491 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
22492 * tree-ssa-strlen.c: Likewise.
22493 * tree-ssa-structalias.c: Likewise.
22494 * var-tracking.c (onepart_pool_allocate): New function.
22495 (unshare_variable): Use the newly added function.
22496 (variable_merge_over_cur): Likewise.
22497 (variable_from_dropped): Likewise.
22498 (variable_was_changed): Likewise.
22499 (set_slot_part): Likewise.
22500 (emit_notes_for_differences_1): Likewise.
22501 (vt_finalize): Release newly added static pools.
22503 2015-07-16 Martin Jambor <mjambor@suse.cz>
22505 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
22506 all uses. Fix two typos in its general comment.
22507 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
22509 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
22511 * config/i386/linux-common.h (LINK_MPX): New.
22512 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
22513 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
22514 indicating '-z bndplt' support by linker.
22515 * configure: Regenerate.
22516 * config.in: Regenerate.
22518 2015-07-16 Richard Biener <rguenther@suse.de>
22520 * fold-const.c (fold_widened_comparison): Remove.
22521 (fold_sign_changed_comparison): Likewise.
22522 (fold_comparison): Move widened and sign-changed comparison
22524 * match.pd: ... to patterns here.
22525 * generic-match-head.c: Include target.h.
22526 * gimple-match-head.c: Likewise.
22528 2015-07-16 Richard Biener <rguenther@suse.de>
22530 * tree-ssa-dom.c (dom_valueize): New function.
22531 (record_temporary_equivalences): Also record equivalences
22532 for dominating stmts that have uses of equivalences we are
22535 2015-07-16 Bin Cheng <bin.cheng@arm.com>
22537 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
22538 add_autoinc_candidates.
22539 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
22540 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
22541 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
22542 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
22544 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
22545 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
22546 Remove parameter struct iv*. Call add_autoinc_candidates here.
22547 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
22548 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
22550 (find_iv_candidates): Call new functions.
22552 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
22554 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
22555 uninitialized-variable warning.
22557 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
22560 * config/sh/sh.md (movdi): Split simple reg move to two movsi
22561 when the destination is R0.
22563 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
22566 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
22567 * config/i386/i386.c (ix86_expand_pextr): New function.
22568 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
22569 for non-lowpart subregs.
22570 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
22571 (insv<mode>): Use SWI248 mode iterator.
22572 (insv<mode>_1): Ditto.
22574 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22575 Sebastian Pop <s.pop@samsung.com>
22577 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
22578 iterator to use_stmt.
22580 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22581 Sebastian Pop <s.pop@samsung.com>
22583 * graphite-scop-detection.c (build_scops_1): Discard scops for
22586 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22587 Sebastian Pop <s.pop@samsung.com>
22589 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
22590 case of a return statement in scop.
22592 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22593 Sebastian Pop <s.pop@samsung.com>
22595 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
22596 INTEGER_TYPE parameters.
22597 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
22598 VECTOR_CST in scan_tree_for_params.
22599 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
22601 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
22603 * gimple-pretty-print.h: Don't include pretty-print.h.
22604 * tree-streamer.h: Don't include lto-streamer.h.
22605 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
22606 * gimple-streamer-in.c: Remove redundant includes.
22607 * gimple-streamer-out.c: Likewise.
22608 * ipa-devirt.c: Likewise.
22609 * ipa-icf.c: Likewise.
22610 * ipa-inline-analysis.c: Likewise.
22611 * ipa-polymorphic-call.c: Likewise.
22612 * ipa-profile.c: Likewise.
22613 * ipa-prop.c: Likewise.
22614 * ipa-pure-const.c: Likewise.
22615 * lto-cgraph.c: Likewise.
22616 * lto-streamer-in.c: Likewise.
22617 * lto-streamer-out.c: Likewise.
22618 * lto-streamer.c: Likewise.
22619 * tree-streamer-in.c: Likewise.
22620 * tree-streamer-out.c: Likewise.
22621 * tree-streamer.c: Likewise.
22623 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
22625 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
22627 * opts.c: Remove multiline #include comment.
22629 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
22631 * config/nvptx/mkoffload.c (process): Add C++ protection to
22634 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22637 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
22638 null before IEEE 128-bit floating point support patch.
22640 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22642 * simplify-rtx.c (simplify_ternary_operation): Add simplification
22643 for (!c) != {0,...,0} ? a : b for vector modes.
22645 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
22646 Martin Jambor <mjambor@suse.cz>
22648 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
22649 struct func_body_info* instead of struct ipa_node_params*, expecting
22650 fbi->info to be filled in. Replace throughout. Adjust call to
22651 ipa_load_from_parm_agg.
22652 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
22653 instead of struct ipa_node_params*. Adjust calls to other functions
22654 so that they pass either fbi or fbi->info.
22655 (set_switch_stmt_execution_predicate): Likewise.
22656 (will_be_nonconstant_predicate): Likewise.
22657 (compute_bb_predicates): Likewise.
22658 (estimate_function_body_sizes): Move asserts earlier. Fill in
22659 struct func_body_info, replace parms_info with fbi.info. Adjust
22660 calls to functions that now accept struct func_body_info.
22661 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
22662 (struct func_body_info): Likewise.
22663 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
22664 remove static. Adjust callers.
22665 (ipa_load_from_parm_agg): Remove.
22666 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
22667 (func_body_info): Likewise.
22668 (ipa_load_from_parm_agg): Adjust prototype.
22670 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22672 * gensupport.c (rtx_handle_directive): Adjust.
22673 * read-rtl.c (apply_iterators): Take vector to add rtxs to
22674 instead of expr list rtx.
22675 (add_define_attr_for_define_subst): Likewise.
22676 (add_define_subst_attr): Likewise.
22677 (read_subst_mapping): Likewise.
22678 (read_rtx): Likewise.
22679 * rtl.h (read_rtx): Adjust.
22681 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22683 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
22685 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22688 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
22689 (*tls_local_dynamic_base_64_<mode>): Ditto.
22690 (*tls_local_dynamic_base_64_largepic): Ditto.
22691 (tls_global_dynamic_64_<mode>): Update expander pattern.
22692 (tls_local_dynamic_base_64_<mode>): Ditto.
22694 2015-07-15 Richard Biener <rguenther@suse.de>
22696 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
22697 and bool_var == 1 -> bool_var simplifications ...
22698 * match.pd: ... to patterns here. Factor out negate_expr_p
22699 cases from the A - B -> A + (-B) patterns as negate_expr_p
22700 predicate and add a -(A + B) -> (-B) - A pattern.
22702 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
22704 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
22706 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
22707 Robert Suchanek <robert.suchanek@imgtec.com>
22709 * config/mips/mips.c (mips_int_mask): New enum.
22710 (mips_shadow_set): Likewise.
22711 (int_mask): New variable.
22712 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
22713 (machine_function): Add int_mask and use_shadow_register_set.
22714 (mips_attribute_table): Add attribute handlers for interrupt and
22715 use_shadow_register_set.
22716 (mips_interrupt_mask): New static function.
22717 (mips_handle_interrupt_attr): Likewise.
22718 (mips_handle_use_shadow_register_set_attr): Likewise.
22719 (mips_use_shadow_register_set): Change return type to enum
22720 mips_shadow_set. Add argument handling for use_shadow_register_set
22722 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
22723 compare with mips_shadow_set enum.
22724 (mips_compute_frame_info): Add interrupt mask and
22725 use_shadow_register_set to per-function information structure.
22726 Add a stack slot for EPC unconditionally.
22727 (mips_expand_prologue): Compare use_shadow_register_set value
22728 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
22729 masked interrupt register but in EIC mode use K0 and save Cause in K0.
22730 EPC saved and restored unconditionally. Use PMODE_INSN macro when
22731 copying the stack pointer from the shadow register set.
22732 * config/mips/mips.h (SR_IM0): New define.
22733 * config/mips/mips.md (mips_rdpgpr): Rename to...
22734 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
22735 * doc/extend.texi (Declaring Attributes of Functions): Document
22736 optional arguments for interrupt and use_shadow_register_set
22739 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
22741 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
22742 interrupt attribute.
22743 (mips_expand_prologue): Disable the floating point unit in an ISR.
22744 * config/mips/mips.h (SR_COP1): New define.
22746 2015-07-15 Richard Biener <rguenther@suse.de>
22748 * genmatch.c (parser::peek, parser::peek_ident): Add argument
22749 to tell how many tokens to peek ahead (default 1).
22750 (parser::eat_token, parser::eat_ident): Return token consumed.
22751 (parser::parse_result): Parse new switch statement.
22752 * match.pd: Use case statements where appropriate.
22754 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22756 PR rtl-optimization/58066
22757 * calls.c (expand_call): Precompute register parameters before stack
22758 alignment is performed.
22760 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22762 PR rtl-optimization/66838
22763 * postreload.c (reload_cse_move2add): Also process
22764 CALL_INSN_FUNCTION_USAGE when resetting information of
22765 call-clobbered registers.
22767 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22768 Cesar Philippidis <cesar@codesourcery.com>
22769 Chung-Lin Tang <cltang@codesourcery.com>
22771 * config/nios2/constraints.md (U, v): New constraints.
22772 * config/nios2/predicates.md (rdprs_dcache_operand): New.
22773 (ldstex_memory_operand): New.
22774 * config/nios2/sync.md: New file.
22775 * config/nios2/nios2.md (unspecv): Add new builtin function
22777 (rdprs, flushd, flushda, wrpie, eni): New patterns.
22778 (top-level): Include sync.md.
22779 * config/nios2/nios2.c (N2_FTYPES): Add function types for
22781 (N2_BUILTINS): Add arch field setting, add new builtins.
22782 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
22784 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
22785 Also handle ldex/stex/ldsex/stsex builtins.
22786 (nios2_expand_rdprs_builtin): New function.
22787 (nios2_expand_cache_builtin): New function.
22788 (nios2_expand_wrpie_builtin): New function.
22789 (nios2_expand_eni_builtin): New function.
22790 (nios2_expand_builtin): Add arch field handling and new builtin
22792 * doc/extend.texi (Altera Nios II Built-in Functions): Document
22794 * doc/md.texi (Machine Constraints): Document U and v constraints.
22796 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22797 Cesar Philippidis <cesar@codesourcery.com>
22798 Chung-Lin Tang <cltang@codesourcery.com>
22800 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
22801 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
22802 callee_save_reg_size and uses_anonymous_args fields.
22803 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
22804 (nios2_create_cfa_notes): New function.
22805 (nios2_adjust_stack): New function for adjusting stack.
22806 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
22807 Use nios2_adjust_stack.
22808 (nios2_expand_epilogue): Likewise.
22809 (nios2_expand_return): New function.
22810 (nios2_can_use_return_insn): Update for CDX pop.n usage.
22811 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
22812 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
22813 * config/nios2/nios2.md (return): Use nios2_expand_return.
22815 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22816 Cesar Philippidis <cesar@codesourcery.com>
22817 Chung-Lin Tang <cltang@codesourcery.com>
22819 * config/nios2/predicates.md (pop_operation): New.
22820 (ldwm_operation, stwm_operation): New.
22821 (nios2_hard_register_operand): New.
22822 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
22823 (ldstwm_operation_p): Declare.
22824 (gen_ldstwm_peep): Declare.
22825 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
22826 (base_reg_adjustment_p): New.
22827 (pop_operation_p): New.
22828 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
22829 (nios2_ldstwm_regset_p): New.
22830 (ldstwm_operation_p): New.
22832 (nios2_ldst_parallel): New.
22833 (struct ldswm_operand): Declare.
22834 (compare_ldstwm_operands): New.
22835 (can_use_cdx_ldstw): New.
22836 (gen_ldstwm_peep): New.
22837 * config/nios2/nios2-ldstwm.sml: New.
22838 * config/nios2/nios2.md: Include ldstwm.md.
22839 * config/nios2/ldstwm.md: Generated.
22841 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22842 Cesar Philippidis <cesar@codesourcery.com>
22843 Chung-Lin Tang <cltang@codesourcery.com>
22845 * config/nios2/nios2.h (LABEL_ALIGN): Define.
22846 (REG_ALLOC_ORDER): Define.
22847 (ADJUST_REG_ALLOC_ORDER): Define.
22848 (HONOR_REG_ALLOC_ORDER): Define.
22849 (CDX_REG_P): Define.
22850 (ANDCLEAR_INT): Define.
22851 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
22852 (nios2_label_align): Declare.
22853 (nios2_cdx_narrow_form_p): Declare.
22854 (nios2_adjust_reg_alloc_order): Declare.
22855 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
22857 (nios2_large_unspec_reloc_p): New function, split from...
22858 (nios2_legitimate_pic_operand_p): ...here.
22859 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
22860 (nios2_print_operand_punct_valid_p): New.
22861 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
22862 (split_mem_address): New.
22863 (split_alu_insn): New.
22865 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
22866 (enum nios2_add_insn_kind): New.
22867 (nios2_add_insn_names, nios2_add_insn_narrow): New.
22868 (nios2_add_insn_classify): New.
22869 (nios2_add_insn_asm): New.
22870 (nios2_cdx_narrow_form_p): New.
22871 (label_align, min_labelno, max_labelno): New.
22872 (nios2_reorg): New.
22873 (nios2_label_align): New.
22874 (nios2_adjust_reg_alloc_order): New.
22875 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22876 (TARGET_MACHINE_DEPENDENT_REORG): Define.
22877 * config/nios2/constraints.md (P): New constraint.
22878 * config/nios2/predicates.md (const_and_operand): New.
22879 (and_operand): New.
22880 (stack_memory_operand): New.
22881 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
22882 (length): Update to use nios2_cdx_narrow_form_p().
22883 (type): Add new insn type values.
22884 (control, alu, st, ld, shift): Update insn reservations with
22885 new insn type values.
22886 (*high, *lo_sum): Define new insn patterns for constant generation.
22887 (movqi_internal, movhi_internal, movsi_internal): Reduce
22888 alternatives, update asm template to handle CDX variants, update
22890 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
22891 template, update type attributes.
22892 (extendhisi2, extendqi<mode>2): Likewise.
22893 (addsi3): Change to use function for asm string.
22894 (subsi3): Add CDX notation to asm template, update type attributes.
22895 (negsi3, one_cmplsi3): Likewise.
22896 (andsi3): New pattern, specialized from logical patterns.
22897 (<code>si3): Remove and case, combine alternatives, update asm
22899 (<shift_op>si3): Add CDX notation, update type attributes.
22900 (rotrsi3): Update type attribute.
22901 (*merge, extzv, insv): New insn patterns.
22902 (return): Change to define_expand.
22903 (simple_return): Add CDX notation, update type attributes.
22904 (indirect_jump): Add CDX notation.
22905 (jump): Update asm cases, update length attribute expression.
22906 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
22907 (nios2_cbranch): Update asm cases and length attribute expression
22908 to handle CDX variants.
22909 (nios2_cmp<code>): Update asm template.
22910 (nop): Add CDX notation, update type attributes.
22911 (trap): Add CDX notation.
22912 (ctrapsi4): Update asm cases and length attribute expression to
22913 handle CDX variant.
22914 * doc/md.texi (Machine Constraints): Document P constraint.
22916 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22917 Cesar Philippidis <cesar@codesourcery.com>
22918 Chung-Lin Tang <cltang@codesourcery.com>
22920 * config/nios2/nios2.h (SMALL_INT12): New macro.
22921 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
22922 (nios2_valid_addr_expr_p): Use it.
22923 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
22924 with implicit "io" instructions on R2.
22925 * config/nios2/constraints.md (w): New constraint.
22926 * config/nios2/predicates.md (ldstio_memory_operand): New.
22927 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
22928 operand predicate and constraint.
22929 (ld<bh>io_signed, st<bhw>io>): Likewise.
22930 * doc/md.texi (Machine Constraints): Document w constraint.
22932 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22933 Cesar Philippidis <cesar@codesourcery.com>
22934 Chung-Lin Tang <cltang@codesourcery.com>
22936 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
22937 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
22938 Nios II architecture level.
22939 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
22940 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
22941 (OPTION_DEFAULT_SPECS): Define.
22942 (ASM_SPEC): Add -march= spec strings.
22943 * config/nios2/nios2.c (nios2_option_override): Check for
22944 conflicts involving new options.
22945 * config.gcc (nios2*-*-*): Support --with-arch=.
22946 * doc/invoke.texi (Option Summary, Nios II Options): Document
22947 -march=, -mbmx, and -mcdx.
22949 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
22951 PR rtl-optimization/66626
22952 * lra-constraints.c (lra_constraints): Prevent equivalence
22953 substitution for static chain pseudo in functions with nonlocal
22956 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22958 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
22959 (nios2_emit_stack_limit_check): Add size parameter. Handle
22960 -fstack-limit-symbol as well as -fstack-limit-register.
22961 (nios2_expand_prologue): Emit only a single stack limit check,
22962 even if multiple stack adjustments are required.
22963 (nios2_option_override): Diagnose unsupported combination of -fpic
22964 and -stack-limit-symbol.
22966 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
22968 * Makefile.in (top_srcdir): New.
22969 * configure.ac: Use AM_ZLIB.
22970 * configure: Regeneated.
22972 2015-07-14 Matthias Klose <doko@ubuntu.com>
22975 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
22977 2015-07-14 Richard Biener <rguenther@suse.de>
22979 PR tree-optimization/66863
22980 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
22981 what we record for conversion use stmt lhs inequalities.
22983 2015-07-14 Richard Biener <rguenther@suse.de>
22985 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
22986 (decision_tree::gen_gimple): Likewise.
22988 2015-07-14 Tom de Vries <tom@codesourcery.com>
22990 * gcc.c (greater_than_spec_func): Declare forward.
22991 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
22992 -ftree-parallelize-loops={0,1}.
22993 (static_spec_functions): Add greater_than_spec_func function with name
22995 (greater_than_spec_func): New function.
22997 2015-07-14 Richard Biener <rguenther@suse.de>
22999 * tree-ssa-dom.c (record_temporary_equivalences): Merge
23000 wideing type conversion case from record_equivalences_from_incoming_edge
23001 and use record_equality to record equivalences.
23002 (record_equivalences_from_incoming_edge): Call
23003 record_temporary_equivalences.
23005 2015-07-14 Richard Biener <rguenther@suse.de>
23007 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
23008 (struct if_expr): New.
23009 (struct with_expr): Likewise.
23010 (is_a_helper): Add helpers for if_expr and with_expr.
23011 (struct simplify): Add simplify_kind enum and member. Remove
23013 (simplify::simplify): Adjust.
23014 (lower_commutative): Adjust.
23015 (lower_opt_convert): Likewise.
23016 (lower_cond): Likewise.
23017 (replace_id): Handle with_expr and if_expr.
23018 (lower_for): Adjust.
23019 (dt_simplify::gen_1): New recursive worker, split out from ...
23020 (dt_simplify::gen): ... here. Deal with if and with expansion
23022 (capture_info::capture_info): Take context argument
23023 (capture_info::walk_result): Only analyze specific result.
23024 (parser::parse_result): New function.
23025 (parser::parse_simplify): Adjust to parse ifs with then end
23027 (parser::parse_if): Simplify.
23028 (parser::parse_pattern): Pass down simplify kind.
23029 * match.pd: Convert if structure to new syntax.
23031 2015-07-13 Marek Polacek <polacek@redhat.com>
23033 * rtl.c (rtx_equal_p_cb): Fix typo.
23035 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
23037 * omega.h: Don't include config.h, don't include params.h again if
23038 omega.h has already been included.
23039 * graphite-poly.h: Include sese.h.
23040 * graphite.c: Don't include sese.h, remove needless includes and
23041 minimize includes outside #ifdef HAVE_isl block.
23042 * graphite-blocking.c: Don't include sese.h, remove needless includes,
23043 and wrap entire file in #ifdef HAVE_isl
23044 * graphite-dependences.c: Likewise.
23045 * graphite-interchange.c: Likewise.
23046 * graphite-isl-ast-to-gimple.c: Likewise.
23047 * graphite-optimize-isl.c: Likewise.
23048 * graphite-poly.c: Likewise.
23049 * graphite-scop-detection.c: Likewise.
23050 * graphite-sese-to-poly.c: Likewise.
23052 2015-07-13 Tom de Vries <tom@codesourcery.com>
23054 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
23056 2015-07-13 Renlin Li <renlin.li@arm.com>
23059 * simplify-rtx.c (simplify_const_relational_operation): Add
23060 side_effects_p checks.
23062 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
23064 * bitmap.h: Fix double word typos.
23065 * builtins.c: Same.
23067 * cfgloopmanip.c: Same.
23070 * cgraphclones.c: Same.
23072 * config/aarch64/aarch64-protos.h: Same.
23073 * config/aarch64/aarch64.c: Same.
23074 * config/aarch64/aarch64.md: Same.
23075 * config/arm/arm.md: Same.
23076 * config/arm/arm1020e.md: Same.
23077 * config/arm/arm1026ejs.md: Same.
23078 * config/arm/arm926ejs.md: Same.
23079 * config/arm/fa526.md: Same.
23080 * config/arm/fa606te.md: Same.
23081 * config/arm/fa626te.md: Same.
23082 * config/arm/fa726te.md: Same.
23083 * config/arm/fmp626.md: Same.
23084 * config/darwin.c: Same.
23085 * config/epiphany/epiphany.c: Same.
23086 * config/frv/frv.c: Same.
23087 * config/ft32/ft32.c: Same.
23088 * config/gnu-user.h: Same.
23089 * config/h8300/constraints.md: Same.
23090 * config/i386/i386.c: Same.
23091 * config/i386/i386.md: Same.
23092 * config/iq2000/iq2000.md: Same.
23093 * config/mips/mips.c: Same.
23094 * config/mmix/mmix.md: Same.
23095 * config/moxie/moxie.c: Same.
23096 * config/nds32/nds32.md: Same.
23097 * config/pa/pa.h: Same.
23098 * config/rs6000/aix.h: Same.
23099 * config/rs6000/rs6000.h: Same.
23100 * config/sh/sh.c: Same.
23101 * config/tilegx/tilegx.md: Same.
23102 * config/tilepro/gen-mul-tables.cc: Same.
23105 * doc/invoke.texi: Same.
23107 * dwarf2out.c: Same.
23110 * genmatch.c: Same.
23111 * gimplify.c: Same.
23112 * hash-table.h: Same.
23113 * internal-fn.c: Same.
23115 * ipa-devirt.c: Same.
23118 * ipa-profile.c: Same.
23119 * ipa-prop.c: Same.
23120 * ipa-prop.h: Same.
23123 * reg-stack.c: Same.
23124 * regcprop.c: Same.
23129 * tree-inline.c: Same.
23130 * tree-sra.c: Same.
23131 * tree-ssa-dom.c: Same.
23132 * tree-ssa-loop-ivopts.c: Same.
23133 * tree-ssa-structalias.c: Same.
23134 * tree-ssa-tail-merge.c: Same.
23135 * tree-ssa-ter.c: Same.
23136 * tree-ssa-threadupdate.c: Same.
23137 * tree-ssa-uninit.c: Same.
23138 * tree-ssanames.c: Same.
23139 * tree-vect-loop-manip.c: Same.
23140 * tree-vrp.c: Same.
23142 * valtrack.c: Same.
23145 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23147 PR middle-end/66726
23148 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
23149 tree_ssa_phiopt_worker): Call it.
23151 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23153 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
23154 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
23157 2015-07-11 Marek Polacek <polacek@redhat.com>
23159 PR middle-end/66353
23160 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
23161 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
23162 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
23163 rather than bb_has_abnormal_call_pred.
23164 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
23165 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
23166 rather than bb_has_abnormal_call_pred.
23168 2015-07-10 Anatoly Sokolov <aesok@post.ru>
23170 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23171 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
23172 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23173 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
23174 v850_legitimate_address_p): New functions.
23175 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23177 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
23180 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
23181 indirect sibcall with register arguments if register available
23182 for argument passing.
23183 (init_cumulative_args): Set cfun->machine->arg_reg_available
23184 to (cum->nregs > 0) or to true if function has a variable
23186 (function_arg_advance_32): Set cfun->machine->arg_reg_available
23187 to false if cum->nregs <= 0.
23188 * config/i386/i386.h (machine_function): Add arg_reg_available.
23190 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23192 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
23193 and gen_higpart instead of gen_rtx_SUBREG.
23194 * config/i386/i386.md
23195 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
23196 (read-modify peephole2): Use gen_lowpart instead of
23197 gen_rtx_SUBREG for operand 5.
23199 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23201 * config/tilepro/gen-mul-tables.cc (main): Change include list for
23203 * config/tilepro/mul-tables.c: Regenerate.
23204 * config/tilegx/mul-tables.c: Regenerate.
23206 2015-07-10 Richard Biener <rguenther@suse.de>
23208 * fold-const.c (distribute_bit_expr): Remove.
23209 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
23210 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
23211 to A & (B | C) and simplifying A << C1 << C2 to ...
23212 * match.pd: ... patterns here.
23214 2015-07-10 Jiong Wang <jiong.wang@arm.com>
23216 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23217 Mark mem as READONLY and NOTRAP for PIC symbol.
23219 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23221 * gimple-predict.h: New file.
23222 (gimple_predict_predictor, gimple_predict_set_predictor,
23223 gimple_predict_outcome, gimple_predict_set_outcome,
23224 gimple_build_predict): Relocate here.
23225 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
23226 gimple_predict_outcome, gimple_predict_set_outcome): Move to
23228 * gimple.c (gimple_build_predict): Move to gimple-predict.h
23229 * basic-block.h: Don't include cfghooks.h.
23230 * backend.h: Don't include predict.h.
23231 * cfghooks.h: Include predict.h.
23232 * gimple-pretty-print.c: Include gimple-predict.h.
23233 * gimplify.c: Likwise.
23234 * predict.c: Adjust includes.
23235 * tree-inline.c: Likewise.
23236 * asan.c: Likewise.
23237 * auto-inc-dec.c: Likewise.
23238 * auto-profile.c: Likewise.
23239 * bb-reorder.c: Likewise.
23240 * builtins.c: Likewise.
23241 * caller-save.c: Likewise.
23242 * calls.c: Likewise.
23243 * cfganal.c: Likewise.
23244 * cfgbuild.c: Likewise.
23246 * cfgcleanup.c: Likewise.
23247 * cfgexpand.c: Likewise.
23248 * cfghooks.c: Likewise.
23249 * cfgloopanal.c: Likewise.
23250 * cfgloop.c: Likewise.
23251 * cfgloopmanip.c: Likewise.
23252 * cfgrtl.c: Likewise.
23253 * cgraph.c: Likewise.
23254 * cgraphunit.c: Likewise.
23255 * combine.c: Likewise.
23256 * cprop.c: Likewise.
23259 * dojump.c: Likewise.
23261 * except.c: Likewise.
23262 * expmed.c: Likewise.
23263 * expr.c: Likewise.
23264 * final.c: Likewise.
23265 * fold-const.c: Likewise.
23266 * function.c: Likewise.
23267 * fwprop.c: Likewise.
23268 * gcc-plugin.h: Likewise.
23269 * gcse.c: Likewise.
23270 * genattrtab.c: Likewise.
23271 * genemit.c: Likewise.
23272 * gengtype.c: Likewise.
23273 * genopinit.c: Likewise.
23274 * genoutput.c: Likewise.
23275 * genpreds.c: Likewise.
23276 * genrecog.c: Likewise.
23277 * gimple-fold.c: Likewise.
23278 * gimple-iterator.c: Likewise.
23279 * gimple-ssa-isolate-paths.c: Likewise.
23280 * gimple-ssa-strength-reduction.c: Likewise.
23281 * graph.c: Likewise.
23282 * graphite-blocking.c: Likewise.
23283 * graphite.c: Likewise.
23284 * graphite-dependences.c: Likewise.
23285 * graphite-interchange.c: Likewise.
23286 * graphite-isl-ast-to-gimple.c: Likewise.
23287 * graphite-optimize-isl.c: Likewise.
23288 * graphite-poly.c: Likewise.
23289 * graphite-scop-detection.c: Likewise.
23290 * graphite-sese-to-poly.c: Likewise.
23291 * haifa-sched.c: Likewise.
23292 * ifcvt.c: Likewise.
23293 * internal-fn.c: Likewise.
23294 * ipa-cp.c: Likewise.
23295 * ipa-profile.c: Likewise.
23296 * ipa-split.c: Likewise.
23297 * ipa-utils.c: Likewise.
23298 * ira-build.c: Likewise.
23299 * ira-color.c: Likewise.
23300 * ira-conflicts.c: Likewise.
23301 * ira-costs.c: Likewise.
23302 * ira-emit.c: Likewise.
23303 * ira-lives.c: Likewise.
23304 * jump.c: Likewise.
23305 * loop-doloop.c: Likewise.
23306 * loop-init.c: Likewise.
23307 * loop-invariant.c: Likewise.
23308 * loop-unroll.c: Likewise.
23309 * lower-subreg.c: Likewise.
23310 * lra-assigns.c: Likewise.
23312 * lra-coalesce.c: Likewise.
23313 * lra-constraints.c: Likewise.
23314 * lra-lives.c: Likewise.
23315 * lto-cgraph.c: Likewise.
23316 * lto-streamer-in.c: Likewise.
23317 * mode-switching.c: Likewise.
23318 * modulo-sched.c: Likewise.
23319 * omp-low.c: Likewise.
23320 * optabs.c: Likewise.
23321 * passes.c: Likewise.
23322 * postreload.c: Likewise.
23323 * postreload-gcse.c: Likewise.
23324 * profile.c: Likewise.
23325 * recog.c: Likewise.
23326 * regstat.c: Likewise.
23327 * reload1.c: Likewise.
23328 * reorg.c: Likewise.
23329 * rtlanal.c: Likewise.
23330 * sched-ebb.c: Likewise.
23331 * sel-sched-ir.c: Likewise.
23332 * sese.c: Likewise.
23333 * shrink-wrap.c: Likewise.
23334 * simplify-rtx.c: Likewise.
23335 * stmt.c: Likewise.
23336 * store-motion.c: Likewise.
23337 * tracer.c: Likewise.
23338 * trans-mem.c: Likewise.
23339 * tree-call-cdce.c: Likewise.
23340 * tree-cfg.c: Likewise.
23341 * tree-cfgcleanup.c: Likewise.
23342 * tree-chkp.c: Likewise.
23343 * tree-complex.c: Likewise.
23344 * tree-eh.c: Likewise.
23345 * tree-if-conv.c: Likewise.
23346 * tree-loop-distribution.c: Likewise.
23347 * tree-outof-ssa.c: Likewise.
23348 * tree-parloops.c: Likewise.
23349 * tree-predcom.c: Likewise.
23350 * tree-pretty-print.c: Likewise.
23351 * tree-profile.c: Likewise.
23352 * tree-sra.c: Likewise.
23353 * tree-ssa.c: Likewise.
23354 * tree-ssa-coalesce.c: Likewise.
23355 * tree-ssa-dce.c: Likewise.
23356 * tree-ssa-dom.c: Likewise.
23357 * tree-ssa-forwprop.c: Likewise.
23358 * tree-ssa-ifcombine.c: Likewise.
23359 * tree-ssa-loop-ch.c: Likewise.
23360 * tree-ssa-loop-im.c: Likewise.
23361 * tree-ssa-loop-ivcanon.c: Likewise.
23362 * tree-ssa-loop-ivopts.c: Likewise.
23363 * tree-ssa-loop-manip.c: Likewise.
23364 * tree-ssa-loop-prefetch.c: Likewise.
23365 * tree-ssa-loop-unswitch.c: Likewise.
23366 * tree-ssa-math-opts.c: Likewise.
23367 * tree-ssa-phiopt.c: Likewise.
23368 * tree-ssa-pre.c: Likewise.
23369 * tree-ssa-reassoc.c: Likewise.
23370 * tree-ssa-sink.c: Likewise.
23371 * tree-ssa-tail-merge.c: Likewise.
23372 * tree-ssa-threadedge.c: Likewise.
23373 * tree-ssa-threadupdate.c: Likewise.
23374 * tree-switch-conversion.c: Likewise.
23375 * tree-tailcall.c: Likewise.
23376 * tree-vect-data-refs.c: Likewise.
23377 * tree-vect-loop.c: Likewise.
23378 * tree-vect-loop-manip.c: Likewise.
23379 * tree-vectorizer.c: Likewise.
23380 * tree-vrp.c: Likewise.
23381 * ubsan.c: Likewise.
23382 * value-prof.c: Likewise.
23383 * varasm.c: Likewise.
23384 * var-tracking.c: Likewise.
23385 * config/aarch64/aarch64-builtins.c: Likewise.
23386 * config/aarch64/aarch64.c: Likewise.
23387 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23388 * config/alpha/alpha.c: Likewise.
23389 * config/arc/arc.c: Likewise.
23390 * config/arm/arm.c: Likewise.
23391 * config/avr/avr.c: Likewise.
23392 * config/bfin/bfin.c: Likewise.
23393 * config/c6x/c6x.c: Likewise.
23394 * config/cr16/cr16.c: Likewise.
23395 * config/cris/cris.c: Likewise.
23396 * config/darwin.c: Likewise.
23397 * config/darwin-c.c: Likewise.
23398 * config/epiphany/epiphany.c: Likewise.
23399 * config/epiphany/mode-switch-use.c: Likewise.
23400 * config/epiphany/resolve-sw-modes.c: Likewise.
23401 * config/fr30/fr30.c: Likewise.
23402 * config/frv/frv.c: Likewise.
23403 * config/ft32/ft32.c: Likewise.
23404 * config/h8300/h8300.c: Likewise.
23405 * config/i386/i386.c: Likewise.
23406 * config/i386/winnt.c: Likewise.
23407 * config/ia64/ia64.c: Likewise.
23408 * config/iq2000/iq2000.c: Likewise.
23409 * config/lm32/lm32.c: Likewise.
23410 * config/m32c/m32c.c: Likewise.
23411 * config/m32r/m32r.c: Likewise.
23412 * config/m68k/m68k.c: Likewise.
23413 * config/mcore/mcore.c: Likewise.
23414 * config/mep/mep.c: Likewise.
23415 * config/microblaze/microblaze.c: Likewise.
23416 * config/mips/mips.c: Likewise.
23417 * config/mmix/mmix.c: Likewise.
23418 * config/mn10300/mn10300.c: Likewise.
23419 * config/moxie/moxie.c: Likewise.
23420 * config/msp430/msp430.c: Likewise.
23421 * config/nds32/nds32.c: Likewise.
23422 * config/nds32/nds32-cost.c: Likewise.
23423 * config/nds32/nds32-fp-as-gp.c: Likewise.
23424 * config/nds32/nds32-intrinsic.c: Likewise.
23425 * config/nds32/nds32-isr.c: Likewise.
23426 * config/nds32/nds32-md-auxiliary.c: Likewise.
23427 * config/nds32/nds32-memory-manipulation.c: Likewise.
23428 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23429 * config/nds32/nds32-predicates.c: Likewise.
23430 * config/nios2/nios2.c: Likewise.
23431 * config/nvptx/nvptx.c: Likewise.
23432 * config/pa/pa.c: Likewise.
23433 * config/pdp11/pdp11.c: Likewise.
23434 * config/rl78/rl78.c: Likewise.
23435 * config/rs6000/rs6000.c: Likewise.
23436 * config/rx/rx.c: Likewise.
23437 * config/s390/s390.c: Likewise.
23438 * config/sh/sh.c: Likewise.
23439 * config/sh/sh-mem.cc: Likewise.
23440 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23441 * config/sh/sh_treg_combine.cc: Likewise.
23442 * config/sparc/sparc.c: Likewise.
23443 * config/spu/spu.c: Likewise.
23444 * config/stormy16/stormy16.c: Likewise.
23445 * config/tilegx/tilegx.c: Likewise.
23446 * config/tilepro/tilepro.c: Likewise.
23447 * config/v850/v850.c: Likewise.
23448 * config/vax/vax.c: Likewise.
23449 * config/visium/visium.c: Likewise.
23450 * config/xtensa/xtensa.c: Likewise.
23452 2015-07-10 Richard Biener <rguenther@suse.de>
23454 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
23455 (decision_tree::gen_gimple): Likewise.
23456 (decision_tree::gen_generic): Likewise.
23458 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23461 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
23462 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
23464 2015-07-10 Jakub Jelinek <jakub@redhat.com>
23466 PR middle-end/66820
23467 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
23468 or ORT_TASK contexts.
23469 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
23472 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23474 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
23477 2015-07-10 Tom de Vries <tom@codesourcery.com>
23479 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
23480 insert nit + 1 bound.
23482 2015-07-10 Richard Biener <rguenther@suse.de>
23484 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
23485 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
23486 (if_convertible_loop_p_1): For this always compute bb predicates.
23487 (if_convertible_loop_p): And free them.
23489 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23491 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
23494 2015-07-10 Richard Biener <rguenther@suse.de>
23496 PR tree-optimization/66823
23497 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
23498 inverted predicate.
23500 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
23502 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
23503 to handle mips[32|64]r3 and mips[32|64]r5.
23505 2015-07-09 Jakub Jelinek <jakub@redhat.com>
23507 PR middle-end/66633
23508 * tree-nested.c (get_static_chain): Or in a flag into
23509 info->static_chain_added.
23510 (get_frame_field, get_nonlocal_debug_decl): Likewise.
23511 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
23512 2015-07-01 changes.
23513 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
23514 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
23517 PR tree-optimization/66718
23518 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
23520 (vect_simd_lane_linear): New function.
23521 (vectorizable_simd_clone_call): Support using linear arguments for
23522 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
23524 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23527 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
23529 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23531 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
23532 Use machine mode, not enum machine_mode in the prototype.
23534 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
23535 classify 128-bit floating point support.
23536 (FLOAT128_IBM_P): Likewise.
23537 (FLOAT128_VECTOR_P): Likewise.
23538 (FLOAT128_2REG_P): Likewise.
23539 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
23540 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
23541 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
23542 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
23544 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
23545 tests against TFmode/TDmode, since those modes do not use VSX
23547 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
23549 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
23550 tests against TFmode, etc.
23551 (invalid_e500_subreg): Add tests against IFmode/KFmode.
23552 (reg_offset_addressing_ok_p): Likewise.
23553 (rs6000_legitimate_offset_address_p): Likewise.
23554 (rs6000_legitimize_address): Likewise.
23555 (rs6000_legitimize_reload_address): Likewise.
23556 (rs6000_legitimate_address_p): Clean up tests against TFmode and
23557 TDmode to use the new helper macros, which will include IFmode and
23559 (rs6000_emit_move): Likewise.
23560 (rs6000_darwin64_record_arg_recurse): Likewise.
23561 (print_operand): Likewise.
23562 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
23563 that uses a single vector register as a vector and not as a
23564 floating point register in terms of the calling sequence.
23565 (rs6000_discover_homogeneous_aggregate): Likewise.
23566 (rs6000_return_in_memory): Likewise.
23567 (init_cumulative_args): Likewise.
23568 (rs6000_function_arg_boundary): Likewise.
23569 (rs6000_function_arg_advance_1): Likewise.
23570 (rs6000_function_arg): Likewise.
23571 (rs6000_pass_by_reference): Likewise.
23572 (rs6000_gimplify_va_arg): Likewise.
23573 (rs6000_secondary_reload_memory): Use machine_mode not enum
23575 (rs6000_split_multireg_move): Use new helper macros.
23576 (spe_func_has_64bit_regs_p): Likewise.
23577 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
23578 (output_toc): Use new helper macros.
23579 (rs6000_register_move_cost): Likewise.
23580 (rs6000_function_value): Add IEEE 128-bit floating point calling
23582 (rs6000_libcall_value): Likewise.
23583 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
23584 floating point support.
23585 (rs6000_vector_mode_supported_p): Likewise.
23587 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
23589 PR rtl-optimization/66782
23590 * lra-int.h (struct lra_insn_recog_data): Add comment about
23591 clobbered hard regs for arg_hard_regs.
23592 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
23593 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
23594 Add condition for processing used hard regs.
23595 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
23596 Process clobbered hard regs.
23598 2015-07-09 Michael Matz <matz@suse.de>
23600 * genmatch.c (fprintf_indent): New function.
23601 (operand::gen_transform): Add indent parameter.
23602 (expr::gen_transform, c_expr::gen_transform,
23603 capture::gen_transform): Ditto and use fprintf_indent.
23604 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
23605 (dt_operand::gen, dt_operand::gen_predicate,
23606 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
23607 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
23608 (decision_tree::gen_gimple): Adjust calls and indent generated
23610 (decision_tree::gen_generic): Ditto.
23611 (write_predicate): Ditto.
23613 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23616 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
23617 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
23618 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
23619 {GENERAL,SSE,MMX}_REG_P where appropriate.
23621 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
23623 * lto-streamer.h: Don't include target.h and alloc-pool.h.
23624 * builtins.c: Adjust includes.
23625 * gimple.c: Likewise.
23626 * ipa-icf.c: Likewise.
23627 * lto-opts.c: Likewise.
23628 * ipa-reference.c: Likewise.
23629 * lto-section-out.c: Likewise.
23630 * lto-streamer-in.c: Likewise.
23631 * lto-streamer-out.c: Likewise.
23632 * opts-global.c: Likewise.
23633 * symtab.c: Likewise.
23634 * tree-chkp.c: Likewise.
23635 * tree-ssa-live.c: Likewise.
23636 * tree-streamer-in.c: Likewise.
23637 * tree-streamer-out.c: Likewise.
23638 * config/darwin.c: Likewise.
23639 * config/i386/winnt.c: Likewise.
23641 2015-07-09 Richard Biener <rguenther@suse.de>
23643 * genmatch.c (struct expr): Add force_single_use flag.
23644 (expr::expr): Add copy constructor.
23645 (capture_info::walk_match): Gather force_single_use captures.
23646 (expr::gen_transform): Use possibly NULLified sequence.
23647 (dt_simplify::gen): Apply single-use restrictions by NULLifying
23648 seq if any constrained expr is not single-use.
23649 (parser::parse_expr): Refactor to allow multiple flags. Handle
23650 's' flag to force an expression have a single-use if the pattern
23651 simplifies to more than one statement.
23652 * match.pd: Convert most single_use conditionals to :s flags.
23654 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23656 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
23657 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23658 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
23660 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
23662 * flags.h: Don't include flag-types.h or options.h.
23663 * opts-common.c: Adjust includes.
23664 * opts-global.c: Likewise.
23665 * common/config/epiphany/epiphany-common.c: Likewise.
23667 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23670 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
23673 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23676 * config/i386/i386.c (ix86_return_in_memory): Return true
23677 if int_size_in_bytes returns negative for IA MCU.
23679 2015-07-09 Marek Polacek <polacek@redhat.com>
23681 PR tree-optimization/66718
23682 * Makefile.in (OBJS): Add gimple-laddress.o.
23683 * passes.def: Schedule pass_laddress.
23684 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
23685 * tree-pass.h (make_pass_laddress): Declare.
23686 * gimple-laddress.c: New file.
23688 2015-07-09 Richard Biener <rguenther@suse.de>
23690 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
23692 2015-07-09 Richard Biener <rguenther@suse.de>
23694 PR tree-optimization/66807
23695 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
23697 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
23699 * function.c (stack_protect_epilogue): Use if rather than switch for
23700 check targetm.have_stack_protect_test.
23702 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23704 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
23705 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
23706 * config/arc/arc.h: Likewise.
23707 * config/arm/arm.h: Likewise.
23708 * config/bfin/bfin.h: Likewise.
23709 * config/epiphany/epiphany.h: Likewise.
23710 * config/frv/frv.h: Likewise.
23711 * config/ia64/ia64.h: Likewise.
23712 * config/iq2000/iq2000.h: Likewise.
23713 * config/lm32/lm32.h: Likewise.
23714 * config/m32r/m32r.h: Likewise.
23715 * config/mcore/mcore.h: Likewise.
23716 * config/mep/mep.h: Likewise.
23717 * config/microblaze/microblaze.h: Likewise.
23718 * config/mips/mips.h: Likewise.
23719 * config/mmix/mmix.h: Likewise.
23720 * config/mn10300/mn10300.h: Likewise.
23721 * config/nds32/nds32.h: Likewise.
23722 * config/nios2/nios2.h: Likewise.
23723 * config/pa/pa.h: Likewise.
23724 * config/rl78/rl78.h: Likewise.
23725 * config/sh/sh.h: Likewise.
23726 * config/sparc/sparc.h: Likewise.
23727 * config/stormy16/stormy16.h: Likewise.
23728 * config/tilegx/tilegx.h: Likewise.
23729 * config/tilepro/tilepro.h: Likewise.
23730 * config/v850/v850.h: Likewise.
23731 * config/xtensa/xtensa.h: Likewise.
23732 * doc/tm.texi: Regenerate.
23733 * doc/tm.texi.in: Adjust.
23734 * combine.c (simplify_set): Likewise.
23735 (simplify_comparison): Likewise.
23736 * expr.c (store_constructor): Likewise.
23737 * internal-fn.c (expand_arith_overflow): Likewise.
23738 * reload.c (push_reload): Likewise.
23739 (find_reloads): Likewise.
23740 (find_reloads_subreg_address): Likewise.
23741 * reload1.c (eliminate_regs_1): Likewise.
23742 * rtlanal.c (nonzero_bits1): Likewise.
23743 (num_sign_bit_copies1): Likewise.
23744 * simplify-rtx.c (simplify_truncation): Likewise.
23746 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23748 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
23749 of AUTO_INC_DEC with the preprocessor.
23750 * combine.c (combine_instructions): Likewise.
23751 (can_combine_p): Likewise.
23752 (try_combine): Likewise.
23753 * emit-rtl.c (try_split): Likewise.
23754 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23755 * lower-subreg.c (resolve_simple_move): Likewise.
23756 * lra.c (update_inc_notes): Likewise.
23757 * recog.c (asm_operand_ok): Likewise.
23758 (constrain_operands): Likewise.
23759 * regrename.c (scan_rtx_address): Likewise.
23760 * reload.c (update_auto_inc_notes): Likewise.
23761 (reg_inc_found_and_valid_p): Likewise.
23762 * reload1.c (reload): Likewise.
23763 (emit_input_reload_insns): Likewise.
23764 (delete_output_reload): Likewise.
23765 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23766 * valtrack.c (cleanup_auto_inc_dec): Likewise.
23768 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23770 * rtl.h: Always define AUTO_INC_DEC.
23771 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
23772 * combine.c (combine_instructions): Likewise.
23773 (can_combine_p): Likewise.
23774 (try_combine): Likewise.
23775 * emit-rtl.c (try_split): Likewise.
23776 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23777 * lower-subreg.c (resolve_simple_move): Likewise.
23778 * lra.c (update_inc_notes): Likewise.
23779 * recog.c (asm_operand_ok): Likewise.
23780 (constrain_operands): Likewise.
23781 * regrename.c (scan_rtx_address): Likewise.
23782 * reload.c (update_auto_inc_notes): Likewise.
23783 (find_equiv_reg): Likewise.
23784 * reload1.c (reload): Likewise.
23785 (reload_as_needed): Likewise.
23786 (choose_reload_regs): Likewise.
23787 (emit_input_reload_insns): Likewise.
23788 (delete_output_reload): Likewise.
23789 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23790 * valtrack.c (cleanup_auto_inc_dec): Likewise.
23792 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23794 * combine.c (can_combine_def_p): Don't check the value of
23795 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
23796 (combinable_i3pat): Likewise.
23797 (mark_used_regs_combine): Likewise.
23798 * regrename.c (rename_chains): Likewise.
23799 * reload.c (find_reloads_address): Likewise.
23800 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23802 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23804 * combine.c (update_rsp_from_reg_equal): Don't check if
23805 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
23806 (reg_nonzero_bits_for_combine): Likewise.
23807 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
23809 * config/frv/frv.h: Likewise.
23810 * config/lm32/lm32.h: Likewise.
23811 * config/mep/mep.h: Likewise.
23812 * config/mips/mips.h: Likewise.
23813 * config/rs6000/rs6000.h: Likewise.
23814 * config/sh/sh.h: Likewise.
23815 * config/tilegx/tilegx.h (enum reg_class): Likewise.
23816 * config/tilepro/tilepro.h: Likewise.
23817 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
23818 * doc/tm.texi: Regenerate.
23819 * doc/tm.texi.in: Adjust.
23820 * rtlanal.c (nonzero_bits1): Likewise.
23822 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23824 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
23825 with the preprocessor.
23826 (combine_instructions): Likewise.
23827 (try_combine): Likewise.
23829 (distribute_notes): Likewise.
23831 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23833 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
23835 (simplify_set): Likewise.
23836 * cse.c (cse_insn): Likewise.
23837 * fold-const.c (fold_single_bit_test): Likewise.
23838 (fold_unary_loc): Likewise.
23839 * postreload.c (reload_cse_simplify_set): Likewise.
23840 (reload_cse_simplify_operands): Likewise.
23842 2015-07-08 Jiong Wang <jiong.wang@arm.com>
23844 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
23845 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
23847 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
23850 * config/i386/x86intrin.h: Include <adxintrin.h> even if
23851 __iamcu__ is defined.
23853 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23855 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
23857 2015-07-08 Iain Sandoe <iain@codesourcery.com>
23860 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
23861 names from preservation.
23863 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
23866 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
23868 (function_arg_advance_32): Don't pass vectors in registers for
23870 (function_arg_32): Likewise.
23871 (ix86_return_in_memory): Don't return vectors in registers for
23874 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
23876 PR middle-end/66334
23877 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
23878 hard regno live at the start of BB with incoming abnormal edges.
23879 * lra-lives.c (process_bb_lives): Ditto.
23881 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
23884 * config/nvptx/mkoffload.c (main): Create an offload image only in
23885 64-bit configurations.
23887 2015-07-08 Martin Liska <mliska@suse.cz>
23890 * tree-sra.c (create_access_1): Call ctor without brackets.
23891 (create_artificial_child_access): Likewise.
23893 2015-07-08 Richard Biener <rguenther@suse.de>
23895 PR tree-optimization/66793
23896 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
23897 Properly split the block after stmts ending it.
23899 2015-07-08 Richard Biener <rguenther@suse.de>
23901 PR tree-optimization/66794
23902 * passes.c (execute_function_todo): Assert that post-dominators
23904 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
23905 Free post-dominators.
23907 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23909 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
23912 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23914 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
23915 more than or equal 8 and less than 32 when optimizing for size.
23917 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23919 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
23920 COSTS_N_INSNS (1) and increment it appropriately throughout the
23923 2015-07-08 Richard Biener <rguenther@suse.de>
23925 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
23927 2015-07-08 Alan Modra <amodra@gmail.com>
23929 * target.def (rtx_costs): Remove "code" param, add "mode".
23930 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
23931 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
23932 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
23933 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
23934 call. Track mode when given in rtx.
23935 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
23936 (default_address_cost): Pass Pmode to rtx_cost.
23937 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
23938 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
23940 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
23941 (notreg_cost): Add mode param. Use it.
23942 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
23943 mode param and pass to set_src_cost. Update all calls.
23944 (hash_scan_set): Formatting.
23945 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
23946 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
23948 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
23949 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
23950 emit_store_flag): Update set_src_cost and rtx_cost calls.
23951 * auto-inc-dec.c (attempt_change): Likewise.
23952 * calls.c (precompute_register_parameters): Likewise.
23953 * combine.c (expand_compound_operation, make_extraction,
23954 force_to_mode, distribute_and_simplify_rtx): Likewise.
23955 * dojump.c (prefer_and_bit_test): Likewise.
23956 * dse.c (find_shift_sequence): Likewise.
23957 * expr.c (compress_float_constant): Likewise.
23958 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
23959 * ifcvt.c (noce_try_sign_mask): Likewise.
23960 * loop-doloop.c (doloop_optimize): Likewise.
23961 * loop-invariant.c (create_new_invariant): Likewise.
23962 * lower-subreg.c (shift_cost, compute_costs): Likewise.
23963 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
23964 lshift_cheap_p): Likewise.
23965 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
23966 try_replace_in_use, reload_cse_move2add): Likewise.
23967 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
23969 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23970 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23971 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
23972 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23973 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
23974 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
23976 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
23977 * config/arc/arc.c (arc_rtx_costs): Likewise.
23978 * config/arm/arm.c (arm_rtx_costs): Likewise.
23979 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
23980 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
23981 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
23982 * config/cris/cris.c (cris_rtx_costs): Likewise.
23983 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
23984 * config/frv/frv.c (frv_rtx_costs): Likewise.
23985 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
23986 * config/i386/i386.c (ix86_rtx_costs): Likewise.
23987 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
23988 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
23989 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
23990 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
23991 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
23992 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
23993 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
23994 * config/mep/mep.c (mep_rtx_cost): Likewise.
23995 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
23996 * config/mips/mips.c (mips_rtx_costs): Likewise.
23997 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
23998 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
23999 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
24000 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
24001 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
24002 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
24003 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
24004 * config/pa/pa.c (hppa_rtx_costs): Likewise.
24005 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
24006 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
24007 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
24008 * config/s390/s390.c (s390_rtx_costs): Likewise.
24009 * config/sh/sh.c (sh_rtx_costs): Likewise.
24010 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
24011 * config/spu/spu.c (spu_rtx_costs): Likewise.
24012 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
24013 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
24014 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
24015 * config/v850/v850.c (v850_rtx_costs): Likewise.
24016 * config/vax/vax.c (vax_rtx_costs): Likewise.
24017 * config/visium/visium.c (visium_rtx_costs): Likewise.
24018 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
24019 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
24020 "code" param, and pass as outer_code to first rtx_cost call. Pass
24021 mode to rtx_cost calls.
24022 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
24024 (aarch64_rtx_costs_wrapper): Update.
24025 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
24026 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
24028 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
24029 and rtx_cost calls.
24030 (avr_operand_rtx_cost): Similarly.
24031 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
24032 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
24033 * config/mips/mips.c (mips_stack_address_p): Comment typo.
24034 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
24035 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
24036 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
24038 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
24039 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
24040 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
24041 * doc/tm.texi: Regenerate.
24043 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
24045 * tree-core.h: Include symtab.h.
24046 * rtl.h: Include hard-reg-set.h but not flags.h.
24047 (HARD_CONST): Remove condition compilation involving HARD_CONST since
24048 hard-reg-set.h is always included.
24049 * regs.h: Don't include hard-reg-set.h or rtl.h.
24050 * cfg.h: Include dominance.h.
24051 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
24052 * backend.h: New. Aggregate commonly used backend header files.
24053 * gimple-ssa.h: Don't include tree-hasher.h.
24054 * ssa.h: New. Aggregate commonly used SSA header files.
24055 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
24056 * sel-sched-ir.h: Flatten includes.
24057 * lra-int.h: Flatten completely.
24058 * sel-sched-dump.h: Flatten includes.
24059 * ira-int.h: Flatten includes.
24060 * gimple-streamer.h: Remove all includes.
24061 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
24062 * resource.h: Flatten hard-reg-set.h and df.h.
24063 * sched-int.h: Flatten insn-arrt.h and df.h.
24064 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
24065 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
24066 * genattrtab.c (write_header): Adjust generated includes.
24067 * genautomata.c (main): Likewise.
24068 * genconditions.c (write-header): Likewise.
24069 * genemit.c (main): Likewise.
24070 * gengtype.c (open_base_files): Likewise.
24071 * genopinit.c (main): Likewise.
24072 * genoutput.c (output_prologue): Likewise.
24073 * genpeep.c (main): Likewise.
24074 * genpreds.c (write_insn_preds_c): Likewise.
24075 * genrecog.c (write_header): Likewise.
24076 * alias.c: Adjust includes.
24077 * asan.c: Likewise.
24078 * attribs.c: Likewise.
24079 * auto-inc-dec.c: Likewise.
24080 * auto-profile.c: Likewise.
24081 * bb-reorder.c: Likewise.
24082 * bt-load.c: Likewise.
24083 * builtins.c: Likewise.
24084 * caller-save.c: Likewise.
24085 * calls.c: Likewise.
24086 * ccmp.c: Likewise.
24088 * cfganal.c: Likewise.
24089 * cfgbuild.c: Likewise.
24090 * cfgcleanup.c: Likewise.
24091 * cfgexpand.c: Likewise.
24092 * cfghooks.c: Likewise.
24093 * cfgloop.c: Likewise.
24094 * cfgloopanal.c: Likewise.
24095 * cfgloopmanip.c: Likewise.
24096 * cfgrtl.c: Likewise.
24097 * cgraph.c: Likewise.
24098 * cgraphbuild.c: Likewise.
24099 * cgraphclones.c: Likewise.
24100 * cgraphunit.c: Likewise.
24101 * cilk-common.c: Likewise.
24102 * combine-stack-adj.c: Likewise.
24103 * combine.c: Likewise.
24104 * compare-elim.c: Likewise.
24105 * convert.c: Likewise.
24106 * coverage.c: Likewise.
24107 * cppbuiltin.c: Likewise.
24108 * cprop.c: Likewise.
24110 * cselib.c: Likewise.
24111 * data-streamer-in.c: Likewise.
24112 * data-streamer-out.c: Likewise.
24113 * data-streamer.c: Likewise.
24114 * dbxout.c: Likewise.
24117 * debug.c: Likewise.
24118 * df-core.c: Likewise.
24119 * df-problems.c: Likewise.
24120 * df-scan.c: Likewise.
24122 * dojump.c: Likewise.
24123 * dominance.c: Likewise.
24124 * domwalk.c: Likewise.
24125 * double-int.c: Likewise.
24127 * dumpfile.c: Likewise.
24128 * dwarf2asm.c: Likewise.
24129 * dwarf2cfi.c: Likewise.
24130 * dwarf2out.c: Likewise.
24131 * emit-rtl.c: Likewise.
24132 * et-forest.c: Likewise.
24133 * except.c: Likewise.
24134 * explow.c: Likewise.
24135 * expmed.c: Likewise.
24136 * expr.c: Likewise.
24137 * final.c: Likewise.
24138 * fixed-value.c: Likewise.
24139 * fold-const.c: Likewise.
24140 * function.c: Likewise.
24141 * fwprop.c: Likewise.
24142 * gcc-plugin.h: Likewise.
24143 * gcse-common.c: Likewise.
24144 * gcse.c: Likewise.
24145 * generic-match-head.c: Likewise.
24146 * ggc-page.c: Likewise.
24147 * gimple-builder.c: Likewise.
24148 * gimple-expr.c: Likewise.
24149 * gimple-fold.c: Likewise.
24150 * gimple-iterator.c: Likewise.
24151 * gimple-low.c: Likewise.
24152 * gimple-match-head.c: Likewise.
24153 * gimple-pretty-print.c: Likewise.
24154 * gimple-ssa-isolate-paths.c: Likewise.
24155 * gimple-ssa-strength-reduction.c: Likewise.
24156 * gimple-streamer-in.c: Likewise.
24157 * gimple-streamer-out.c: Likewise.
24158 * gimple-walk.c: Likewise.
24159 * gimple.c: Likewise.
24160 * gimplify-me.c: Likewise.
24161 * gimplify.c: Likewise.
24162 * godump.c: Likewise.
24163 * graph.c: Likewise.
24164 * graphite-blocking.c: Likewise.
24165 * graphite-dependences.c: Likewise.
24166 * graphite-interchange.c: Likewise.
24167 * graphite-isl-ast-to-gimple.c: Likewise.
24168 * graphite-optimize-isl.c: Likewise.
24169 * graphite-poly.c: Likewise.
24170 * graphite-scop-detection.c: Likewise.
24171 * graphite-sese-to-poly.c: Likewise.
24172 * graphite.c: Likewise.
24173 * haifa-sched.c: Likewise.
24174 * hw-doloop.c: Likewise.
24175 * ifcvt.c: Likewise.
24176 * init-regs.c: Likewise.
24177 * internal-fn.c: Likewise.
24178 * ipa-chkp.c: Likewise.
24179 * ipa-comdats.c: Likewise.
24180 * ipa-cp.c: Likewise.
24181 * ipa-devirt.c: Likewise.
24182 * ipa-icf-gimple.c: Likewise.
24183 * ipa-icf.c: Likewise.
24184 * ipa-inline-analysis.c: Likewise.
24185 * ipa-inline-transform.c: Likewise.
24186 * ipa-inline.c: Likewise.
24187 * ipa-polymorphic-call.c: Likewise.
24188 * ipa-profile.c: Likewise.
24189 * ipa-prop.c: Likewise.
24190 * ipa-pure-const.c: Likewise.
24191 * ipa-ref.c: Likewise.
24192 * ipa-reference.c: Likewise.
24193 * ipa-split.c: Likewise.
24194 * ipa-utils.c: Likewise.
24195 * ipa-visibility.c: Likewise.
24197 * ira-build.c: Likewise.
24198 * ira-color.c: Likewise.
24199 * ira-conflicts.c: Likewise.
24200 * ira-costs.c: Likewise.
24201 * ira-emit.c: Likewise.
24202 * ira-lives.c: Likewise.
24204 * jump.c: Likewise.
24205 * langhooks.c: Likewise.
24207 * loop-doloop.c: Likewise.
24208 * loop-init.c: Likewise.
24209 * loop-invariant.c: Likewise.
24210 * loop-iv.c: Likewise.
24211 * loop-unroll.c: Likewise.
24212 * lower-subreg.c: Likewise.
24213 * lra-assigns.c: Likewise.
24214 * lra-coalesce.c: Likewise.
24215 * lra-constraints.c: Likewise.
24216 * lra-eliminations.c: Likewise.
24217 * lra-lives.c: Likewise.
24218 * lra-remat.c: Likewise.
24219 * lra-spills.c: Likewise.
24221 * lto-cgraph.c: Likewise.
24222 * lto-compress.c: Likewise.
24223 * lto-opts.c: Likewise.
24224 * lto-section-in.c: Likewise.
24225 * lto-section-out.c: Likewise.
24226 * lto-streamer-in.c: Likewise.
24227 * lto-streamer-out.c: Likewise.
24228 * lto-streamer.c: Likewise.
24230 * mode-switching.c: Likewise.
24231 * modulo-sched.c: Likewise.
24232 * omega.c: Likewise.
24233 * omp-low.c: Likewise.
24234 * optabs.c: Likewise.
24235 * opts-global.c: Likewise.
24236 * passes.c: Likewise.
24237 * plugin.c: Likewise.
24238 * postreload-gcse.c: Likewise.
24239 * postreload.c: Likewise.
24240 * predict.c: Likewise.
24241 * print-rtl.c: Likewise.
24242 * print-tree.c: Likewise.
24243 * profile.c: Likewise.
24244 * real.c: Likewise.
24245 * realmpfr.c: Likewise.
24246 * recog.c: Likewise.
24248 * reg-stack.c: Likewise.
24249 * regcprop.c: Likewise.
24250 * reginfo.c: Likewise.
24251 * regrename.c: Likewise.
24252 * regstat.c: Likewise.
24253 * reload.c: Likewise.
24254 * reload1.c: Likewise.
24255 * reorg.c: Likewise.
24256 * resource.c: Likewise.
24257 * rtl-chkp.c: Likewise.
24258 * rtlanal.c: Likewise.
24259 * rtlhooks.c: Likewise.
24260 * sanopt.c: Likewise.
24261 * sched-deps.c: Likewise.
24262 * sched-ebb.c: Likewise.
24263 * sched-rgn.c: Likewise.
24264 * sched-vis.c: Likewise.
24265 * sdbout.c: Likewise.
24266 * sel-sched-dump.c: Likewise.
24267 * sel-sched-ir.c: Likewise.
24268 * sel-sched.c: Likewise.
24269 * sese.c: Likewise.
24270 * shrink-wrap.c: Likewise.
24271 * simplify-rtx.c: Likewise.
24272 * stack-ptr-mod.c: Likewise.
24273 * stmt.c: Likewise.
24274 * stor-layout.c: Likewise.
24275 * store-motion.c: Likewise.
24276 * stringpool.c: Likewise.
24277 * symtab.c: Likewise.
24278 * target-globals.c: Likewise.
24279 * targhooks.c: Likewise.
24280 * toplev.c: Likewise.
24281 * tracer.c: Likewise.
24282 * trans-mem.c: Likewise.
24283 * tree-affine.c: Likewise.
24284 * tree-browser.c: Likewise.
24285 * tree-call-cdce.c: Likewise.
24286 * tree-cfg.c: Likewise.
24287 * tree-cfgcleanup.c: Likewise.
24288 * tree-chkp-opt.c: Likewise.
24289 * tree-chkp.c: Likewise.
24290 * tree-chrec.c: Likewise.
24291 * tree-complex.c: Likewise.
24292 * tree-data-ref.c: Likewise.
24293 * tree-dfa.c: Likewise.
24294 * tree-diagnostic.c: Likewise.
24295 * tree-dump.c: Likewise.
24296 * tree-eh.c: Likewise.
24297 * tree-emutls.c: Likewise.
24298 * tree-if-conv.c: Likewise.
24299 * tree-inline.c: Likewise.
24300 * tree-into-ssa.c: Likewise.
24301 * tree-iterator.c: Likewise.
24302 * tree-loop-distribution.c: Likewise.
24303 * tree-nested.c: Likewise.
24304 * tree-nrv.c: Likewise.
24305 * tree-object-size.c: Likewise.
24306 * tree-outof-ssa.c: Likewise.
24307 * tree-parloops.c: Likewise.
24308 * tree-phinodes.c: Likewise.
24309 * tree-predcom.c: Likewise.
24310 * tree-pretty-print.c: Likewise.
24311 * tree-profile.c: Likewise.
24312 * tree-scalar-evolution.c: Likewise.
24313 * tree-sra.c: Likewise.
24314 * tree-ssa-address.c: Likewise.
24315 * tree-ssa-alias.c: Likewise.
24316 * tree-ssa-ccp.c: Likewise.
24317 * tree-ssa-coalesce.c: Likewise.
24318 * tree-ssa-copy.c: Likewise.
24319 * tree-ssa-copyrename.c: Likewise.
24320 * tree-ssa-dce.c: Likewise.
24321 * tree-ssa-dom.c: Likewise.
24322 * tree-ssa-dse.c: Likewise.
24323 * tree-ssa-forwprop.c: Likewise.
24324 * tree-ssa-ifcombine.c: Likewise.
24325 * tree-ssa-live.c: Likewise.
24326 * tree-ssa-loop-ch.c: Likewise.
24327 * tree-ssa-loop-im.c: Likewise.
24328 * tree-ssa-loop-ivcanon.c: Likewise.
24329 * tree-ssa-loop-ivopts.c: Likewise.
24330 * tree-ssa-loop-manip.c: Likewise.
24331 * tree-ssa-loop-niter.c: Likewise.
24332 * tree-ssa-loop-prefetch.c: Likewise.
24333 * tree-ssa-loop-unswitch.c: Likewise.
24334 * tree-ssa-loop.c: Likewise.
24335 * tree-ssa-math-opts.c: Likewise.
24336 * tree-ssa-operands.c: Likewise.
24337 * tree-ssa-phiopt.c: Likewise.
24338 * tree-ssa-phiprop.c: Likewise.
24339 * tree-ssa-pre.c: Likewise.
24340 * tree-ssa-propagate.c: Likewise.
24341 * tree-ssa-reassoc.c: Likewise.
24342 * tree-ssa-sccvn.c: Likewise.
24343 * tree-ssa-scopedtables.c: Likewise.
24344 * tree-ssa-sink.c: Likewise.
24345 * tree-ssa-strlen.c: Likewise.
24346 * tree-ssa-structalias.c: Likewise.
24347 * tree-ssa-tail-merge.c: Likewise.
24348 * tree-ssa-ter.c: Likewise.
24349 * tree-ssa-threadedge.c: Likewise.
24350 * tree-ssa-threadupdate.c: Likewise.
24351 * tree-ssa-uncprop.c: Likewise.
24352 * tree-ssa-uninit.c: Likewise.
24353 * tree-ssa.c: Likewise.
24354 * tree-ssanames.c: Likewise.
24355 * tree-stdarg.c: Likewise.
24356 * tree-streamer-in.c: Likewise.
24357 * tree-streamer-out.c: Likewise.
24358 * tree-streamer.c: Likewise.
24359 * tree-switch-conversion.c: Likewise.
24360 * tree-tailcall.c: Likewise.
24361 * tree-vect-data-refs.c: Likewise.
24362 * tree-vect-generic.c: Likewise.
24363 * tree-vect-loop-manip.c: Likewise.
24364 * tree-vect-loop.c: Likewise.
24365 * tree-vect-patterns.c: Likewise.
24366 * tree-vect-slp.c: Likewise.
24367 * tree-vect-stmts.c: Likewise.
24368 * tree-vectorizer.c: Likewise.
24369 * tree-vrp.c: Likewise.
24370 * tree.c: Likewise.
24371 * tsan.c: Likewise.
24372 * ubsan.c: Likewise.
24373 * valtrack.c: Likewise.
24374 * value-prof.c: Likewise.
24375 * var-tracking.c: Likewise.
24376 * varasm.c: Likewise.
24377 * varpool.c: Likewise.
24378 * vmsdbgout.c: Likewise.
24379 * vtable-verify.c: Likewise.
24381 * wide-int.cc: Likewise.
24382 * xcoffout.c: Likewise.
24383 * config/aarch64/aarch64-builtins.c: Likewise.
24384 * config/aarch64/aarch64.c: Likewise.
24385 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24386 * config/alpha/alpha.c: Likewise.
24387 * config/arc/arc.c: Likewise.
24388 * config/arm/aarch-common.c: Likewise.
24389 * config/arm/arm-builtins.c: Likewise.
24390 * config/arm/arm-c.c: Likewise.
24391 * config/arm/arm.c: Likewise.
24392 * config/avr/avr-c.c: Likewise.
24393 * config/avr/avr-log.c: Likewise.
24394 * config/avr/avr.c: Likewise.
24395 * config/bfin/bfin.c: Likewise.
24396 * config/c6x/c6x.c: Likewise.
24397 * config/cr16/cr16.c: Likewise.
24398 * config/cris/cris.c: Likewise.
24399 * config/darwin-c.c: Likewise.
24400 * config/darwin.c: Likewise.
24401 * config/epiphany/epiphany.c: Likewise.
24402 * config/epiphany/mode-switch-use.c: Likewise.
24403 * config/epiphany/resolve-sw-modes.c: Likewise.
24404 * config/fr30/fr30.c: Likewise.
24405 * config/frv/frv.c: Likewise.
24406 * config/ft32/ft32.c: Likewise.
24407 * config/h8300/h8300.c: Likewise.
24408 * config/i386/i386-c.c: Likewise.
24409 * config/i386/i386.c: Likewise.
24410 * config/i386/msformat-c.c: Likewise.
24411 * config/i386/winnt-cxx.c: Likewise.
24412 * config/i386/winnt-stubs.c: Likewise.
24413 * config/i386/winnt.c: Likewise.
24414 * config/ia64/ia64-c.c: Likewise.
24415 * config/ia64/ia64.c: Likewise.
24416 * config/iq2000/iq2000.c: Likewise.
24417 * config/lm32/lm32.c: Likewise.
24418 * config/m32c/m32c-pragma.c: Likewise.
24419 * config/m32c/m32c.c: Likewise.
24420 * config/m32r/m32r.c: Likewise.
24421 * config/m68k/m68k.c: Likewise.
24422 * config/mcore/mcore.c: Likewise.
24423 * config/mep/mep-pragma.c: Likewise.
24424 * config/mep/mep.c: Likewise.
24425 * config/microblaze/microblaze-c.c: Likewise.
24426 * config/microblaze/microblaze.c: Likewise.
24427 * config/mips/mips.c: Likewise.
24428 * config/mmix/mmix.c: Likewise.
24429 * config/mn10300/mn10300.c: Likewise.
24430 * config/moxie/moxie.c: Likewise.
24431 * config/msp430/msp430-c.c: Likewise.
24432 * config/msp430/msp430.c: Likewise.
24433 * config/nds32/nds32-cost.c: Likewise.
24434 * config/nds32/nds32-fp-as-gp.c: Likewise.
24435 * config/nds32/nds32-intrinsic.c: Likewise.
24436 * config/nds32/nds32-isr.c: Likewise.
24437 * config/nds32/nds32-md-auxiliary.c: Likewise.
24438 * config/nds32/nds32-memory-manipulation.c: Likewise.
24439 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24440 * config/nds32/nds32-predicates.c: Likewise.
24441 * config/nds32/nds32.c: Likewise.
24442 * config/nios2/nios2.c: Likewise.
24443 * config/nvptx/nvptx.c: Likewise.
24444 * config/pa/pa.c: Likewise.
24445 * config/pdp11/pdp11.c: Likewise.
24446 * config/rl78/rl78-c.c: Likewise.
24447 * config/rl78/rl78.c: Likewise.
24448 * config/rs6000/rs6000-c.c: Likewise.
24449 * config/rs6000/rs6000.c: Likewise.
24450 * config/rx/rx.c: Likewise.
24451 * config/s390/s390-c.c: Likewise.
24452 * config/s390/s390.c: Likewise.
24453 * config/sh/sh-c.c: Likewise.
24454 * config/sh/sh-mem.cc: Likewise.
24455 * config/sh/sh.c: Likewise.
24456 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24457 * config/sh/sh_treg_combine.cc: Likewise.
24458 * config/sol2-c.c: Likewise.
24459 * config/sol2-cxx.c: Likewise.
24460 * config/sol2-stubs.c: Likewise.
24461 * config/sol2.c: Likewise.
24462 * config/sparc/sparc-c.c: Likewise.
24463 * config/sparc/sparc.c: Likewise.
24464 * config/spu/spu-c.c: Likewise.
24465 * config/spu/spu.c: Likewise.
24466 * config/stormy16/stormy16.c: Likewise.
24467 * config/tilegx/mul-tables.c: Likewise.
24468 * config/tilegx/tilegx-c.c: Likewise.
24469 * config/tilegx/tilegx.c: Likewise.
24470 * config/tilepro/mul-tables.c: Likewise.
24471 * config/tilepro/tilepro-c.c: Likewise.
24472 * config/tilepro/tilepro.c: Likewise.
24473 * config/v850/v850-c.c: Likewise.
24474 * config/v850/v850.c: Likewise.
24475 * config/vax/vax.c: Likewise.
24476 * config/visium/visium.c: Likewise.
24477 * config/vms/vms-c.c: Likewise.
24478 * config/vms/vms.c: Likewise.
24479 * config/vxworks.c: Likewise.
24480 * config/xtensa/xtensa.c: Likewise.
24482 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
24484 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
24485 Remove operand constraints. Change operand 2 predicate to
24486 nonmemory operand. Limit const_int values to mode bitsize. Only
24487 allow const_int values less than 32 when optimizing for size.
24488 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
24489 Remove operand constraints.
24490 (*bt<mode>): Use SImode for const_int values less than 32.
24491 (regmode): Remove mode attribute.
24493 2015-07-07 Anatoly Sokolov <aesok@post.ru>
24495 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24496 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
24497 moxie_legitimate_address_p): New functions.
24498 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
24500 2015-07-07 Tom de Vries <tom@codesourcery.com>
24502 PR tree-optimization/66642
24503 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
24504 header comment. Rename split_edge variable to edge_at_split. Split
24505 exit edge to create new loop exit bb. Insert loop exit phis in new
24508 2015-07-07 Tom de Vries <tom@codesourcery.com>
24510 * tree-cfg.c (get_virtual_phi): New function.
24511 * tree-cfg.h (get_virtual_phi): Declare.
24512 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
24513 (rewrite_virtuals_into_loop_closed_ssa): New function.
24514 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
24516 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
24517 (transform_to_exit_first_loop_alt): Use
24518 rewrite_virtuals_into_loop_closed_ssa.
24520 2015-07-07 Richard Biener <rguenther@suse.de>
24522 * fold-const.c (fold_binary_loc): Move
24523 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
24524 * match.pd: ... here.
24525 Add (X * C1) % C2 -> 0 simplification pattern derived from
24528 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
24531 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
24532 change for target/65249.
24534 2015-07-07 Paulo Matos <pmatos@broadcom.com>
24536 * symtab.c (address_matters_1): Fix typo in comment above.
24537 (can_increase_alignment_p): Likewise.
24539 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24541 * function.c (free_after_compilation): Clear PROP_cfg in
24542 f->curr_properties.
24544 2015-07-07 Richard Biener <rguenther@suse.de>
24546 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
24548 (add_control_edge): Remove excessive vertical space in dumping.
24549 (process_ssa_edge_worklist): Simulate at most one statement and
24550 return whether we did. Do not simulate PHIs if they are in a
24551 BB not yet simulated.
24552 (ssa_propagate): Adjust to always drain the BB worklist whenever
24553 a BB is available there, likewise the VARYING edges list before
24554 the interesting edge list.
24556 2015-07-07 Christian Bruel <christian.bruel@st.com>
24559 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
24561 2015-07-07 Richard Biener <rguenther@suse.de>
24563 PR middle-end/66739
24564 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
24567 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
24569 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
24570 modes for operands 0 and 3. Use SImode for operands 2 and 3.
24571 Copy operand 0 to a temporary if !ext_register_operand. Remove
24572 ancient extract_bit_field workaround.
24573 (insv<mode>_1): Rename from mov<mode>_insv_1.
24574 (*insvqi): Rename from *movqi_insv_2.
24575 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
24576 for renamed insvsi_1.
24577 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
24579 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
24581 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
24582 call to nvptx_reorg_subreg.
24584 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
24586 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
24587 * graphite-dependencies.c, graphite-interchange.c,
24588 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
24589 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
24592 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
24594 * match.pd: Remove element_mode inside HONOR_*.
24595 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
24596 (~X | X -> -1, ~X ^ X -> -1): Merge.
24597 * tree.c (build_each_one_cst): New function.
24598 * tree.h (build_each_one_cst): Likewise.
24600 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24602 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24605 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
24607 * config.gcc <mips*-*-*>: Add fused-madd.opt.
24608 * config/mips/mips.opt (mfused-madd): Remove.
24609 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
24610 * config/mips/mips.h (TARGET_MIPS8000): New.
24611 (ISA_HAS_FP_MADD4_MSUB4): Remove.
24612 (ISA_HAS_FP_MADDF_MSUBF): Remove.
24613 (ISA_HAS_FP_MADD3_MSUB3): Remove.
24614 (ISA_HAS_NMADD4_NMSUB4): Remove.
24615 (ISA_HAS_NMADD3_NMSUB3): Remove.
24616 (ISA_HAS_FUSED_MADD4): New.
24617 (ISA_HAS_UNFUSED_MADD4): New.
24618 (ISA_HAS_FUSED_MADDF): New.
24619 (ISA_HAS_FUSED_MADD3): New.
24620 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
24621 (*fma<mode>4_madd3) New.
24622 (*fma<mode>4_madd4) New.
24623 (*fma<mode>4_maddf) New.
24625 (*fms<mode>4_msub3) New.
24626 (*fms<mode>4_msub4) New.
24628 (*fnma<mode>4_nmadd3) New.
24629 (*fnma<mode>4_nmadd4) New.
24631 (*fnms<mode>4_nmsub3) New.
24632 (*fnms<mode>4_nmsub4) New.
24633 (*madd4<mode>) Modify to be unfused only.
24634 (*msub4<mode>) Modify to be unfused only.
24635 (*nmadd4<mode>) Modify to be unfused only.
24636 (*nmsub4<mode>) Modify to be unfused only.
24637 (*madd3<mode>) Remove.
24638 (*msub3<mode>) Remove.
24639 (*nmadd3<mode>) Remove.
24640 (*nmsub3<mode>) Remove.
24641 (*nmadd3<mode>_fastmath) Remove.
24642 (*nmsub3<mode>_fastmath) Remove.
24643 (*nmadd4<mode>_fastmath) Update condition.
24644 (*nmsub4<mode>_fastmath) Update condition.
24646 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
24649 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
24650 alignment attribute, exploring one level down for records and arrays.
24652 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
24654 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
24655 modes for operands 0 and 1. Use SImode for operands 2 and 3.
24656 Copy operand 1 to a temporary if !ext_register_operand. Remove
24657 ancient extract_bit_field workaround.
24658 (*extv<mode>): Rename from *mov<mode>_extv_1.
24659 (*extvqi): Rename from *movqi_extv_1.
24660 (extzv<mode>): Rename from extzv. Use SWI248 modes for
24661 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
24662 to a temporary if !ext_register_operand. Remove ancient
24663 extract_bit_field workaround.
24664 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
24665 (*extzvqi): Rename from *movqi_extzv_2.
24666 (*testqi_ext_3): Remove modes from const_int_operand predicated
24667 operands. Add "n" constraint.
24668 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
24669 operand. Add "J" constraint.
24670 (*btsq, *btrq, *btcq peephole2s): Remove mode from
24671 const_0_to_63 predicated operand.
24672 (regmode): New insn attribute.
24673 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
24674 to nonmemory_operand. Use regmode insn attribute.
24675 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
24676 (*jcc_bt<mode>_mask): Remove mode from operand 3.
24677 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
24678 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
24679 operands. Use "N" constraint instead of "n".
24681 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
24683 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
24685 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24688 * config/i386/i386.c (iamcu_cost): New.
24689 (m_IAMCU): Likewise.
24690 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
24691 (processor_target_table): Add an entry for "iamcu".
24692 (processor_alias_table): Likewise.
24693 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
24694 (ix86_adjust_cost): Likewise.
24695 (ia32_multipass_dfa_lookahead): Likewise.
24696 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
24697 * config/i386/x86-tune.def: Updated for m_IAMCU.
24699 2015-07-06 Richard Biener <rguenther@suse.de>
24701 PR tree-optimization/66772
24702 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
24703 values are available in the PHI node BB when there are
24704 still unexecutable edges.
24706 2015-07-06 Richard Biener <rguenther@suse.de>
24708 PR tree-optimization/66767
24709 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
24710 Make sure to build the alignment test on a SSA name without
24711 final alignment info valid only if the alignment test
24714 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
24717 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
24718 loop start when inserting LSETUP.
24720 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24723 * config/i386/i386.c (ix86_option_override_internal): Allow
24724 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
24726 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24728 * read-md.c (decimal_string): Rename to ...
24729 (md_decimal_string): ... this.
24730 (handle_enum): Reflect this.
24732 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
24735 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
24737 2015-07-06 Richard Biener <rguenther@suse.de>
24739 PR middle-end/66759
24740 * match.pd: Add missing constraint of y to REAL_CST in
24741 REAL_CST - x CMP y to y - CST CMP x simplification.
24743 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
24745 PR tree-optimization/66757
24746 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
24748 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
24749 Sandra Loosemore <sandra@codesourcery.com>
24751 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
24752 Delete extern declaration.
24753 (gprel_constant_p): Add extern declaration.
24754 * config/nios2/constraints.md ("S"): Use gprel_constant_p
24755 instead of nios2_symbol_ref_in_small_data_p.
24756 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
24757 (nios2_symbol_ref_in_small_data_p): Make static.
24758 (gprel_constant_p): Make non-static.
24760 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
24762 * doc/fragments.texi (Target Fragment): Convert debian.org
24764 * doc/install.texi (Configuration): Ditto.
24766 2015-07-05 Jakub Jelinek <jakub@redhat.com>
24768 PR tree-optimization/66718
24769 * tree-vect-stmts.c (vectorizable_call): Replace uses of
24770 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
24772 PR tree-optimization/66718
24773 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
24774 vectorizable_load, vectorizable_condition): Move vectype,
24775 nunits, ncopies computation after checking what kind of statement
24778 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24780 * target-insns.def (extv, extzv, insv): New targetm instruction
24782 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
24784 * recog.c (simplify_while_replacing): Likewise.
24786 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24788 * target-insns.def (doloop_begin, doloop_end): New targetm
24789 instruction patterns.
24790 * loop-init.c: Include target.h.
24791 (pass_loop2::gate): Use the new targetm patterns instead of
24792 HAVE_*/gen_* interface.
24793 (pass_rtl_doloop::gate): Likewise.
24794 (pass_rtl_doloop::execute): Remove preprocessor condition.
24795 * hw-doloop.c: Build unconditionally.
24796 * loop-doloop.c: Likewise.
24797 (doloop_optimize): Use the new targetm patterns instead of
24798 HAVE_*/gen_* interface.
24799 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
24800 * modulo-sched.c (doloop_register_get): Likewise.
24802 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24804 * target-insns.def (clear_cache): New targetm instruction pattern.
24805 * builtins.c (expand_builtin___clear_cache): Use it instead of
24806 HAVE_*/gen_* interface.
24808 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24810 * target-insns.def (allocate_stack, check_stack, probe_stack)
24811 (probe_stack_address, split_stack_prologue, split_stack_space_check):
24812 New targetm instruction patterns.
24813 * explow.c (allocate_dynamic_stack_space): Use them instead of
24814 HAVE_*/gen_* interface.
24815 (emit_stack_probe): Likewise.
24816 (probe_stack_range): Likewise.
24817 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24819 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24821 * target-insns.def (stack_protect_set, stack_protect_test): New
24822 targetm instruction patterns.
24823 * cfgexpand.c (stack_protect_prologue): Use them instead of
24824 HAVE_*/gen_* interface.
24825 * function.c (stack_protect_epilogue): Likewise.
24827 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24829 * expr.h (gen_move_insn_uncast): Delete.
24830 * expr.c (gen_move_insn_uncast): Delete.
24832 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24834 * target-insns.def (restore_stack_block, restore_stack_function)
24835 (restore_stack_nonlocal, save_stack_block, save_stack_function)
24836 (save_stack_nonlocal): New targetm instruction patterns.
24837 * builtins.c (expand_builtin_apply): Use them instead of
24838 HAVE_*/gen_* interface.
24839 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
24841 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24843 * target-insns.def (trap): New targetm instruction pattern.
24844 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
24846 * explow.c (allocate_dynamic_stack_space): Likewise.
24847 * ifcvt.c (find_if_header): Likewise.
24849 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24851 * target-insns.def (prefetch): New targetm instruction pattern.
24852 * tree-ssa-loop-prefetch.c: Include targeth.
24853 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
24854 of HAVE_*/gen_* interface.
24855 * builtins.c (expand_builtin_prefetch): Likewise.
24856 * toplev.c (process_options): Likewise.
24858 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24860 * target-insns.def (untyped_call, untyped_return): New targetm
24861 instruction patterns.
24862 * builtins.c (expand_builtin_apply): Use them instead of
24863 HAVE_*/gen_* interface.
24864 (result_vector): Define unconditionally.
24866 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24868 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
24869 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
24870 (nonlocal_goto_receiver): New targetm instruction patterns.
24871 * builtins.c (expand_builtin_setjmp_setup): Use them instead
24872 of HAVE_*/gen_* interface.
24873 (expand_builtin_setjmp_receiver): Likewise.
24874 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
24875 * except.c (expand_dw2_landing_pad_for_region): Likewise.
24877 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24879 * target.def: Add code_for_* hooks.
24880 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
24881 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
24882 * target-insns.def (casesi, tablejump): New targetm instruction
24884 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
24885 (do_tablejump): Likewise.
24886 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
24887 (expand_sjlj_dispatch_table): Likewise.
24888 * targhooks.c (default_case_values_threshold): Likewise.
24890 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
24892 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
24893 Use rtx_insn * instead of rtx.
24894 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
24895 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
24896 (nios2_call_tls_get_addr): Likewise.
24897 (nios2_emit_expensive_div): Likewise.
24898 (nios2_emit_move_sequence): Change return type to bool.
24899 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
24900 Change return type to bool.
24902 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24905 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
24907 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
24910 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
24911 of register_operand. Remove constraint.
24913 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
24915 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
24916 the first argument.
24918 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
24920 * attribs.c (decl_attributes): Guard inform with the return value
24921 of the preceding warning.
24923 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24925 * doc/invoke.texi (moverride): Move to correct section.
24927 2015-07-03 Richard Biener <rguenther@suse.de>
24929 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
24931 (dt_operand::gen_gimple_expr): After valueizing operands
24932 re-canonicalize operand order for commutative tree codes.
24934 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
24937 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
24939 (__crc32w): Likewise.
24940 (__crc32d): Likewise.
24941 (__rdpmc): Likewise.
24942 (__rdtscp): Likewise.
24943 (_rdpmc): Likewise.
24944 (_rdtscp): Likewise.
24945 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
24948 2015-07-03 Richard Biener <rguenther@suse.de>
24950 * fold-const.c (fold_mathfn_compare): Remove.
24951 (fold_inf_compare): Likewise.
24952 (fold_comparison): Move floating point comparison simplifications...
24953 * match.pd: ... to patterns here. Introduce simple_comparisons
24954 operator list and use it for patterns formerly in fold_comparison.
24956 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24958 PR tree-optimization/66119
24959 * toplev.c (process_options): Don't set up default values for
24960 the sra_max_scalarization_size_{speed,size} parameters.
24961 * tree-sra (analyze_all_variable_accesses): If no values
24962 have been set for the sra_max_scalarization_size_{speed,size}
24963 parameters, call get_move_ratio to get target defaults.
24965 2015-07-03 Richard Biener <rguenther@suse.de>
24967 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
24968 * match.pd: ... here.
24970 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
24973 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
24974 is not actually the default on FreeBSD.
24976 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24978 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
24980 (CMPGE_8HI): Likewise.
24981 (CMPGE_4SI): Likewise.
24982 (CMPGE_2DI): Likewise.
24983 (CMPGE_U16QI): Likewise.
24984 (CMPGE_U8HI): Likewise.
24985 (CMPGE_U4SI): Likewise.
24986 (CMPGE_U2DI): Likewise.
24987 (CMPLE_16QI): Likewise.
24988 (CMPLE_8HI): Likewise.
24989 (CMPLE_4SI): Likewise.
24990 (CMPLE_2DI): Likewise.
24991 (CMPLE_U16QI): Likewise.
24992 (CMPLE_U8HI): Likewise.
24993 (CMPLE_U4SI): Likewise.
24994 (CMPLE_U2DI): Likewise.
24995 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24996 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
24997 ALTIVEC_BUILTIN_VEC_CMPLE.
24998 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
24999 floating-point vector modes.
25000 (vector_nlt<mode>): New define_expand.
25001 (vector_nltu<mode>): Likewise.
25002 (vector_ngt<mode>): Likewise.
25003 (vector_ngtu<mode>): Likewise.
25005 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
25007 PR rtl-optimization/66706
25008 * combine.c (make_compound_operation): If an AND of SUBREG of
25009 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
25011 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
25013 * tree-pass.h (make_pass_ch_vect): New.
25014 * passes.def: Add pass_ch_vect just before pass_if_conversion.
25016 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
25017 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
25018 make_pass_ch_vect): New.
25019 (pass_ch): Extend ch_base.
25021 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
25022 (ch_base::copy_headers): ...here.
25024 2015-07-02 Richard Biener <rguenther@suse.de>
25026 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
25027 * fold-const.c (get_pointer_modulus_and_residue): Remove.
25028 (fold_binary_loc): Implement (T)ptr & CST in terms of
25029 get_pointer_alignment_1.
25030 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
25031 Make sure to build the alignment test on a SSA name without
25032 final alignment info valid only after the prologue.
25034 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
25036 * config/cris/cris.md ("epilogue"): Remove condition.
25037 ("prologue"): Ditto.
25039 2015-07-02 Richard Biener <rguenther@suse.de>
25041 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
25042 parameter to record a condition that is false.
25043 (record_conditions): When recording an extra NE_EXPR that is
25044 true also record a EQ_EXPR that is false.
25046 2015-07-02 Bin Cheng <bin.cheng@arm.com>
25048 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
25049 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
25050 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
25051 (set_iv, find_interesting_uses_address, add_candidate_1): New
25052 argument to alloc_iv.
25053 (find_interesting_uses_op, find_interesting_uses_cond): Don't
25054 duplicate struct iv.
25055 (free_loop_data): Don't free struct iv explicitly.
25056 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
25058 2015-07-01 DJ Delorie <dj@redhat.com>
25060 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
25062 (SUPPORTS_DISCRIMINATOR): Define.
25064 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25067 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
25068 there are no CALLs in the same pattern.
25070 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25072 PR rtl-optimization/61047
25073 * rtlanal.c (get_initial_register_offset): New function.
25074 (rtx_addr_can_trap_p_1): Check offsets of stack references.
25076 2015-07-01 Richard Biener <rguenther@suse.de>
25078 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
25079 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
25080 ~X CMP C -> X CMP' ~C to ...
25081 * match.pd: ... patterns here.
25083 2015-07-01 Nick Clifton <nickc@redhat.com>
25085 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
25086 a 16-bit value into a 20-bit memory slot.
25088 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25090 * doc/sourcebuild.texi (AArch64-specific attributes): Document
25091 "aarch64_tiny", "aarch64_small", "aarch64_large",
25092 "aarch64_little_endian", "aarch64_big_endian".
25094 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25096 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
25097 Document "aarch64_small_fpic".
25099 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25101 * configure.ac: Add check for aarch64 assembler -fpic relocation
25103 * configure: Regenerate.
25104 * config.in: Regenerate.
25105 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
25106 to -fPIC if not support of -fpic relocation modifier in assembler.
25108 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25111 * rtl.c (classify_insn): Handle returns in PARALLELs.
25113 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
25115 PR middle-end/66633
25116 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
25117 to true if the function is nested and if not optimizing.
25118 (convert_local_omp_clauses): Initialize need_frame to true if the
25119 function contains nested functions and if not optimizing.
25121 2015-07-01 Richard Biener <rguenther@suse.de>
25123 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
25124 (X & Y) ^ Y -> ~X & Y transforms to ...
25125 * match.pd: ... here.
25127 2015-07-01 Richard Biener <rguenther@suse.de>
25129 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
25130 of converts to avoid uninteresting noise from the conversion
25131 simplifying patterns.
25133 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
25135 * config/c6x/c6x.c (try_rename_operands): Do not depend on
25136 gcc_assert evaluating its argument for side-effect.
25138 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
25141 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
25144 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25146 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
25147 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
25148 (hash_scc): Add this_ref_p and ref_p parameters and pass them
25149 to the inner DFS walk.
25151 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25153 * target-insns.def (jump): New targetm instruction pattern.
25154 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
25155 instead of gen_jump.
25156 (fix_up_crossing_landing_pad): Likewise.
25157 (add_labels_and_missing_jumps): Likewise.
25158 (fix_crossing_conditional_branches): Likewise.
25159 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25160 (force_nonfallthru_and_redirect): Likewise.
25161 * cse.c (cse_insn): Likewise.
25162 * expmed.c (expand_divmod): Likewise.
25163 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
25164 * haifa-sched.c (init_before_recovery): Likewise.
25165 (sched_create_recovery_edges): Likewise.
25166 * ifcvt.c (find_cond_trap): Likewise.
25167 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
25168 (expand_float, expand_fix): Likewise.
25169 * stmt.c (emit_jump): Likewise.
25171 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25173 * defaults.h (HAVE_load_multiple, gen_load_multiple)
25174 (HAVE_store_multiple, gen_store_multiple): Delete.
25175 * target-insns.def (load_multiple, store_multiple): New targetm
25176 instruction patterns.
25177 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
25178 of HAVE_*/gen_* interface.
25180 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25182 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
25183 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
25184 (gen_mem_signal_fence): Delete.
25185 * target-insns.def (mem_signal_fence, mem_thread_fence)
25186 (memory_barrier): New targetm instruction patterns.
25187 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
25189 (expand_mem_signal_fence): Likewise.
25191 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25193 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
25194 * target-insns.def (epilogue, prologue, sibcall_prologue): New
25195 targetm instruction patterns.
25196 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
25198 * calls.c (expand_call): Likewise.
25199 * cfgrtl.c (cfg_layout_finalize): Likewise.
25200 * df-scan.c (df_get_entry_block_def_set): Likewise.
25201 (df_get_exit_block_use_set): Likewise.
25202 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
25203 * final.c (final_start_function): Likewise.
25204 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25205 (reposition_prologue_and_epilogue_notes): Likewise.
25206 * reorg.c (find_end_label): Likewise.
25207 * toplev.c (process_options): Likewise.
25209 2015-06-30 David Malcolm <dmalcolm@redhat.com>
25211 * typed-splay-tree.h: New file.
25213 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
25216 * lra-int.h (lra_substitute_pseudo): Add a parameter.
25217 (lra_substitute_pseudo_within_insn): Ditto.
25218 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
25220 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
25221 to lra_substitute_pseudo.
25222 * lra-lives.c (process_bb_lives): Add an argument to
25223 lra_substitute_pseudo_within_insn call.
25224 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
25225 argument to lra_substitute_pseudo and
25226 lra_substitute_pseudo_within_insn calls.
25227 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
25229 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25231 * configure: Regenerated.
25233 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25235 * config.gcc: Support i[34567]86-*-elfiamcu target.
25236 * config/i386/iamcu.h: New.
25237 * config/i386/i386.opt: Add -miamcu.
25238 * doc/invoke.texi: Document -miamcu.
25239 * common/config/i386/i386-common.c (ix86_handle_option): Turn
25240 off x87/MMX/SSE/AVX codegen for -miamcu.
25241 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25242 __iamcu/__iamcu__ for -miamcu.
25243 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
25244 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
25245 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
25246 * config/i386/i386.c (ix86_option_override_internal): Ignore and
25247 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
25248 MCU by default. Default long double to 64-bit for Intel MCU.
25249 Turn on -freg-struct-return for Intel MCU. Issue an error when
25250 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
25252 (function_arg_advance_32): Pass value whose size is no larger
25253 than 8 bytes in registers for Intel MCU.
25254 (function_arg_32): Likewise.
25255 (ix86_return_in_memory): Return value whose size is no larger
25256 than 8 bytes in registers for Intel MCU.
25257 (iamcu_alignment): New function.
25258 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
25260 (ix86_local_alignment): Don't increase alignment for Intel MCU.
25261 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
25264 2015-06-30 Marek Polacek <polacek@redhat.com>
25266 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
25267 both operands of the resulting expression.
25269 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
25270 the final expression with the operand's type and then convert
25271 it to the type of the expression.
25273 2015-06-30 Richard Biener <rguenther@suse.de>
25275 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
25276 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
25277 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
25278 * match.pd: ... to patterns here.
25280 2015-06-30 Richard Biener <rguenther@suse.de>
25282 PR tree-optimization/66704
25283 * tree-vect-data-refs.c (vect_setup_realignment): Use
25284 make_ssa_name for non-SSA name source.
25286 2015-06-30 Jakub Jelinek <jakub@redhat.com>
25288 PR middle-end/66702
25289 * omp-low.c (simd_clone_adjust): Handle addressable linear
25290 or uniform parameters or non-gimple type uniform parameters.
25292 2015-06-30 Richard Biener <rguenther@suse.de>
25294 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
25295 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
25296 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
25297 * match.pd: ... here.
25298 Add a few cases of A - B -> A + (-B) when B "easily" negates.
25299 Move (x & y) | x -> x and friends before
25300 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
25302 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25304 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
25305 -mfix-ut699 is not specified.
25306 (leon3_load): Rename into...
25307 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
25310 2015-06-30 Marek Polacek <polacek@redhat.com>
25312 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
25313 * match.pd: ... here.
25315 2015-06-30 Richard Biener <rguenther@suse.de>
25317 * target-insns.def (canonicalize_funcptr_for_compare): Add.
25318 * fold-const.c (build_range_check): Replace uses of
25319 HAVE_canonicalize_funcptr_for_compare.
25320 (fold_widened_comparison): Likewise.
25321 (fold_sign_changed_comparison): Likewise.
25322 * dojump.c: Include "target.h".
25323 (do_compare_and_jump): Replace uses of
25324 HAVE_canonicalize_funcptr_for_compare and
25325 gen_canonicalize_funcptr_for_compare.
25326 * expr.c (do_store_flag): Likewise.
25328 2015-06-30 Tom de Vries <tom@codesourcery.com>
25330 PR tree-optimization/66652
25331 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
25332 max_loop_iterations to determine if nit + 1 overflows.
25334 2015-06-30 Richard Biener <rguenther@suse.de>
25336 * tree-vrp.c (register_edge_assert_for_2): Also register
25337 asserts for dominating conversion results.
25339 2015-06-30 Bin Cheng <bin.cheng@arm.com>
25341 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
25342 field in struct iv.
25344 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
25347 * configure.ac: Fix filds and fildq test for 64-bit.
25348 * configure: Regenerated.
25350 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
25352 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
25353 (nvptx_reorg): Here. Keep the non-subreg pieces.
25355 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
25357 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
25358 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25360 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
25362 * config/i386/i386.md (*jcc_1): Use %! in asm template.
25363 Set attribute "length_nobnd" instead of "length".
25366 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
25368 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
25370 * config/nios2/nios2.c (nios2_delegitimize_address): Make
25371 assert less restrictive.
25373 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
25376 * cgraphunit.c (cgraph_node::finalize_function): Do not call
25377 do_warn_unused_parameter.
25378 * function.c (do_warn_unused_parameter): Move from here.
25379 * function.h (do_warn_unused_parameter): Do not declare.
25381 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25384 * gcc.target/arm/armv-sync-comp-swap.c: New.
25385 * gcc.target/arm/armv-sync-op-acquire.c: New.
25386 * gcc.target/arm/armv-sync-op-full.c: New.
25387 * gcc.target/arm/armv-sync-op-release.c: New.
25389 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25392 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
25393 initial acquire barrier with final barrier.
25395 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25398 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
25399 initial acquire barrier with final barrier.
25401 2015-06-29 Richard Henderson <rth@redhat.com>
25403 * config/i386/constraints.md (Bf): New constraint.
25404 * config/i386/i386-c.c (ix86_target_macros): Define
25405 __GCC_ASM_FLAG_OUTPUTS__.
25406 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
25408 * doc/extend.texi (FlagOutputOperands): Document them.
25410 2015-06-29 Jiong Wang <jiong.wang@arm.com>
25412 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
25413 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
25415 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
25416 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
25417 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
25418 (aarch64_symbol_context): Ditto.
25419 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
25420 and use new pattern name.
25421 (aarch64_expand_mov_immediate): Ditto.
25422 (aarch64_print_operand): Ditto.
25423 (aarch64_classify_tls_symbol): Ditto.
25425 2015-06-29 Marek Polacek <polacek@redhat.com>
25426 Marc Glisse <marc.glisse@inria.fr>
25428 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
25429 * match.pd: ... pattern here.
25431 2015-06-29 Tom de Vries <tom@codesourcery.com>
25433 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
25434 function structure.
25436 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25438 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
25439 feature description, split out the native option, add a link to
25440 the feature documentation, rearrange and slightly rewrite text.
25441 (Aarch64 options, -mcpu): Likewise.
25442 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
25443 +rdma implies Adv. SIMD.
25445 2015-06-29 Marek Polacek <polacek@redhat.com>
25448 * function.c (stack_protect_epilogue): Remove a cast to int.
25449 * doc/invoke.texi: Update -Wswitch-bool description.
25451 2015-06-29 Richard Biener <rguenther@suse.de>
25453 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
25454 * fold-const.c (fold_binary_loc): Move &A - &B simplification
25455 via ptr_difference_const ...
25456 * match.pd: ... here.
25457 When matching (X ^ Y) == Y also match with swapped operands.
25459 2015-06-29 Richard Biener <rguenther@suse.de>
25461 * lto-streamer.h (LTO_major_version): Bump to 5.
25463 2015-06-29 Richard Biener <rguenther@suse.de>
25465 PR tree-optimization/66677
25466 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
25467 STMT_VINFO_VEC_STMT clobbering less strict.
25469 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
25471 PR middle-end/64130
25472 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
25473 division, compute max and min when value ranges for dividend and
25474 divisor are available.
25476 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
25477 Sandra Loosemore <sandra@codesourcery.com>
25479 * regrename.h (regrename_do_replace): Change to return bool.
25480 * regrename.c (rename_chains): Check return value of
25481 regname_do_replace.
25482 (regrename_do_replace): Re-validate the modified insns and
25483 return bool status.
25484 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
25485 Update to match rename_chains changes.
25486 * config/c6x/c6x.c (try_rename_operands): Assert that
25487 regrename_do_replace returns true.
25489 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
25491 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
25492 operand 2 here. Use copy_addr_to_reg to copy non-index
25493 register operand 2 to a temporary.
25494 (<mode>_stx): Ditto for operand 1.
25495 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
25496 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
25497 (ix86_store_bounds): Ditto.
25499 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
25501 * print-tree.c (print_node) [TREE_VEC]: Print its length.
25503 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
25505 * gimple.c (gimple_call_set_fndecl): Remove.
25506 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
25507 build1_loc directly instead of build_fold_addr_expr_loc.
25509 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25511 * hash-map.h (hash_map::traverse): Use the definition of the
25512 Key typedef rather than the typedef itself.
25514 2015-06-26 Martin Jambor <mjambor@suse.cz>
25517 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
25518 NULL instead of calling dump_enabled_p.
25520 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25522 * config/aarch64/aarch64.opt: (override): New.
25523 * doc/invoke.texi (override): Document.
25524 * config/aarch64/aarch64.c (aarch64_flag_desc): New
25525 (aarch64_fusible_pairs): Likewise.
25526 (aarch64_tuning_flags): Likewise.
25527 (aarch64_tuning_override_function): Likewise.
25528 (aarch64_tuning_override_functions): Likewise.
25529 (aarch64_parse_one_option_token): Likewise.
25530 (aarch64_parse_boolean_options): Likewise.
25531 (aarch64_parse_fuse_string): Likewise.
25532 (aarch64_parse_tune_string): Likewise.
25533 (aarch64_parse_one_override_token): Likewise.
25534 (aarch64_parse_override_string): Likewise.
25535 (aarch64_override_options): Parse the -override string if it
25538 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25540 * config/aarch64/aarch64-protos.h (tune_params): Remove
25541 const from members.
25542 (aarch64_tune_params): Remove const, change to no longer be
25544 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
25545 change to no longer be a pointer, initialize to generic_tunings.
25546 (aarch64_min_divisions_for_recip_mul): Change dereference of
25547 aarch64_tune_params to member access.
25548 (aarch64_reassociation_width): Likewise.
25549 (aarch64_rtx_mult_cost): Likewise.
25550 (aarch64_address_cost): Likewise.
25551 (aarch64_branch_cost): Likewise.
25552 (aarch64_rtx_costs): Likewise.
25553 (aarch64_register_move_cost): Likewise.
25554 (aarch64_memory_move_cost): Likewise.
25555 (aarch64_sched_issue_rate): Likewise.
25556 (aarch64_builtin_vectorization_cost): Likewise.
25557 (aarch64_override_options): Take a copy of the selected tuning
25558 struct in to aarch64_tune_params, rather than just setting
25559 a pointer, change dereferences of aarch64_tune_params to member
25561 (aarch64_override_options_after_change): Change dereferences of
25562 aarch64_tune_params to member access.
25563 (aarch64_macro_fusion_p): Likewise.
25564 (aarch_macro_fusion_pair_p): Likewise.
25565 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
25567 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25569 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
25570 (aarch64_tune_flags): Likewise.
25571 (AARCH64_TUNE_FMA_STEERING): Likewise.
25572 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
25573 to AARCH64_FL_USE_FMA_STEERING_PASS.
25574 (cortex-a57.cortex-a53): Likewise.
25575 (cortex-a72): Use cortexa72_tunings.
25576 (cortex-a72.cortex-a53): Likewise.
25577 (exynos-m1): Likewise.
25578 * config/aarch64/aarch64-protos.h (tune_params): Add
25579 a field: extra_tuning_flags.
25580 * config/aarch64/aarch64-tuning-flags.def: New.
25581 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
25582 (aarch64_extra_tuning_flags): Likewise.
25583 (aarch64_tune_params): Declare here.
25584 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
25585 (cortexa53_tunings): Likewise.
25586 (cortexa57_tunings): Likewise.
25587 (thunderx_tunings): Likewise.
25588 (xgene1_tunings): Likewise.
25589 (cortexa72_tunings): New.
25590 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
25591 (gate): Check against aarch64_tune_params.
25592 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
25595 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25597 * config/aarch64/aarch64-fusion-pairs.def: New.
25598 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
25599 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
25600 aarch64_fusion_pairs.
25601 (AARCH64_FUSE_MOV_MOVK): Likewise.
25602 (AARCH64_FUSE_ADRP_ADD): Likewise.
25603 (AARCH64_FUSE_MOVK_MOVK): Likewise.
25604 (AARCH64_FUSE_ADRP_LDR): Likewise.
25605 (AARCH64_FUSE_CMP_BRANCH): Likewise.
25607 2015-06-26 Jiong Wang <jiong.wang@arm.com>
25609 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
25610 SYMBOL_SMALL_GOT_28K.
25611 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
25612 relocation modifiers.
25613 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
25614 (ldr_got_small_28k_<mode>): New.
25615 (ldr_got_small_28k_sidi): New.
25616 * config/aarch64/iterators.md (got_modifier): New mode iterator.
25617 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
25618 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
25619 SYMBOL_SMALL_GOT_28K.
25620 (aarch64_rtx_costs): Add costs for new instruction sequences.
25621 (initialize_aarch64_code_model): Initialize new model.
25622 (aarch64_classify_symbol): Recognize new model and new symbol classification.
25623 (aarch64_asm_preferred_eh_data_format): Support new model.
25624 (aarch64_load_symref_appropriately): Generate new instruction
25625 sequences for -fpic.
25626 (TARGET_USE_PSEUDO_PIC_REG): New definition.
25627 (aarch64_use_pseudo_pic_reg): New function.
25629 2015-06-26 Jiong Wang <jiong.wang@arm.com>
25631 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
25632 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
25633 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
25634 (aarch64_expand_mov_immediate): Ditto.
25635 (aarch64_print_operand): Ditto.
25636 (aarch64_classify_symbol): Ditto.
25638 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
25640 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
25642 2015-06-26 Bin Cheng <bin.cheng@arm.com>
25645 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
25646 assertion failed. Remove assertion itself.
25648 2015-06-26 Richard Biener <rguenther@suse.de>
25650 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
25651 and -A CMP CST -> A CMP -CST which is redundant with a pattern
25653 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
25654 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
25655 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
25656 * match.pd: ... patterns here.
25658 2015-06-26 Marek Polacek <polacek@redhat.com>
25660 * match.pd ((x | y) & ~(x & y) -> x ^ y,
25661 (x | y) & (~x ^ y) -> x & y): New patterns.
25663 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25665 * rtl.h (emit): Add an optional boolean parameter to control
25666 whether barriers are emitted.
25667 * emit-rtl.c (emit): Likewise.
25668 * gensupport.c (get_emit_function): Return null rather than "emit".
25669 * genemit.c (gen_emit_seq): Handle the null return value.
25670 Don't emit barriers after the final instruction in the sequence.
25671 * gentarget-def.c (main): Don't emit barriers after the instruction.
25673 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25675 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
25676 TARGET_UNIFIED_ASM.
25678 2015-06-26 Richard Biener <rguenther@suse.de>
25680 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
25682 2015-06-26 Richard Biener <rguenther@suse.de>
25684 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
25685 irrespective on whether the inner operation has a single use
25686 of both off are constant.
25688 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
25689 Segher Boessenkool <segher@kernel.crashing.org>
25692 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
25693 before doing PUT_MODE or PUT_CODE on operands to avoid
25694 in-place RTX modification.
25696 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
25698 * gentarget-def.c (def_target_insn): Cast return of strtol to
25701 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25703 * gimple.h (gimple_call_set_fn): Move inline function.
25704 * gimple.c (gimple_call_set_fn): Relocate here.
25706 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
25710 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
25711 the replacement insn will work.
25713 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
25715 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
25718 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25720 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
25721 * cgraph.h: Include ipa-ref.h and plugin-api.h.
25722 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
25723 (symtab_node::address_can_be_compared_p): Move function.
25724 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
25726 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
25727 * auto-profile.c: Likewise.
25728 * bb-reorder.c: Likewise.
25729 * builtins.c: Likewise.
25730 * calls.c: Likewise.
25731 * cfgexpand.c: Likewise.
25732 * cgraphbuild.c: Likewise.
25733 * cgraphclones.c: Likewise.
25734 * cgraphunit.c: Likewise.
25735 * combine.c: Likewise.
25736 * coverage.c: Likewise.
25737 * data-streamer-in.c: Likewise.
25738 * data-streamer-out.c: Likewise.
25739 * data-streamer.c: Likewise.
25740 * dbxout.c: Likewise.
25741 * dwarf2out.c: Likewise.
25742 * except.c: Likewise.
25743 * expr.c: Likewise.
25744 * final.c: Likewise.
25745 * fold-const.c: Likewise.
25746 * ggc-page.c: Likewise.
25747 * gimple-fold.c: Likewise.
25748 * gimple-iterator.c: Likewise.
25749 * gimple-pretty-print.c: Likewise.
25750 * gimple-streamer-in.c: Likewise.
25751 * gimple-streamer-out.c: Likewise.
25752 * gimple.c: Likewise.
25753 * gimplify.c: Likewise.
25754 * ipa-chkp.c: Likewise.
25755 * ipa-comdats.c: Likewise.
25756 * ipa-cp.c: Likewise.
25757 * ipa-devirt.c: Likewise.
25758 * ipa-icf-gimple.c: Likewise.
25759 * ipa-icf.c: Likewise.
25760 * ipa-inline-analysis.c: Likewise.
25761 * ipa-inline-transform.c: Likewise.
25762 * ipa-inline.c: Likewise.
25763 * ipa-polymorphic-call.c: Likewise.
25764 * ipa-profile.c: Likewise.
25765 * ipa-prop.c: Likewise.
25766 * ipa-pure-const.c: Likewise.
25767 * ipa-ref.c: Likewise.
25768 * ipa-reference.c: Likewise.
25769 * ipa-split.c: Likewise.
25770 * ipa-utils.c: Likewise.
25771 * ipa-visibility.c: Likewise.
25773 * langhooks.c: Likewise.
25774 * lto-cgraph.c: Likewise.
25775 * lto-compress.c: Likewise.
25776 * lto-opts.c: Likewise.
25777 * lto-section-in.c: Likewise.
25778 * lto-section-out.c: Likewise.
25779 * lto-streamer-in.c: Likewise.
25780 * lto-streamer-out.c: Likewise.
25781 * lto-streamer.c: Likewise.
25782 * omp-low.c: Likewise.
25783 * opts-global.c: Likewise.
25784 * passes.c: Likewise.
25785 * predict.c: Likewise.
25786 * print-tree.c: Likewise.
25787 * profile.c: Likewise.
25789 * sanopt.c: Likewise.
25790 * stor-layout.c: Likewise.
25791 * symtab.c: Likewise.
25792 * toplev.c: Likewise.
25793 * trans-mem.c: Likewise.
25794 * tree-cfg.c: Likewise.
25795 * tree-chkp.c: Likewise.
25796 * tree-eh.c: Likewise.
25797 * tree-emutls.c: Likewise.
25798 * tree-inline.c: Likewise.
25799 * tree-nested.c: Likewise.
25800 * tree-parloops.c: Likewise.
25801 * tree-pretty-print.c: Likewise.
25802 * tree-profile.c: Likewise.
25803 * tree-sra.c: Likewise.
25804 * tree-ssa-alias.c: Likewise.
25805 * tree-ssa-live.c: Likewise.
25806 * tree-ssa-loop-ivcanon.c: Likewise.
25807 * tree-ssa-loop-ivopts.c: Likewise.
25808 * tree-ssa-pre.c: Likewise.
25809 * tree-ssa-sccvn.c: Likewise.
25810 * tree-ssa-strlen.c: Likewise.
25811 * tree-ssa-structalias.c: Likewise.
25812 * tree-streamer-in.c: Likewise.
25813 * tree-streamer-out.c: Likewise.
25814 * tree-streamer.c: Likewise.
25815 * tree-switch-conversion.c: Likewise.
25816 * tree-tailcall.c: Likewise.
25817 * tree-vect-data-refs.c: Likewise.
25818 * tree-vect-stmts.c: Likewise.
25819 * tree-vectorizer.c: Likewise.
25820 * tree.c: Likewise.
25821 * tsan.c: Likewise.
25822 * ubsan.c: Likewise.
25823 * value-prof.c: Likewise.
25824 * varasm.c: Likewise.
25825 * varpool.c: Likewise.
25826 * config/arm/arm.c: Likewise.
25827 * config/bfin/bfin.c: Likewise.
25828 * config/c6x/c6x.c: Likewise.
25829 * config/cris/cris.c: Likewise.
25830 * config/darwin-c.c: Likewise.
25831 * config/darwin.c: Likewise.
25832 * config/i386/i386.c: Likewise.
25833 * config/i386/winnt.c: Likewise.
25834 * config/microblaze/microblaze.c: Likewise.
25835 * config/mips/mips.c: Likewise.
25836 * config/rs6000/rs6000.c: Likewise.
25837 * config/rx/rx.c: Likewise.
25838 * config/s390/s390.c: Likewise.
25839 * config/tilegx/mul-tables.c: Likewise.
25841 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25843 * config/aarch64/aarch64.c, config/alpha/alpha.c,
25844 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
25845 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
25846 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
25847 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25848 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25849 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25850 config/microblaze/microblaze.c, config/mips/mips.c,
25851 config/mmix/mmix.c, config/mn10300/mn10300.c,
25852 config/moxie/moxie.c, config/msp430/msp430.c,
25853 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25854 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25855 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25856 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25857 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25858 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25859 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
25860 target-def.h include.
25861 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
25863 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25865 * Makefile.in (TARGET_DEF): Add target-insns.def.
25866 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
25867 (build/gentarget-def.o): New rule.
25868 (genprogrtl): Add target-def.
25869 * target-insns.def, gentarget-def.c: New files.
25870 * target.def: Add targetm.have_* and targetm.gen_* hooks,
25871 based on the contents of target-insns.def.
25872 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
25873 (HAVE_return, gen_return): Delete.
25874 * target-def.h: Include insn-target-def.h.
25875 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
25876 instead of direct calls. Rely on them to do the appropriate assertions.
25877 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
25878 (convert_jumps_to_returns): Use targetm interface instead of
25880 (thread_prologue_and_epilogue_insns): Likewise.
25881 * reorg.c (find_end_label, dbr_schedule): Likewise.
25882 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
25883 * shrink-wrap.c (convert_to_simple_return): Likewise.
25884 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
25886 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25888 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
25889 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25890 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
25891 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
25892 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25893 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25894 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25895 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
25896 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
25897 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25898 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25899 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25900 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25901 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25902 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25903 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
25906 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25908 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
25909 (unbounded_int_hashmap_traits::key_type): Likewise.
25910 * hash-map.h (hash_map): Get the key type from the traits.
25911 * hash-traits.h (default_hash_traits): By default, inherit from the
25912 template parameter.
25913 * alias.c (alias_set_traits): Delete.
25914 (alias_set_entry_d::children): Use alias_set_hash as the first
25915 template parameter.
25916 (record_alias_subset): Update accordingly.
25917 * except.c (tree_hash_traits): Delete.
25918 (type_to_runtime_map): Use tree_hash as the first template parameter.
25919 (init_eh): Update accordingly.
25920 * genmatch.c (capture_id_map_hasher): Delete.
25921 (cid_map_t): Use nofree_string_hash as first template parameter.
25922 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
25923 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25924 Use symbol_compare_hash as the first template parameter in
25925 subdivide_hash_map.
25926 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
25927 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
25928 template parameter.
25929 * passes.c (pass_registry_hasher): Delete.
25930 (name_to_pass_map): Use nofree_string_hash as the first template
25932 (register_pass_name): Update accordingly.
25933 * sanopt.c (sanopt_tree_map_traits): Delete.
25934 (sanopt_tree_triplet_map_traits): Delete.
25935 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
25936 template parameter.
25937 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
25938 the first template parameter.
25939 * sese.c (rename_map_hasher): Delete.
25940 (rename_map_type): Use tree_ssa_name_hash as the first template
25942 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
25943 (function_summary::m_map): Use map_hash as the first template
25945 (function_summary::release): Update accordingly.
25946 * tree-if-conv.c (phi_args_hash_traits): Delete.
25947 (predicate_scalar_phi): Use tree_operand_hash as the first template
25948 parameter to phi_arg_map.
25949 * tree-inline.h (dependence_hasher): Delete.
25950 (copy_body_data::dependence_map): Use dependence_hash as the first
25951 template parameter.
25952 * tree-inline.c (remap_dependence_clique): Update accordingly.
25953 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
25954 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
25956 (addr_stridxptr): Update accordingly.
25957 * value-prof.c (profile_id_traits): Delete.
25958 (cgraph_node_map): Use profile_id_hash as the first template
25960 (init_node_map): Update accordingly.
25961 * config/alpha/alpha.c (string_traits): Delete.
25962 (machine_function::links): Use nofree_string_hash as the first
25963 template parameter.
25964 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
25965 * config/m32c/m32c.c (pragma_traits): Delete.
25966 (pragma_htab): Use nofree_string_hash as the first template parameter.
25967 (m32c_note_pragma_address): Update accordingly.
25968 * config/mep/mep.c (pragma_traits): Delete.
25969 (pragma_htab): Use nofree_string_hash as the first template parameter.
25970 (mep_note_pragma_flag): Update accordingly.
25971 * config/mips/mips.c (mips16_flip_traits): Delete.
25972 (mflip_mips16_htab): Use nofree_string_hash as the first template
25974 (mflip_mips16_use_mips16_p): Update accordingly.
25975 (local_alias_traits): Delete.
25976 (mips16_local_aliases): Use nofree_string_hash as the first template
25978 (mips16_local_alias): Update accordingly.
25980 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25982 * hash-map-traits.h (default_hashmap_traits): Delete.
25984 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25986 * hash-map-traits.h (unbounded_hashmap_traits): New class.
25987 (unbounded_int_hashmap_traits): Likewise.
25988 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
25990 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25992 * ipa-icf.h (symbol_compare_hash): New class.
25993 (symbol_compare_hashmap_traits): Use it.
25994 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
25995 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
25996 (mem_alloc_description::reverse_mem_map_t): Remove redundant
25997 default_hashmap_traits.
25998 * sanopt.c (sanopt_tree_triplet_hash): New class.
25999 (sanopt_tree_triplet_map_traits): Use it.
26001 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26003 * gengtype-parse.c (require_template_declaration): Allow '+' in
26004 template parameters. Consolidate cases.
26005 * hash-traits.h (int_hash): New class.
26006 * alias.c (alias_set_hash): New structure.
26007 (alias_set_traits): Use it.
26008 * symbol-summary.h (function_summary::map_hash): New class.
26009 (function_summary::summary_hashmap_traits): Use it.
26010 * tree-inline.h (dependence_hash): New class.
26011 (dependence_hasher): Use it.
26012 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
26013 * value-prof.c (profile_id_hash): New class.
26014 (profile_id_traits): Use it.
26016 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26018 * config/mips/mips.c (mips16_flip_traits): Use it.
26019 (local_alias_traits, mips16_local_aliases): Convert from a map of
26020 rtxes to a map of symbol names.
26021 (mips16_local_alias): Update accordingly.
26023 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26025 * hash-traits.h (string_hash, nofree_string_hash): New classes.
26026 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
26027 * passes.c (pass_registry_hasher): Likewise.
26028 * config/alpha/alpha.c (string_traits): Likewise.
26029 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
26030 * config/m32c/m32c.c (pragma_traits): Likewise.
26031 * config/mep/mep.c (pragma_traits): Likewise.
26033 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26035 * tree-hash-traits.h (tree_hash): New class.
26036 * except.c: Include tree-hash-traits.h.
26037 (tree_hash_traits): Use tree_hash.
26039 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26041 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
26042 * sese.c: Include tree-hash-traits.h.
26043 (rename_map_hasher): Use tree_ssa_name_hasher.
26045 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26047 * tree-hash-traits.h (tree_decl_hash): New class.
26048 * tree-ssa-strlen.c: Include tree-hash-traits.h.
26049 (stridxlist_hash_traits): Use tree_decl_hash.
26051 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26053 * tree-hash-traits.h: New file.
26054 (tree_operand_hash): New class.
26055 * sanopt.c: Include tree-hash-traits.h.
26056 (sanopt_tree_map_traits): Use tree_operand_hash.
26057 * tree-if-conv.c: Include tree-hash-traits.h.
26058 (phi_args_hash_traits): Use tree_operand_hash.
26059 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
26060 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
26062 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26064 * hash-map-traits.h: Include hash-traits.h.
26065 (simple_hashmap_traits): New class.
26066 * mem-stats.h (hash_map): Change the default traits to
26067 simple_hashmap_traits<default_hash_traits<Key> >.
26069 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26071 * hash-table.h: Update comments.
26073 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26075 * hash-traits.h (default_hash_traits): New structure.
26076 * hash-set.h (default_hashset_traits): Delete.
26077 (hash_set): Use default_hash_traits<Key> instead of
26078 default_hashset_traits. Delete hash_entry type and use Key directly.
26079 * ipa-devirt.c (pair_traits): Delete.
26080 (default_hash_traits <type_pair>): Override.
26081 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
26082 (odr_types_equivalent_p, add_type_duplicate): Likewise.
26084 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26086 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
26088 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26090 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
26091 (has_is_empty, is_empty_helper): Delete.
26092 (has_mark_deleted, mark_deleted_helper): Delete.
26093 (has_mark_empty, mark_empty_helper): Delete.
26094 (hash_table::is_deleted): Call the Descriptor unconditionally.
26095 (hash_table::is_empty): Likewise.
26096 (hash_table::mark_deleted): Likewise.
26097 (hash_table::mark_empty): Likewise.
26099 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26101 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
26102 redundant typedefs and members.
26103 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
26104 redundant typedefs.
26105 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
26106 * ipa-devirt.c (odr_name_hasher): Likewise.
26107 (polymorphic_call_target_hasher): Likewise.
26108 * ira-costs.c (cost_classes_hasher): Likewise.
26109 * statistics.c (stats_counter_hasher): Likewise.
26110 * trans-mem.c (log_entry_hasher): Likewise.
26111 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
26112 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
26113 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
26114 * var-tracking.c (variable_hasher): Likewise.
26115 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
26116 Remove redundant typedefs and members.
26118 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26120 * hash-traits.h (ggc_cache_hasher): Rename to...
26121 (ggc_cache_remove): ...this and remove typedefs.
26122 (ggc_cache_ptr_hash): New class.
26123 * hash-table.h: Update commentary.
26124 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
26125 rather than ggc_cache_hasher.
26126 (const_wide_int_hasher, reg_attr_hasher): Likewise.
26127 (const_double_hasher, const_fixed_hasher): Likewise.
26128 * function.c (insn_cache_hasher): Likewise.
26129 * trans-mem.c (tm_wrapper_hasher): Likewise.
26130 * tree.h (tree_decl_map_cache_hasher): Likewise.
26131 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
26132 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
26133 * ubsan.c (tree_type_map_cache_hasher): Likewise.
26134 * varasm.c (tm_clone_hasher): Likewise.
26135 * config/i386/i386.c (dllimport_hasher): Likewise.
26136 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
26137 (tree_hasher): Likewise.
26139 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26141 * hash-traits.h (ggc_hasher): Rename to...
26142 (ggc_remover): ...this and remove typedefs.
26143 (ggc_cache_hasher): Update accordingly. Add typedefs.
26144 (ggc_ptr_hash): New class.
26145 * hash-table.h: Update comment.
26146 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
26148 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
26149 (tree_descriptor_hasher): Likewise.
26150 * cgraph.c (function_version_hasher): Likewise.
26151 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
26152 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
26153 (dw_loc_list_hasher, addr_hasher): Likewise.
26154 * function.h (used_type_hasher): Likewise.
26155 * function.c (temp_address_hasher): Likewise.
26156 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
26157 * libfuncs.h (libfunc_hasher): Likewise.
26158 * lto-streamer.h (decl_state_hasher): Likewise.
26159 * optabs.c (libfunc_decl_hasher): Likewise.
26160 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
26161 * varasm.c (section_hasher, object_block_hasher): Likewise.
26162 (const_rtx_desc_hasher): Likewise.
26163 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
26164 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
26166 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26168 * hash-traits.h (free_ptr_hash): New class.
26169 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
26170 rather than typed_free_remove. Remove redudant typedefs.
26171 (external_ref_hasher): Likewise.
26172 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
26173 (ehspec_hasher): Likewise.
26174 * ggc-common.c (saving_hasher): Likewise.
26175 * gimplify.c (gimplify_hasher): Likewise.
26176 * haifa-sched.c (delay_i2_hasher): Likewise.
26177 * loop-invariant.c (invariant_expr_hasher): Likewise.
26178 * loop-iv.c (biv_entry_hasher): Likewise.
26179 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
26180 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
26181 * tree-cfg.c (locus_discrim_hasher): Likewise.
26182 * tree-eh.c (finally_tree_hasher): Likewise.
26183 * tree-into-ssa.c (var_info_hasher): Likewise.
26184 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
26185 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
26186 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
26187 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
26188 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
26189 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
26190 (shared_bitmap_hasher): Likewise.
26191 * tree-ssa-threadupdate.c (redirection_data): Likewise.
26192 * tree-vectorizer.h (peel_info_hasher): Likewise.
26193 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
26194 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
26196 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26198 * hash-table.h: Update comments.
26199 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
26200 (nofree_ptr_hash): New class.
26201 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
26202 than typed_noop_remove. Remove redudant typedefs.
26203 * attribs.c (attribute_hasher): Likewise.
26204 * cfg.c (bb_copy_hasher): Likewise.
26205 * cselib.c (cselib_hasher): Likewise.
26206 * dse.c (invariant_group_base_hasher): Likewise.
26207 * dwarf2cfi.c (trace_info_hasher): Likewise.
26208 * dwarf2out.c (macinfo_entry_hasher): Likewise.
26209 (comdat_type_hasher, loc_list_hasher): Likewise.
26210 * gcse.c (pre_ldst_expr_hasher): Likewise.
26211 * genmatch.c (id_base): Likewise.
26212 * genrecog.c (test_pattern_hasher): Likewise.
26213 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
26214 * haifa-sched.c (delay_i1_hasher): Likewise.
26215 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
26216 * ipa-icf.h (congruence_class_group_hash): Likewise.
26217 * ipa-profile.c (histogram_hash): Likewise.
26218 * ira-color.c (allocno_hard_regs_hasher): Likewise.
26219 * lto-streamer.h (string_slot_hasher): Likewise.
26220 * lto-streamer.c (tree_entry_hasher): Likewise.
26221 * plugin.c (event_hasher): Likewise.
26222 * postreload-gcse.c (expr_hasher): Likewise.
26223 * store-motion.c (st_expr_hasher): Likewise.
26224 * tree-sra.c (uid_decl_hasher): Likewise.
26225 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
26226 (ssa_name_var_hash): Likewise.
26227 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
26228 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
26229 * tree-ssa-pre.c (pre_expr_d): Likewise.
26230 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
26231 * vtable-verify.h (registration_hasher): Likewise.
26232 * vtable-verify.c (vtbl_map_hasher): Likewise.
26233 * config/arm/arm.c (libcall_hasher): Likewise.
26234 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
26235 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
26236 * config/sol2.c (comdat_entry_hasher): Likewise.
26237 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
26238 (print_fold_checksum, fold_checksum_tree): Likewise.
26239 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
26240 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
26241 (fold_build_call_array_loc): Likewise.
26242 * tree-ssa-ccp.c (gimple_htab): Likewise.
26243 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
26244 rather than pointer_type.
26246 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26248 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
26249 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
26251 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26253 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
26254 (ggc_hasher::ggc_mx): Likewise.
26255 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
26256 that duplicate ggc_hasher ones.
26258 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26260 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
26261 (gt_cleare_cache): Check here for deleted and empty entries.
26262 Replace handle_cache_entry with a call to keep_cache_entry.
26263 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
26264 (ggc_cache_hasher::keep_cache_entry): New function.
26265 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
26266 (tm_wrapper_hasher::keep_cache_entry): New function.
26267 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
26268 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26269 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
26270 (type_cache_hasher::keep_cache_entry): New function.
26271 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
26272 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26273 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
26274 (tree_type_map_cache_hasher::keep_cache_entry): New function.
26275 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
26276 (tm_clone_hasher::keep_cache_entry): New function.
26277 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
26278 (dllimport_hasher::keep_cache_entry): New function.
26280 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26282 * hash-table.h: Include hash-traits.h.
26283 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
26284 (ggc_cache_hasher): Move to...
26285 * hash-traits.h: ...this new file.
26287 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26289 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
26290 struct cl_optimization.
26291 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
26292 * tree.c (make_node_stat): Allocate cl_optimization struct.
26293 (copy_node_stat): Allocate and copy cl_optimization struct.
26295 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26297 * function.h (struct incoming_args): Move struct.
26298 (pass_by_reference, reference_callee_copied): Remove prototypes.
26299 * emit-rtl.h (struct incoming_args): Relocate struct here.
26300 * calls.h (pass_by_reference, reference_callee_copied): Relocate
26302 * function.c (pass_by_reference, reference_callee_copied): Move.
26303 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
26304 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
26305 * ipa-chkp.c: Include calls.h.
26307 2015-06-25 Andrew Macleod <amacleod@redhat.com>
26309 * alias.h (alias_set_type): Move typedef.
26310 * coretypes.h (alias_set_type): Relocate typedef here.
26311 * rtl.h: Don't include alias.h.
26313 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26315 * cgraph.h (cgraph_rtl_info): Move to rtl.h
26316 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
26318 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
26319 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
26321 * calls.c: Include hard-reg-set.h before rtl.h.
26324 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26325 Vladimir Makarov <vmakarov@redhat.com>
26327 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
26330 2015-06-25 Richard Biener <rguenther@suse.de>
26332 * fold-const.c (fold_binary_loc): Move simplification of
26333 (X <<>> C1) & C2 ...
26334 * match.pd: ... here.
26336 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
26338 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
26340 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26342 * match.pd: Add patterns for vec_conds between 1 and 0.
26344 2015-06-25 Richard Biener <rguenther@suse.de>
26346 * tree-vect-stmts.c (vectorizable_conversion): Do not set
26347 STMT_VINFO_VEC_STMT for SLP.
26348 (vectorizable_store): Likewise.
26349 (vectorizable_load): Likewise.
26350 (vect_transform_stmt): Catch SLP vectorization clobbering
26351 STMT_VINFO_VEC_STMT.
26353 2015-06-25 Richard Biener <rguenther@suse.de>
26355 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
26357 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
26358 cleanup resulting dead code and parameters.
26359 (vect_transform_slp_perm_load): Adjust.
26361 2015-06-25 Nick Clifton <nickc@redhat.com>
26363 * config/bfin/bfin.c (bfin_expand_prologue): Set
26364 current_function_static_stack_size if flag_stack_usage_info is set.
26365 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
26366 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
26367 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
26368 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
26370 2015-06-25 Tom de Vries <tom@codesourcery.com>
26372 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
26373 comment that the generated IV is unsigned.
26375 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26378 * config/arm/arm.c (arm_dbx_register_number): Return
26379 DWARF_FRAME_REGISTERS by default.
26381 2015-06-25 Tom de Vries <tom@codesourcery.com>
26383 * dominance.c (calculate_dominance_info): Fix verify_dominators call
26384 argument. Call verify_dominator when reusing dominator info.
26386 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
26389 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
26390 an additional element of the unspec vector. Modify indices
26392 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
26393 * config/sh/sh.c (prepare_move_operands): Pass incremented
26394 const_int to gen_GOTaddr2picreg.
26395 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
26397 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26399 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
26400 Condition on TARGET_FLOAT.
26402 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26404 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
26407 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26409 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
26411 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
26412 aarch64_err_no_fpadvsimd.
26414 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
26415 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
26416 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
26417 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
26418 Turn error into assert, test TARGET_FLOAT.
26419 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
26422 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
26425 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
26427 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
26429 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
26431 2015-06-24 Renlin Li <renlin.li@arm.com>
26433 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
26434 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
26436 2015-06-24 Richard Biener <rguenther@suse.de>
26438 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
26440 (lower_opt_convert): Support lowering of conditional view_convert.
26441 (parser::parse_operation): Likewise.
26442 (parser::parse_for): Likewise.
26444 2015-06-24 Renlin Li <renlin.li@arm.com>
26446 * varasm.c (emit_local): Use unsigned int for align variable.
26448 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26451 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
26452 for negative numbers.
26454 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26456 PR rtl-optimization/66306
26457 * reload.c (find_reloads): Swap the match_dup info for
26458 commutative operands.
26460 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26462 * config/s390/vx-builtins.md
26463 ("vec_scatter_element<mode>_<non_vec_int>")
26464 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
26465 attribute with bhfgq.
26467 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26469 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
26471 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26473 * config/s390/s390-builtin-types.def: Add flag to indicate the
26474 options under which the function type is needed.
26475 * config/s390/s390-builtins.def: Add flag to indicate the options
26476 under which the builtin is enabled.
26477 * config/s390/s390-builtins.h: Add flags parameter to macro
26479 (bflags_for_builtin): New function.
26480 (flags_for_builtin): Renamed to ...
26481 (opflags_for_builtin): ... this.
26482 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
26483 flags_for_builtin to bflags_for_builtin and
26484 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
26485 * config/s390/s390.c: Add initialization of bflags_builtin and
26486 opflags_builtin arrays.
26487 Remove code for flags_builtin.
26488 (s390_init_builtins): Only create builtin function types if one of
26489 their flags is active.
26490 Only create builtins if all of their flags are active.
26491 (s390_expand_builtin): Rename flags_for_builtin to
26492 opflags_for_builtin.
26494 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26496 * config/s390/vecintrin.h: Remove internal builtins.
26498 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26500 * config/s390/s390.c (s390_secondary_reload): Fix check for
26501 GENERAL_REGS register class.
26503 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26505 * config/s390/s390.c (s390_support_vector_misalignment): Call
26506 default implementation for !TARGET_VX.
26508 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26510 * config/s390/s390.c (s390_legitimate_constant_p): Add
26513 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26515 * config/s390/s390.c (s390_vector_abi): New variable definition.
26516 (s390_check_type_for_vector_abi): New function.
26517 (TARGET_ASM_FILE_END): New macro definition.
26518 (s390_asm_file_end): New function.
26519 (s390_function_arg): Call s390_check_type_for_vector_abi.
26520 (s390_gimplify_va_arg): Likewise.
26521 * configure: Regenerate.
26522 * configure.ac: Check for .gnu_attribute Binutils feature.
26524 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
26527 * config/bfin/bfin.c (hwloop_optimize): Initialize
26528 JUMP_LABEL for newly created jump.
26530 2015-06-23 Tristan Gingold <gingold@adacore.com>
26532 * collect-utils.c (collect_wait): Unlink the response file here
26534 (do_wait): ...here.
26535 (utils_cleanup): ...and here.
26537 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
26539 * df-scan.c: Don't include target-def.h.
26540 * targhooks.c: Likewise.
26541 * config/arm/arm-c.c: Likewise.
26542 * config/i386/i386-c.c: Likewise.
26543 * config/nds32/nds32-cost.c: Likewise.
26544 * config/nds32/nds32-fp-as-gp.c: Likewise.
26545 * config/nds32/nds32-intrinsic.c: Likewise.
26546 * config/nds32/nds32-isr.c: Likewise.
26547 * config/nds32/nds32-md-auxiliary.c: Likewise.
26548 * config/nds32/nds32-memory-manipulation.c: Likewise.
26549 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26550 * config/nds32/nds32-predicates.c: Likewise.
26552 2015-06-23 Richard Biener <rguenther@suse.de>
26554 PR tree-optimization/66636
26555 * tree-vect-stmts.c (vectorizable_store): Properly compute the
26556 def type for further defs for strided stores.
26558 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
26560 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
26561 conditional selects.
26562 (setcc_int<mode>, setcc_float<mode>): Reformat.
26564 2015-06-23 Marek Polacek <polacek@redhat.com>
26566 * match.pd ((x + y) - (x | y) -> x & y,
26567 (x + y) - (x & y) -> x | y): New patterns.
26569 2015-06-23 Ludovic Courtès <ludo@gnu.org>
26572 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
26573 '-dynamic-linker' within %{!shared: ...}.
26575 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
26578 * config/i386/predicates.md (addsub_vm_operator): New predicate.
26579 (addsub_vs_operator): Ditto.
26580 (addsub_vs_parallel): Ditto.
26581 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
26582 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
26583 Put minus RTX before plus and adjust vec_merge selector.
26584 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
26585 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
26586 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
26587 (addsub vec_merge splitters): New combiner splitters.
26588 (addsub vec_select/vec_concat splitters): Ditto.
26590 2015-06-23 Bin Cheng <bin.cheng@arm.com>
26592 PR tree-optimization/66449
26593 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
26594 POINTER_PLUS_EXPR for pointers.
26596 2015-06-23 Alan Modra <amodra@gmail.com>
26598 * rtlanal.c (commutative_operand_precedence): Correct comments.
26599 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
26600 declaration. Return an int. Distinguish REG,REG return from
26602 (struct simplify_plus_minus_op_data): Make local to function.
26603 (simplify_plus_minus): Don't set canonicalized if merely sorting
26604 registers. Avoid packing ops if nothing changes. White space fixes.
26606 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
26608 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
26609 -fdump-ada-spec is passed but not if -fsyntax-only is.
26611 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
26614 * lra-lives.c (process_bb_lives): Check insn copying the same
26615 reload pseudo and don't create a copy for it.
26617 2015-06-22 Tom de Vries <tom@codesourcery.com>
26619 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
26622 2015-06-22 Tom de Vries <tom@codesourcery.com>
26624 * builtins.def (DEF_GOMP_BUILTIN): Test
26625 'flag_tree_parallelize_loops > 1' instead of
26626 'flag_tree_parallelize_loops'. Test flag_cilkplus.
26628 2015-06-22 Tom de Vries <tom@codesourcery.com>
26630 * dominance.c (calculate_dominance_info): Verify dominators if
26633 2015-06-22 Marek Polacek <polacek@redhat.com>
26635 * match.pd ((x ^ y) ^ (x | y) -> x & y,
26636 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
26637 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
26638 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
26640 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
26643 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
26644 cost of embedded comparison.
26646 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26649 * config/rs6000/predicates.md (altivec_register_operand): Permit
26650 virtual stack registers.
26651 (vsx_register_operand): Likewise.
26652 (vfloat_operand): Likewise.
26653 (vint_operand): Likewise.
26654 (vlogical_operand): Likewise.
26656 2015-06-22 Richard Biener <rguenther@suse.de>
26658 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
26659 and single_scalar_iteration_cost members.
26660 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
26661 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
26662 (vect_get_single_scalar_iteration_cost): Remove.
26663 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26664 Use LOOP_VINFO_SCALAR_ITERATION_COST.
26665 * tree-vect-loop.c (destroy_loop_vec_info): Free
26667 (vect_get_single_scalar_iteration_cost): Compute result into
26668 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
26669 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
26670 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
26671 (vect_estimate_min_profitable_iters): Use them.
26673 2015-06-22 Christian Bruel <christian.bruel@st.com>
26676 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
26677 (TARGET_INSERT_ATTRIBUTES): Define.
26678 (thumb_flipper): New var.
26679 * config/arm/arm.opt (-mflip-thumb): New switch.
26681 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
26682 Martin Liska <mliska@suse.cz>
26685 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
26686 construction of arg_types.
26687 (sem_function::sem_function): Likewise.
26688 (sem_function::~sem_function): Remove destruction of arg_types.
26689 (sem_function::compatible_parm_types_p): New function.
26690 (sem_function::equals_wpa): Reorg matching of return values
26691 and parameter types.
26692 (sem_function::equals_private): Reorg mathcing of argument types.
26693 (sem_function::parse_tree_args): Remove.
26694 * ipa-icf.h (init_wpa): Do not call it.
26695 (parse_tree_args): Remove.
26696 (compatible_parm_types_p): Declare.
26697 (result_type): Remove.
26698 (arg_types): Remove.
26700 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
26703 * ipa-polymorphic-call.c
26704 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
26705 initializing alias oracle; fix formating; set base_alias_set if it
26708 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
26710 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
26711 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
26712 (find_inc): Likewise.
26713 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
26715 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
26716 * df-scan.c (df_swap_refs): Remove.
26717 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
26718 * dominance.c (link_roots): Use std::swap instead of manually swapping.
26719 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
26720 * fold-const.c (fold_relational_const): Likewise.
26721 * genattrtab.c (simplify_test_exp): Likewise.
26722 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
26723 gimple_simplify): Likewise.
26724 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
26725 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
26726 * ipa-devirt.c (add_type_duplicate): Likewise.
26727 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
26728 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
26729 * lra.c (lra_create_copy): Likewise.
26730 * lto-streamer-out.c (DFS::DFS): Likewise.
26731 * modulo-sched.c (get_sched_window): Likewise.
26732 * omega.c (omega_pretty_print_problem): Likewise.
26733 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
26734 * reload1.c (reloads_unique_chain_p): Likewise.
26735 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
26736 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
26738 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
26740 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
26741 predicate_mem_writes): Likewise.
26742 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
26743 * tree-predcom.c (combine_chains): Likewise.
26744 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
26745 refs_may_alias_p_1): Likewise.
26746 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
26747 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
26748 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
26749 number_of_iterations_cond): Likewise.
26750 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26751 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
26752 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
26753 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
26754 * tree-vrp.c (extract_range_from_binary_expr_1,
26755 extract_range_from_unary_expr_1): Likewise.
26757 2015-06-20 Marek Polacek <polacek@redhat.com>
26759 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
26761 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
26764 * config/sh/sh.c (prepare_move_operands): Replace subreg
26765 index term with R0 for base and index addressing.
26767 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
26769 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
26771 (movsf_aarch64): Change condition from register_operand to
26772 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
26773 load1. Change type for alternative 7 to store1.
26774 (movdf_aarch64): Likewise.
26776 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
26778 * config/vax/vax.md: Adjust sign/zero extend patterns to
26779 handle SUBREGs in operands[1].
26781 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26783 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
26784 of manually swapping.
26785 (expand_vec_perm_interleave2): Likewise.
26787 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
26789 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
26790 reuse bounds created for abnormal ssa names.
26792 2015-06-19 Jakub Jelinek <jakub@redhat.com>
26794 * config/nvptx/nvptx.md (allocate_stack): Rename to...
26795 (allocate_stack_<mode>): ... this, and add :P on both
26796 match_operand and unspec.
26797 (allocate_stack): New expander.
26799 2015-06-19 Christian Bruel <christian.bruel@st.com>
26803 * config/arm/arm.c (arm_set_current_function): Handle
26804 explicit default options.
26806 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
26808 * config/i386/i386.md (*movsicc_noc_zext): New insn.
26809 (zero-extended cmove with mem peephole2): New pattern.
26810 (cmove with mem peephole2): Merge patterns.
26812 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
26814 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
26816 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
26818 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
26819 * config/mips/mips.md (*madd4<mode>): Ditto.
26820 (*nmadd3<mode>) Ditto.
26821 (*nmadd4<mode>_fastmath): Ditto.
26822 (*nmadd3<mode>_fastmath): Ditto.
26823 (*nmsub4<mode>): Ditto.
26824 (*nmsub3<mode>): Ditto.
26825 (*nmsub4<mode>_fastmath): Ditto.
26826 (*nmsub3<mode>_fastmath): Ditto.
26828 2015-06-18 Michael Matz <matz@suse.de>
26830 PR middle-end/66253
26831 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
26832 grouped strided stores.
26833 (vectorizable_load): Don't use the DR from first_stmt in
26834 the non-SLP grouped strided case.
26836 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26839 * function.c (assign_bounds): Add arguments assign_regs,
26840 assign_special, assign_bt.
26841 (assign_parms): For vararg functions handle bounds in BT
26842 and special slots after incoming vararg bounds.
26844 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26846 PR middle-end/66568
26847 * cfgexpand.c (expand_return): Handle missing bounds.
26848 (expand_gimple_stmt_1): Likewise.
26849 * tree-chkp.c (chkp_expand_zero_bounds): New.
26850 * tree-chkp.h (chkp_expand_zero_bounds): New.
26852 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26854 PR middle-end/66567
26855 * ipa-chkp.c (chkp_maybe_create_clone): Require
26856 functions to be instrumentable.
26857 * tree-chkp.c (chkp_replace_function_pointer): Use
26858 chkp_instrumentable_p instead of attribute check.
26860 2015-06-18 Richard Biener <rguenther@suse.de>
26862 PR tree-optimization/66510
26863 * tree-vect-stmts.c (vectorizable_load): Properly compute the
26864 number of vector loads for SLP permuted loads.
26865 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
26866 check the stride for loop vectorization.
26867 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
26868 vectorization factor.
26869 (vect_analyze_group_access): If the group size is not a power
26870 of two require a epilogue loop.
26871 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
26872 compute and optimizing and alias test pruning after final
26873 vectorization factor computation.
26874 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
26876 (vect_transform_slp_perm_load): Properly compute the original
26877 number of vector load stmts.
26879 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
26881 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
26882 "unlikely character , in @var" warning.
26884 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
26886 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
26887 (ix86_function_arg_advance): Ditto.
26888 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
26890 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26892 * function.h (struct rtl_data): Remove struct and accessor macros.
26893 * emit-rtl.h (struct rtl_data): Relocate to here.
26894 * Makefile.in (GTFILES): Add emit-rtl.h.
26895 * df-core.c: Include emit-rtl.h.
26896 * genattrtab.c: Likewise.
26897 * genconditions.c: Likewise.
26898 * genpreds.c: Likewise.
26899 * genrecog.c: Likewise.
26900 * regcprop.c: Likewise.
26901 * resource.c: Likewise.
26902 * sched-rgn.c: Likewise.
26903 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26904 * config/i386/winnt.c: Likewise.
26906 2015-06-17 Jakub Jelinek <jakub@redhat.com>
26908 PR middle-end/66429
26909 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
26910 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
26911 and has_force_vectorize_loops flags from cfun into
26913 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
26914 if simduid is non-NULL.
26915 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
26916 * passes.def (pass_simduid_cleanup): Add new pass after loop
26918 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
26919 indirection from htab argument's type.
26920 (shrink_simd_arrays): New function.
26921 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
26922 Don't call adjust_simduid_builtins if there are no loops.
26923 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
26924 (pass_simduid_cleanup::execute): New method.
26925 (make_pass_simduid_cleanup): New function.
26927 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
26929 * tree-core.h (tree_target_option): Make opts field a pointer to a
26930 cl_target_option instead of an instance of the struct.
26931 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
26933 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
26934 TARGET_OPTION_NODE.
26935 (copy_node_stat): Allocate and copy struct cl_target_option.
26937 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26939 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
26940 Remove conditional exposure of prototypes.
26941 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
26942 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
26943 definitions in tree.h with functions.
26944 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
26946 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
26948 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
26950 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
26951 (*cmp<mode>_signed): ... this.
26952 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
26953 (*cmp<mode>_unsigned): ... this. Remove %b.
26955 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26957 * coretypes.h: Include input.h and as-a.h.
26958 * rtl.h: Include input.h and as-a.h for generator files.
26959 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
26960 * vec.c: Don't include diagnostic-core.h.
26961 * alias.c: Do not include input.h, line-map.h or is-a.h.
26962 * asan.c: Likewise.
26963 * attribs.c: Likewise.
26964 * auto-inc-dec.c: Likewise.
26965 * auto-profile.c: Likewise.
26966 * bb-reorder.c: Likewise.
26967 * bt-load.c: Likewise.
26968 * builtins.c: Likewise.
26969 * caller-save.c: Likewise.
26970 * calls.c: Likewise.
26971 * ccmp.c: Likewise.
26973 * cfganal.c: Likewise.
26974 * cfgbuild.c: Likewise.
26975 * cfgcleanup.c: Likewise.
26976 * cfgexpand.c: Likewise.
26977 * cfghooks.c: Likewise.
26978 * cfgloop.c: Likewise.
26979 * cfgloop.h: Likewise.
26980 * cfgloopanal.c: Likewise.
26981 * cfgloopmanip.c: Likewise.
26982 * cfgrtl.c: Likewise.
26983 * cgraph.c: Likewise.
26984 * cgraphbuild.c: Likewise.
26985 * cgraphclones.c: Likewise.
26986 * cgraphunit.c: Likewise.
26987 * cilk-common.c: Likewise.
26988 * combine-stack-adj.c: Likewise.
26989 * combine.c: Likewise.
26990 * compare-elim.c: Likewise.
26991 * convert.c: Likewise.
26992 * coverage.c: Likewise.
26993 * cppbuiltin.c: Likewise.
26994 * cprop.c: Likewise.
26996 * cselib.c: Likewise.
26997 * data-streamer-in.c: Likewise.
26998 * data-streamer-out.c: Likewise.
26999 * data-streamer.c: Likewise.
27000 * dbxout.c: Likewise.
27003 * debug.c: Likewise.
27004 * df-core.c: Likewise.
27005 * df-problems.c: Likewise.
27006 * df-scan.c: Likewise.
27009 * diagnostic-core.h: Likewise.
27010 * diagnostic.c: Likewise.
27011 * dojump.c: Likewise.
27012 * dominance.c: Likewise.
27013 * domwalk.c: Likewise.
27014 * double-int.c: Likewise.
27016 * dumpfile.c: Likewise.
27017 * dumpfile.h: Likewise.
27018 * dwarf2asm.c: Likewise.
27019 * dwarf2cfi.c: Likewise.
27020 * dwarf2out.c: Likewise.
27021 * emit-rtl.c: Likewise.
27022 * et-forest.c: Likewise.
27023 * except.c: Likewise.
27024 * explow.c: Likewise.
27025 * expmed.c: Likewise.
27026 * expr.c: Likewise.
27027 * final.c: Likewise.
27028 * fixed-value.c: Likewise.
27029 * fold-const.c: Likewise.
27030 * function.c: Likewise.
27031 * fwprop.c: Likewise.
27032 * gcc-plugin.h: Likewise.
27033 * gcse.c: Likewise.
27034 * generic-match-head.c: Likewise.
27035 * ggc-page.c: Likewise.
27036 * gimple-builder.c: Likewise.
27037 * gimple-expr.c: Likewise.
27038 * gimple-fold.c: Likewise.
27039 * gimple-iterator.c: Likewise.
27040 * gimple-low.c: Likewise.
27041 * gimple-match-head.c: Likewise.
27042 * gimple-pretty-print.c: Likewise.
27043 * gimple-ssa-isolate-paths.c: Likewise.
27044 * gimple-ssa-strength-reduction.c: Likewise.
27045 * gimple-streamer-in.c: Likewise.
27046 * gimple-streamer-out.c: Likewise.
27047 * gimple-streamer.h: Likewise.
27048 * gimple-walk.c: Likewise.
27049 * gimple.c: Likewise.
27050 * gimplify-me.c: Likewise.
27051 * gimplify.c: Likewise.
27052 * godump.c: Likewise.
27053 * graph.c: Likewise.
27054 * graphite-blocking.c: Likewise.
27055 * graphite-dependences.c: Likewise.
27056 * graphite-interchange.c: Likewise.
27057 * graphite-isl-ast-to-gimple.c: Likewise.
27058 * graphite-optimize-isl.c: Likewise.
27059 * graphite-poly.c: Likewise.
27060 * graphite-scop-detection.c: Likewise.
27061 * graphite-sese-to-poly.c: Likewise.
27062 * graphite.c: Likewise.
27063 * haifa-sched.c: Likewise.
27064 * hw-doloop.c: Likewise.
27065 * ifcvt.c: Likewise.
27066 * init-regs.c: Likewise.
27067 * input.c: Likewise.
27068 * internal-fn.c: Likewise.
27069 * ipa-chkp.c: Likewise.
27070 * ipa-comdats.c: Likewise.
27071 * ipa-cp.c: Likewise.
27072 * ipa-devirt.c: Likewise.
27073 * ipa-icf-gimple.c: Likewise.
27074 * ipa-icf.c: Likewise.
27075 * ipa-inline-analysis.c: Likewise.
27076 * ipa-inline-transform.c: Likewise.
27077 * ipa-inline.c: Likewise.
27078 * ipa-polymorphic-call.c: Likewise.
27079 * ipa-profile.c: Likewise.
27080 * ipa-prop.c: Likewise.
27081 * ipa-pure-const.c: Likewise.
27082 * ipa-ref.c: Likewise.
27083 * ipa-reference.c: Likewise.
27084 * ipa-split.c: Likewise.
27085 * ipa-utils.c: Likewise.
27086 * ipa-visibility.c: Likewise.
27088 * ira-build.c: Likewise.
27089 * ira-color.c: Likewise.
27090 * ira-conflicts.c: Likewise.
27091 * ira-costs.c: Likewise.
27092 * ira-emit.c: Likewise.
27093 * ira-lives.c: Likewise.
27095 * jump.c: Likewise.
27096 * langhooks.c: Likewise.
27098 * loop-doloop.c: Likewise.
27099 * loop-init.c: Likewise.
27100 * loop-invariant.c: Likewise.
27101 * loop-iv.c: Likewise.
27102 * loop-unroll.c: Likewise.
27103 * lower-subreg.c: Likewise.
27104 * lra-assigns.c: Likewise.
27105 * lra-coalesce.c: Likewise.
27106 * lra-constraints.c: Likewise.
27107 * lra-eliminations.c: Likewise.
27108 * lra-lives.c: Likewise.
27109 * lra-remat.c: Likewise.
27110 * lra-spills.c: Likewise.
27112 * lto-cgraph.c: Likewise.
27113 * lto-compress.c: Likewise.
27114 * lto-opts.c: Likewise.
27115 * lto-section-in.c: Likewise.
27116 * lto-section-out.c: Likewise.
27117 * lto-streamer-in.c: Likewise.
27118 * lto-streamer-out.c: Likewise.
27119 * lto-streamer.c: Likewise.
27121 * mode-switching.c: Likewise.
27122 * modulo-sched.c: Likewise.
27123 * omega.c: Likewise.
27124 * omp-low.c: Likewise.
27125 * optabs.c: Likewise.
27126 * opts-global.c: Likewise.
27127 * opts.h: Likewise.
27128 * passes.c: Likewise.
27129 * plugin.c: Likewise.
27130 * postreload-gcse.c: Likewise.
27131 * postreload.c: Likewise.
27132 * predict.c: Likewise.
27133 * pretty-print.h: Likewise.
27134 * print-rtl.c: Likewise.
27135 * print-tree.c: Likewise.
27136 * profile.c: Likewise.
27137 * real.c: Likewise.
27138 * realmpfr.c: Likewise.
27139 * recog.c: Likewise.
27141 * reg-stack.c: Likewise.
27142 * regcprop.c: Likewise.
27143 * reginfo.c: Likewise.
27144 * regrename.c: Likewise.
27145 * regstat.c: Likewise.
27146 * reload.c: Likewise.
27147 * reload1.c: Likewise.
27148 * reorg.c: Likewise.
27149 * resource.c: Likewise.
27150 * rtl-chkp.c: Likewise.
27151 * rtl-error.c: Likewise.
27152 * rtlanal.c: Likewise.
27153 * rtlhooks.c: Likewise.
27154 * sanopt.c: Likewise.
27155 * sched-deps.c: Likewise.
27156 * sched-ebb.c: Likewise.
27157 * sched-rgn.c: Likewise.
27158 * sched-vis.c: Likewise.
27159 * sdbout.c: Likewise.
27160 * sel-sched-dump.c: Likewise.
27161 * sel-sched-ir.c: Likewise.
27162 * sel-sched.c: Likewise.
27163 * sese.c: Likewise.
27164 * shrink-wrap.c: Likewise.
27165 * simplify-rtx.c: Likewise.
27166 * stack-ptr-mod.c: Likewise.
27167 * statistics.c: Likewise.
27168 * stmt.c: Likewise.
27169 * stor-layout.c: Likewise.
27170 * store-motion.c: Likewise.
27171 * streamer-hooks.c: Likewise.
27172 * stringpool.c: Likewise.
27173 * symtab.c: Likewise.
27174 * target-globals.c: Likewise.
27175 * targhooks.c: Likewise.
27176 * toplev.c: Likewise.
27177 * tracer.c: Likewise.
27178 * trans-mem.c: Likewise.
27179 * tree-affine.c: Likewise.
27180 * tree-browser.c: Likewise.
27181 * tree-call-cdce.c: Likewise.
27182 * tree-cfg.c: Likewise.
27183 * tree-cfgcleanup.c: Likewise.
27184 * tree-chkp-opt.c: Likewise.
27185 * tree-chkp.c: Likewise.
27186 * tree-chrec.c: Likewise.
27187 * tree-complex.c: Likewise.
27188 * tree-data-ref.c: Likewise.
27189 * tree-dfa.c: Likewise.
27190 * tree-diagnostic.c: Likewise.
27191 * tree-dump.c: Likewise.
27192 * tree-eh.c: Likewise.
27193 * tree-emutls.c: Likewise.
27194 * tree-if-conv.c: Likewise.
27195 * tree-inline.c: Likewise.
27196 * tree-into-ssa.c: Likewise.
27197 * tree-iterator.c: Likewise.
27198 * tree-loop-distribution.c: Likewise.
27199 * tree-nested.c: Likewise.
27200 * tree-nrv.c: Likewise.
27201 * tree-object-size.c: Likewise.
27202 * tree-outof-ssa.c: Likewise.
27203 * tree-parloops.c: Likewise.
27204 * tree-phinodes.c: Likewise.
27205 * tree-predcom.c: Likewise.
27206 * tree-pretty-print.c: Likewise.
27207 * tree-profile.c: Likewise.
27208 * tree-scalar-evolution.c: Likewise.
27209 * tree-sra.c: Likewise.
27210 * tree-ssa-address.c: Likewise.
27211 * tree-ssa-alias.c: Likewise.
27212 * tree-ssa-ccp.c: Likewise.
27213 * tree-ssa-coalesce.c: Likewise.
27214 * tree-ssa-copy.c: Likewise.
27215 * tree-ssa-copyrename.c: Likewise.
27216 * tree-ssa-dce.c: Likewise.
27217 * tree-ssa-dom.c: Likewise.
27218 * tree-ssa-dse.c: Likewise.
27219 * tree-ssa-forwprop.c: Likewise.
27220 * tree-ssa-ifcombine.c: Likewise.
27221 * tree-ssa-live.c: Likewise.
27222 * tree-ssa-loop-ch.c: Likewise.
27223 * tree-ssa-loop-im.c: Likewise.
27224 * tree-ssa-loop-ivcanon.c: Likewise.
27225 * tree-ssa-loop-ivopts.c: Likewise.
27226 * tree-ssa-loop-manip.c: Likewise.
27227 * tree-ssa-loop-niter.c: Likewise.
27228 * tree-ssa-loop-prefetch.c: Likewise.
27229 * tree-ssa-loop-unswitch.c: Likewise.
27230 * tree-ssa-loop.c: Likewise.
27231 * tree-ssa-math-opts.c: Likewise.
27232 * tree-ssa-operands.c: Likewise.
27233 * tree-ssa-phiopt.c: Likewise.
27234 * tree-ssa-phiprop.c: Likewise.
27235 * tree-ssa-pre.c: Likewise.
27236 * tree-ssa-propagate.c: Likewise.
27237 * tree-ssa-reassoc.c: Likewise.
27238 * tree-ssa-sccvn.c: Likewise.
27239 * tree-ssa-scopedtables.c: Likewise.
27240 * tree-ssa-sink.c: Likewise.
27241 * tree-ssa-strlen.c: Likewise.
27242 * tree-ssa-structalias.c: Likewise.
27243 * tree-ssa-tail-merge.c: Likewise.
27244 * tree-ssa-ter.c: Likewise.
27245 * tree-ssa-threadedge.c: Likewise.
27246 * tree-ssa-threadupdate.c: Likewise.
27247 * tree-ssa-uncprop.c: Likewise.
27248 * tree-ssa-uninit.c: Likewise.
27249 * tree-ssa.c: Likewise.
27250 * tree-ssanames.c: Likewise.
27251 * tree-stdarg.c: Likewise.
27252 * tree-streamer-in.c: Likewise.
27253 * tree-streamer-out.c: Likewise.
27254 * tree-streamer.c: Likewise.
27255 * tree-switch-conversion.c: Likewise.
27256 * tree-tailcall.c: Likewise.
27257 * tree-vect-data-refs.c: Likewise.
27258 * tree-vect-generic.c: Likewise.
27259 * tree-vect-loop-manip.c: Likewise.
27260 * tree-vect-loop.c: Likewise.
27261 * tree-vect-patterns.c: Likewise.
27262 * tree-vect-slp.c: Likewise.
27263 * tree-vect-stmts.c: Likewise.
27264 * tree-vectorizer.c: Likewise.
27265 * tree-vrp.c: Likewise.
27266 * tree.c: Likewise.
27267 * tsan.c: Likewise.
27268 * ubsan.c: Likewise.
27269 * valtrack.c: Likewise.
27270 * value-prof.c: Likewise.
27271 * var-tracking.c: Likewise.
27272 * varasm.c: Likewise.
27273 * varpool.c: Likewise.
27274 * vmsdbgout.c: Likewise.
27275 * vtable-verify.c: Likewise.
27277 * wide-int.cc: Likewise.
27278 * xcoffout.c: Likewise.
27279 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
27280 * common/common-targhooks.c: Likewise.
27281 * config/aarch64/aarch64-builtins.c: Likewise.
27282 * config/aarch64/aarch64.c: Likewise.
27283 * config/alpha/alpha.c: Likewise.
27284 * config/arc/arc.c: Likewise.
27285 * config/arm/aarch-common.c: Likewise.
27286 * config/arm/arm-builtins.c: Likewise.
27287 * config/arm/arm-c.c: Likewise.
27288 * config/arm/arm.c: Likewise.
27289 * config/avr/avr-c.c: Likewise.
27290 * config/avr/avr-log.c: Likewise.
27291 * config/avr/avr.c: Likewise.
27292 * config/bfin/bfin.c: Likewise.
27293 * config/c6x/c6x.c: Likewise.
27294 * config/cr16/cr16.c: Likewise.
27295 * config/cris/cris.c: Likewise.
27296 * config/darwin-c.c: Likewise.
27297 * config/darwin.c: Likewise.
27298 * config/default-c.c: Likewise.
27299 * config/epiphany/epiphany.c: Likewise.
27300 * config/epiphany/mode-switch-use.c: Likewise.
27301 * config/epiphany/resolve-sw-modes.c: Likewise.
27302 * config/fr30/fr30.c: Likewise.
27303 * config/frv/frv.c: Likewise.
27304 * config/ft32/ft32.c: Likewise.
27305 * config/glibc-c.c: Likewise.
27306 * config/h8300/h8300.c: Likewise.
27307 * config/i386/i386-c.c: Likewise.
27308 * config/i386/i386.c: Likewise.
27309 * config/i386/msformat-c.c: Likewise.
27310 * config/i386/winnt-cxx.c: Likewise.
27311 * config/i386/winnt-stubs.c: Likewise.
27312 * config/i386/winnt.c: Likewise.
27313 * config/ia64/ia64-c.c: Likewise.
27314 * config/ia64/ia64.c: Likewise.
27315 * config/iq2000/iq2000.c: Likewise.
27316 * config/lm32/lm32.c: Likewise.
27317 * config/m32c/m32c-pragma.c: Likewise.
27318 * config/m32c/m32c.c: Likewise.
27319 * config/m32r/m32r.c: Likewise.
27320 * config/m68k/m68k.c: Likewise.
27321 * config/mcore/mcore.c: Likewise.
27322 * config/mep/mep-pragma.c: Likewise.
27323 * config/mep/mep.c: Likewise.
27324 * config/microblaze/microblaze-c.c: Likewise.
27325 * config/microblaze/microblaze.c: Likewise.
27326 * config/mips/mips.c: Likewise.
27327 * config/mmix/mmix.c: Likewise.
27328 * config/mn10300/mn10300.c: Likewise.
27329 * config/moxie/moxie.c: Likewise.
27330 * config/msp430/msp430-c.c: Likewise.
27331 * config/msp430/msp430.c: Likewise.
27332 * config/nds32/nds32-cost.c: Likewise.
27333 * config/nds32/nds32-fp-as-gp.c: Likewise.
27334 * config/nds32/nds32-intrinsic.c: Likewise.
27335 * config/nds32/nds32-isr.c: Likewise.
27336 * config/nds32/nds32-md-auxiliary.c: Likewise.
27337 * config/nds32/nds32-memory-manipulation.c: Likewise.
27338 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27339 * config/nds32/nds32-predicates.c: Likewise.
27340 * config/nds32/nds32.c: Likewise.
27341 * config/nios2/nios2.c: Likewise.
27342 * config/nvptx/nvptx.c: Likewise.
27343 * config/pa/pa.c: Likewise.
27344 * config/pdp11/pdp11.c: Likewise.
27345 * config/rl78/rl78-c.c: Likewise.
27346 * config/rl78/rl78.c: Likewise.
27347 * config/rs6000/rs6000-c.c: Likewise.
27348 * config/rs6000/rs6000.c: Likewise.
27349 * config/rx/rx.c: Likewise.
27350 * config/s390/s390-c.c: Likewise.
27351 * config/s390/s390.c: Likewise.
27352 * config/sh/sh-c.c: Likewise.
27353 * config/sh/sh-mem.cc: Likewise.
27354 * config/sh/sh.c: Likewise.
27355 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27356 * config/sh/sh_treg_combine.cc: Likewise.
27357 * config/sol2-c.c: Likewise.
27358 * config/sol2-cxx.c: Likewise.
27359 * config/sol2-stubs.c: Likewise.
27360 * config/sol2.c: Likewise.
27361 * config/sparc/sparc-c.c: Likewise.
27362 * config/sparc/sparc.c: Likewise.
27363 * config/spu/spu-c.c: Likewise.
27364 * config/spu/spu.c: Likewise.
27365 * config/stormy16/stormy16.c: Likewise.
27366 * config/tilegx/mul-tables.c: Likewise.
27367 * config/tilegx/tilegx-c.c: Likewise.
27368 * config/tilegx/tilegx.c: Likewise.
27369 * config/tilepro/mul-tables.c: Likewise.
27370 * config/tilepro/tilepro-c.c: Likewise.
27371 * config/tilepro/tilepro.c: Likewise.
27372 * config/v850/v850-c.c: Likewise.
27373 * config/v850/v850.c: Likewise.
27374 * config/vax/vax.c: Likewise.
27375 * config/visium/visium.c: Likewise.
27376 * config/vms/vms-c.c: Likewise.
27377 * config/vms/vms.c: Likewise.
27378 * config/vxworks.c: Likewise.
27379 * config/winnt-c.c: Likewise.
27380 * config/xtensa/xtensa.c: Likewise.
27382 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
27384 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
27386 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
27388 2015-06-17 Richard Biener <rguenther@suse.de>
27390 PR tree-optimization/66251
27391 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
27392 stmts for SLP strided stores.
27395 2015-05-22 Richard Biener <rguenther@suse.de>
27397 PR tree-optimization/66251
27398 * tree-vect-stmts.c (vectorizable_conversion): Properly
27399 set STMT_VINFO_VEC_STMT even for the SLP case.
27401 2015-05-26 Michael Matz <matz@suse.de>
27403 PR middle-end/66251
27404 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
27405 STMT_VINFO_VEC_STMT, also with SLP.
27407 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
27410 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
27411 (*avx_addsubv4df3_1s): Ditto.
27412 (*sse3_addsubv2df3_1): Ditto.
27413 (*sse3_addsubv2df3_1s): Ditto.
27414 (*avx_addsubv8sf3_1): Ditto.
27415 (*avx_addsubv8sf3_1s): Ditto.
27416 (*sse3_addsubv4sf3_1): Ditto.
27417 (*sse3_addsubv4sf3_1s): Ditto.
27419 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
27421 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
27422 (SYSROOT_SUFFIX_SPEC): Update.
27423 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
27424 (STARTFILE_PREFIX_SPEC): Update.
27425 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
27426 (MULTILIB_REQUIRED): New.
27427 (MULTILIB_OSDIRNAMES): New.
27428 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
27429 (MULTILIB_REQUIRED): New.
27430 (MULTILIB_OSDIRNAMES): New.
27432 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
27434 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
27435 * config/aarch64/aarch64-options-extensions.def: Update "fP",
27436 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
27437 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
27438 (AARCH64_FL_PAN): New.
27439 (AARCH64_FL_LOR): New.
27440 (AARCH64_FL_RDMA): New.
27441 (AARCH64_FL_FOR_ARCH8_1): New.
27442 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
27443 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
27445 2015-06-16 Martin Liska <mliska@suse.cz>
27447 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
27448 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
27451 2015-06-16 Richard Biener <rguenther@suse.de>
27453 * tree-vect-stmts.c (vectorizable_store): Adjust.
27454 (vectorizable_load): Likewise.
27455 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27457 (vect_create_data_ref_ptr): Likewise.
27458 (bump_vector_ptr): Adjust.
27460 2015-06-16 Richard Biener <rguenther@suse.de>
27462 * tree-vect-stmts.c (vectorizable_load): Properly start loads
27463 with the first element if this is grouped loads.
27465 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
27467 * config/arm/arm-protos.h (struct tune_params): Rename
27468 log_op_non_sc to log_op_non_short_circuit, and rename enum
27469 values to expand SC to SHORT_CIRCUIT.
27470 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
27471 to LOG_OP_NON_SHORT_CIRCUIT.
27472 (arm_fastmul_tune):Likewise
27473 (arm_strongarm_tune): Likewise.
27474 (arm_xscale_tune): Likewise.
27475 (arm_9e_tune): Likewise.
27476 (arm_marvell_pj4_tune): Likewise.
27477 (arm_v6t2_tune): Likewise.
27478 (arm_cortex_tune): Likewise.
27479 (arm_cortex_a8_tune): Likewise.
27480 (arm_cortex_a7_tune): Likewise.
27481 (arm_cortex_a15_tune): Likewise.
27482 (arm_cortex_a53_tune): Likewise.
27483 (arm_cortex_a57_tune): Likewise.
27484 (arm_xgene1_tune): Likewise.
27485 (arm_cortex_a5_tune): Likewise.
27486 (arm_cortex_a9_tune): Likewise.
27487 (arm_cortex_a12_tune): Likewise.
27488 (arm_v7m_tune): Likewise.
27489 (arm_cortex_m7_tune): Likewise.
27490 (arm_v6m_tune): Likewise.
27491 (arm_fa726te_tune): Likewise.
27493 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
27495 * altivec.md: Delete UNSPEC_VMLADDUHM.
27496 (mulv4si3_p8): New pattern.
27497 (mulv4si3): Use it for POWER8.
27498 (mulv8hi3): Use vmladduhm with zero addend.
27499 (altivec_vmladduhm): Descriptive RTL.
27501 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
27503 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
27504 to use neon_move instead of mov_imm.
27505 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
27506 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
27508 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
27509 aarch64_float_const_zero_rtx_p check before TFmode check.
27510 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
27512 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
27513 code and attributes to match. Change condition from register_operand
27514 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
27515 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
27518 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
27521 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
27522 there is no parent.
27524 2015-06-14 Shiva Chen <shiva0217@gmail.com>
27526 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
27527 HOST_WIDE_INT parameter.
27529 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
27532 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
27533 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
27535 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
27537 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
27539 * rtl.h (classify_insn): Declare.
27540 * emit-rtl.c (classify_insn): Move to...
27541 * rtl.c: ...here and add generator support.
27542 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
27543 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
27544 * genemit.c (gen_emit_seq): New function.
27545 (gen_expand, gen_split): Use it.
27547 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
27549 * tree.c (make_vector_stat): Fix comment to state that the
27550 function returns a VECTOR_CST.
27552 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
27554 * gensupport.h (add_implicit_parallel): Declare.
27555 * genrecog.c (add_implicit_parallel): Move to...
27556 * gensupport.c (add_implicit_parallel): ...here.
27557 (process_one_cond_exec): Use it.
27558 * genemit.c (gen_insn): Likewise.
27560 2015-06-13 Iain Sandoe <iain@codesourcery.com>
27563 * passes.c (rest_of_decl_compilation): Do not register globals for
27564 early debug if they are declared in built-ins.
27566 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
27568 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
27570 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27572 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
27574 (noce_try_cmove_arith): Likewise.
27575 (noce_get_alt_condition): Likewise.
27577 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27579 * common/config/i386/i386-common.c
27580 (OPTION_MASK_ISA_MWAITX_SET): New.
27581 (ix86_handle_option): Handle mwaitx.
27582 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
27583 (x86_64-*-*): Likewise.
27584 * config/i386/mwaitxintrin.h: New header.
27585 * config/i386/cpuid.h (bit_MWAITX): Define.
27586 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27588 * config/i386/i386.opt (mwaitx): New.
27589 * config/i386/i386-builtin-types.def
27590 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
27591 * config/i386/i386-c.c: Define __MWAITX__ if needed.
27592 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
27594 (ix86_option_override_internal): Handle new option.
27595 (processor_alias_table): Added PTA_MWAITX.
27596 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
27597 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
27598 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
27599 IX86_BUILTIN_MONITORX built-ins.
27600 * config/i386/i386.h (TARGET_MWAITX): New.
27601 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
27603 (mwaitx): New pattern.
27604 (monitorx_<mode>): New pattern.
27605 * config/i386/x86intrin.h: Include mwaitxintrin.h.
27606 * doc/extend.texi: Document monitorx and mwaitx builtins.
27607 * doc/invoke.texi: Document -mmwaitx option.
27609 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
27611 * emit-rtl.c (need_atomic_barrier_p): Mask model with
27612 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
27614 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
27616 * dbxout.c (xcoff_debug_hooks): Provide a function for
27617 register_main_translation_unit hook.
27619 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
27621 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
27622 variants cases from switch.
27623 (rs6000_post_atomic_barrier): Same.
27624 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
27625 (rs6000_expand_atomic_exchange): Same.
27626 (rs6000_expand_atomic_op): Same.
27627 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
27628 SYNC variants cases from switch.
27629 (atomic_load): Same.
27630 (atomic_store): Same.
27632 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
27634 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
27635 CONST_INT for goto.
27637 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
27640 * dwarf2out.c (check_die): Check for common duplicate attributes.
27641 (add_location_or_const_value_attribute): Do not add duplicate
27643 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
27645 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
27646 (gen_type_die_with_usage): Call check_die.
27647 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
27649 2015-06-11 Jason Merrill <jason@redhat.com>
27651 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
27654 2015-06-11 Marek Polacek <polacek@redhat.com>
27656 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
27658 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
27661 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
27662 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
27663 (*addx_extend_sp32): Fix pasto.
27664 (*subx_extend): Rename into...
27665 (*subx_extend_sp32): ...this.
27666 (*adddi3_extend_sp32): Add earlyclobber.
27667 (*subdi3_insn_sp32): Likewise.
27668 (*subdi3_extend_sp32): Likewise.
27669 (*and_not_di_sp32): Likewise.
27670 (*or_not_di_sp32): Likewise.
27671 (*xor_not_di_sp32): Likewise.
27672 (*negdi2_sp32): Likewise.
27673 (*one_cmpldi2_sp32): Likewise.
27675 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
27677 * debug.h (struct gcc_debug_hooks): Add a
27678 register_main_translation_unit hook.
27679 * debug.c (do_nothing_debug_hooks): Provide a function for this
27681 * dbxout.c (dbx_debug_hooks): Likewise.
27682 * sdbout.c (sdb_debug_hooks): Likewise.
27683 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27684 * dwarf2out.c (main_translation_unit): New global variable.
27685 (dwarf2out_register_main_translation_unit): New function
27686 implementing the new hook.
27687 (dwarf2_debug_hooks): Assign
27688 dwarf2out_register_main_translation_unit to this new hook.
27689 (dwarf2out_init): Associate any main translation unit to
27692 2015-06-11 Marek Polacek <polacek@redhat.com>
27694 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
27696 2015-06-11 Marek Polacek <polacek@redhat.com>
27698 * match.pd: Use single_use throughout.
27700 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27702 * config/arm/arm.c (arm_option_params_internal): When optimising
27703 for speed set max_insns_skipped when arm_restrict_it.
27705 2015-06-11 Christian Bruel <christian.bruel@st.com>
27708 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
27710 (arm_cpu_builtins): New function.
27711 (arm_pragma_target_parse): Call arm_cpu_builtins.
27712 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
27713 (arm_register_target_pragmas): Likewise.
27714 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
27715 Call arm_register_target_pragmas.
27716 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
27717 (arm_pragma_target_parse): Likewise.
27719 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
27721 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
27722 of the second operand.
27724 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
27727 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
27728 to prepare mask operand for AVX512 modes.
27730 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27733 * doc/md.texi (Machine Constraints): Document that on the PowerPC
27734 if you use a constraint that targets a VSX register, you must use
27735 %x<n> in the template.
27737 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
27739 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
27740 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
27741 (define_insn "trap"): New definition.
27743 2015-06-10 Richard Biener <rguenther@suse.de>
27745 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
27747 (vect_supported_load_permutation_p): ... here. Handle
27748 supportable permutations in reductions.
27749 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
27750 for vectorizing strided group loads.
27752 2015-06-10 Jakub Jelinek <jakub@redhat.com>
27755 * config/i386/i386.c (ix86_split_long_move): For collisions
27756 involving direct tls segment refs, move the UNSPEC_TP possibly
27757 wrapped in ZERO_EXTEND out of the address for lea, to each of
27760 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27762 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
27763 dmb sy. Adjust tabs.
27765 2015-06-10 Tom de Vries <tom@codesourcery.com>
27767 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
27769 2015-06-10 Martin Liska <mliska@suse.cz>
27772 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
27773 all enum values in mem_alloc_origin.
27774 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
27776 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
27777 * bitmap.c (bitmap_register): Likewise.
27778 (dump_bitmap_statistics): Likewise.
27779 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
27780 (ggc_record_overhead): Likewise.
27781 * hash-map.h: Likewise.
27782 * hash-set.h: Likewise.
27783 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
27784 * hash-table.h: Likewise.
27785 * vec.c (vec_prefix::register_overhead): Likewise.
27786 (vec_prefix::release_overhead): Likewise.
27787 (dump_vec_loc_statistics): Likewise.
27789 2015-06-09 Christian Bruel <christian.bruel@st.com>
27792 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
27793 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
27794 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
27795 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
27796 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
27797 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
27798 (arm_valid_target_attribute_p): Likewise.
27799 (arm_set_current_function, arm_can_inline_p): Likewise.
27800 (arm_valid_target_attribute_rec): Likewise.
27801 (arm_previous_fndecl): New variable.
27802 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
27803 (TARGET_CAN_INLINE_P): Define.
27804 (arm_asm_trampoline_template): Emit mode.
27805 (arm_file_start): Don't set unified syntax.
27806 (arm_declare_function_name): Set unified syntax and mode.
27807 (arm_option_override): Init target_option_default_node.
27808 and target_option_current_node.
27809 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
27810 (*call_symbol): Likewise.
27811 * doc/extend.texi: Document ARM/Thumb target attribute.
27812 * doc/invoke.texi: Likewise.
27814 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27817 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27818 PR rtl-optimization/64164
27819 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27820 * tree-ssa-copyrename.c: Removed.
27821 * opts.c (default_options_table): Drop -ftree-copyrename. Add
27822 -ftree-coalesce-vars.
27823 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27824 * common.opt (ftree-copyrename): Ignore.
27825 (ftree-coalesce-inlined-vars): Likewise.
27826 * doc/invoke.texi: Remove the ignored options above.
27827 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27828 * tree-ssa-coalesce.h: ... here.
27829 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27830 headers required by it.
27831 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27832 across variables when flag_tree_coalesce_vars. Check register
27833 use and promoted modes to allow coalescing. Moved to
27834 tree-ssa-coalesce.c.
27835 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27836 with its member functions to tree-ssa-coalesce.c.
27837 (var_map_base_init): Likewise. Renamed to
27838 compute_samebase_partition_bases.
27839 (partition_view_normal): Drop want_bases parameter.
27840 (partition_view_bitmap): Likewise.
27841 * tree-ssa-live.h: Adjust declarations.
27842 * tree-ssa-coalesce.c: Include explow.h.
27843 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27844 default defs at the entry point.
27845 (dump_part_var_map): New.
27846 (compute_optimized_partition_bases): New, called by...
27847 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27848 of compute_samebase_partition_bases. Adjust.
27849 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27850 * cfgexpand.c (leader_merge): New.
27851 (get_rtl_for_parm_ssa_default_def): New.
27852 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27853 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27854 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
27855 redundant MEM attr setting.
27856 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
27858 (expand_one_stack_var): ... this. New wrapper to check and
27859 skip already expanded SSA partitions.
27860 (record_alignment_for_reg_var): New, factored out of...
27861 (expand_one_var): ... this.
27862 (expand_one_ssa_partition): New.
27863 (adjust_one_expanded_partition_var): New.
27864 (expand_one_register_var): Check and skip already expanded SSA
27866 (expand_used_vars): Don't create DECLs for anonymous SSA
27867 names. Expand all SSA partitions, then adjust all SSA names.
27868 (pass::execute): Replace the loops that set
27869 SA.partition_to_pseudo from partition leaders and cleared
27870 DECL_RTL for multi-location variables, and that which used to
27871 rename vars and set attrs, with one that clears DECL_RTL and
27872 checks that PARMs and RESULTs default_defs match DECL_RTL.
27873 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27874 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27875 * explow.c (promote_ssa_mode): New.
27876 * explow.h (promote_ssa_mode): Declare.
27877 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27878 * function.c: Include cfgexpand.h.
27879 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27880 (use_register_for_parm_decl): Wrapper for the above to
27881 special-case the result_ptr.
27882 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27883 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27884 multiple locations.
27885 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27886 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
27887 (assign_parm_setup_block): Prefer SSA-assigned location.
27888 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
27889 if stack_parm is NULL.
27890 (assign_parm_setup_stack): Prefer SSA-assigned location.
27891 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
27892 rtl before testing for pointer bounds. Special-case result_ptr.
27893 (expand_function_start): Maybe reset DECL_RTL of result.
27894 Prefer SSA-assigned location for result and static chain.
27895 Factor out DECL_RESULT and SET_DECL_RTL.
27896 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27897 anonymous SSA names. Use promote_ssa_mode.
27898 (get_temp_reg): Likewise.
27899 (remove_ssa_form): Adjust.
27900 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27901 and get its reg_usage for reg invalidation.
27902 (compute_bb_dataflow): Pass it insn.
27903 (emit_notes_in_bb): Likewise.
27904 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27905 fail assert on conversion between unsigned types.
27907 2015-06-09 Tom de Vries <tom@codesourcery.com>
27909 PR tree-optimization/65460
27910 * omp-low.c (expand_omp_target): Set parallelized_function on
27911 cgraph_node for child_fn.
27913 2015-06-09 Tom de Vries <tom@codesourcery.com>
27915 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
27916 parallelized_function before add_new_function.
27918 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
27920 * gcc-plugin.h: Move decls to plugin.h and include it.
27921 * plugin.h: Relocate decls from gcc-plugin.h
27922 * ggc-page.c: Include required header files.
27923 * passes.c: Likewise.
27924 * cgraphunit.c: Likewise.
27926 2015-06-09 Tom de Vries <tom@codesourcery.com>
27928 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
27930 2015-06-09 Jason Merrill <jason@redhat.com>
27933 * toplev.c (check_global_declaration): Don't warn about a clone.
27935 2015-06-09 Marek Polacek <polacek@redhat.com>
27937 PR tree-optimization/66299
27938 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27939 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
27942 2015-06-09 Richard Biener <rguenther@suse.de>
27944 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
27945 (vect_analyze_slp_instance): Instead do not falsely drop
27948 2015-06-09 Richard Biener <rguenther@suse.de>
27950 PR middle-end/66423
27951 * match.pd: Handle A % (unsigned)(1 << B).
27953 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
27955 * varasm.c (output_object_block_htab): Remove.
27956 (output_object_block_compare): New.
27957 (output_object_blocks): Sort named object_blocks before outputting
27960 2015-06-09 Richard Biener <rguenther@suse.de>
27962 PR tree-optimization/66419
27963 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
27964 consider GROUP_GAP when detecting a perfect subchain.
27966 2015-06-09 Nick Clifton <nickc@redhat.com>
27968 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
27969 place read only data in the .frodata section.
27971 2015-06-09 Shiva Chen <shiva0217@gmail.com>
27973 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
27974 (atomic_store<mode>): Likewise.
27976 2015-06-09 Richard Biener <rguenther@suse.de>
27978 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
27980 2015-06-09 Richard Biener <rguenther@suse.de>
27982 PR middle-end/66413
27983 * tree-inline.c (insert_init_debug_bind): Unshare value.
27985 2015-06-09 Richard Biener <rguenther@suse.de>
27987 PR tree-optimization/66396
27988 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
27989 Rename virtual operands.
27991 2015-06-09 Tom de Vries <tom@codesourcery.com>
27993 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
27994 always return false.
27996 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27998 PR rtl-optimization/64164
27999 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
28000 * tree-ssa-copyrename.c: Removed.
28001 * opts.c (default_options_table): Drop -ftree-copyrename. Add
28002 -ftree-coalesce-vars.
28003 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
28004 * common.opt (ftree-copyrename): Ignore.
28005 (ftree-coalesce-inlined-vars): Likewise.
28006 * doc/invoke.texi: Remove the ignored options above.
28007 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
28008 * tree-ssa-coalesce.h: ... here.
28009 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
28010 headers required by it.
28011 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
28012 across variables when flag_tree_coalesce_vars. Check register
28013 use and promoted modes to allow coalescing. Moved to
28014 tree-ssa-coalesce.c.
28015 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
28016 with its member functions to tree-ssa-coalesce.c.
28017 (var_map_base_init): Likewise. Renamed to
28018 compute_samebase_partition_bases.
28019 (partition_view_normal): Drop want_bases parameter.
28020 (partition_view_bitmap): Likewise.
28021 * tree-ssa-live.h: Adjust declarations.
28022 * tree-ssa-coalesce.c: Include explow.h.
28023 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
28024 default defs at the entry point.
28025 (dump_part_var_map): New.
28026 (compute_optimized_partition_bases): New, called by...
28027 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
28028 of compute_samebase_partition_bases. Adjust.
28029 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
28030 * cfgexpand.c (leader_merge): New.
28031 (get_rtl_for_parm_ssa_default_def): New.
28032 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
28033 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
28034 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
28035 redundant MEM attr setting.
28036 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
28038 (expand_one_stack_var): ... this. New wrapper to check and
28039 skip already expanded SSA partitions.
28040 (record_alignment_for_reg_var): New, factored out of...
28041 (expand_one_var): ... this.
28042 (expand_one_ssa_partition): New.
28043 (adjust_one_expanded_partition_var): New.
28044 (expand_one_register_var): Check and skip already expanded SSA
28046 (expand_used_vars): Don't create DECLs for anonymous SSA
28047 names. Expand all SSA partitions, then adjust all SSA names.
28048 (pass::execute): Replace the loops that set
28049 SA.partition_to_pseudo from partition leaders and cleared
28050 DECL_RTL for multi-location variables, and that which used to
28051 rename vars and set attrs, with one that clears DECL_RTL and
28052 checks that PARMs and RESULTs default_defs match DECL_RTL.
28053 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
28054 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
28055 * explow.c (promote_ssa_mode): New.
28056 * explow.h (promote_ssa_mode): Declare.
28057 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
28058 * function.c: Include cfgexpand.h.
28059 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
28060 (use_register_for_parm_decl): Wrapper for the above to
28061 special-case the result_ptr.
28062 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
28063 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
28064 multiple locations.
28065 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
28066 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
28067 (assign_parm_setup_block): Prefer SSA-assigned location.
28068 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
28069 if stack_parm is NULL.
28070 (assign_parm_setup_stack): Prefer SSA-assigned location.
28071 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
28072 rtl before testing for pointer bounds. Special-case result_ptr.
28073 (expand_function_start): Maybe reset DECL_RTL of result.
28074 Prefer SSA-assigned location for result and static chain.
28075 Factor out DECL_RESULT and SET_DECL_RTL.
28076 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
28077 anonymous SSA names. Use promote_ssa_mode.
28078 (get_temp_reg): Likewise.
28079 (remove_ssa_form): Adjust.
28080 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
28081 and get its reg_usage for reg invalidation.
28082 (compute_bb_dataflow): Pass it insn.
28083 (emit_notes_in_bb): Likewise.
28084 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
28085 fail assert on conversion between unsigned types.
28087 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28090 * tree-inline.c (reset_debug_binding): New.
28091 (reset_debug_bindings): Likewise.
28092 (expand_call_inline): Call it.
28094 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28096 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
28099 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28101 * lto-streamer-out.c (lto_output_location): Stream
28102 reserved locations correctly.
28103 * lto-streamer-in.c (lto_output_location): Likewise.
28105 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
28107 * coretypes.h: Include hash-table.h and hash-set.h for host files.
28108 * ggc.h: Don't include statistics.h>
28109 * hash-map.h: Remove all includes.
28110 * hash-set.h: Likewise.
28111 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
28112 the include list. Remove <new>.
28113 * inchash.h: Remove all includes.
28114 * mem-stats.h: Likewise.
28115 * vec.h: No special processing for generators or ggc.
28116 * alias.c : Adjust include files.
28117 * alloc-pool.c : Likewise.
28118 * alloc-pool.h : Likewise.
28119 * asan.c : Likewise.
28120 * attribs.c : Likewise.
28121 * auto-inc-dec.c : Likewise.
28122 * auto-profile.c : Likewise.
28123 * bb-reorder.c : Likewise.
28124 * bitmap.c : Likewise.
28125 * bitmap.h : Likewise.
28126 * bt-load.c : Likewise.
28127 * builtins.c : Likewise.
28128 * caller-save.c : Likewise.
28129 * calls.c : Likewise.
28130 * ccmp.c : Likewise.
28131 * cfg.c : Likewise.
28132 * cfganal.c : Likewise.
28133 * cfgbuild.c : Likewise.
28134 * cfgcleanup.c : Likewise.
28135 * cfgexpand.c : Likewise.
28136 * cfghooks.c : Likewise.
28137 * cfgloop.c : Likewise.
28138 * cfgloop.h : Likewise.
28139 * cfgloopanal.c : Likewise.
28140 * cfgloopmanip.c : Likewise.
28141 * cfgrtl.c : Likewise.
28142 * cgraph.c : Likewise.
28143 * cgraphbuild.c : Likewise.
28144 * cgraphclones.c : Likewise.
28145 * cgraphunit.c : Likewise.
28146 * cilk-common.c : Likewise.
28147 * combine-stack-adj.c : Likewise.
28148 * combine.c : Likewise.
28149 * compare-elim.c : Likewise.
28150 * context.c : Likewise.
28151 * convert.c : Likewise.
28152 * coverage.c : Likewise.
28153 * cppbuiltin.c : Likewise.
28154 * cprop.c : Likewise.
28155 * cse.c : Likewise.
28156 * cselib.c : Likewise.
28157 * data-streamer-in.c : Likewise.
28158 * data-streamer-out.c : Likewise.
28159 * data-streamer.c : Likewise.
28160 * data-streamer.h : Likewise.
28161 * dbxout.c : Likewise.
28162 * dce.c : Likewise.
28163 * ddg.c : Likewise.
28164 * debug.c : Likewise.
28165 * df-core.c : Likewise.
28166 * df-problems.c : Likewise.
28167 * df-scan.c : Likewise.
28169 * dfp.c : Likewise.
28170 * dojump.c : Likewise.
28171 * dominance.c : Likewise.
28172 * domwalk.c : Likewise.
28173 * double-int.c : Likewise.
28174 * dse.c : Likewise.
28175 * dumpfile.c : Likewise.
28176 * dwarf2asm.c : Likewise.
28177 * dwarf2cfi.c : Likewise.
28178 * dwarf2out.c : Likewise.
28179 * emit-rtl.c : Likewise.
28180 * et-forest.c : Likewise.
28181 * except.c : Likewise.
28182 * except.h : Likewise.
28183 * explow.c : Likewise.
28184 * expmed.c : Likewise.
28185 * expr.c : Likewise.
28186 * final.c : Likewise.
28187 * fixed-value.c : Likewise.
28188 * fold-const.c : Likewise.
28189 * function.c : Likewise.
28190 * fwprop.c : Likewise.
28191 * gcc-plugin.h : Likewise.
28192 * gcc.c : Likewise.
28193 * gcse-common.c : Likewise.
28194 * gcse.c : Likewise.
28195 * genattrtab.c : Likewise.
28196 * genautomata.c : Likewise.
28197 * genconditions.c : Likewise.
28198 * genemit.c : Likewise.
28199 * generic-match-head.c : Likewise.
28200 * genextract.c : Likewise.
28201 * gengtype-state.c : Likewise.
28202 * gengtype.c : Likewise.
28203 * genhooks.c : Likewise.
28204 * genmatch.c : Likewise.
28205 * genmodes.c : Likewise.
28206 * genrecog.c : Likewise.
28207 * gensupport.c : Likewise.
28208 * ggc-common.c : Likewise.
28209 * ggc-internal.h : Likewise.
28210 * ggc-none.c : Likewise.
28211 * ggc-page.c : Likewise.
28212 * gimple-builder.c : Likewise.
28213 * gimple-expr.c : Likewise.
28214 * gimple-fold.c : Likewise.
28215 * gimple-iterator.c : Likewise.
28216 * gimple-low.c : Likewise.
28217 * gimple-match-head.c : Likewise.
28218 * gimple-pretty-print.c : Likewise.
28219 * gimple-ssa-isolate-paths.c : Likewise.
28220 * gimple-ssa-strength-reduction.c : Likewise.
28221 * gimple-ssa.h : Likewise.
28222 * gimple-streamer-in.c : Likewise.
28223 * gimple-streamer-out.c : Likewise.
28224 * gimple-streamer.h : Likewise.
28225 * gimple-walk.c : Likewise.
28226 * gimple.c : Likewise.
28227 * gimplify-me.c : Likewise.
28228 * gimplify.c : Likewise.
28229 * godump.c : Likewise.
28230 * graph.c : Likewise.
28231 * graphds.c : Likewise.
28232 * graphite-blocking.c : Likewise.
28233 * graphite-dependences.c : Likewise.
28234 * graphite-interchange.c : Likewise.
28235 * graphite-isl-ast-to-gimple.c : Likewise.
28236 * graphite-optimize-isl.c : Likewise.
28237 * graphite-poly.c : Likewise.
28238 * graphite-scop-detection.c : Likewise.
28239 * graphite-sese-to-poly.c : Likewise.
28240 * graphite.c : Likewise.
28241 * haifa-sched.c : Likewise.
28242 * hard-reg-set.h : Likewise.
28243 * hw-doloop.c : Likewise.
28244 * ifcvt.c : Likewise.
28245 * inchash.c : Likewise.
28246 * incpath.c : Likewise.
28247 * init-regs.c : Likewise.
28248 * input.c : Likewise.
28249 * internal-fn.c : Likewise.
28250 * ipa-chkp.c : Likewise.
28251 * ipa-comdats.c : Likewise.
28252 * ipa-cp.c : Likewise.
28253 * ipa-devirt.c : Likewise.
28254 * ipa-icf-gimple.c : Likewise.
28255 * ipa-icf.c : Likewise.
28256 * ipa-inline-analysis.c : Likewise.
28257 * ipa-inline-transform.c : Likewise.
28258 * ipa-inline.c : Likewise.
28259 * ipa-polymorphic-call.c : Likewise.
28260 * ipa-profile.c : Likewise.
28261 * ipa-prop.c : Likewise.
28262 * ipa-pure-const.c : Likewise.
28263 * ipa-ref.c : Likewise.
28264 * ipa-reference.c : Likewise.
28265 * ipa-split.c : Likewise.
28266 * ipa-utils.c : Likewise.
28267 * ipa-visibility.c : Likewise.
28268 * ipa.c : Likewise.
28269 * ira-build.c : Likewise.
28270 * ira-color.c : Likewise.
28271 * ira-conflicts.c : Likewise.
28272 * ira-costs.c : Likewise.
28273 * ira-emit.c : Likewise.
28274 * ira-lives.c : Likewise.
28275 * ira.c : Likewise.
28276 * jump.c : Likewise.
28277 * langhooks.c : Likewise.
28278 * lcm.c : Likewise.
28279 * libfuncs.h : Likewise.
28280 * lists.c : Likewise.
28281 * loop-doloop.c : Likewise.
28282 * loop-init.c : Likewise.
28283 * loop-invariant.c : Likewise.
28284 * loop-iv.c : Likewise.
28285 * loop-unroll.c : Likewise.
28286 * lower-subreg.c : Likewise.
28287 * lra-assigns.c : Likewise.
28288 * lra-coalesce.c : Likewise.
28289 * lra-constraints.c : Likewise.
28290 * lra-eliminations.c : Likewise.
28291 * lra-lives.c : Likewise.
28292 * lra-remat.c : Likewise.
28293 * lra-spills.c : Likewise.
28294 * lra.c : Likewise.
28295 * lto-cgraph.c : Likewise.
28296 * lto-compress.c : Likewise.
28297 * lto-opts.c : Likewise.
28298 * lto-section-in.c : Likewise.
28299 * lto-section-out.c : Likewise.
28300 * lto-streamer-in.c : Likewise.
28301 * lto-streamer-out.c : Likewise.
28302 * lto-streamer.c : Likewise.
28303 * lto-streamer.h : Likewise.
28304 * mcf.c : Likewise.
28305 * mode-switching.c : Likewise.
28306 * modulo-sched.c : Likewise.
28307 * omega.c : Likewise.
28308 * omp-low.c : Likewise.
28309 * optabs.c : Likewise.
28310 * opts-global.c : Likewise.
28311 * opts.h : Likewise.
28312 * passes.c : Likewise.
28313 * plugin.c : Likewise.
28314 * postreload-gcse.c : Likewise.
28315 * postreload.c : Likewise.
28316 * predict.c : Likewise.
28317 * print-rtl.c : Likewise.
28318 * print-tree.c : Likewise.
28319 * profile.c : Likewise.
28320 * read-md.c : Likewise.
28321 * read-md.h : Likewise.
28322 * read-rtl.c : Likewise.
28323 * real.c : Likewise.
28324 * realmpfr.c : Likewise.
28325 * recog.c : Likewise.
28326 * ree.c : Likewise.
28327 * reg-stack.c : Likewise.
28328 * regcprop.c : Likewise.
28329 * reginfo.c : Likewise.
28330 * regrename.c : Likewise.
28331 * regstat.c : Likewise.
28332 * reload.c : Likewise.
28333 * reload1.c : Likewise.
28334 * reorg.c : Likewise.
28335 * resource.c : Likewise.
28336 * rtl-chkp.c : Likewise.
28337 * rtl.c : Likewise.
28338 * rtl.h : Likewise.
28339 * rtlanal.c : Likewise.
28340 * rtlhash.c : Likewise.
28341 * rtlhash.h : Likewise.
28342 * rtlhooks.c : Likewise.
28343 * sanopt.c : Likewise.
28344 * sched-deps.c : Likewise.
28345 * sched-ebb.c : Likewise.
28346 * sched-rgn.c : Likewise.
28347 * sched-vis.c : Likewise.
28348 * sdbout.c : Likewise.
28349 * sel-sched-dump.c : Likewise.
28350 * sel-sched-ir.c : Likewise.
28351 * sel-sched-ir.h : Likewise.
28352 * sel-sched.c : Likewise.
28353 * sese.c : Likewise.
28354 * shrink-wrap.c : Likewise.
28355 * shrink-wrap.h : Likewise.
28356 * simplify-rtx.c : Likewise.
28357 * stack-ptr-mod.c : Likewise.
28358 * statistics.c : Likewise.
28359 * stmt.c : Likewise.
28360 * stor-layout.c : Likewise.
28361 * store-motion.c : Likewise.
28362 * stringpool.c : Likewise.
28363 * symtab.c : Likewise.
28364 * target-globals.c : Likewise.
28365 * targhooks.c : Likewise.
28366 * tlink.c : Likewise.
28367 * toplev.c : Likewise.
28368 * tracer.c : Likewise.
28369 * trans-mem.c : Likewise.
28370 * tree-affine.c : Likewise.
28371 * tree-affine.h : Likewise.
28372 * tree-browser.c : Likewise.
28373 * tree-call-cdce.c : Likewise.
28374 * tree-cfg.c : Likewise.
28375 * tree-cfgcleanup.c : Likewise.
28376 * tree-chkp-opt.c : Likewise.
28377 * tree-chkp.c : Likewise.
28378 * tree-chrec.c : Likewise.
28379 * tree-complex.c : Likewise.
28380 * tree-data-ref.c : Likewise.
28381 * tree-dfa.c : Likewise.
28382 * tree-diagnostic.c : Likewise.
28383 * tree-dump.c : Likewise.
28384 * tree-eh.c : Likewise.
28385 * tree-eh.h : Likewise.
28386 * tree-emutls.c : Likewise.
28387 * tree-hasher.h : Likewise.
28388 * tree-if-conv.c : Likewise.
28389 * tree-inline.c : Likewise.
28390 * tree-inline.h : Likewise.
28391 * tree-into-ssa.c : Likewise.
28392 * tree-iterator.c : Likewise.
28393 * tree-loop-distribution.c : Likewise.
28394 * tree-nested.c : Likewise.
28395 * tree-nrv.c : Likewise.
28396 * tree-object-size.c : Likewise.
28397 * tree-outof-ssa.c : Likewise.
28398 * tree-parloops.c : Likewise.
28399 * tree-phinodes.c : Likewise.
28400 * tree-predcom.c : Likewise.
28401 * tree-pretty-print.c : Likewise.
28402 * tree-profile.c : Likewise.
28403 * tree-scalar-evolution.c : Likewise.
28404 * tree-sra.c : Likewise.
28405 * tree-ssa-address.c : Likewise.
28406 * tree-ssa-alias.c : Likewise.
28407 * tree-ssa-ccp.c : Likewise.
28408 * tree-ssa-coalesce.c : Likewise.
28409 * tree-ssa-copy.c : Likewise.
28410 * tree-ssa-copyrename.c : Likewise.
28411 * tree-ssa-dce.c : Likewise.
28412 * tree-ssa-dom.c : Likewise.
28413 * tree-ssa-dse.c : Likewise.
28414 * tree-ssa-forwprop.c : Likewise.
28415 * tree-ssa-ifcombine.c : Likewise.
28416 * tree-ssa-live.c : Likewise.
28417 * tree-ssa-loop-ch.c : Likewise.
28418 * tree-ssa-loop-im.c : Likewise.
28419 * tree-ssa-loop-ivcanon.c : Likewise.
28420 * tree-ssa-loop-ivopts.c : Likewise.
28421 * tree-ssa-loop-manip.c : Likewise.
28422 * tree-ssa-loop-niter.c : Likewise.
28423 * tree-ssa-loop-prefetch.c : Likewise.
28424 * tree-ssa-loop-unswitch.c : Likewise.
28425 * tree-ssa-loop.c : Likewise.
28426 * tree-ssa-math-opts.c : Likewise.
28427 * tree-ssa-operands.c : Likewise.
28428 * tree-ssa-phiopt.c : Likewise.
28429 * tree-ssa-phiprop.c : Likewise.
28430 * tree-ssa-pre.c : Likewise.
28431 * tree-ssa-propagate.c : Likewise.
28432 * tree-ssa-reassoc.c : Likewise.
28433 * tree-ssa-sccvn.c : Likewise.
28434 * tree-ssa-scopedtables.c : Likewise.
28435 * tree-ssa-sink.c : Likewise.
28436 * tree-ssa-strlen.c : Likewise.
28437 * tree-ssa-structalias.c : Likewise.
28438 * tree-ssa-tail-merge.c : Likewise.
28439 * tree-ssa-ter.c : Likewise.
28440 * tree-ssa-threadedge.c : Likewise.
28441 * tree-ssa-threadupdate.c : Likewise.
28442 * tree-ssa-uncprop.c : Likewise.
28443 * tree-ssa-uninit.c : Likewise.
28444 * tree-ssa.c : Likewise.
28445 * tree-ssanames.c : Likewise.
28446 * tree-stdarg.c : Likewise.
28447 * tree-streamer-in.c : Likewise.
28448 * tree-streamer-out.c : Likewise.
28449 * tree-streamer.c : Likewise.
28450 * tree-streamer.h : Likewise.
28451 * tree-switch-conversion.c : Likewise.
28452 * tree-tailcall.c : Likewise.
28453 * tree-vect-data-refs.c : Likewise.
28454 * tree-vect-generic.c : Likewise.
28455 * tree-vect-loop-manip.c : Likewise.
28456 * tree-vect-loop.c : Likewise.
28457 * tree-vect-patterns.c : Likewise.
28458 * tree-vect-slp.c : Likewise.
28459 * tree-vect-stmts.c : Likewise.
28460 * tree-vectorizer.c : Likewise.
28461 * tree-vectorizer.h : Likewise.
28462 * tree-vrp.c : Likewise.
28463 * tree.c : Likewise.
28464 * tsan.c : Likewise.
28465 * ubsan.c : Likewise.
28466 * valtrack.c : Likewise.
28467 * valtrack.h : Likewise.
28468 * value-prof.c : Likewise.
28469 * var-tracking.c : Likewise.
28470 * varasm.c : Likewise.
28471 * varpool.c : Likewise.
28473 * vmsdbgout.c : Likewise.
28474 * vtable-verify.c : Likewise.
28475 * vtable-verify.h : Likewise.
28476 * web.c : Likewise.
28477 * wide-int.cc : Likewise.
28478 * xcoffout.c : Likewise.
28479 * config/aarch64/aarch64-builtins.c : Likewise.
28480 * config/aarch64/aarch64.c : Likewise.
28481 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
28482 * config/alpha/alpha.c : Likewise.
28483 * config/arc/arc.c : Likewise.
28484 * config/arm/aarch-common.c : Likewise.
28485 * config/arm/arm-builtins.c : Likewise.
28486 * config/arm/arm-c.c : Likewise.
28487 * config/arm/arm.c : Likewise.
28488 * config/avr/avr-c.c : Likewise.
28489 * config/avr/avr-log.c : Likewise.
28490 * config/avr/avr.c : Likewise.
28491 * config/bfin/bfin.c : Likewise.
28492 * config/c6x/c6x.c : Likewise.
28493 * config/cr16/cr16.c : Likewise.
28494 * config/cris/cris.c : Likewise.
28495 * config/darwin-c.c : Likewise.
28496 * config/darwin.c : Likewise.
28497 * config/default-c.c : Likewise.
28498 * config/epiphany/epiphany.c : Likewise.
28499 * config/epiphany/mode-switch-use.c : Likewise.
28500 * config/epiphany/resolve-sw-modes.c : Likewise.
28501 * config/fr30/fr30.c : Likewise.
28502 * config/frv/frv.c : Likewise.
28503 * config/ft32/ft32.c : Likewise.
28504 * config/glibc-c.c : Likewise.
28505 * config/h8300/h8300.c : Likewise.
28506 * config/i386/i386-c.c : Likewise.
28507 * config/i386/i386.c : Likewise.
28508 * config/i386/msformat-c.c : Likewise.
28509 * config/i386/winnt-cxx.c : Likewise.
28510 * config/i386/winnt-stubs.c : Likewise.
28511 * config/i386/winnt.c : Likewise.
28512 * config/ia64/ia64-c.c : Likewise.
28513 * config/ia64/ia64.c : Likewise.
28514 * config/iq2000/iq2000.c : Likewise.
28515 * config/lm32/lm32.c : Likewise.
28516 * config/m32c/m32c-pragma.c : Likewise.
28517 * config/m32c/m32c.c : Likewise.
28518 * config/m32r/m32r.c : Likewise.
28519 * config/m68k/m68k.c : Likewise.
28520 * config/mcore/mcore.c : Likewise.
28521 * config/mep/mep-pragma.c : Likewise.
28522 * config/mep/mep.c : Likewise.
28523 * config/microblaze/microblaze-c.c : Likewise.
28524 * config/microblaze/microblaze.c : Likewise.
28525 * config/mips/mips.c : Likewise.
28526 * config/mmix/mmix.c : Likewise.
28527 * config/mn10300/mn10300.c : Likewise.
28528 * config/moxie/moxie.c : Likewise.
28529 * config/msp430/msp430-c.c : Likewise.
28530 * config/msp430/msp430.c : Likewise.
28531 * config/nds32/nds32-cost.c : Likewise.
28532 * config/nds32/nds32-fp-as-gp.c : Likewise.
28533 * config/nds32/nds32-intrinsic.c : Likewise.
28534 * config/nds32/nds32-isr.c : Likewise.
28535 * config/nds32/nds32-md-auxiliary.c : Likewise.
28536 * config/nds32/nds32-memory-manipulation.c : Likewise.
28537 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
28538 * config/nds32/nds32-predicates.c : Likewise.
28539 * config/nds32/nds32.c : Likewise.
28540 * config/nios2/nios2.c : Likewise.
28541 * config/nvptx/nvptx.c : Likewise.
28542 * config/pa/pa.c : Likewise.
28543 * config/pdp11/pdp11.c : Likewise.
28544 * config/rl78/rl78-c.c : Likewise.
28545 * config/rl78/rl78.c : Likewise.
28546 * config/rs6000/rs6000-c.c : Likewise.
28547 * config/rs6000/rs6000.c : Likewise.
28548 * config/rx/rx.c : Likewise.
28549 * config/s390/s390-c.c : Likewise.
28550 * config/s390/s390.c : Likewise.
28551 * config/sh/sh-c.c : Likewise.
28552 * config/sh/sh-mem.cc : Likewise.
28553 * config/sh/sh.c : Likewise.
28554 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
28555 * config/sh/sh_treg_combine.cc : Likewise.
28556 * config/sol2-c.c : Likewise.
28557 * config/sol2-cxx.c : Likewise.
28558 * config/sol2-stubs.c : Likewise.
28559 * config/sol2.c : Likewise.
28560 * config/sparc/sparc-c.c : Likewise.
28561 * config/sparc/sparc.c : Likewise.
28562 * config/spu/spu-c.c : Likewise.
28563 * config/spu/spu.c : Likewise.
28564 * config/stormy16/stormy16.c : Likewise.
28565 * config/tilegx/mul-tables.c : Likewise.
28566 * config/tilegx/tilegx-c.c : Likewise.
28567 * config/tilegx/tilegx.c : Likewise.
28568 * config/tilepro/mul-tables.c : Likewise.
28569 * config/tilepro/tilepro-c.c : Likewise.
28570 * config/tilepro/tilepro.c : Likewise.
28571 * config/v850/v850-c.c : Likewise.
28572 * config/v850/v850.c : Likewise.
28573 * config/vax/vax.c : Likewise.
28574 * config/visium/visium.c : Likewise.
28575 * config/vms/vms-c.c : Likewise.
28576 * config/vms/vms.c : Likewise.
28577 * config/vxworks.c : Likewise.
28578 * config/winnt-c.c : Likewise.
28579 * config/xtensa/xtensa.c : Likewise.
28581 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28584 * ipa-utils.h (warn_types_mismatch): Update prototype.
28585 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
28587 (type_mismatch_p): New function.
28588 (warn_types_mismatch): Reorg to work better on non-C++ types.
28589 (odr_types_equivalent_p): Add loc1/loc2 parameters.
28590 (add_type_duplicate): Update.
28592 2015-06-08 Tom de Vries <tom@codesourcery.com>
28594 PR rtl-optimization/66444
28595 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
28598 2015-06-08 Richard Biener <rguenther@suse.de>
28600 PR tree-optimization/66422
28601 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
28602 block after inserted gcc_unreachable.
28604 2015-06-08 Nick Clifton <nickc@redhat.com>
28606 * config/rx/rx.c (rx_function_value): Do not promote vector types.
28607 (rx_promote_function_mode): Likewise.
28608 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
28610 2015-06-08 Jakub Jelinek <jakub@redhat.com>
28612 * genattrtab.c (insn_alternatives): Change type from int *
28614 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
28615 (get_attr_value): Change type of num_alt to uint64_t.
28616 (compute_alternative_mask): Change return type from
28617 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
28618 (make_alternative_compare, mk_attr_alt): Change argument type
28619 from int to uint64_t.
28620 (simplify_test_exp): Change type of i from int to uint64_t.
28621 Shift ((uint64_t) 1) instead of 1 up.
28622 (main): Adjust oballocvec first argument from int to uint64_t.
28623 Shift ((uint64_t) 1) instead of 1 up.
28625 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
28628 * gdbhooks.py: Import sys.
28629 (intptr): New function. Replace int(...) by intptr(...).
28631 2015-06-08 Richard Biener <rguenther@suse.de>
28633 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
28634 adjustment for gaps at the end of a SLP load group properly.
28635 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
28636 all permutations we can generate.
28637 (vect_transform_slp_perm_load): Use the correct group-size.
28639 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
28641 * genmatch.c (expr::gen_transform): For conditions, guess the type
28642 from the second operand.
28644 2015-06-08 Tom de Vries <tom@codesourcery.com>
28646 PR tree-optimization/66442
28647 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
28648 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
28649 if the loop latch is not a singleton. Use
28650 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
28652 2015-06-08 Marek Polacek <polacek@redhat.com>
28655 * toplev.c (check_global_declaration): Don't warn about artificial
28658 2015-06-08 Tom de Vries <tom@codesourcery.com>
28660 PR tree-optimization/66436
28661 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
28663 * gimplify.c: Add tree-dump.h include.
28664 (gimplify_function_tree): Dump function to gimple dump file.
28665 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
28668 2015-06-08 Tom de Vries <tom@codesourcery.com>
28670 PR tree-optimization/66435
28671 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
28674 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
28676 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
28677 of ptr_type_node to not be ptr_to_node.
28678 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
28679 TREE_TYPE of pointers.
28680 * gimple-expr.c (useless_type_conversion): Reorder the check for
28681 function pointers and TYPE_CANONICAL.
28683 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
28686 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
28687 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
28688 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
28690 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
28691 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
28692 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
28693 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
28694 and non iso if unix2003.
28696 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
28698 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
28700 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
28702 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
28703 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
28704 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
28705 except.c, final.c, function.c, gcse-common.c, genemit.c,
28706 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
28707 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
28708 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
28709 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
28712 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
28714 * combine.c (combine_split_insns): Remove cast.
28715 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
28716 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
28717 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
28718 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
28719 * genemit.c (gen_split): Change return type of generated functions to
28721 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
28722 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
28723 gen_peephole2_* functions.
28724 (print_subroutine, main): Likewise.
28725 * recog.c (peephole2_optimize): Remove cast.
28726 (peep2_next_insn): Promote return type to rtx_insn.
28727 * recog.h (peep2_next_insn): Fix prototype.
28728 * rtl.h (try_split, split_insns): Likewise.
28730 2015-06-06 DJ Delorie <dj@redhat.com>
28732 * config/msp430/msp430.c (msp430_asm_integer): Support addition
28733 and subtraction too.
28735 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
28738 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
28739 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
28740 instead of Snd. Disparage Sid/z alternative with '^'.
28742 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
28744 * dwarf2out.c: Remove deferred_locations*.
28745 (dwarf2_debug_hooks): Add early_finish hook.
28746 Remove global_decl hook.
28747 Add early_global_decl and late_global_decl hook.
28748 New global early_dwarf.
28749 New structure set_early_dwarf.
28750 (output_die): Indicate whether a DIE was generated early
28751 when generating assembly with -dA.
28752 (struct limbo_die_struct): Document created_for field.
28753 Remove file_table_last_lookup.
28754 (remove_AT): Return TRUE if successful.
28755 (remove_child_TAG): Clear die_parent.
28756 (reparent_child): New function abstracted from...
28757 (splice_child_die): ...here.
28758 (new_die): ICE if a DIE ends up in limbo too late.
28760 (defer_location): Remove.
28761 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
28762 (fill_variable_array_bounds): New.
28763 (decl_start_label): Call fill_variable_array_bounds.
28764 (gen_formal_parameter_die): Rewrite to reuse previously generated
28766 (gen_subprogram_die): Same.
28767 (gen_variable_die): Same.
28768 (gen_const_die): Same.
28769 (gen_label_die): Same.
28770 (gen_lexical_block_die): Same.
28771 (decl_will_get_specification_p): New.
28772 (local_function_static): New.
28773 (gen_struct_or_union_type_die): Fill in variable-length fields.
28774 (gen_typedef_die): Fill in variable-length typedefs.
28775 (gen_tagged_type_die): Gracefully return on error_mark_node.
28776 Handle re-entrancy.
28777 (gen_type_die_with_usage): Handle variable-length types.
28778 Remove duplicate code for ARRAY_TYPE case.
28779 (process_scope_var): Only process imported modules during early
28781 (dwarf2out_early_global_decl): New.
28782 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
28783 (dwarf2out_type_decl): Set early_dwarf while calling
28785 (dwarf2out_decl): Verify that we did not recreate a previously
28787 Do not return on DECL_EXTERNALs in VAR_DECLs.
28788 Abstract some code to local_function_static.
28789 (lookup_filename): Remove use of file_table_last_lookup.
28790 Gracefully exit on missing file_name.
28791 (dwarf2out_finish): Verify limbo list.
28792 Remove deferred_locations_list use.
28793 Move deferred_asm_name and limbo flushing to...
28794 (dwarf2out_early_finish): ...here. New.
28795 (dwarf2out_c_finalize): Remove set of deferred_location_list,
28796 deferred_asm_name, and file_table_last_lookup.
28797 * cgraph.h (referred_to_p): Add default argument.
28798 * cgraphunit.c (referred_to_p): Add and handle include_self
28800 (analyze_functions): Add first_time argument.
28801 Call check_global_declaration for all symbols.
28802 Call late_global_decl for nodes for moribund nodes.
28803 (finalize_compilation_unit): Add new argument to
28805 Call early_global_decl for functions.
28806 Call early_finish debug hook.
28807 * dbxout.c (dbxout_early_global_decl): New.
28808 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
28809 (dbx_debug_hooks): Add new hooks.
28810 (xcoff_debug_hooks): Same.
28811 * debug.c (do_nothing_debug_hooks): Add early_finish field.
28812 Add early and late debug hooks.
28813 Remove global_decl hook.
28814 * debug.h (struct gcc_debug_hooks): Add early_finish,
28815 early_global_decl, and late_global_decl fields.
28816 Remove global_decl field.
28817 Document gcc_debug_hooks.
28818 * gengtype.c (output_typename): Remove.
28819 * godump.c (go_early_global_decl): New.
28820 (go_late_global_decl): New.
28821 (go_global_decl): Remove.
28822 (dump_go_spec_init): Remove global_decl. Add
28823 {early,late}_global_decl.
28824 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
28825 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
28826 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
28827 (write_global_declarations): Remove.
28828 (global_decl_processing): New.
28829 * langhooks.h (struct lang_hooks_for_decls): Remove
28830 final_write_globals field.
28831 Add post_compilation_parsing_cleanups field.
28832 * passes.c (rest_of_decl_compilation): Call early_global_decl.
28833 * sdbout.c: Add early and late_global_decl hooks. Remove
28834 sdbout_global_decl hook.
28835 Add early_finish field for sdb_debug_hooks.
28836 (sdbout_global_decl): Remove.
28837 (sdbout_early_global_decl): New.
28838 (sdbout_late_global_decl): New.
28839 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
28840 * toplev.c (check_global_declaration): Rename from
28841 check_global_declaration_1.
28842 Adapt to use symtab infrastructure.
28843 (check_global_declarations): Remove.
28844 (emit_debug_global_declarations): Remove.
28845 (compile_file): Remove call to final_write_globals langhook.
28846 Run the actual compilation process.
28847 Perform any post compilation parser cleanups.
28848 Generate late debug info.
28849 * toplev.h (check_global_declaration): New.
28850 (check_global_declaration_1): Remove.
28851 (check_global_declarations): Remove.
28852 (write_global_declarations): Remove.
28853 (emit_debug_global_declarations): Remove.
28854 (global_decl_processing): New.
28855 * tree-core.h (struct tree_block): Add DIE field.
28856 * tree.h (BLOCK_DIE): New.
28857 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
28859 (vmsdbgout_early_global_decl): New.
28860 (vmsdbgout_late_global_decl): New.
28861 Add early_finish debug hook field to vmsdbg_debug_hooks.
28862 Remove vmsdbgout_decl to vmsdbgout_function_decl.
28863 Add early and late_global_decl debug hooks.
28865 2015-06-05 Julian Brown <julian@codesourcery.com>
28866 Sandra Loosemore <sandra@codesourcery.com>
28868 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
28869 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
28870 to print-sysroot-suffix.sh script.
28872 2015-06-05 Tom de Vries <tom@codesourcery.com>
28874 merge from gomp4 branch:
28875 2015-05-28 Tom de Vries <tom@codesourcery.com>
28877 PR tree-optimization/65443
28878 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
28879 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
28880 (try_transform_to_exit_first_loop_alt): New function.
28881 (transform_to_exit_first_loop): Use
28882 try_transform_to_exit_first_loop_alt.
28884 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
28886 * builtins.c (expand_builtin_atomic_compare_exchange): Call
28887 emit_cmp_and_jump_insns with the mode of target.
28889 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28891 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
28893 2015-06-04 DJ Delorie <dj@redhat.com>
28895 * config/msp430/msp430.md (movsi_s): New. Special case for
28896 storing a 20-bit symbol into a 32-bit register.
28897 * config/msp430/msp430.c (msp430_subreg): Add support for it.
28898 * config/msp430/predicates.md (msp430_symbol_operand): New.
28900 2015-06-04 Sriraman Tallam <tmsriram@google.com>
28902 * calls.c (prepare_call_address): Check for noplt
28904 * config/i386/i386.c (ix86_expand_call): Check
28905 for noplt attribute.
28906 (ix86_nopic_noplt_attribute_p): New function.
28907 (ix86_output_call_insn): Output indirect call for non-pic
28909 * doc/extend.texi (noplt): Document new attribute.
28910 * doc/invoke.texi: Document new attribute.
28912 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
28914 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
28915 real.h, and fixed-value.h when included in host source files.
28916 * double-int.h: Remove redundant #includes listed above.
28917 * fixed-value.h: Likewise.
28918 * real.h: Likewise.
28919 * wide-int.h: Likewise.
28920 * inchash.h: Likewise.
28921 * rtl.h: Add some include files When included from a generator file.
28922 * target.h: Remove wide-int.h and insn-modes.h from the include list.
28923 * internal-fn.h: Don't include coretypes.h.
28924 * alias.c: Adjust includes for restructured coretypes.h.
28925 * asan.c: Likewise.
28926 * attribs.c: Likewise.
28927 * auto-inc-dec.c: Likewise.
28928 * auto-profile.c: Likewise.
28929 * bb-reorder.c: Likewise.
28930 * bt-load.c: Likewise.
28931 * builtins.c: Likewise.
28932 * caller-save.c: Likewise.
28933 * calls.c: Likewise.
28934 * ccmp.c: Likewise.
28936 * cfganal.c: Likewise.
28937 * cfgbuild.c: Likewise.
28938 * cfgcleanup.c: Likewise.
28939 * cfgexpand.c: Likewise.
28940 * cfghooks.c: Likewise.
28941 * cfgloop.c: Likewise.
28942 * cfgloop.h: Likewise.
28943 * cfgloopanal.c: Likewise.
28944 * cfgloopmanip.c: Likewise.
28945 * cfgrtl.c: Likewise.
28946 * cgraph.c: Likewise.
28947 * cgraphbuild.c: Likewise.
28948 * cgraphclones.c: Likewise.
28949 * cgraphunit.c: Likewise.
28950 * cilk-common.c: Likewise.
28951 * combine-stack-adj.c: Likewise.
28952 * combine.c: Likewise.
28953 * compare-elim.c: Likewise.
28954 * convert.c: Likewise.
28955 * coverage.c: Likewise.
28956 * cppbuiltin.c: Likewise.
28957 * cprop.c: Likewise.
28959 * cselib.c: Likewise.
28960 * data-streamer-in.c: Likewise.
28961 * data-streamer-out.c: Likewise.
28962 * data-streamer.c: Likewise.
28963 * dbxout.c: Likewise.
28966 * debug.c: Likewise.
28967 * df-core.c: Likewise.
28968 * df-problems.c: Likewise.
28969 * df-scan.c: Likewise.
28972 * dojump.c: Likewise.
28973 * dominance.c: Likewise.
28974 * domwalk.c: Likewise.
28975 * double-int.c: Likewise.
28977 * dumpfile.c: Likewise.
28978 * dwarf2asm.c: Likewise.
28979 * dwarf2cfi.c: Likewise.
28980 * dwarf2out.c: Likewise.
28981 * dwarf2out.h: Likewise.
28982 * emit-rtl.c: Likewise.
28983 * et-forest.c: Likewise.
28984 * except.c: Likewise.
28985 * explow.c: Likewise.
28986 * expmed.c: Likewise.
28987 * expr.c: Likewise.
28988 * final.c: Likewise.
28989 * fixed-value.c: Likewise.
28990 * fold-const.c: Likewise.
28991 * function.c: Likewise.
28992 * fwprop.c: Likewise.
28993 * gcc-plugin.h: Likewise.
28994 * gcse.c: Likewise.
28995 * generic-match-head.c: Likewise.
28996 * ggc-page.c: Likewise.
28997 * gimple-builder.c: Likewise.
28998 * gimple-expr.c: Likewise.
28999 * gimple-fold.c: Likewise.
29000 * gimple-iterator.c: Likewise.
29001 * gimple-low.c: Likewise.
29002 * gimple-match-head.c: Likewise.
29003 * gimple-pretty-print.c: Likewise.
29004 * gimple-ssa-isolate-paths.c: Likewise.
29005 * gimple-ssa-strength-reduction.c: Likewise.
29006 * gimple-streamer-in.c: Likewise.
29007 * gimple-streamer-out.c: Likewise.
29008 * gimple-streamer.h: Likewise.
29009 * gimple-walk.c: Likewise.
29010 * gimple.c: Likewise.
29011 * gimplify-me.c: Likewise.
29012 * gimplify.c: Likewise.
29013 * godump.c: Likewise.
29014 * graph.c: Likewise.
29015 * graphite-blocking.c: Likewise.
29016 * graphite-dependences.c: Likewise.
29017 * graphite-interchange.c: Likewise.
29018 * graphite-isl-ast-to-gimple.c: Likewise.
29019 * graphite-optimize-isl.c: Likewise.
29020 * graphite-poly.c: Likewise.
29021 * graphite-scop-detection.c: Likewise.
29022 * graphite-sese-to-poly.c: Likewise.
29023 * graphite.c: Likewise.
29024 * haifa-sched.c: Likewise.
29025 * hooks.h: Likewise.
29026 * hw-doloop.c: Likewise.
29027 * ifcvt.c: Likewise.
29028 * incpath.c: Likewise.
29029 * init-regs.c: Likewise.
29030 * internal-fn.c: Likewise.
29031 * ipa-chkp.c: Likewise.
29032 * ipa-comdats.c: Likewise.
29033 * ipa-cp.c: Likewise.
29034 * ipa-devirt.c: Likewise.
29035 * ipa-icf-gimple.c: Likewise.
29036 * ipa-icf.c: Likewise.
29037 * ipa-inline-analysis.c: Likewise.
29038 * ipa-inline-transform.c: Likewise.
29039 * ipa-inline.c: Likewise.
29040 * ipa-polymorphic-call.c: Likewise.
29041 * ipa-profile.c: Likewise.
29042 * ipa-prop.c: Likewise.
29043 * ipa-pure-const.c: Likewise.
29044 * ipa-ref.c: Likewise.
29045 * ipa-reference.c: Likewise.
29046 * ipa-split.c: Likewise.
29047 * ipa-utils.c: Likewise.
29048 * ipa-visibility.c: Likewise.
29050 * ira-build.c: Likewise.
29051 * ira-color.c: Likewise.
29052 * ira-conflicts.c: Likewise.
29053 * ira-costs.c: Likewise.
29054 * ira-emit.c: Likewise.
29055 * ira-lives.c: Likewise.
29057 * jump.c: Likewise.
29058 * langhooks.c: Likewise.
29060 * loop-doloop.c: Likewise.
29061 * loop-init.c: Likewise.
29062 * loop-invariant.c: Likewise.
29063 * loop-iv.c: Likewise.
29064 * loop-unroll.c: Likewise.
29065 * lower-subreg.c: Likewise.
29066 * lra-assigns.c: Likewise.
29067 * lra-coalesce.c: Likewise.
29068 * lra-constraints.c: Likewise.
29069 * lra-eliminations.c: Likewise.
29070 * lra-lives.c: Likewise.
29071 * lra-remat.c: Likewise.
29072 * lra-spills.c: Likewise.
29074 * lto-cgraph.c: Likewise.
29075 * lto-compress.c: Likewise.
29076 * lto-opts.c: Likewise.
29077 * lto-section-in.c: Likewise.
29078 * lto-section-out.c: Likewise.
29079 * lto-streamer-in.c: Likewise.
29080 * lto-streamer-out.c: Likewise.
29081 * lto-streamer.c: Likewise.
29083 * mode-switching.c: Likewise.
29084 * modulo-sched.c: Likewise.
29085 * omega.c: Likewise.
29086 * omp-low.c: Likewise.
29087 * optabs.c: Likewise.
29088 * opts-global.c: Likewise.
29089 * passes.c: Likewise.
29090 * plugin.c: Likewise.
29091 * postreload-gcse.c: Likewise.
29092 * postreload.c: Likewise.
29093 * predict.c: Likewise.
29094 * print-rtl.c: Likewise.
29095 * print-tree.c: Likewise.
29096 * profile.c: Likewise.
29097 * real.c: Likewise.
29098 * realmpfr.c: Likewise.
29099 * realmpfr.h: Likewise.
29100 * recog.c: Likewise.
29102 * reg-stack.c: Likewise.
29103 * regcprop.c: Likewise.
29104 * reginfo.c: Likewise.
29105 * regrename.c: Likewise.
29106 * regs.h: Likewise.
29107 * regstat.c: Likewise.
29108 * reload.c: Likewise.
29109 * reload1.c: Likewise.
29110 * reorg.c: Likewise.
29111 * resource.c: Likewise.
29112 * rtl-chkp.c: Likewise.
29113 * rtlanal.c: Likewise.
29114 * rtlhooks.c: Likewise.
29115 * sanopt.c: Likewise.
29116 * sched-deps.c: Likewise.
29117 * sched-ebb.c: Likewise.
29118 * sched-rgn.c: Likewise.
29119 * sched-vis.c: Likewise.
29120 * sdbout.c: Likewise.
29121 * sel-sched-dump.c: Likewise.
29122 * sel-sched-ir.c: Likewise.
29123 * sel-sched.c: Likewise.
29124 * sese.c: Likewise.
29125 * shrink-wrap.c: Likewise.
29126 * shrink-wrap.h: Likewise.
29127 * simplify-rtx.c: Likewise.
29128 * stack-ptr-mod.c: Likewise.
29129 * statistics.c: Likewise.
29130 * stmt.c: Likewise.
29131 * stor-layout.c: Likewise.
29132 * store-motion.c: Likewise.
29133 * stringpool.c: Likewise.
29134 * symtab.c: Likewise.
29135 * target-globals.c: Likewise.
29136 * targhooks.c: Likewise.
29137 * toplev.c: Likewise.
29138 * tracer.c: Likewise.
29139 * trans-mem.c: Likewise.
29140 * tree-affine.c: Likewise.
29141 * tree-affine.h: Likewise.
29142 * tree-browser.c: Likewise.
29143 * tree-call-cdce.c: Likewise.
29144 * tree-cfg.c: Likewise.
29145 * tree-cfgcleanup.c: Likewise.
29146 * tree-chkp-opt.c: Likewise.
29147 * tree-chkp.c: Likewise.
29148 * tree-chrec.c: Likewise.
29149 * tree-complex.c: Likewise.
29150 * tree-data-ref.c: Likewise.
29151 * tree-dfa.c: Likewise.
29152 * tree-diagnostic.c: Likewise.
29153 * tree-dump.c: Likewise.
29154 * tree-eh.c: Likewise.
29155 * tree-emutls.c: Likewise.
29156 * tree-if-conv.c: Likewise.
29157 * tree-inline.c: Likewise.
29158 * tree-into-ssa.c: Likewise.
29159 * tree-iterator.c: Likewise.
29160 * tree-loop-distribution.c: Likewise.
29161 * tree-nested.c: Likewise.
29162 * tree-nrv.c: Likewise.
29163 * tree-object-size.c: Likewise.
29164 * tree-outof-ssa.c: Likewise.
29165 * tree-parloops.c: Likewise.
29166 * tree-phinodes.c: Likewise.
29167 * tree-predcom.c: Likewise.
29168 * tree-pretty-print.c: Likewise.
29169 * tree-pretty-print.h: Likewise.
29170 * tree-profile.c: Likewise.
29171 * tree-scalar-evolution.c: Likewise.
29172 * tree-sra.c: Likewise.
29173 * tree-ssa-address.c: Likewise.
29174 * tree-ssa-alias.c: Likewise.
29175 * tree-ssa-ccp.c: Likewise.
29176 * tree-ssa-coalesce.c: Likewise.
29177 * tree-ssa-copy.c: Likewise.
29178 * tree-ssa-copyrename.c: Likewise.
29179 * tree-ssa-dce.c: Likewise.
29180 * tree-ssa-dom.c: Likewise.
29181 * tree-ssa-dse.c: Likewise.
29182 * tree-ssa-forwprop.c: Likewise.
29183 * tree-ssa-ifcombine.c: Likewise.
29184 * tree-ssa-live.c: Likewise.
29185 * tree-ssa-loop-ch.c: Likewise.
29186 * tree-ssa-loop-im.c: Likewise.
29187 * tree-ssa-loop-ivcanon.c: Likewise.
29188 * tree-ssa-loop-ivopts.c: Likewise.
29189 * tree-ssa-loop-manip.c: Likewise.
29190 * tree-ssa-loop-niter.c: Likewise.
29191 * tree-ssa-loop-prefetch.c: Likewise.
29192 * tree-ssa-loop-unswitch.c: Likewise.
29193 * tree-ssa-loop.c: Likewise.
29194 * tree-ssa-loop.h: Likewise.
29195 * tree-ssa-math-opts.c: Likewise.
29196 * tree-ssa-operands.c: Likewise.
29197 * tree-ssa-phiopt.c: Likewise.
29198 * tree-ssa-phiprop.c: Likewise.
29199 * tree-ssa-pre.c: Likewise.
29200 * tree-ssa-propagate.c: Likewise.
29201 * tree-ssa-reassoc.c: Likewise.
29202 * tree-ssa-sccvn.c: Likewise.
29203 * tree-ssa-scopedtables.c: Likewise.
29204 * tree-ssa-sink.c: Likewise.
29205 * tree-ssa-strlen.c: Likewise.
29206 * tree-ssa-structalias.c: Likewise.
29207 * tree-ssa-tail-merge.c: Likewise.
29208 * tree-ssa-ter.c: Likewise.
29209 * tree-ssa-threadedge.c: Likewise.
29210 * tree-ssa-threadupdate.c: Likewise.
29211 * tree-ssa-uncprop.c: Likewise.
29212 * tree-ssa-uninit.c: Likewise.
29213 * tree-ssa.c: Likewise.
29214 * tree-ssanames.c: Likewise.
29215 * tree-stdarg.c: Likewise.
29216 * tree-streamer-in.c: Likewise.
29217 * tree-streamer-out.c: Likewise.
29218 * tree-streamer.c: Likewise.
29219 * tree-switch-conversion.c: Likewise.
29220 * tree-tailcall.c: Likewise.
29221 * tree-vect-data-refs.c: Likewise.
29222 * tree-vect-generic.c: Likewise.
29223 * tree-vect-loop-manip.c: Likewise.
29224 * tree-vect-loop.c: Likewise.
29225 * tree-vect-patterns.c: Likewise.
29226 * tree-vect-slp.c: Likewise.
29227 * tree-vect-stmts.c: Likewise.
29228 * tree-vectorizer.c: Likewise.
29229 * tree-vrp.c: Likewise.
29230 * tree.c: Likewise.
29231 * tsan.c: Likewise.
29232 * ubsan.c: Likewise.
29233 * valtrack.c: Likewise.
29234 * value-prof.c: Likewise.
29235 * var-tracking.c: Likewise.
29236 * varasm.c: Likewise.
29237 * varpool.c: Likewise.
29238 * vmsdbgout.c: Likewise.
29239 * vtable-verify.c: Likewise.
29241 * wide-int-print.cc: Likewise.
29242 * wide-int-print.h: Likewise.
29243 * wide-int.cc: Likewise.
29244 * xcoffout.c: Likewise.
29245 * config/aarch64/aarch64-builtins.c: Likewise.
29246 * config/aarch64/aarch64.c: Likewise.
29247 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29248 * config/alpha/alpha.c: Likewise.
29249 * config/arc/arc.c: Likewise.
29250 * config/arm/aarch-common.c: Likewise.
29251 * config/arm/arm-builtins.c: Likewise.
29252 * config/arm/arm-c.c: Likewise.
29253 * config/arm/arm.c: Likewise.
29254 * config/avr/avr-c.c: Likewise.
29255 * config/avr/avr-log.c: Likewise.
29256 * config/avr/avr.c: Likewise.
29257 * config/bfin/bfin.c: Likewise.
29258 * config/c6x/c6x.c: Likewise.
29259 * config/cr16/cr16.c: Likewise.
29260 * config/cris/cris.c: Likewise.
29261 * config/darwin-c.c: Likewise.
29262 * config/darwin.c: Likewise.
29263 * config/default-c.c: Likewise.
29264 * config/epiphany/epiphany.c: Likewise.
29265 * config/epiphany/mode-switch-use.c: Likewise.
29266 * config/epiphany/resolve-sw-modes.c: Likewise.
29267 * config/fr30/fr30.c: Likewise.
29268 * config/frv/frv.c: Likewise.
29269 * config/ft32/ft32.c: Likewise.
29270 * config/glibc-c.c: Likewise.
29271 * config/h8300/h8300.c: Likewise.
29272 * config/i386/i386-c.c: Likewise.
29273 * config/i386/i386.c: Likewise.
29274 * config/i386/msformat-c.c: Likewise.
29275 * config/i386/winnt-cxx.c: Likewise.
29276 * config/i386/winnt-stubs.c: Likewise.
29277 * config/i386/winnt.c: Likewise.
29278 * config/ia64/ia64-c.c: Likewise.
29279 * config/ia64/ia64.c: Likewise.
29280 * config/iq2000/iq2000.c: Likewise.
29281 * config/lm32/lm32.c: Likewise.
29282 * config/m32c/m32c-pragma.c: Likewise.
29283 * config/m32c/m32c.c: Likewise.
29284 * config/m32r/m32r.c: Likewise.
29285 * config/m68k/m68k.c: Likewise.
29286 * config/mcore/mcore.c: Likewise.
29287 * config/mep/mep-pragma.c: Likewise.
29288 * config/mep/mep.c: Likewise.
29289 * config/microblaze/microblaze-c.c: Likewise.
29290 * config/microblaze/microblaze.c: Likewise.
29291 * config/mips/mips.c: Likewise.
29292 * config/mmix/mmix.c: Likewise.
29293 * config/mn10300/mn10300.c: Likewise.
29294 * config/moxie/moxie.c: Likewise.
29295 * config/msp430/msp430-c.c: Likewise.
29296 * config/msp430/msp430.c: Likewise.
29297 * config/nds32/nds32-cost.c: Likewise.
29298 * config/nds32/nds32-fp-as-gp.c: Likewise.
29299 * config/nds32/nds32-intrinsic.c: Likewise.
29300 * config/nds32/nds32-isr.c: Likewise.
29301 * config/nds32/nds32-md-auxiliary.c: Likewise.
29302 * config/nds32/nds32-memory-manipulation.c: Likewise.
29303 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29304 * config/nds32/nds32-predicates.c: Likewise.
29305 * config/nds32/nds32.c: Likewise.
29306 * config/nios2/nios2.c: Likewise.
29307 * config/nvptx/nvptx.c: Likewise.
29308 * config/pa/pa.c: Likewise.
29309 * config/pdp11/pdp11.c: Likewise.
29310 * config/rl78/rl78-c.c: Likewise.
29311 * config/rl78/rl78.c: Likewise.
29312 * config/rs6000/rs6000-c.c: Likewise.
29313 * config/rs6000/rs6000.c: Likewise.
29314 * config/rx/rx.c: Likewise.
29315 * config/s390/s390-c.c: Likewise.
29316 * config/s390/s390.c: Likewise.
29317 * config/sh/sh-c.c: Likewise.
29318 * config/sh/sh-mem.cc: Likewise.
29319 * config/sh/sh.c: Likewise.
29320 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
29321 * config/sh/sh_treg_combine.cc: Likewise.
29322 * config/sol2-c.c: Likewise.
29323 * config/sol2-cxx.c: Likewise.
29324 * config/sol2-stubs.c: Likewise.
29325 * config/sol2.c: Likewise.
29326 * config/sparc/sparc-c.c: Likewise.
29327 * config/sparc/sparc.c: Likewise.
29328 * config/spu/spu-c.c: Likewise.
29329 * config/spu/spu.c: Likewise.
29330 * config/stormy16/stormy16.c: Likewise.
29331 * config/tilegx/mul-tables.c: Likewise.
29332 * config/tilegx/tilegx-c.c: Likewise.
29333 * config/tilegx/tilegx.c: Likewise.
29334 * config/tilepro/mul-tables.c: Likewise.
29335 * config/tilepro/tilepro-c.c: Likewise.
29336 * config/tilepro/tilepro.c: Likewise.
29337 * config/v850/v850-c.c: Likewise.
29338 * config/v850/v850.c: Likewise.
29339 * config/vax/vax.c: Likewise.
29340 * config/visium/visium.c: Likewise.
29341 * config/vms/vms-c.c: Likewise.
29342 * config/vms/vms.c: Likewise.
29343 * config/vxworks.c: Likewise.
29344 * config/winnt-c.c: Likewise.
29345 * config/xtensa/xtensa.c: Likewise.
29346 * common/config/bfin/bfin-common.c: Likewise.
29348 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
29350 * tree.h (tree_code_for_canonical_type_merging): New function.
29351 * tree.c (gimple_canonical_types_compatible_p): Use
29352 tree_code_for_canonical_type_merging..
29354 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29358 * doc/tm.texi: Regenerate.
29359 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
29360 * target.def (TARGET_RELAXED_ORDERING): Likewise.
29361 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
29362 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
29363 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
29364 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
29365 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
29366 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
29367 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
29369 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29371 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
29372 register fma steering pass.
29373 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
29374 AARCH64_TUNE_FMA_STEERING.
29376 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
29378 * tree.c (verify_type_variant): Verify that type and variant is
29380 (gimple_canonical_types_compatible_p): Look for main variants.
29382 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29384 * config.gcc (powerpc*-*-*): Add support for a new configure
29385 option --with-advance-toolchain=<xxx> which overrides using the
29386 default header files, libraries and dynamic linker.
29388 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
29389 specs to support the configure --with-advance-toolchain=<xxx>
29391 (INCLUDE_EXTRA_SPEC): Likewise.
29392 (LINK_OS_EXTRA_SPEC32): Likewise.
29393 (LINK_OK_EXTRA_SPEC64): Likewise.
29394 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
29395 (DYNAMIC_LINKER_PREFIX): Likewise.
29396 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
29398 (GLIBC_DYNAMIC_LINKER32): Likewise.
29399 (GLIBC_DYNAMIC_LINKER64): Likewise.
29400 (LINK_OS_LINUX_SPEC32): Likewise.
29401 (LINK_OS_LINUX_SPEC64): Likewise.
29403 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
29404 configuration option.
29406 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
29409 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
29410 to determine current function ABI.
29411 (ix86_function_value_regno_p): Ditto.
29413 2015-06-03 Martin Liska <mliska@suse.cz>
29415 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
29416 * bitmap.h (struct bitmap_usage): Likewise.
29417 * ggc-common.c (struct ggc_usage): Likewise.
29418 * mem-stats.h (struct mem_location): Likewise.
29419 (struct mem_usage): Likewise.
29420 * vec.c (struct vec_usage): Likewise.
29422 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
29424 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
29427 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
29429 * doc/plugins.texi (enum plugin_event): New event.
29430 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
29431 and PLUGIN_FINISH_FUNCTION.
29432 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
29433 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
29435 2015-06-03 Richard Biener <rguenther@suse.de>
29437 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29438 compute GROUP_GAP for the first element.
29439 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
29442 2015-06-03 Nick Clifton <nickc@redhat.com>
29444 * config/rl78/rl78-real.md: Add peepholes to avoid a register
29445 copy when calling a function.
29446 * config/rl78/rl78.c (need_to_save): Do not push the frame
29447 pointer in an interrupt handler prologue if it is never used.
29449 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29451 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
29453 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29455 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
29456 reference when cloning alias node.
29458 2015-06-03 Martin Liska <mliska@suse.cz>
29460 * alloc-pool.h (struct pool_usage): Correct space padding.
29461 * ggc-page.c (ggc_print_statistics): Align columns in a report.
29462 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
29463 * tree.c (dump_tree_statistics): Align columns in a report.
29465 2015-06-03 Martin Liska <mliska@suse.cz>
29467 * alloc-pool.c (allocate_pool_descriptor): Remove.
29468 (struct pool_output_info): Likewise.
29469 (print_alloc_pool_statistics): Likewise.
29470 (dump_alloc_pool_statistics): Likewise.
29471 * alloc-pool.h (struct pool_usage): New struct.
29472 (pool_allocator::initialize): Change usage of memory statistics
29473 to a new interface.
29474 (pool_allocator::release): Likewise.
29475 (pool_allocator::allocate): Likewise.
29476 (pool_allocator::remove): Likewise.
29477 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
29478 for a pool allocator.
29479 * mem-stats.h (struct mem_location): Add new ctor.
29480 (struct mem_usage): Add counter for number of
29482 (mem_alloc_description::register_descriptor): New overload of
29483 * mem-stats.h (mem_location::to_string): New function.
29484 * bitmap.h (struct bitmap_usage): Use this new function.
29485 * ggc-common.c (struct ggc_usage): Likewise.
29488 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29490 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
29491 of GCC_INSN_FLAGS_H block.
29493 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
29495 * explow.c (plus_constant): Update check after force_const_mem call
29496 to see if the value returned is not a NULL_RTX.
29498 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29500 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
29501 remove instumentation thunks calling reachable functions.
29502 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
29503 * lto/lto-partition.c (privatize_symbol_name_1): New.
29504 (privatize_symbol_name): Privatize both decl and orig_decl
29505 names for instrumented functions.
29506 * cgraph.c (cgraph_node::verify_node): Add transparent
29507 alias chain check for instrumented node.
29509 2015-06-03 Marek Polacek <polacek@redhat.com>
29513 * tree.c (attribute_value_equal): Handle attribute format.
29514 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
29516 2015-06-03 Richard Biener <rguenther@suse.de>
29518 PR tree-optimization/63916
29519 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
29520 Forward-propagate non-invariant addresses by splicing their
29521 reference ops if the result isn't going to be used by PRE.
29522 (vn_reference_lookup_3): Remove pointless assert.
29524 2015-06-03 Richard Biener <rguenther@suse.de>
29526 PR tree-optimization/66375
29527 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
29528 add to the evolution before following SSA edges.
29530 2015-06-03 Bin Cheng <bin.cheng@arm.com>
29532 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
29533 (dump_use, dump_cand, find_induction_variables): Pass new argument
29535 (record_use): Preserve the ssa name information in IV.
29537 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29539 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
29541 (add_mode_tests): Don't add mode tests if the predicate only
29542 accepts scalar constant integers. Otherwise, allow the mode
29543 of "op" to be VOIDmode if the predicate does accept such integers.
29545 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
29548 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
29549 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
29550 (aarch64_secondary_reload): Likewise
29551 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
29553 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
29556 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
29557 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29560 * cprop.c (try_replace_reg): Check cost of constants before propagating.
29562 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29564 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
29565 provide access to the IBM extended double floating point mode if
29566 long double is IEEE 128-bit floating point.
29567 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
29568 point if long double is the IBM extended double type.
29570 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
29571 enable adding IEEE 128-bit floating point support.
29572 (-mfloat128-software): Likewise.
29573 (-mfloat128-sw): Likewise.
29575 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
29576 128-bit floating point types to occupy any register if
29577 -mlong-double-64. Do not allow use of IFmode/KFmode unless
29578 -mfloat128-software is enabled.
29579 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
29581 (rs6000_option_override_internal): Add -mfloat128-* support.
29582 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
29584 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
29585 and float128 type nodes.
29586 (ieee128_float_type_node): Likewise.
29587 (ibm128_float_type_node): Likewise.
29589 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
29592 * config/aarch64/geniterators.sh: Rewrite in awk.
29594 2015-06-02 Martin Liska <mliska@suse.cz>
29596 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
29597 values to avoid -Wmaybe-uninitialized errors.
29599 2015-06-02 Richard Biener <rguenther@suse.de>
29602 * dwarf2out.c (lookup_context_die): New function.
29603 (resolve_addr): Avoid forcing a full DIE for the
29604 target of a DW_TAG_GNU_call_site during late compilation.
29605 Instead create a stub DIE without a type if we have a
29606 context DIE present.
29608 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
29610 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
29612 2015-06-02 Bin Cheng <bin.cheng@arm.com>
29614 PR tree-optimization/48052
29615 * cfgloop.h (struct control_iv): New.
29616 (struct loop): New field control_ivs.
29617 * tree-ssa-loop-niter.c : Include "stor-layout.h".
29618 (number_of_iterations_lt): Set no_overflow information.
29619 (number_of_iterations_exit): Init control iv in niter struct.
29620 (record_control_iv): New.
29621 (estimate_numbers_of_iterations_loop): Call record_control_iv.
29622 (loop_exits_before_overflow): New. Interface factored out of
29623 scev_probably_wraps_p.
29624 (scev_probably_wraps_p): Factor loop niter related code into
29625 loop_exits_before_overflow.
29626 (free_numbers_of_iterations_estimates_loop): Free control ivs.
29627 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
29629 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
29631 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
29632 the target doesn't belong to the current function.
29634 2015-06-02 Marek Polacek <polacek@redhat.com>
29636 PR middle-end/66345
29637 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
29638 get_maxval_strlen does not produce an INTEGER_CST.
29640 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
29642 * config/arc/constraints.md: Use lower-case names in match_code.
29643 * config/mmix/constraints.md: Likewise.
29645 2015-06-02 Richard Biener <rguenther@suse.de>
29647 PR tree-optimization/65961
29648 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
29649 check and clarify dump message.
29650 (vect_build_slp_tree): If all children are built up from scalars
29651 build up the parent from scalars instead.
29652 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
29654 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
29657 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
29658 instead of print ... .
29660 2015-06-02 Alan Modra <amodra@gmail.com>
29662 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
29665 2015-06-02 Bin Cheng <bin.cheng@arm.com>
29667 PR tree-optimization/52563
29668 PR tree-optimization/62173
29669 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
29670 (alloc_iv, set_iv): New parameter.
29671 (determine_biv_step): Delete.
29672 (find_bivs): Inline original determine_biv_step. Pass new
29673 argument to set_iv.
29674 (idx_find_step): Use no_overflow information for conversion.
29675 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
29676 resolve_mixers handle folded_casts.
29677 (instantiate_scev_name): Change bool parameter to bool pointer.
29678 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
29679 (instantiate_array_ref, instantiate_scev_not): Ditto.
29680 (instantiate_scev_3, instantiate_scev_2): Ditto.
29681 (instantiate_scev_1, instantiate_scev_r): Ditto.
29682 (instantiate_scev_convert, ): Change parameter. Pass argument
29683 to chrec_convert_aggressive.
29684 (instantiate_scev): Change argument.
29685 (resolve_mixers): New parameter and set it.
29686 (scev_const_prop): New argument.
29687 * tree-scalar-evolution.h (resolve_mixers): New parameter.
29688 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
29690 (chrec_convert): New parameter. Move definition below.
29691 (chrec_convert_aggressive): New parameter and set it. Call
29692 convert_affine_scev.
29693 * tree-chrec.h (chrec_convert): New parameter.
29694 (chrec_convert_aggressive): Ditto.
29696 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
29698 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
29699 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
29700 the LHS of a no-return call if its type has variable size.
29701 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
29702 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
29704 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
29706 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
29707 * config.in: Regenerate.
29709 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
29711 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
29712 consecutive accesses within outer-loop with force_vectorize
29713 for references with zero step in inner-loop.
29715 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
29717 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
29718 rather than from gcc/build directory.
29720 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
29723 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
29724 for __sync memory models, emit initial loads and final barriers as
29727 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
29730 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
29731 (aarch64_split_atomic_op): Check for __sync memory models, emit
29732 appropriate initial loads and final barriers.
29734 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
29736 * Makefile.in: Fix gcov dependencies that should
29737 not point to a build folder.
29739 2015-06-01 Richard Biener <rguenther@suse.de>
29742 2015-05-29 Richard Biener <rguenther@suse.de>
29744 PR tree-optimization/66314
29745 * tree-ssa-threadupdate.c (create_block_for_threading): Add
29746 parameter that says which loop the new block belongs to.
29747 (ssa_create_duplicates): Blocks duplicated for the threaded
29748 path belong to the loop of the thread destination.
29750 2015-06-01 Martin Liska <mliska@suse.cz>
29752 * sched-deps.c: Include pool-alloc.h before
29753 cselib.h header file is included.
29755 2015-06-01 Richard Biener <rguenther@suse.de>
29757 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
29760 2015-06-01 Martin Liska <mliska@suse.cz>
29762 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
29763 a function local variable.
29765 2015-06-01 Martin Liska <mliska@suse.cz>
29767 * alloc-pool.c (create_alloc_pool): Remove.
29768 (empty_alloc_pool): Likewise.
29769 (free_alloc_pool): Likewise.
29770 (free_alloc_pool_if_empty): Likewise.
29771 (pool_alloc): Likewise.
29772 (pool_free): Likewise.
29773 * alloc-pool.h: Remove old declarations.
29775 2015-06-01 Martin Liska <mliska@suse.cz>
29777 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
29778 (ira_create_object): Likewise.
29779 (ira_create_allocno): Likewise.
29780 (ira_create_live_range): Likewise.
29781 (copy_live_range): Likewise.
29782 (ira_finish_live_range): Likewise.
29783 (ira_free_allocno_costs): Likewise.
29784 (finish_allocno): Likewise.
29785 (finish_allocnos): Likewise.
29786 (initiate_prefs): Likewise.
29787 (ira_create_pref): Likewise.
29788 (finish_pref): Likewise.
29789 (finish_prefs): Likewise.
29790 (initiate_copies): Likewise.
29791 (ira_create_copy): Likewise.
29792 (finish_copy): Likewise.
29793 (finish_copies): Likewise.
29794 (finish_prefs): Likewise.
29796 2015-06-01 Martin Liska <mliska@suse.cz>
29798 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
29799 (allocate_and_init_ipcp_value): Likewise.
29800 (ipcp_lattice::add_value): Likewise.
29801 (merge_agg_lats_step): Likewise.
29802 (ipcp_driver): Likewise.
29803 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
29804 (ipa_free_all_structures_after_iinln): Likewise.
29805 * ipa-prop.h: Likewise.
29807 2015-06-01 Martin Liska <mliska@suse.cz>
29809 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
29811 (set_hint_predicate): Likewise.
29812 (inline_summary_alloc): Likewise.
29813 (reset_inline_edge_summary): Likewise.
29814 (reset_inline_summary): Likewise.
29815 (set_cond_stmt_execution_predicate): Likewise.
29816 (set_switch_stmt_execution_predicate): Likewise.
29817 (compute_bb_predicates): Likewise.
29818 (estimate_function_body_sizes): Likewise.
29819 (inline_free_summary): Likewise.
29821 2015-06-01 Martin Liska <mliska@suse.cz>
29823 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
29824 (ipa_edge_duplication_hook): Likewise.
29825 (ipa_free_all_structures_after_ipa_cp): Likewise.
29826 (ipa_free_all_structures_after_iinln): Likewise.
29828 2015-06-01 Martin Liska <mliska@suse.cz>
29830 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
29831 (ipa_profile_generate_summary): Likewise.
29832 (ipa_profile_read_summary): Likewise.
29833 (ipa_profile): Likewise.
29835 2015-06-01 Martin Liska <mliska@suse.cz>
29837 * tree-ssa-structalias.c (new_var_info): Use new type-based
29839 (new_constraint): Likewise.
29840 (init_alias_vars): Likewise.
29841 (delete_points_to_sets): Likewise.
29843 2015-06-01 Martin Liska <mliska@suse.cz>
29845 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
29846 (free_strinfo): Likewise.
29847 (pass_strlen::execute): Likewise.
29849 2015-06-01 Martin Liska <mliska@suse.cz>
29851 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
29853 (vn_reference_insert_pieces): Likewise.
29854 (vn_phi_insert): Likewise.
29855 (visit_reference_op_call): Likewise.
29856 (copy_phi): Likewise.
29857 (copy_reference): Likewise.
29858 (process_scc): Likewise.
29859 (allocate_vn_table): Likewise.
29860 (free_vn_table): Likewise.
29862 2015-06-01 Martin Liska <mliska@suse.cz>
29864 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
29866 (add_repeat_to_ops_vec): Likewise.
29867 (get_ops): Likewise.
29868 (maybe_optimize_range_tests): Likewise.
29869 (init_reassoc): Likewise.
29870 (fini_reassoc): Likewise.
29872 2015-06-01 Martin Liska <mliska@suse.cz>
29874 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
29876 (bitmap_set_new): Likewise.
29877 (get_or_alloc_expr_for_constant): Likewise.
29878 (get_or_alloc_expr_for): Likewise.
29879 (phi_translate_1): Likewise.
29880 (compute_avail): Likewise.
29881 (init_pre): Likewise.
29882 (fini_pre): Likewise.
29884 2015-06-01 Martin Liska <mliska@suse.cz>
29886 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
29887 (delete_dep_node): Likewise.
29888 (create_deps_list): Likewise.
29889 (free_deps_list): Likewise.
29890 (sched_deps_init): Likewise.
29891 (sched_deps_finish): Likewise.
29893 2015-06-01 Martin Liska <mliska@suse.cz>
29895 * regcprop.c (free_debug_insn_changes): Use new type-based
29897 (replace_oldest_value_reg): Likewise.
29898 (pass_cprop_hardreg::execute): Likewise.
29900 2015-06-01 Martin Liska <mliska@suse.cz>
29902 * ira-build.c (initiate_cost_vectors): Use new type-based
29904 (ira_allocate_cost_vector): Likewise.
29905 (ira_free_cost_vector): Likewise.
29906 (finish_cost_vectors): Likewise.
29908 2015-06-01 Martin Liska <mliska@suse.cz>
29910 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
29912 (free_sched_pools): Likewise.
29913 * sel-sched-ir.h (_list_alloc): Likewise.
29914 (_list_remove): Likewise.
29916 2015-06-01 Martin Liska <mliska@suse.cz>
29918 * stmt.c (add_case_node): Use new type-based pool allocator.
29919 (expand_case): Likewise.
29920 (expand_sjlj_dispatch_table): Likewise.
29922 2015-06-01 Martin Liska <mliska@suse.cz>
29924 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
29925 (free_bb): Likewise.
29926 (pass_cse_reciprocals::execute): Likewise.
29928 2015-06-01 Martin Liska <mliska@suse.cz>
29930 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
29931 (sra_deinitialize) Likewise.
29932 (create_access_1) Likewise.
29933 (build_accesses_from_assign) Likewise.
29934 (create_artificial_child_access) Likewise.
29936 2015-06-01 Martin Liska <mliska@suse.cz>
29938 * dse.c (get_group_info):Use new type-based pool allocator.
29939 (dse_step0) Likewise.
29940 (free_store_info) Likewise.
29941 (delete_dead_store_insn) Likewise.
29942 (free_read_records) Likewise.
29943 (record_store) Likewise.
29944 (replace_read) Likewise.
29945 (check_mem_read_rtx) Likewise.
29946 (scan_insn) Likewise.
29947 (dse_step1) Likewise.
29948 (dse_step7) Likewise.
29950 2015-06-01 Martin Liska <mliska@suse.cz>
29952 * df-scan.c (struct df_scan_problem_data):Use new type-based
29954 (df_scan_free_internal) Likewise.
29955 (df_scan_alloc) Likewise.
29956 (df_grow_reg_info) Likewise.
29957 (df_free_ref) Likewise.
29958 (df_insn_create_insn_record) Likewise.
29959 (df_mw_hardreg_chain_delete) Likewise.
29960 (df_insn_info_delete) Likewise.
29961 (df_free_collection_rec) Likewise.
29962 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
29963 (df_sort_and_compress_mws) Likewise.
29964 (df_ref_create_structure) Likewise.
29965 (df_ref_record) Likewise.
29967 2015-06-01 Martin Liska <mliska@suse.cz>
29969 * df-problems.c (df_chain_create):Use new type-based pool allocator.
29970 (df_chain_unlink_1) Likewise.
29971 (df_chain_unlink) Likewise.
29972 (df_chain_remove_problem) Likewise.
29973 (df_chain_alloc) Likewise.
29974 (df_chain_free) Likewise.
29975 * df.h (struct dataflow) Likewise.
29977 2015-06-01 Martin Liska <mliska@suse.cz>
29979 * cselib.c (new_elt_list):Use new type-based pool allocator.
29980 (new_elt_loc_list) Likewise.
29981 (unchain_one_elt_list) Likewise.
29982 (unchain_one_elt_loc_list) Likewise.
29983 (unchain_one_value) Likewise.
29984 (new_cselib_val) Likewise.
29985 (cselib_init) Likewise.
29986 (cselib_finish) Likewise.
29988 2015-06-01 Martin Liska <mliska@suse.cz>
29990 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
29991 (sh_reorg) Likewise.
29993 2015-06-01 Martin Liska <mliska@suse.cz>
29995 * cfg.c (initialize_original_copy_tables):Use new type-based
29997 (free_original_copy_tables) Likewise.
29998 (copy_original_table_clear) Likewise.
29999 (copy_original_table_set) Likewise.
30001 2015-06-01 Martin Liska <mliska@suse.cz>
30003 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
30005 (asan_mem_ref_new) Likewise.
30006 (free_mem_ref_resources) Likewise.
30008 2015-06-01 Martin Liska <mliska@suse.cz>
30010 * var-tracking.c (variable_htab_free):Use new type-based
30012 (attrs_list_clear) Likewise.
30013 (attrs_list_insert) Likewise.
30014 (attrs_list_copy) Likewise.
30015 (shared_hash_unshare) Likewise.
30016 (shared_hash_destroy) Likewise.
30017 (unshare_variable) Likewise.
30018 (var_reg_delete_and_set) Likewise.
30019 (var_reg_delete) Likewise.
30020 (var_regno_delete) Likewise.
30021 (drop_overlapping_mem_locs) Likewise.
30022 (variable_union) Likewise.
30023 (insert_into_intersection) Likewise.
30024 (canonicalize_values_star) Likewise.
30025 (variable_merge_over_cur) Likewise.
30026 (dataflow_set_merge) Likewise.
30027 (remove_duplicate_values) Likewise.
30028 (variable_post_merge_new_vals) Likewise.
30029 (dataflow_set_preserve_mem_locs) Likewise.
30030 (dataflow_set_remove_mem_locs) Likewise.
30031 (variable_from_dropped) Likewise.
30032 (variable_was_changed) Likewise.
30033 (set_slot_part) Likewise.
30034 (clobber_slot_part) Likewise.
30035 (delete_slot_part) Likewise.
30036 (loc_exp_insert_dep) Likewise.
30037 (notify_dependents_of_changed_value) Likewise.
30038 (emit_notes_for_differences_1) Likewise.
30039 (vt_emit_notes) Likewise.
30040 (vt_initialize) Likewise.
30041 (vt_finalize) Likewise.
30043 2015-06-01 Martin Liska <mliska@suse.cz>
30045 * ira-color.c (init_update_cost_records):Use new type-based
30047 (get_update_cost_record) Likewise.
30048 (free_update_cost_record_list) Likewise.
30049 (finish_update_cost_records) Likewise.
30050 (initiate_cost_update) Likewise.
30052 2015-06-01 Martin Liska <mliska@suse.cz>
30054 * lra.c (init_insn_regs): Use new type-based pool allocator.
30055 (new_insn_reg) Likewise.
30056 (free_insn_reg) Likewise.
30057 (free_insn_regs) Likewise.
30058 (finish_insn_regs) Likewise.
30059 (init_insn_recog_data) Likewise.
30060 (init_reg_info) Likewise.
30061 (finish_reg_info) Likewise.
30062 (lra_free_copies) Likewise.
30063 (lra_create_copy) Likewise.
30064 (invalidate_insn_data_regno_info) Likewise.
30066 2015-06-01 Martin Liska <mliska@suse.cz>
30068 * lra-lives.c (free_live_range): Use new type-based pool allocator.
30069 (free_live_range_list) Likewise.
30070 (create_live_range) Likewise.
30071 (copy_live_range) Likewise.
30072 (lra_merge_live_ranges) Likewise.
30073 (remove_some_program_points_and_update_live_ranges) Likewise.
30074 (lra_live_ranges_init) Likewise.
30075 (lra_live_ranges_finish) Likewise.
30077 2015-06-01 Martin Liska <mliska@suse.cz>
30079 * et-forest.c (et_new_occ): Use new type-based pool allocator.
30080 (et_new_tree): Likewise.
30081 (et_free_tree): Likewise.
30082 (et_free_tree_force): Likewise.
30083 (et_free_pools): Likewise.
30084 (et_split): Likewise.
30086 2015-06-01 Martin Liska <mliska@suse.cz>
30088 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
30090 * alloc-pool.h (pool_allocator::pool_allocator): New function.
30091 (pool_allocator::release): Likewise.
30092 (inline pool_allocator::release_if_empty): Likewise.
30093 (inline pool_allocator::~pool_allocator): Likewise.
30094 (pool_allocator::allocate): Likewise.
30095 (pool_allocator::remove): Likewise.
30097 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30099 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
30102 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30104 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
30106 * config/arm/arm.c (arm_print_tune_info): Likewise.
30107 (arm_macro_fusion_p): Likewise.
30108 (arm_macro_fusion_pair_p): Likewise.
30110 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30112 * config/aarch64/aarch64-protos.h (tune_params): Rename
30113 fuseable_ops to fusible_ops.
30114 * config/aarch64/aarch64.c (generic_tunings): Rename
30115 fuseable_ops to fusible_ops.
30116 (cortexa53_tunings): Likewise.
30117 (cortexa57_tunings): Likewise.
30118 (thunderx_tunings): Likewise.
30119 (xgene1_tunings): Likewise.
30120 (aarch64_macro_fusion_p): Likewise.
30121 (aarch64_macro_fusion_pair_p): Likewise.
30123 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
30125 * config/s390/driver-native.c: New file.
30126 * config/s390/x-native: New file.
30127 * config.host: Add new files for s390.
30128 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
30130 * config.gcc: Likewise.
30131 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
30132 * config/s390/s390-opts.h (enum processor_type): Ditto.
30133 * config/s390/s390.c (s390_option_override): Catch unhandled
30136 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
30139 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
30140 redirection for instrumented calls.
30141 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
30142 (append_compiler_options): Append -fcheck-pointer-bounds.
30143 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
30144 (chkp_redirect_edge): New.
30145 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
30146 (chkp_redirect_edge): New.
30148 2015-06-01 Richard Biener <rguenther@suse.de>
30150 PR tree-optimization/66280
30151 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
30154 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30156 * config/aarch64/aarch64.md
30157 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
30160 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
30162 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
30163 Remove obsolete kludge.
30165 2015-06-01 Richard Biener <rguenther@suse.de>
30167 * tree-ssa-reassoc.c (get_rank): Simplify.
30169 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
30171 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
30172 * configure: Regenerated.
30174 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
30176 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
30177 issue (add space between string literal and macro).
30178 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
30180 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
30182 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
30183 implict or explicit -fPIE or -fpie.
30185 2015-05-30 Mike Frysinger <vapier@gentoo.org>
30187 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
30189 2015-05-28 DJ Delorie <dj@redhat.com>
30191 * expmed.c (extract_bit_field_1): Avoid clobbering a
30192 yet-to-be-used base/index register.
30194 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
30196 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
30197 (alias_stats): Add num_universal.
30198 (alias_set_subset_of): Special case pointers; be ready for NULL
30200 (alias_sets_conflict_p): Special case pointers; be ready for NULL
30202 (init_alias_set_entry): Break out from ...
30203 (record_alias_subset): ... here; propagate new fields;
30204 allocate children only when really needed.
30205 (get_alias_set): Do less generous pointer globbing.
30206 (dump_alias_stats_in_alias_c): Update statistics.
30208 2015-05-30 Alan Modra <amodra@gmail.com>
30210 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
30211 correct block for use of r12.
30212 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
30214 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
30217 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
30220 2015-05-29 Jakub Jelinek <jakub@redhat.com>
30222 PR tree-optimization/66142
30223 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
30224 virtual phis that feed themselves.
30226 2015-05-29 Richard Biener <rguenther@suse.de>
30228 PR tree-optimization/66314
30229 * tree-ssa-threadupdate.c (create_block_for_threading): Add
30230 parameter that says which loop the new block belongs to.
30231 (ssa_create_duplicates): Blocks duplicated for the threaded
30232 path belong to the loop of the thread destination.
30234 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30236 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
30237 to cleanup-saved-temps.
30238 * doc/sourcebuild.texi (Clean up generated test files): Expand
30240 (dg-keep-saved-temps): Document new proc.
30241 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
30242 cleanup-saved-temps): Remove.
30244 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
30246 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
30247 gcc_AC_CHECK_DECLS.
30248 * configure: Regenerate.
30250 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30252 * config/nios2/linux.h (CPP_SPEC): Define.
30254 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30256 * config/microblaze/linux.h (CPP_SPEC): Define.
30258 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30260 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
30261 -pthread is specified.
30263 2015-05-28 Richard Biener <rguenther@suse.de>
30265 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
30266 (vect_fixup_scalar_cycles_with_patterns): Likewise.
30267 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
30268 after pattern recog.
30269 (vect_create_epilog_for_reduction): Properly handle reductions
30271 (vectorizable_reduction): Likewise.
30272 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
30274 (vect_get_constant_vectors): Create the correct number of
30275 initial values for reductions.
30276 (vect_schedule_slp_instance): Handle reduction chains that are
30277 type changing properly.
30278 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
30280 2015-05-28 Richard Biener <rguenther@suse.de>
30282 PR tree-optimization/66142
30283 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
30284 values better in memcpy destination handling. Handle non-aliasing
30287 2015-05-28 Lawrence Velázquez <vq@larryv.me>
30290 * config/darwin-c.c (version_components): New global enum.
30291 (parse_version, version_as_legacy_macro)
30292 (version_as_modern_macro, macosx_version_as_macro): New functions.
30293 (version_as_macro): Remove.
30294 (darwin_cpp_builtins): Use new function.
30296 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
30298 * builtins.c (expand_builtin_acc_on_device): Mark parameters
30299 with ATTRIBUTE_UNUSED.
30301 2015-05-28 Julian Brown <julian@codesourcery.com>
30305 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
30306 sequence for !ACCEL_COMPILER.
30308 2015-05-28 Nick Clifton <nickc@redhat.com>
30310 * config/rx/rx.c (push_regs): New function. Extracts code from...
30311 (rx_expand_prologue): ... here. Use push_regs to push even small
30312 spans of registers.
30313 (pop_regs): New function.
30314 (rx_expand_epilogue): Use pop_regs to pop even small spans of
30317 2015-05-28 Richard Biener <rguenther@suse.de>
30319 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
30321 (SLP_INSTANCE_BODY_COST_VEC): Remove.
30322 (vect_update_slp_costs_according_to_vf): Likewise.
30323 (vect_slp_analyze_operations): Update prototype.
30324 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
30325 vect_update_slp_costs_according_to_vf, adjust.
30326 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
30327 (vect_analyze_slp_cost_1): Likewise.
30328 (vect_analyze_slp_cost): Likewise. Properly deal with
30329 widening reduction ops. Commit body costs.
30330 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
30331 cost for loops from here.
30332 (vect_slp_analyze_operations): But do it from here when
30333 the vectorization factor is known and stmts are analyzed.
30334 (vect_bb_vectorization_profitable_p): Simplify.
30335 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
30336 (vect_update_slp_costs_according_to_vf): Remove.
30338 2015-05-27 Magnus Granberg <zorry@gentoo.org>
30339 H.J. Lu <hongjiu.lu@intel.com>
30341 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
30342 (BUILD_CFLAGS): Likewise.
30343 (BUILD_CXXFLAGS): Likewise.
30344 (LINKER): Add @NO_PIE_FLAG@.
30345 (BUILD_LDFLAGS): Likewise.
30346 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
30347 --enable-default-pie.
30348 * common.opt (fPIE): Initialize to -1.
30350 (no-pie): New option.
30351 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
30352 * configure.ac: Add --enable-default-pie.
30353 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
30354 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
30355 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
30356 * gcc.c (NO_PIE_SPEC): New.
30357 (PIE_SPEC): Likewise.
30358 (NO_FPIE1_SPEC): Likewise.
30359 (FPIE1_SPEC): Likewise.
30360 (NO_FPIE2_SPEC): Likewise.
30361 (FPIE2_SPEC): Likewise.
30362 (NO_FPIE2_SPEC): Likewise.
30363 (FPIE_SPEC): Likewise.
30364 (NO_FPIE_SPEC): Likewise.
30365 (NO_FPIC1_SPEC): Likewise.
30366 (FPIC1_SPEC): Likewise.
30367 (NO_FPIC2_SPEC): Likewise.
30368 (FPIC2_SPEC): Likewise.
30369 (NO_FPIC2_SPEC): Likewise.
30370 (FPIC_SPEC): Likewise.
30371 (NO_FPIC_SPEC): Likewise.
30372 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
30373 (FPIE1_OR_FPIC1_SPEC): Likewise.
30374 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
30375 (FPIE2_OR_FPIC2_SPEC): Likewise.
30376 (NO_FPIE_AND_FPIC_SPEC): Likewise.
30377 (FPIE_OR_FPIC_SPEC): Likewise.
30378 (LD_PIE_SPEC): Likewise.
30379 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
30380 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
30381 * config/darwin.h (PIE_SPEC): Renamed to ...
30382 (DARWIN_PIE_SPEC): This.
30383 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
30384 * config/darwin9.h (PIE_SPEC): Renamed to ...
30385 (DARWIN_PIE_SPEC): This.
30386 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
30387 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
30388 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
30389 FPIE2_OR_FPIC2_SPEC.
30390 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
30391 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
30392 * config/sol2.h (ASM_PIC_SPEC): Likewise.
30393 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30394 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30395 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30396 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
30397 * config/m32r/m32r.h (ASM_SPEC): Likewise.
30398 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
30399 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30400 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
30401 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
30402 * config/sparc/linux.h (ASM_SPEC): Likewise.
30403 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30404 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
30405 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
30406 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30407 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30408 * config/sparc/sparc.h (ASM_SPEC): Likewise.
30409 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
30410 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
30411 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
30412 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
30413 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
30414 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
30415 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
30416 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
30417 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
30418 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
30419 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
30420 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
30421 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30422 * config/vax/linux.h (ASM_SPEC): Likewise.
30423 * doc/install.texi: Document --enable-default-pie.
30424 * doc/invoke.texi: Document -no-pie.
30425 * config.in: Regenerated.
30426 * configure: Likewise.
30428 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30430 PR rtl-optimization/66168
30431 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
30432 can_move_invariant_reg.
30434 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
30437 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
30438 REG_EQUAL note when doing insert.
30440 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
30441 instead of "%d" for 'o' operand.
30443 2015-05-27 Nathan Sidwell <nathan@acm.org>
30446 * tree.c (build_pointer_type_for_mode): Canonical type does not
30447 inherit can_alias_all.
30448 (build_reference_type_for_mode): Likewise.
30450 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
30452 * expr.h (array_at_struct_end_p): Move to...
30453 (array_ref_element_size): Likewise.
30454 (component_ref_field_offset): Likewise.
30455 * tree.h (array_ref_element_size): ...here.
30456 (array_at_struct_end_p): Likewise.
30457 (component_ref_field_offset): Likewise.
30458 * expr.c (array_ref_element_size): Move to...
30459 (array_ref_low_bound): Likewise.
30460 (array_at_struct_end_p): Likewise.
30461 (array_ref_up_bound): Likewise.
30462 (component_ref_field_offset): Likewise.
30463 * tree.c (array_ref_element_size): ...here.
30464 (array_ref_low_bound): Likewise.
30465 (array_ref_up_bound): Likewise.
30466 (array_at_struct_end_p): Likewise.
30467 (component_ref_field_offset): Likewise.
30469 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30470 Szabolcs Nagy <szabolcs.nagy@arm.com>
30472 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
30474 2015-05-27 Jason Merrill <jason@redhat.com>
30477 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
30478 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
30479 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
30481 2015-05-22 Aditya Kumar <hiraditya@msn.com>
30483 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
30486 * statistics.c (statistics_fini_pass): Print pass name.
30488 2015-05-27 Richard Biener <rguenther@suse.de>
30490 PR tree-optimization/66272
30492 2014-08-15 Richard Biener <rguenther@suse.de>
30494 PR tree-optimization/62031
30495 * tree-data-ref.c (dr_analyze_indices): Do not set
30496 DR_UNCONSTRAINED_BASE.
30497 (dr_may_alias_p): All indirect accesses have to go the
30498 formerly DR_UNCONSTRAINED_BASE path.
30499 * tree-data-ref.h (struct indices): Remove
30500 unconstrained_base member.
30501 (DR_UNCONSTRAINED_BASE): Remove.
30503 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
30505 * dwarf2out.c: Remove block_map.
30506 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
30507 (gen_lexical_block_die): Same.
30508 (dwarf2out_function_decl): Remove block_map use.
30509 (dwarf2out_c_finalize): Same.
30510 * tree-core.h (struct tree_block): Add die field.
30511 * tree.h (BLOCK_DIE): New.
30513 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30516 * expr.c (memory_load_overlap): New function.
30517 (emit_push_insn): When pushing partial args to the stack would
30518 clobber the register part load the overlapping part into a pseudo
30519 and put it into the hard reg after pushing. Change return type
30520 to bool. Add bool argument.
30521 * expr.h (emit_push_insn): Change return type to bool.
30523 * calls.c (expand_call): Cancel sibcall optimization when encountering
30524 partial argument on targets with ARGS_GROW_DOWNWARD and
30525 !STACK_GROWS_DOWNWARD.
30526 (emit_library_call_value_1): Update callsite of emit_push_insn.
30527 (store_one_arg): Likewise.
30529 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30531 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
30533 2015-05-27 Martin Liska <mliska@suse.cz>
30535 * Makefile.in: Add additional dependencies related to memory report
30537 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
30538 * bitmap.c (struct bitmap_descriptor_d): Remove.
30539 (struct loc): Likewise.
30540 (struct bitmap_desc_hasher): Likewise.
30541 (bitmap_desc_hasher::hash): Likewise.
30542 (bitmap_desc_hasher::equal): Likewise.
30543 (get_bitmap_descriptor): Likewise.
30544 (bitmap_register): User new memory descriptor API.
30545 (register_overhead): Likewise.
30546 (bitmap_find_bit): Register nsearches and search_iter statistics.
30547 (struct bitmap_output_info): Remove.
30548 (print_statistics): Likewise.
30549 (dump_bitmap_statistics): Use new memory descriptor.
30550 * bitmap.h (struct bitmap_usage): New class.
30551 * genmatch.c: Extend header file inclusion.
30552 * genpreds.c: Likewise.
30553 * ggc-common.c (struct ggc_usage): New class.
30554 (struct ggc_loc_desc_hasher): Remove.
30555 (ggc_loc_desc_hasher::hash): Likewise.
30556 (ggc_loc_desc_hasher::equal): Likewise.
30557 (struct ggc_ptr_hash_entry): Likewise.
30558 (struct ptr_hash_hasher): Likewise.
30559 (ptr_hash_hasher::hash): Likewise.
30560 (ptr_hash_hasher::equal): Likewise.
30561 (make_loc_descriptor): Likewise.
30562 (ggc_prune_ptr): Likewise.
30563 (dump_ggc_loc_statistics): Use new memory descriptor.
30564 (ggc_record_overhead): Likewise.
30565 (ggc_free_overhead): Likewise.
30566 (final_cmp_statistic): Remove.
30567 (cmp_statistic): Likewise.
30568 (ggc_add_statistics): Liekwise.
30569 (ggc_prune_overhead_list): Likewise.
30570 * hash-map-traits.h: New file.
30571 * hash-map.h (struct default_hashmap_traits): Move the traits to a
30572 separate header file.
30573 * hash-set.h: Pass memory statistics info to ctor.
30574 * hash-table.c (void dump_hash_table_loc_statistics): New function.
30575 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
30576 (hash_table::~hash_table): Register memory release operation.
30577 (hash_table::alloc_entries): Handle memory allocation operation.
30578 (hash_table::expand): Likewise.
30579 * inchash.c (iterative_hash_hashval_t): Move implementation to header
30581 (iterative_hash_host_wide_int): Likewise.
30582 * inchash.h (class hash): Likewise.
30583 * mem-stats-traits.h: New file.
30584 * mem-stats.h: New file.
30585 (mem_location): Add new class.
30586 (mem_usage): Likewise.
30587 (mem_alloc_description): Likewise.
30588 * sese.c: Add new header file inclusision.
30589 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
30591 * tree-sra.c: Add new header file inclusision.
30592 * vec.c (struct vec_descriptor): Remove.
30593 (hash_descriptor): Likewise.
30594 (struct vec_usage): Likewise.
30595 (struct ptr_hash_entry): Likewise.
30596 (hash_ptr): Likewise.
30597 (eq_ptr): Likewise.
30598 (vec_prefix::register_overhead): Use new memory descriptor API.
30599 (vec_prefix::release_overhead): Likewise.
30600 (add_statistics): Remove.
30601 (dump_vec_loc_statistics): Use new memory descriptor API.
30602 * vec.h (struct vec_prefix): Likewise.
30603 (va_heap::reserve): Likewise.
30604 (va_heap::release): Likewise.
30605 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
30607 2015-05-27 Richard Biener <rguenther@suse.de>
30609 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
30610 earlier and remove ??? comment.
30611 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
30612 and got called from loop analysis bail out. Always pass the SLP
30613 node to the vectorizable_* functions.
30614 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
30615 the premature SLP check here.
30616 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
30617 detected SLP stmts.
30618 (vect_detect_hybrid_slp_1): Likewise.
30620 2015-05-26 Jeff Law <law@redhat.com>
30622 * combine.c (find_split_point): Verify that the shift count is a
30623 constant when choosing (plus (ashift ...)) as a split point.
30625 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
30626 No functional changes.
30628 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
30630 * ipa-polymorphic-call.c
30631 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
30632 case when call target is already known.
30634 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
30637 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
30638 take into account the case that operands[1] and operands[2]
30639 are the same register.
30641 2015-05-26 Michael Matz <matz@suse.de>
30643 PR middle-end/66251
30645 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
30647 (vect_create_vectorized_demotion_stmts): Always set
30648 STMT_VINFO_VEC_STMT, also with SLP.
30649 (vectorizable_store): Handle strided group stores.
30651 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30654 * config/aarch64/aarch64.md
30655 (*adds_shift_imm_<mode>): New pattern.
30656 (*subs_shift_imm_<mode>): Likewise.
30657 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30658 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30659 (*add_uxt<mode>_shift2): Likewise.
30660 (*add_uxtsi_shift2_uxtw): Likewise.
30661 (*sub_uxt<mode>_shift2): Likewise.
30662 (*sub_uxtsi_shift2_uxtw): Likewise.
30664 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
30666 * config/rs6000/constraints.md (Y, U): Use match_test.
30668 2015-05-26 Christian Bruel <christian.bruel@st.com>
30671 * config/arm/arm.c (arm_option_check_internal)
30672 (arm_option_params_internal): Check opts->target_flags to set macros.
30673 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30674 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
30675 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30676 (builtin_define): Replaced with def_or_undef_macro.
30677 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30678 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
30679 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30680 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
30681 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
30682 (TARGET_ARM_FEATURE_LDREX_P)
30683 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
30684 * config/arm/arm-c.c (def_or_undef_macro): New function.
30685 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
30687 2015-05-26 Christian Bruel <christian.bruel@st.com>
30689 * c-common.h (builtin_define_with_int_value)
30690 (builtin_define_type_sizeof): Declare.
30691 * c-cppbuiltin.c (builtin_define_with_int_value)
30692 (builtin_define_type_sizeof): Externalize.
30693 (builtin_define_std): Cleanup declaration.
30694 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
30695 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
30696 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
30697 (builtin_define, builtin_assert): New macros.
30699 2015-05-26 Richard Biener <rguenther@suse.de>
30701 PR tree-optimization/66142
30702 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
30703 MEM_REFs for the same base address.
30705 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30708 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
30710 2015-05-26 Jason Merrill <jason@redhat.com>
30712 * configure.ac: Set CXXFLAGS for ISL test.
30713 * configure: Regenerate.
30715 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
30716 strstr and basename.
30717 * configure: Regenerate.
30719 2015-05-26 Richard Biener <rguenther@suse.de>
30721 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
30722 X % C -> X & (C - 1) for C being a power-of two to ...
30723 * match.pd: ... patterns.
30725 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
30727 * match.pd (swapped_tcc_comparison): New operator list.
30728 (-A CMP -B): New simplification.
30729 * fold-const.c (fold_comparison): Remove corresponding code.
30731 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
30733 * caller-save.c (init_caller_save): Base temporary register numbers
30734 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
30735 * cfgloopanal.c (init_set_costs): Likewise.
30736 * dojump.c (prefer_and_bit_test): Likewise.
30737 * expr.c (init_expr_target): Likewise.
30738 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30739 * lower-subreg.c (init_lower_subreg): Likewise.
30740 * postreload.c (reload_cse_regs_1): Likewise.
30742 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
30744 * gensupport.h (compute_test_codes): Declare.
30745 * gensupport.c (compute_predicate_codes): Rename to...
30746 (compute_test_codes): ...this. Generalize error message.
30747 (process_define_predicate): Update accordingly.
30748 * genpreds.c (compute_maybe_allows): Delete.
30749 (add_constraint): Use compute_test_codes to determine whether
30750 something can accept a SUBREG, REG or MEM.
30752 2015-05-26 Torvald Riegel <triegel@redhat.com>
30754 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
30755 'memory model' to align with C++11; fix description of memory orders;
30758 2015-05-26 Richard Biener <rguenther@suse.de>
30760 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
30761 (vect_analyze_loop_operations): ... here. Remove slp parameter,
30762 detect whether we apply SLP. Remove call to
30763 vect_update_slp_costs_according_to_vf.
30764 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
30765 vect_update_slp_costs_according_to_vf from here. Dispatch
30766 to vect_slp_analyze_operations to analyze SLP stmts.
30767 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
30768 unused bb_vec_info parameter, adjust assert.
30769 (vect_slp_analyze_operations): Pass in the slp instance tree
30770 instead of bb_vec_info.
30771 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
30772 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
30774 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
30776 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
30777 Q_REGS. Expand comment.
30778 (REG_CLASS_NAMES): Ditto.
30779 (REG_CLASS_CONTENTS): Ditto.
30781 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
30784 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
30785 when LEGACY_INT_REGNO_P is processed.
30787 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
30789 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
30791 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30793 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
30794 register if not marked dead/unused, before return.
30796 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30799 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
30800 is set; check for assembler name at LTO time.
30801 (type_in_anonymous_namespace): Remove hacks, check that all
30802 anonymous types are called "<anon>"
30803 (odr_type_p): Simplify; add check for "<anon>"
30804 (odr_subtypes_equivalent): Add odr_type_p check.
30805 * tree.c (need_assembler_name_p): Even anonymous namespace needs
30808 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30810 * ipa-utils.h (method_class_type): Remove.
30811 * cgraphunit.c (walk_polymorphic_call_targets): Use
30812 TYPE_METHOD_BASETYPE.
30813 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
30814 on main variants only.
30815 (method_class_type): Remove.
30816 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
30817 (build_type_inheritance_graph): Likewise.
30818 * ipa-icf.c (sem_function::equals_wpa): Likewise.
30819 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
30820 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
30822 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30824 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
30825 is_typedef_decl, typedef_variant_p): Constify.
30826 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
30827 is_typedef_decl, typedef_variant_p): Constify.
30829 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30831 * defaults.h (gen_tablejump): New function.
30832 (HAVE_tablejump): Add default value.
30834 * stmt.c: Likewise.
30836 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30838 * defaults.h (gen_store_multiple): New function.
30839 (HAVE_store_multiple): Add default value.
30840 * expr.c (move_block_from_reg): Adjust.
30842 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30844 * defaults.h (gen_load_multiple): New function.
30845 (HAVE_load_multiple): Add default value.
30846 * expr.c (move_block_to_reg): Adjust.
30848 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30850 * defaults.h (gen_mem_signal_fence): New function.
30851 (HAVE_mem_signal_fence): Add default value.
30852 * optabs.c: Adjust.
30854 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30856 * defaults.h (gen_memory_barrier): New function.
30857 (HAVE_memory_barrier): Add default value.
30858 * optabs.c: Adjust.
30860 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30862 * defaults.h (gen_mem_thread_fence): New function.
30863 (HAVE_mem_thread_fence): Add default definition.
30864 * optabs.c: Adjust.
30866 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30868 * combine.c (find_split_point): Check the value of HAVE_lo_sum
30869 instead of if it is defined.
30870 (combine_simplify_rtx): Likewise.
30871 * lra-constraints.c (process_address_1): Likewise.
30872 * config/darwin.c: Adjust.
30873 * genconfig.c (main): Always define HAVE_lo_sum.
30875 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30877 * genmatch.c (parser::parse_operation): Reject expanding
30878 operator-list inside 'for'.
30880 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30882 * genmatch.c (parser::parse_for): Reject iterator if used as
30885 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30887 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
30888 after end of id-list.
30890 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
30892 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
30893 we do not try to compute canonical type for type that does not need
30895 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
30897 * tree.h (type_with_alias_set_p): New.
30899 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
30901 * tree.c (gimple_canonical_types_compatible_p): Do not compare
30902 function attributes.
30903 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
30905 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
30907 * Makefile.in (check_gcc_parallelize): Delete.
30908 (lang_checks_parallelized): Update comment.
30910 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
30912 PR rtl-optimization/66237
30913 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
30914 location of an "as_a" cast.
30916 2015-05-22 Jeff Law <law@redhat.com>
30918 * config/pa/pa.md (non-canonical shift-add insns): Remove.
30919 (peepholes with non-canonical RTL sources): Remove.
30920 (peepholes for indexed stores of FP regs in integer modes): Match and
30921 generate canonical RTL.
30923 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30925 PR tree-optimization/63387
30926 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
30927 ((x ord x) & (y ord y) -> (x ord y),
30928 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
30929 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
30930 vectors like scalars.
30932 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30934 * convert.c (convert_to_integer, convert_to_vector): Include the
30935 types in the error message.
30937 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30939 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
30942 2015-05-22 Jeff Law <law@redhat.com>
30944 * config/pa/pa.md (integer_indexed_store splitters): Use
30945 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
30946 insns -- adjusting the constant 2nd operand accordingly.
30948 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
30949 (plus (ashift X log2) Y) if it is a split point.
30951 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
30952 out of hppa_legitimize_address to handle both forms of a multiply
30954 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
30955 Always generate the ASHIFT variant as the result is not directly
30956 used in a MEM. Update comments and refactor slightly to improve
30959 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30962 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
30963 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
30964 (aarch64_composite_type_p): Return false if given type and mode are
30965 for a short vector.
30967 2015-05-22 Richard Biener <rguenther@suse.de>
30969 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
30971 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
30972 patterns when determining whether SLP is pure.
30973 (vect_is_slp_reduction): Remove check for pattern stmts.
30974 (vect_is_simple_reduction_1): Remove dead code.
30975 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
30976 (vect_get_and_check_slp_defs): Pass in the stmt number.
30977 Allow the first def in a reduction to be not a pattern stmt when
30978 the rest of the stmts def are patterns.
30979 (vect_build_slp_tree_1): Allow tcc_expression codes like
30980 SAD_EXPR and DOT_PROD_EXPR.
30981 (vect_build_slp_tree): Adjust.
30982 (vect_analyze_slp): Refactor and move BB vect error message ...
30983 (vect_slp_analyze_bb_1): ... here.
30985 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
30987 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
30988 for CSWTCH temporary.
30990 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30992 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
30993 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
30996 2015-05-22 Richard Biener <rguenther@suse.de>
30998 PR tree-optimization/66251
30999 * tree-vect-stmts.c (vectorizable_conversion): Properly
31000 set STMT_VINFO_VEC_STMT even for the SLP case.
31002 2015-05-22 Marek Polacek <polacek@redhat.com>
31004 * doc/extend.texi: Use @pxref instead of @xref.
31006 2015-05-22 hiraditya <hiraditya@msn.com>
31008 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
31011 2015-05-22 Richard Biener <rguenther@suse.de>
31013 PR tree-optimization/65701
31014 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31015 Move peeling cost models into one place. Peel for alignment
31016 for single loads only if an aligned load is cheaper than
31019 2015-05-22 Marek Polacek <polacek@redhat.com>
31022 * doc/extend.texi (Enumerator Attributes): New section.
31023 Document syntax of enumerator attributes.
31025 2015-05-22 Richard Biener <rguenther@suse.de>
31027 * tree-vect-loop.c (get_reduction_op): New function.
31028 (vect_model_reduction_cost): Use it, add reduc_index parameter.
31029 Make ready for BB reductions.
31030 (vect_create_epilog_for_reduction): Use get_reduction_op.
31031 (vectorizable_reduction): Init reduc_index to a valid value.
31032 Adjust vect_model_reduction_cost call.
31033 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
31034 operand for reduction defaults. Add SAD_EXPR support.
31035 Assert we have a neutral op for SLP reductions.
31036 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
31037 walking pattern stmt ops only recurse to SSA names.
31039 2015-05-22 Richard Biener <rguenther@suse.de>
31041 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
31042 assert with guard, remove check on detected reduction.
31043 (vect_recog_sad_pattern): Likewise.
31044 (vect_recog_widen_sum_pattern): Likewise.
31046 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31048 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
31049 __always_inline__ attribute.
31050 (vaesdq_u8): Likewise.
31051 (vaesmcq_u8): Likewise.
31052 (vaesimcq_u8): Likewise.
31053 (vsha1cq_u32): Likewise.
31054 (vsha1mq_u32): Likewise.
31055 (vsha1pq_u32): Likewise.
31056 (vsha1h_u32): Likewise.
31057 (vsha1su0q_u32): Likewise.
31058 (vsha1su1q_u32): Likewise.
31059 (vsha256hq_u32): Likewise.
31060 (vsha256h2q_u32): Likewise.
31061 (vsha256su0q_u32): Likewise.
31062 (vsha256su1q_u32): Likewise.
31063 (vmull_p64): Likewise.
31064 (vmull_high_p64): Likewise.
31066 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31068 * final.c (final_scan_insn): Don't check HAVE_peephole with the
31070 * output.h: Likewise.
31071 * genconfig.c (main): Alwways define HAVE_peephole.
31072 * genpeep.c: Don't emit checks of HAVE_peephole.
31074 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31076 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
31077 check HAVE_conditional_move with the preprocessor.
31079 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31081 * genconfig.c (main): Always define HAVE_conditional_move.
31082 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
31083 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
31086 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31088 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
31089 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
31090 and FRAME_POINTER_REGNUM with the preprocessor.
31092 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31094 * defaults.h: Add default for STACK_PUSH_CODE.
31095 * expr.c: Don't redefine STACK_PUSH_CODE.
31096 * recog.c: Likewise.
31098 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31100 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
31101 sched-deps.c: Use if instead of preprocessor checks with
31102 STACK_GROWS_DOWNWARD.
31104 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31106 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
31108 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
31109 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
31110 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
31111 * doc/tm.texi: Regenerate.
31113 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
31116 * config/i386/constraints.md (Bg): New constraint for GOT memory
31118 * config/i386/i386.md (*call_got_x32): New pattern.
31119 (*call_value_got_x32): Likewise.
31120 * config/i386/predicates.md (GOT_memory_operand): New predicate.
31122 2015-05-21 Jakub Jelinek <jakub@redhat.com>
31124 PR tree-optimization/66233
31125 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
31128 2015-05-21 Jeff Law <law@redhat.com>
31130 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
31131 than MULT for shadd sequences.
31133 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
31135 * alias.c (alias_stats): New static var.
31136 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
31137 (dump_alias_stats_in_alias_c): New function.
31138 * alias.h (dump_alias_stats_in_alias_c): Declare.
31139 * tree-ssa-alias.c (dump_alias_stats): Call it.
31141 2015-05-08 Michael Matz <matz@suse.de>
31143 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
31145 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
31146 (STMT_VINFO_STRIDED_P): ... this.
31147 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
31148 (vect_verify_datarefs_alignment): Likewise.
31149 (vect_enhance_data_refs_alignment): Likewise.
31150 (vect_analyze_data_ref_access): Likewise.
31151 (vect_analyze_data_refs): Accept strided stores.
31152 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
31153 (vect_model_load_cost): Adjust for macro rename.
31154 (vectorizable_mask_load_store): Likewise.
31155 (vectorizable_load): Likewise.
31156 (vectorizable_store): Open code strided stores.
31158 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31160 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
31161 Document sqrt_insn.
31163 2015-05-21 Richard Biener <rguenther@suse.de>
31166 * match.pd: Guard pattern optimzing (int)(float)int
31167 conversions to apply only on GIMPLE.
31169 2015-05-21 Jeff Law <law@redhat.com>
31171 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
31172 multiply-accumulate/shift-add insn generation.
31174 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
31177 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
31178 operands[1] are the same.
31180 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
31182 PR middle-end/66221
31183 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
31184 build_distinct_type_copy to copy bounds.
31186 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
31188 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
31189 Change to unsigned int.
31191 2015-05-20 Jeff Law <law@redhat.com>
31193 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
31194 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
31195 (pa_shadd_constant_p): Allow constants for shadd insns rather
31196 than valid scaling constants for memory addresses.
31197 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
31198 * config/pa/predicates.md (mem_shadd_operand): New predicate.
31199 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
31200 (shift-add insns using ASHIFT): New patterns.
31202 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
31204 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
31206 (fix_up_fall_thru_edges): Likewise.
31207 (fix_crossing_conditional_branches): Likewise. Promote jump targets
31208 from to rtx_insn to rtx_code_label where feasible.
31209 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
31210 gen_move_insn (returned type changed to rtx_insn).
31211 * builtins.c (expand_errno_check): Fix arguments of
31212 do_compare_rtx_and_jump (now expects rtx_code_label).
31213 (expand_builtin_acc_on_device): Likewise.
31214 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
31215 invert_jump (now exprects rtx_jump_insn).
31216 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
31217 (construct_init_block): Use rtx_code_label.
31218 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
31219 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
31220 calling redirect_jump.
31221 (patch_jump_insn): Likewise.
31222 (redirect_branch_edge): Likewise.
31223 (force_nonfallthru_and_redirect): Likewise.
31224 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
31226 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
31227 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
31228 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
31229 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
31230 to store the value retured by gen_label_rtx.
31231 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
31233 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
31234 (split_branches): Fix calls of redirect_jump.
31235 * dojump.c (jumpifnot): Promote argument type from rtx to
31237 (jumpifnot_1): Likewise.
31238 (jumpif): Likewise.
31239 (jumpif_1): Likewise.
31240 (do_jump_1): Likewise.
31241 (do_jump): Likewise. Use rtx_code_label when feasible.
31242 (do_jump_by_parts_greater_rtx): Likewise.
31243 (do_jump_by_parts_zero_rtx): Likewise.
31244 (do_jump_by_parts_equality_rtx): Likewise.
31245 (do_compare_rtx_and_jump): Likewise.
31246 * dojump.h: Update function prototypes.
31247 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
31249 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
31251 (emit_label_before): Likewise.
31252 (emit_jump_insn_after_noloc): Likewise.
31253 (emit_jump_insn_after_setloc): Likewise.
31254 (emit_jump_insn_after): Likewise
31255 (emit_jump_insn_before_setloc): Likewise.
31256 (emit_jump_insn_before): Likewise.
31257 (emit_label_before): Promote return type to rtx_code_label.
31258 (emit_label): Likewise.
31259 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
31260 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
31262 (emit_stack_restore): Likewise.
31263 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
31264 (do_cmp_and_jump): Likewise.
31265 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
31266 from rtx to rtx_code_label.
31267 (gen_move_insn_uncast): New function.
31268 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
31269 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
31270 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
31271 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
31272 invert_jump_1 and redirect_jump_1.
31273 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
31274 do_compare_rtx_and_jump.
31275 (expand_addsub_overflow): Likewise.
31276 (expand_neg_overflow): Likewise.
31277 (expand_mul_overflow): Likewise.
31278 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
31279 return value of gen_move_insn.
31280 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
31281 * loop-doloop.c (add_test): Use rtx_code_label.
31282 (doloop_modify): Likewise.
31283 (doloop_optimize): Likewise.
31284 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
31285 * lra-constraints.c (emit_spill_move): Remove cast of value returned
31287 (inherit_reload_reg): Add cast when calling dump_insn_slim.
31288 (split_reg): Likewise.
31289 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
31291 * optabs.c (expand_binop_directly): Remove casts of values returned by
31293 (expand_unop_direct): Likewise.
31294 (expand_abs): Likewise.
31295 (maybe_emit_unop_insn): Likewise.
31296 (maybe_gen_insn): Promote return type to rtx_insn.
31297 * optabs.h: Update prototype of maybe_gen_insn.
31298 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
31300 * recog.c (struct peep2_insn_data): Promote type of insn field to
31302 (peep2_reinit_state): Use NULL instead of NULL_RTX.
31303 (peep2_attempt): Remove casts of insn in peep2_insn_data.
31304 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
31305 * recog.h (struct insn_gen_fn): Promote return types of function
31306 pointers and operator ().from rtx to rtx_insn.
31307 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
31308 (fill_eager_delay_slots): Likewise.
31309 (relax_delay_slots): Likewise.
31310 (make_return_insns): Likewise.
31311 (dbr_schedule): Likewise.
31312 (optimize_skips): Likewise.
31313 (reorg_redirect_jump): Likewise.
31314 (fill_slots_from_thread): Likewise.
31315 * reorg.h: Update prototypes.
31316 * resource.c (find_dead_or_set_registers): Use dyn_cast to
31317 rtx_jump_insn instead of check. Use it's jump_target method.
31318 * rtl.h (rtx_jump_insn::jump_label): Define new method.
31319 (rtx_jump_insn::jump_target): Define new method.
31320 (rtx_jump_insn::set_jump_target): Define new method.
31321 * rtlanal.c (tablejump_p): Promote type of one local variable.
31322 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
31323 (sched_analyze_insn): Likewise.
31324 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
31325 (print_insn): Likewise.
31326 * stmt.c (label_rtx): Promote return type to rtx_insn.
31327 (force_label_rtx): Likewise.
31328 (jump_target_rtx): Define new function.
31329 (expand_label): Use it, get rid of one cast.
31330 (expand_naked_return): Promote rtx to rtx_code_label.
31331 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
31332 (expand_case): Use rtx_code_label instread of rtx where feasible.
31333 (expand_sjlj_dispatch_table): Likewise.
31334 (emit_case_nodes): Likewise.
31335 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
31336 * store-motion.c (insert_store): Make use of new return type of
31337 gen_move_insn and remove a cast.
31338 (replace_store_insn): Likewise.
31340 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
31342 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
31343 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
31345 2015-05-20 Jeff Law <law@redhat.com>
31347 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
31348 dispose of the jump thread path when the jump threading
31349 opportunity is cancelled.
31351 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31353 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
31354 when printing the caret character.
31356 2015-05-20 Marek Polacek <polacek@redhat.com>
31358 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
31360 2015-05-20 Marek Polacek <polacek@redhat.com>
31362 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
31363 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
31364 * gimple-fold.c (canonicalize_bool): Likewise.
31365 (same_bool_result_p): Likewise.
31366 * tree-if-conv.c (parse_predicate): Likewise.
31368 2015-05-20 Marek Polacek <polacek@redhat.com>
31370 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
31371 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
31373 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31375 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
31376 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
31379 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
31381 * config/mips/mips.h (micromips_globals): Declare.
31383 2015-05-20 David Malcolm <dmalcolm@redhat.com>
31385 * timevar.def (TV_INITIALIZE_RTL): New.
31386 * toplev.c (initialize_rtl): Use an auto_timevar to account this
31387 function's time to TV_INITIALIZE_RTL.
31389 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
31391 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
31392 gimple_build_nop calls.
31393 (chkp_find_bounds_for_elem): Likewise.
31394 (chkp_get_zero_bounds): Likewise.
31395 (chkp_get_none_bounds): Likewise.
31396 (chkp_get_bounds_by_definition): Likewise.
31397 (chkp_generate_extern_var_bounds): Likewise.
31398 (chkp_get_bounds_for_decl_addr): Likewise.
31399 (chkp_get_bounds_for_string_cst): Likewise.
31401 2015-05-20 Bin Cheng <bin.cheng@arm.com>
31403 PR tree-optimization/65447
31404 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
31405 (dump_use, dump_uses): Support to dump sub use.
31406 (record_use): New parameters to support sub use. Remove call to
31408 (record_sub_use, record_group_use): New functions.
31409 (compute_max_addr_offset, split_all_small_groups): New functions.
31410 (group_address_uses, rewrite_use_address): New functions.
31411 (strip_offset): New declaration.
31412 (find_interesting_uses_address): Call record_group_use.
31413 (add_candidate): New assertion.
31414 (infinite_cost_p): Move definition forward.
31415 (add_costs): Check INFTY cost and return immediately.
31416 (get_computation_cost_at): Clear setup cost and dependent bitmap
31418 (determine_use_iv_cost_address): Compute cost for sub uses.
31419 (rewrite_use_address_1): Rename from old rewrite_use_address.
31420 (free_loop_data): Free sub uses.
31421 (tree_ssa_iv_optimize_loop): Call group_address_uses.
31423 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31424 Jim Wilson <jim.wilson@linaro.org>
31426 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
31427 new fields loadv and storev.
31428 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
31429 Initialize loadv and storev.
31430 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
31431 (cortexa53_extra_costs): Likewise.
31432 (cortexa57_extra_costs): Likewise.
31433 (xgene1_extra_costs): Likewise.
31434 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
31437 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31439 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
31441 (cortexa8_extra_costs): Likewise.
31442 (cortexa5_extra_costs): Likewise.
31443 (cortexa7_extra_costs): Likewise.
31444 (cortexa12_extra_costs): Likewise.
31445 (cortexa15_extra_costs): Likewise.
31446 (v7m_extra_costs): Likewise.
31448 2015-05-20 Jeff Law <law@redhat.com>
31450 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
31451 instead of open-coded version. Also delete the jump thread created
31452 within this function.
31454 2015-05-20 Alan Modra <amodra@gmail.com>
31456 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
31457 stack adjusting insn. Formatting.
31458 (rs6000_emit_prologue): Track stack adjusting insn, and use of
31459 r12. If possible, emit first -fsplit-stack arg pointer insn
31460 before stack adjust. Don't use r12 to save cr if split-stack.
31462 2015-05-20 Alan Modra <amodra@gmail.com>
31464 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
31466 (rs6000_supports_split_stack): New function.
31467 * config/rs6000/rs6000.c (machine_function): Add
31468 split_stack_arg_pointer.
31469 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
31470 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
31471 rather than virtual_incoming_args_rtx.
31472 (rs6000_va_start): Likewise.
31473 (split_stack_arg_pointer_used_p): New function.
31474 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
31475 (morestack_ref): New var.
31476 (gen_add3_const, rs6000_expand_split_stack_prologue,
31477 rs6000_internal_arg_pointer, rs6000_live_on_entry,
31478 rs6000_split_stack_space_check): New functions.
31479 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
31480 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
31481 (UNSPECV_SPLIT_STACK_RETURN): Define.
31482 (split_stack_prologue, load_split_stack_limit,
31483 load_split_stack_limit_di, load_split_stack_limit_si,
31484 split_stack_return, split_stack_space_check): New expands and insns.
31485 * config/rs6000/rs6000-protos.h
31486 (rs6000_expand_split_stack_prologue): Declare.
31487 (rs6000_split_stack_space_check): Declare.
31489 2015-05-20 Alan Modra <amodra@gmail.com>
31491 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
31492 (direct_return): Test vrsave_size rather than vrsave_mask.
31493 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
31494 (rs6000_emit_epilogue): Likewise.
31496 2015-05-20 Alan Modra <amodra@gmail.com>
31498 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
31499 when not saving registers.
31500 (debug_stack_info): Adjust to omit printing unused offsets,
31502 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
31505 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31508 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
31509 value_type to const char *.
31511 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
31513 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
31514 to build a biarch toolchain again.
31516 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31518 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
31519 or implicit declarations.
31520 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
31522 (get_odr_type): Check type has linkage before adding bases.
31523 (register_odr_type): Check that type has linkage before adding it.
31524 (type_known_to_have_no_deriavations_p): Rename to ..
31525 (type_known_to_have_no_derivations_p): This one.
31526 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
31527 (type_known_to_have_no_derivations_p): This one.
31528 * ipa-polymorphic-call.c
31529 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
31532 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31534 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
31535 (layout_type): Use RECORD_OR_UNION_TYPE_P.
31537 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31539 * config/s390/s390.c (s390_vector_bool_type_p): New function.
31540 (s390_invalid_binary_op): New function.
31541 (TARGET_INVALID_BINARY_OP): Define macro.
31543 2015-05-19 David Sherwood <david.sherwood@arm.com>
31545 * loop-invariant.c (create_new_invariant): Don't calculate address cost
31546 if mode is not a scalar integer.
31547 (get_inv_cost): Increase computational cost for unused invariants.
31549 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31551 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
31552 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
31553 * config/s390/s390-builtin-types.def: New file.
31554 * config/s390/s390-builtins.def: New file.
31555 * config/s390/s390-builtins.h: New file.
31556 * config/s390/s390-c.c: New file.
31557 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
31558 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
31559 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
31560 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
31562 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
31564 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
31565 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
31566 variable definitions.
31567 (s390_const_operand_ok): New function.
31568 (s390_expand_builtin): Rewrite.
31569 (s390_init_builtins): New function.
31570 (s390_handle_vectorbool_attribute): New function.
31571 (s390_attribute_table): Add s390_vector_bool attribute.
31572 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
31573 (s390_branch_condition_mask): Generate masks for new modes.
31574 (s390_expand_vec_compare_cc): New function.
31575 (s390_mangle_type): Add mangling for vector bool types.
31576 (enum s390_builtin): Remove.
31577 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
31579 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
31580 s390_cpu_cpp_builtins.
31581 (REGISTER_TARGET_PRAGMAS): New macro.
31582 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
31583 (insn_cmp mode attribute): Add new CC modes.
31584 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
31585 (lcbb): New pattern definition.
31586 * config/s390/s390intrin.h: Include vecintrin.h.
31587 * config/s390/t-s390: New file.
31588 * config/s390/vecintrin.h: New file.
31589 * config/s390/vector.md: Include vx-builtins.md.
31590 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
31593 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31595 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
31597 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
31598 (s390_select_ccmode): Likewise.
31599 (s390_canonicalize_comparison): Swap operands if necessary.
31600 (s390_expand_vec_compare_scalar): Expand DFmode compare using
31601 single element vector instructions.
31602 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
31603 (s390_branch_condition_mask): Generate CC masks for the new modes.
31604 * config/s390/s390.md (v0, vf, vd): New mode attributes.
31605 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
31606 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
31607 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
31608 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
31609 (*extend<DSF:mode><BFP:mode>2): New insn definition.
31610 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
31611 (extend<DSF:mode><BFP:mode>2): Turn into expander.
31612 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
31613 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
31614 (sqrt<mode>2): Add vector instruction.
31616 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31618 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
31620 * config/s390/predicates.md (const0_operand, constm1_operand)
31621 (constable_operand): Accept vector operands.
31622 * config/s390/s390-modes.def: Add supported vector modes.
31623 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
31624 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
31625 (s390_bytemask_vector_p, s390_expand_vec_strlen)
31626 (s390_expand_vec_compare, s390_expand_vcond)
31627 (s390_expand_vec_init): Add prototypes.
31628 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
31629 (s390_vector_mode_supported_p): New function.
31630 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
31631 (s390_contiguous_bitmask_vector_p): New function.
31632 (s390_bytemask_vector_p): New function.
31633 (s390_split_ok_p): Vector regs don't work either.
31634 (regclass_map): Add VEC_REGS.
31635 (s390_legitimate_constant_p): Handle vector constants.
31636 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
31637 (legitimate_reload_vector_constant_p): New function.
31638 (s390_preferred_reload_class): Handle CONST_VECTOR.
31639 (s390_reload_symref_address): Likewise.
31640 (s390_secondary_reload): Vector memory instructions only support
31641 short displacements. Rename reload*_nonoffmem* to reload*_la*.
31642 (s390_emit_ccraw_jump): New function.
31643 (s390_expand_vec_strlen): New function.
31644 (s390_expand_vec_compare): New function.
31645 (s390_expand_vcond): New function.
31646 (s390_expand_vec_init): New function.
31647 (s390_dwarf_frame_reg_mode): New function.
31648 (print_operand): Handle addresses with 'O' and 'R' constraints.
31649 (NR_C_MODES, constant_modes): Add vector modes.
31650 (s390_output_pool_entry): Handle vector constants.
31651 (s390_hard_regno_mode_ok): Handle vector registers.
31652 (s390_class_max_nregs): Likewise.
31653 (s390_cannot_change_mode_class): New function.
31654 (s390_invalid_arg_for_unprototyped_fn): New function.
31655 (s390_function_arg_vector): New function.
31656 (s390_function_arg_float): Remove size variable.
31657 (s390_pass_by_reference): Handle vector arguments.
31658 (s390_function_arg_advance): Likewise.
31659 (s390_function_arg): Likewise.
31660 (s390_return_in_memory): Vector values are returned in a VR if
31662 (s390_function_and_libcall_value): Handle vector arguments.
31663 (s390_gimplify_va_arg): Likewise.
31664 (s390_call_saved_register_used): Consider the arguments named.
31665 (s390_conditional_register_usage): Disable v16-v31 for non-vec
31667 (s390_preferred_simd_mode): New function.
31668 (s390_support_vector_misalignment): New function.
31669 (s390_vector_alignment): New function.
31670 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
31671 (TARGET_VECTOR_MODE_SUPPORTED_P)
31672 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
31673 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
31674 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
31675 (TARGET_VECTOR_ALIGNMENT): Define target macro.
31676 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
31677 (FIRST_PSEUDO_REGISTER): Increase value.
31678 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
31679 (VECTOR_REG_P): Define macros.
31680 (FIXED_REGISTERS, CALL_USED_REGISTERS)
31681 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
31682 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
31683 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
31684 Add vector registers.
31685 (CANNOT_CHANGE_MODE_CLASS): Call C function.
31686 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
31687 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
31689 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
31690 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
31691 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
31692 (VR*_REGNUM): New constants.
31693 (ALL): New mode iterator.
31694 (INTALL): Remove mode iterator.
31696 (movti): Implement TImode moves for VRs.
31697 Disable TImode splitter for VR targets.
31698 Implement splitting TImode GPR<->VR moves.
31699 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
31700 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
31701 reload<mode>_la_in, reload<mode>_la_out.
31702 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
31703 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
31704 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
31705 (mov<mode> SF SD): Prefer lder, lde for loading.
31706 Add lrl and strl instructions.
31707 Add vector instructions.
31708 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
31709 Call s390_expand_vec_strlen on z13.
31710 (*cc_to_int): Change predicate to nonimmediate_operand.
31711 (addti3): Rename to *addti3. New expander.
31712 (subti3): Rename to *subti3. New expander.
31713 * config/s390/vector.md: New file.
31715 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31717 * common/config/s390/s390-common.c (processor_flags_table): Add
31719 * config.gcc: Add z13.
31720 * config/s390/s390-opts.h (enum processor_type): Add
31721 PROCESSOR_2964_Z13.
31722 * config/s390/s390.c (s390_adjust_priority): Check for
31723 PROCESSOR_2964_Z13.
31724 (s390_reorg): Likewise.
31725 (s390_sched_reorder): Likewise.
31726 (s390_sched_variable_issue): Likewise.
31727 (s390_loop_unroll_adjust): Likewise.
31728 (s390_option_override): Likewise. Default to -mvx when available.
31729 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
31730 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
31731 (TARGET_VX_ABI): Define macros.
31733 (TARGET_DEFAULT): Add MASK_OPT_VX.
31734 * config/s390/s390.md ("cpu" attribute): Add z13.
31735 ("cpu_facility" attribute): Add vec.
31736 * config/s390/s390.opt (processor_type): Add z13.
31737 (mvx): New options.
31738 * doc/invoke.texi: Add z13 option for -march.
31740 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31742 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
31743 mode check to make sure that only scalar integer values are
31746 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31748 * tree.c (verify_type_variant): Fix #undef.
31749 (gimple_canonical_types_compatible_p): Move here from lto.c
31750 (verify_type): Verify TYPE_CANONICAL compatibility.
31751 * tree.h (gimple_canonical_types_compatible_p): Declare.
31753 2015-05-19 Jakub Jelinek <jakub@redhat.com>
31755 PR middle-end/66199
31756 * tree.h (OMP_TEAMS_COMBINED): Define.
31757 * gimplify.c (enum gimplify_omp_var_data): Add
31758 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
31759 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
31760 (omp_notice_variable): Accept both ORT_TEAMS
31761 and ORT_COMBINED_TEAMS. Don't recurse if
31762 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
31763 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
31765 (omp_no_lastprivate): New function.
31766 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
31767 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
31768 notice_outer and set appropriate bits, otherwise make
31769 sure default(none) combined constructs won't complain.
31770 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
31771 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
31772 omp_no_lastprivate either remove the clause or turn it
31773 into OMP_CLAUSE_PRIVATE.
31774 (gimplify_omp_for): Fix up handling of implicit
31775 lastprivate or linear iterators.
31776 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
31777 ORT_COMBINED_TEAMS.
31778 * omp-low.c (lower_omp_for_lastprivate): For combined
31779 for simd use fd.loop.n2 from the for rather than simd.
31781 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31783 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
31784 instead of gen_rtx_raw_REG.
31785 (cris_expand_epilogue): Likewise.
31786 * config/microblaze/microblaze.c (microblaze_classify_address):
31788 * config/sparc/sparc.md: Likewise.
31790 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
31792 * config/alpha/alpha.c (alpha_legitimize_reload_address)
31793 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
31794 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
31795 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
31796 Use CASE_CONST_SCALAR_INT.
31797 (print_operand) <case 'M'>: Use mode_width_operand to check the
31798 value of the constant.
31799 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
31800 * config/alpha/predicates.md (input_operand): Use general_operand
31801 instead of match_code as operand check.
31802 (symbolic_operand): Use match_code with subexpression digits.
31803 * config/alpha/constraints.md (Q): Ditto.
31805 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31807 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
31809 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31811 * config/s390/s390.c (s390_secondary_reload): Fix check for
31812 load/store relative.
31814 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31816 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
31817 alternative_mask to uint64_t.
31819 2015-05-19 Jakub Jelinek <jakub@redhat.com>
31821 PR tree-optimization/66187
31822 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
31823 Pass TYPE_SIGN to tree_int_cst_min_precision. If
31824 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
31826 2015-05-19 David Malcolm <dmalcolm@redhat.com>
31828 * diagnostic.c (diagnostic_report_current_module): Strengthen
31829 local "new_map" from const line_map * to
31830 const line_map_ordinary *.
31831 * genmatch.c (error_cb): Likewise for local "map".
31832 (output_line_directive): Likewise for local "map".
31833 * input.c (expand_location_1): Likewise for local "map".
31834 Pass NULL rather than &map to
31835 linemap_unwind_to_first_non_reserved_loc, since the value is never
31836 read from there, and the value written back not read from here.
31837 (is_location_from_builtin_token): Strengthen local "map" from
31838 const line_map * to const line_map_ordinary *.
31839 (dump_location_info): Strengthen locals "map" from
31840 line_map *, one to const line_map_ordinary *, the other
31841 to const line_map_macro *.
31842 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
31843 const line_map * to const line_map_macro *.
31844 (maybe_unwind_expanded_macro_loc): Add a call to
31845 linemap_check_macro when writing to the "map" field of the
31847 Introduce local const line_map_ordinary * "ord_map", using it in
31848 place of "map" in the part of the function where we know we have
31849 an ordinary map. Strengthen local "m" from const line_map * to
31850 const line_map_ordinary *.
31852 2015-05-19 Nick Clifton <nickc@redhat.com>
31855 * config/msp430/msp430.md (zero_extendhisi2): Add support for
31856 separate source and destination registers.
31858 2015-05-19 Richard Biener <rguenther@suse.de>
31860 PR tree-optimization/66165
31861 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
31862 for no load permutation.
31864 PR tree-optimization/66185
31865 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
31866 when building the SLP node from scalars.
31868 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31869 Tristan Gingold <gingold@adacore.com>
31871 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
31872 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
31873 (expand_stack_restore): Call record_new_stack_level.
31874 (expand_stack_save): Do not call do_pending_stack_adjust.
31875 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
31876 * calls.c (expand_call): Call record_new_stack_level for alloca.
31877 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
31878 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
31879 (update_sjlj_context): New global function.
31880 * except.h (update_sjlj_context): Declare.
31881 * explow.c (record_new_stack_level): New global function.
31882 (allocate_dynamic_stack_space): Call record_new_stack_level.
31883 * explow.h (record_new_stack_level): Declare.
31884 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
31885 * cfgrtl.c (duplicate_insn_chain): Likewise.
31887 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31889 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
31890 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
31891 STACK_GROWS_DOWNWARD as normal if.
31892 (expand_call): Likewise.
31894 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
31897 * config/sh/sh.md (*round_int_even): New insn_and_split and
31898 accompanying new unnamed split.
31900 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31902 * bitmap.c (bitmap_set_range): Handle count==1 specially.
31903 (bitmap_clear_range): Likewise.
31904 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
31905 bitmap_set_range unconditionally.
31906 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31907 * df-scan.c (df_mark_reg): Likewise.
31908 * haifa-sched.c (setup_ref_regs): Likewise.
31909 * sched-rgn.c (update_live_1): Likewise.
31911 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31913 * regs.h (END_HARD_REGNO): Delete.
31914 (END_REGNO): Move to...
31916 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
31917 * caller-save.c (mark_set_regs): Likewise.
31918 * combine.c (move_deaths, distribute_notes): Likewise.
31919 * cse.c (invalidate, invalidate_for_call): Likewise.
31920 * df-scan.c (df_ref_record): Likewise.
31921 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
31922 (record_last_reg_set_info): Likewise.
31923 * reg-stack.c (convert_regs_exit): Likewise.
31924 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
31925 * resource.c (update_live_status): Likewise.
31926 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
31928 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31930 * rtl.h (reg_info): Add an nregs field.
31931 (REG_NREGS): Use it.
31932 (SET_REGNO_RAW): Delete.
31933 (set_regno_raw): New function.
31934 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
31935 (END_REGNO): Redefine in terms of REG_NREGS.
31936 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
31938 * emit-rtl.c (set_mode_and_regno): Likewise.
31939 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
31940 instead of SET_REGNO_RAW.
31942 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31944 * rtl.h (PUT_MODE_RAW): New macro.
31945 (PUT_REG_NOTE_KIND): Use it.
31946 (set_mode_and_regno): Declare.
31947 (gen_raw_REG): Change regno to "unsigned int".
31948 (gen_rtx_REG): Change "unsigned" to "unsigned int".
31949 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
31950 use set_mode_and_regno to change the mode of registers.
31951 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
31952 * emit-rtl.c (set_mode_and_regno): New function.
31953 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
31954 * caller-save.c (reg_save_code): Use set_mode_and_regno.
31955 * expr.c (init_expr_target): Likewise.
31956 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31957 * postreload.c (reload_cse_simplify_operands): Likewise.
31959 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31961 * caller-save.c (init_caller_save): Use word_mode and
31962 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
31963 * expr.c (init_expr_target): Likewise.
31964 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31965 * postreload.c (reload_cse_regs_1): Likewise.
31967 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31969 * rtl.def (REG): Change format to "r".
31970 * rtl.h (rtunion): Remove rt_reg.
31971 (reg_info): New structure.
31972 (rtx_def): Add reg field to main union.
31973 (X0REGATTR): Delete.
31974 (REG_CHECK): New macro.
31975 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
31976 * rtl.c (rtx_format): Document "r".
31977 (rtx_code_size): Handle REG specially.
31978 * gengenrtl.c (special_format): Return true for formats
31980 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
31981 Deal with REG_ATTRS after the field loop.
31982 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
31983 * expmed.c (init_expmed): Call gen_raw_REG instead of
31985 * expr.c (init_expr_target): Likewise.
31986 * regcprop.c (maybe_mode_change): Likewise.
31987 * varasm.c (make_decl_rtl): Likewise.
31988 * final.c (leaf_renumber_regs_insn): Return early after
31990 * genemit.c (gen_exp): Handle 'r' fields.
31991 * genpeep.c (match_rtx): Likewise.
31992 * gensupport.c (subst_pattern_match): Likewise.
31993 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
31994 (alter_constraints, subst_dup): Likewise.
31995 * read-rtl.c (read_rtx_code): Likewise.
31996 * print-rtl.c (print_rtx): Likewise.
31997 * genrecog.c (find_operand, find_matching_operand): Likewise.
31998 (validate_pattern, match_pattern_2): Likewise.
31999 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
32000 (rtx_test::regno_field): New function.
32001 (operator ==, safe_to_hoist_p, transition_parameter_type)
32002 (parameter_type_string, print_parameter_value)
32003 (print_nonbool_test, print_test): Handle new enum values.
32004 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
32005 * lra-constraints.c (operands_match_p): Likewise.
32007 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32009 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
32010 Change type of new_regno to unsigned int.
32011 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
32012 new_regno to unsigned int.
32013 (df_ref_change_reg_with_loc): Remove old_regno parameter.
32014 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
32015 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
32016 (SET_REGNO_RAW): Add space after ",".
32018 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32020 * rtl.h (REG_NREGS): New macro
32021 * alias.c (record_set): Use it.
32022 * cfgcleanup.c (mark_effect): Likewise.
32023 * combine.c (likely_spilled_retval_1): Likewise.
32024 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
32025 (move_deaths, distribute_notes): Likewise.
32026 * cselib.c (cselib_record_set): Likewise.
32027 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
32028 * df-scan.c (df_mark_reg): Likewise.
32029 * dse.c (look_for_hardregs): Likewise.
32030 * dwarf2out.c (reg_loc_descriptor): Likewise.
32031 (multiple_reg_loc_descriptor): Likewise.
32032 * expr.c (write_complex_part, read_complex_part): Likewise.
32033 (emit_move_complex): Likewise.
32034 * haifa-sched.c (setup_ref_regs): Likewise.
32035 * ira-lives.c (mark_hard_reg_live): Likewise.
32036 * lra.c (lra_set_insn_recog_data): Likewise.
32037 * mode-switching.c (create_pre_exit): Likewise.
32038 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
32039 (reload_combine_recognize_pattern): Likewise.
32040 (reload_combine_note_use, move2add_record_mode): Likewise.
32041 (reload_cse_move2add): Likewise.
32042 * reg-stack.c (subst_stack_regs_pat): Likewise.
32043 * regcprop.c (kill_value, copy_value): Likewise.
32044 (copyprop_hardreg_forward_1): Likewise.
32045 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
32046 (build_def_use): Likewise.
32047 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
32048 (deps_analyze_insn): Likewise.
32049 * sched-rgn.c (check_live_1, update_live_1): Likewise.
32050 * sel-sched.c (count_occurrences_equiv): Likewise.
32051 * valtrack.c (dead_debug_insert_temp): Likewise.
32053 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32055 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
32056 * dse.c (note_add_store): Likewise.
32057 * ira-lives.c (mark_hard_reg_dead): Likewise.
32058 * loop-invariant.c (mark_reg_store): Likewise.
32059 (mark_reg_death): Likewise.
32060 * postreload.c (reload_combine): Likewise.
32061 (reload_combine_note_store): Likewise.
32062 (reload_combine_note_use): Likewise.
32063 * recog.c (peep2_reg_dead_p): Likewise.
32065 2015-05-19 Alan Modra <amodra@gmail.com>
32067 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
32068 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
32069 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
32071 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
32072 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
32073 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
32074 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
32076 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
32078 * config/mips/mips.md (JOIN_MODE): New mode iterator.
32079 (join2_load_Store<JOIN_MODE:mode>): New pattern.
32080 (join2_loadhi): Likewise.
32081 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
32082 load-load and store-stores.
32083 * config/mips/mips.opt (mload-store-pairs): New option.
32084 (TARGET_LOAD_STORE_PAIRS): New macro.
32085 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
32086 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
32087 * config/mips/mips.c (mips_load_store_bonding_p): New function.
32089 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
32091 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
32093 * dojump.c (do_compare_rtx_and_jump): Likewise.
32094 * expmed.c (emit_store_flag_1): Likewise.
32095 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
32096 * final.c (sprint_ul): Use std::reverse for reversing a string.
32097 * fold-const.c (extract_muldiv_1): Use std::swap.
32098 * genmodes.c (emit_mode_int_n): Likewise.
32099 * ifcvt.c (dead_or_predicable): Likewise.
32100 * ira-build.c (ira_merge_live_ranges): Likewise.
32101 (swap_allocno_copy_ends_if_necessary): Likewise.
32102 * ira.c (ira_setup_alts): Likewise.
32103 * loop-iv.c (iv_analyze_expr): Likewise.
32104 (implies_p): Likewise.
32105 (canon_condition): Likewise.
32106 * lra-constraints.c (swap_operands): Likewise.
32107 * lra-lives.c (lra_merge_live_ranges): Likewise.
32108 * omega.c (swap): Remove.
32110 (omega_unprotect_1): Use std::swap.
32111 (omega_solve_geq): Likewise.
32112 * optabs.c (expand_binop_directly): Likewise.
32113 (expand_binop): Likewise.
32114 (emit_conditional_move): Likewise.
32115 (emit_conditional_add): Likewise.
32116 * postreload.c (reload_cse_simplify_operands): Likewise.
32117 * reg-stack.c (emit_swap_insn): Likewise.
32118 (swap_to_top): Likewise.
32119 (compare_for_stack_reg): Likewise.
32120 (subst_asm_stack_regs): Likewise.
32121 * reload.c (find_reloads): Likewise.
32122 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
32123 * sel-sched.c (invoke_reorder_hooks): Likewise.
32124 (create_block_for_bookkeeping): Likewise.
32125 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
32126 (lambda_matrix_right_hermite): Use std::swap.
32127 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
32128 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
32129 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
32130 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
32131 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
32132 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
32133 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
32134 * tree-vrp.c (compare_ranges): Likewise.
32135 * var-tracking.c (add_with_sets): Likewise.
32136 (vt_find_locations): Likewise.
32138 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
32140 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
32142 (FBSD_ENDFILE_SPEC): Likewise.
32143 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
32144 config/freebsd-spec.h.
32145 (ENDFILE_SPEC): Likewise.
32147 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
32148 Richard Henderson <rth@redhat.com>
32151 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
32152 Check for a memory location that is not a reference (using an AND)
32153 to an unaligned location here.
32154 * config/alpha/predicates.md (normal_memory_operand): Remove.
32156 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
32158 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
32159 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
32161 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
32163 * config/mips/mips.c (micromips_globals): New variable.
32164 (mips_set_compression_mode): Save and reinitialize target-dependent
32165 state for microMIPS.
32167 2015-05-18 Martin Liska <mliska@suse.cz>
32169 * dbgcnt.def: Add new counter.
32170 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
32172 2015-05-18 Martin Liska <mliska@suse.cz>
32174 * dbgcnt.def: Sort counters.
32175 * opts.c (common_handle_option): Do not compile if
32176 -fdbg-cnt-list is enabled.
32178 2015-05-18 Tom de Vries <tom@codesourcery.com>
32180 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
32181 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
32182 address operator to va_list operand.
32183 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
32185 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
32187 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
32188 * config/s390/s390.c (s390_gimplify_va_arg): Same.
32189 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
32191 2015-05-18 Tom de Vries <tom@codesourcery.com>
32193 * tree-ssa-tail-merge.c: Fix whitespace.
32195 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
32197 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
32198 cortex-a17, and cortex-a17.cortex-a7.
32200 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
32203 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
32205 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
32208 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
32209 QImode inner modes for TARGET_AVX512BW. Force mask operand
32210 to a register for AVX512F modes.
32212 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32214 * toplev.c (emit_debug_global_declarations): Do not output debug info
32215 when doing slim LTO objects.
32217 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32219 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
32220 odr_types_equivalent_p): Declare.
32221 (odr_type_p): Use gcc_checking_assert.
32222 (type_in_anonymous_namespace_p) Declare.
32223 (type_with_linkage_p): Declare.
32224 * common.opt (Wlto-type-mismatch): New warning.
32225 * ipa-devirt.c (compound_type_base): New function.
32226 (odr_or_derived_type_p): New function.
32227 (odr_types_equivalent_p): New function.
32228 (add_type_duplicate): Simplify.
32229 (type_with_linkage_p): Add hack to prevent false positives on C types
32230 (type_in_anonymous_namespace_p): Likewise.
32231 * tree.c (need_assembler_name_p): Use type_with_linkage.
32232 * tree.h (type_in_anonymous_namespace_p): Remove.
32233 * doc/invoke.texi (-Wlto-type-mismatch): Document
32235 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32237 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
32238 (verify_type): Verify STRING_FLAG.
32240 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
32243 * tree-pretty-print.c (percent_K_format): Replace locus pointer
32244 with accessor function.
32245 * tree-diagnostic.c (diagnostic_report_current_function): Use
32246 diagnostic_location function.
32247 (maybe_unwind_expanded_macro_loc): Likewise.
32248 (virt_loc_aware_diagnostic_finalizer): Likewise.
32249 (default_tree_printer): Replace locus pointer with accessor function.
32250 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
32251 (diagnostic_set_info_translated): Initialize second location.
32252 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
32253 (diagnostic_show_locus): Handle two locations. Call
32254 diagnostic_print_caret_line.
32255 (diagnostic_print_caret_line): New.
32256 (default_diagnostic_starter): Use diagnostic_location function.
32257 (diagnostic_report_diagnostic): Use diagnostic_location function.
32258 (verbatim): Do not set text.locus.
32259 * diagnostic.h (struct diagnostic_info): Remove location field.
32260 (struct diagnostic_context): Make caret_chars an array of two.
32261 (diagnostic_location): New inline.
32262 (diagnostic_expand_location): Handle two locations.
32263 (diagnostic_same_line): New inline.
32264 (diagnostic_print_caret_line): Declare.
32265 (CARET_LINE_MARGIN): New constant.
32266 * pretty-print.c (pp_printf): Do not set text.locus.
32267 (pp_verbatim): Do not set text.locus.
32268 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
32269 (struct text_info): Replace locus pointer with locations
32270 array. Add accessor functions.
32272 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
32273 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32276 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
32277 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
32278 large constants in register instead of splitting them.
32280 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
32283 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
32284 replacements in memory addresses.
32285 (get_unaligned_address): Ditto.
32287 2015-05-16 James Bowman <james.bowman@ftdichip.com>
32289 * config/ft32/*: New files for FT32 port.
32290 * doc/install.texi: Add FT32 information.
32291 * doc/invoke.texi: Add FT32 information.
32292 * doc/md.texi: Add FT32 information.
32293 * doc/contrib.texi: Self added.
32295 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
32297 PR tree-optimization/64454
32298 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
32299 (-1 - A -> ~A): Remove unnecessary condition.
32301 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
32303 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
32304 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
32305 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
32307 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
32309 * ipa-chkp.h (chkp_wrap_function): New.
32310 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
32311 (chkp_wrap_function_name): New.
32312 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
32313 to get wrapper name.
32314 * lto-cgraph.c: Include ipa-chkp.h.
32315 (input_cgraph_1): Avoid alias chain for wrappers.
32317 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
32319 PR middle-end/66134
32320 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
32321 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
32323 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32325 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
32326 (AARCH64_FL_SLOWMUL): Delete.
32327 (AARCH64_FL_CRC): Redefine to 1<<3.
32328 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
32330 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32332 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
32335 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32337 * config/alpha/alpha.md (extendqidi2): Use general_operand
32338 instead of some_operand for operand[1] predicate.
32339 (extendhidi2): Ditto.
32340 (cbranchdi4): Use general_operand instead of some_operand
32341 for operand[1] and operands[2] predicates.
32342 (cstoredi4): Ditto.
32343 * config/alpha/predicates.md (some_operand): Remove unused predicate.
32344 (some_ni_operand): Ditto.
32346 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32348 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
32349 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
32350 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
32351 low part of the constant using alpha_emit_set_const_1.
32352 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
32354 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
32356 * varasm.c (output_constant_pool_1): Pass down alignment from
32357 constant pool entry's descriptor to output_constant_pool_2.
32358 (output_object_block): Add comment prior to call to
32359 output_constant_pool_1.
32361 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
32363 PR rtl-optimization/65862
32364 * target.def (ira_change_pseudo_allocno_class): New hook.
32365 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
32367 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
32368 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
32370 * ira-costs.c (find_costs_and_classes): Call the hook and change
32371 classes when it is necessary.
32372 * doc/tm.texi: Update.
32374 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
32376 * config/i386/i386.md (sibcall_memory): Check that register with
32377 callee address is not also used as one of the arguments, instead
32378 of checking that it is not live after the sibcall.
32379 (sibcall_pop_memory): Ditto.
32380 (sibcall_value_memory): Ditto.
32381 (sibcall_value_pop_memory): Ditto.
32383 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
32385 * generic-match-head.c (types_match): Handle non-types.
32386 * gimple-match-head.c (types_match): Likewise.
32387 * match.pd: Remove unnecessary TREE_TYPE for types_match.
32389 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
32391 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
32392 (csneg3<mode>_insn): Enable expansion of pattern.
32394 2015-05-14 Nick Clifton <nickc@redhat.com>
32396 * config/rl78/rl78.c (rl78_select_section): Select the correct
32397 default section based upon the category of the decl.
32399 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32401 PR rtl-optimization/30967
32402 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
32403 destination mode for the cost of scc patterns.
32405 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32407 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
32408 using SWIM248 mode iterator.
32409 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
32410 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
32411 for operand[2] constraint.
32412 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
32414 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32416 PR middle-end/66133
32417 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
32418 make sure it is never noreturn, even when the task body does not
32420 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
32421 right before GIMPLE_OMP_RETURN.
32422 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
32423 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
32424 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
32426 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32428 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
32429 * tree-ssa-math-opts.c: Include params.h
32430 (pow_synth_sqrt_info): New struct.
32431 (representable_as_half_series_p): New function.
32432 (get_fn_chain): Likewise.
32433 (print_nested_fn): Likewise.
32434 (dump_fractional_sqrt_sequence): Likewise.
32435 (dump_integer_part): Likewise.
32436 (expand_pow_as_sqrts): Likewise.
32437 (gimple_expand_builtin_pow): Use above to attempt to expand
32438 pow as series of square roots. Removed now unused variables.
32440 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32442 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
32443 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
32444 Remove *p0 and *p1 arguments. Rewrite function.
32445 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
32446 (alpha_split_const_mov): Update calls to alpha_extract_integer and
32447 alpha_emit_set_long_const.
32448 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
32449 (alpha_output_mi_thunk_osf): Ditto.
32450 * config/alpha/alpha.md (movti): Do not check operands[1]
32453 2015-05-13 Richard Biener <rguenther@suse.de>
32455 PR tree-optimization/66129
32456 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
32458 (vect_schedule_slp_instance): Fix typo.
32460 2015-05-13 David Malcolm <dmalcolm@redhat.com>
32462 * common.opt (fdump-internal-locations): New option.
32463 * input.c: Include diagnostic-core.h.
32464 (get_end_location): New function.
32465 (write_digit): New function.
32466 (write_digit_row): New function.
32467 (dump_location_range): New function.
32468 (dump_labelled_location_range): New function.
32469 (dump_location_info): New function.
32470 * input.h (dump_location_info): New prototype.
32471 * toplev.c (compile_file): Handle flag_dump_locations.
32473 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
32475 * gimple-expr.h (is_gimple_constant): Reorder.
32476 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
32478 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32480 * combine.c (simplify_set): When generating a CC set, if the
32481 source already is in the correct mode, do not wrap it in a
32482 compare. Simplify the rest of that code.
32484 2015-05-13 Richard Biener <rguenther@suse.de>
32486 PR tree-optimization/66123
32487 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
32490 2015-05-13 Richard Biener <rguenther@suse.de>
32492 PR middle-end/66110
32493 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
32495 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
32497 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32499 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
32500 * aclocal.m4: Regenerated with automake-1.11.6.
32502 2015-05-13 Tom de Vries <tom@codesourcery.com>
32504 PR tree-optimization/66010
32505 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
32506 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
32507 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
32508 and rval based on do_deref.
32510 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32513 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
32514 link time constants into adress expressions and therefore set
32517 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32520 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
32521 Use SWI248 iterator instead of SWI.
32522 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
32523 Use eq_attr "alternative" "0" instead of match_test in
32524 length_immediate attribute computation.
32525 (*mulvhi4, *mulvhi4_1): New define_insns.
32528 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
32529 SIGNED to get precision of non-negative value.
32531 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32534 * function.c (diddle_return_value_1): Process bounds first.
32535 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
32538 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32540 PR rtl-optimization/64616
32541 * loop-invariant.c (can_move_invariant_reg): New.
32542 (move_invariant_reg): Call above new function to decide whether
32543 instruction can just be moved, skipping creation of temporary
32546 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32548 PR target/pr66047.c
32549 * i386.c (ix86_function_sseregparm): Only return -1 if local function
32550 with implied regparm is called from -mno-sse function.
32551 (init_cumulative_args): Output error if ix86_function_sseregparm
32552 return -1 and SSE register would be needed.
32553 (function_arg_advance_32): Likewise.
32554 (function_arg_32): Likewise.
32555 * i386.h (ix86_args): Add decl field.
32557 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32560 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
32561 inlines across optimization boundary.
32563 2015-05-12 Jason Merrill <jason@redhat.com>
32565 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
32566 string literal and macro name.
32568 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
32570 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
32571 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
32572 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
32574 2015-05-12 David Malcolm <dmalcolm@redhat.com>
32576 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
32577 (-Wmisleading-indentation): New option.
32578 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
32580 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
32582 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
32583 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
32584 (alpha_extract_integer): Ditto.
32585 (alpha_legitimate_constant_p): Ditto.
32586 (alpha_split_tmode_pair): Ditto.
32587 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
32588 (alpha_expand_mov): Ditto.
32589 (print_operand): Remove handling of 'H' modifier.
32590 <case 'm'>: Remove CONST_DOUBLE handling.
32591 (summarize_insn): Handle CONST_WIDE_INT.
32592 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
32594 (movti): Handle CONST_WIDE_INT.
32595 * config/alpha/constraints.md ('H'): Remove constraint definition.
32596 ('G'): Do not match MODE_FLOAT class.
32597 * config/alpha/predicates.md (const0_operand): Also match
32599 (non_add_const_operand): Ditto.
32600 (non_zero_const_operand): Ditto.
32601 (some_operand): Ditto.
32602 (input_operand): Ditto. Handle CONST_WIDE_INT.
32603 (and_operand): Do not match const_double.
32604 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
32606 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
32609 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
32610 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
32611 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
32612 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
32613 is_mm_seq_cst, is_mm_sync): New accessor functions.
32614 * builtins.c (expand_builtin_sync_operation,
32615 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
32616 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
32617 (get_memmodel, expand_builtin_atomic_compare_exchange,
32618 expand_builtin_atomic_load, expand_builtin_atomic_store,
32619 expand_builtin_atomic_clear): Use new accessor routines.
32620 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
32621 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
32622 (maybe_emit_sync_lock_test_and_set): Use new accessors and
32623 MEMMODEL_SYNC_ACQUIRE.
32624 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
32625 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
32626 expand_atomic_store): Use new accessors.
32627 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
32628 * tsan.c (instrument_builtin_call): Update check for memory model beyond
32629 final enum to use MEMMODEL_LAST.
32630 * c-family/c-common.c: Use new accessor for memmodel_base.
32631 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
32633 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
32634 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
32635 mem_thread_fence, *dmb): Likewise.
32636 * config/alpha/alpha.c (alpha_split_compare_and_swap,
32637 alpha_split_compare_and_swap_12): Likewise.
32638 * config/arm/arm.c (arm_expand_compare_and_swap,
32639 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
32640 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
32641 atomic_loaddi): Likewise.
32642 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
32644 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
32645 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
32647 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
32648 atomic_store<mode>, atomic_compare_and_swap<mode>,
32649 atomic_exchange<mode>): Use new accessors.
32650 * config/mips/mips.c (mips_process_sync_loop): Likewise.
32651 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
32652 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
32653 rs6000_post_atomic_barrier): Add new cases.
32654 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
32655 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
32656 (atomic_load<mode>): Add new cases and use new accessors.
32657 (store_quadpti): Add new cases.
32658 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
32660 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
32661 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
32664 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32666 * ipa-devirt.c (type_with_linkage_p): New function.
32667 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
32669 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
32670 (can_be_name_hashed_p): Simplify.
32671 (hash_odr_name): Check that type has linkage before checking if it is
32673 (types_same_for_odr): Likewise.
32674 (odr_name_hasher::equal): Likewise.
32675 (odr_subtypes_equivalent_p): Likewise.
32676 (warn_types_mismatch): Likewise.
32677 (get_odr_type): Likewise.
32678 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
32679 * ipa-utils.h (odr_type_p): Move offline.
32680 * tree.c (need_assembler_name_p): Fix handling of types
32682 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
32684 2015-05-12 David Malcolm <dmalcolm@redhat.com>
32686 * timevar.c (timevar_enable): Delete in favor of...
32687 (g_timer): New global.
32688 (struct timevar_def): Move to timevar.h inside class timer.
32689 (struct timevar_stack_def): Likewise.
32690 (timevars): Delete global in favor of field "m_timevars" within
32691 class timer in timevar.h
32692 (stack): Likewise, in favor of field "m_stack".
32693 (unused_stack_instances): Likewise, in favor of field
32694 "m_unused_stack_instances".
32695 (start_time): Likewise, in favor of field "m_start_time".
32696 (get_time): Eliminate check for timevar_enable.
32697 (timer::timer): New function, built from part of timevar_init.
32698 (timevar_init): Rewrite idempotency test from using
32699 "timevar_enable" bool to using dynamic allocation of "g_timer".
32700 Move rest of implementation into timer's constructor.
32701 (timevar_push_1): Rename to...
32702 (timer::push): ...this, adding "m_" prefixes to variables that
32703 are now fields of timer.
32704 (timevar_pop_1): Likewise, rename to...
32705 (timer::pop): ...this, and add "m_" prefixes.
32706 (timevar_start): Replace test for "timevar_enable" with one for
32707 "g_timer", and move bulk of implementation to...
32708 (timer::start): ...here, adding "m_" prefixes.
32709 (timevar_stop): Likewise, from here...
32710 (timer::stop): ...to here.
32711 (timevar_cond_start): Likewise, from here...
32712 (timer::cond_start): ...to here.
32713 (timevar_cond_stop): Likewise, from here...
32714 (timer::cond_stop): ...to here.
32715 (validate_phases): Rename to...
32716 (timer::validate_phases): ...this, and add "m_" prefixes. Make
32717 locals "total" and "tv" const.
32718 (timevar_print): Rename to...
32719 (timer::print): ...this, and add "m_" prefixes. Make locals
32720 "total" and "tv" const. Eliminate test for timevar_enable.
32721 * timevar.h (timevar_enable): Eliminate.
32722 (g_timer): New declaration.
32723 (timevar_push_1): Eliminate.
32724 (timevar_pop_1): Eliminate.
32725 (timevar_print): Eliminate.
32726 (class timer): New class.
32727 (timevar_push): Rewrite to use g_timer.
32728 (timevar_pop): Likewise.
32729 * toplev.c (toplev::~toplev): Likewise.
32731 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
32733 * arm-protos.h (arm_sched_autopref): Delete.
32734 (tune_params): Re-organize, use enums for flag values.
32735 (FUSE_OPS): New macro.
32736 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
32737 (ARM_PREFETCH_BENEFICIAL): Likewise.
32738 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
32739 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32740 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
32741 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
32742 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
32743 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
32744 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
32745 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
32747 (arm_option_override, thumb2_reorg, arm_print_tune_info)
32748 (aarch_macro_fusion_pair_p): Update uses of current_tune.
32749 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
32751 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
32753 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
32756 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
32757 Sandra Loosemore <sandra@codesourcery.com>
32759 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
32761 (REG_CLASS_NAMES): Add "IJMP_REGS".
32762 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
32763 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
32764 use new "c" register constraint.
32765 * config/nios2/constraint.md (c): New register constraint
32766 corresponding to IJMP_REGS.
32768 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32770 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
32771 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
32772 define_splits): Delete, revamp, transmogrify into ...
32773 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
32774 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
32775 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
32778 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32780 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
32781 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
32783 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32785 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
32786 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
32787 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
32788 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
32789 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
32790 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
32791 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
32792 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
32793 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
32794 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
32795 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
32796 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
32797 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
32798 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
32799 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
32800 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
32801 and 30 corresponding splitters): Delete.
32803 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32805 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
32808 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32810 * combine.c (recog_for_combine_1): New function, factored out
32811 from recog_for_combine.
32812 (change_zero_ext): New function.
32813 (recog_for_combine): If recog fails, try again with the pattern
32814 modified by change_zero_ext; if that still fails, restore the
32817 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32819 * combine.c (get_undo_marker): New function.
32820 (undo_to_marker): New function, largely factored out from ...
32821 (undo_all): ... this. Adjust.
32823 2015-05-12 Richard Biener <rguenther@suse.de>
32825 PR tree-optimization/66101
32826 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
32827 fixup if we turn a loop exit edge to a fallthru edge.
32829 2015-05-12 Richard Biener <rguenther@suse.de>
32831 PR tree-optimization/37021
32832 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
32833 (SLP_TREE_TWO_OPERATORS): New define.
32834 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
32835 SLP_TREE_TWO_OPERATORS.
32836 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
32838 (vect_build_slp_tree): Adjust.
32839 (vect_analyze_slp_cost_1): Likewise.
32840 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
32841 emitting two vector stmts and mixing the results.
32843 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
32845 * call.c (print_z_candidates): Remove dead code.
32847 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32849 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
32850 and zEC12_simple_fp.
32851 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
32854 2015-05-12 Tom de Vries <tom@codesourcery.com>
32856 PR tree-optimization/66010
32857 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
32859 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
32860 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
32861 va_lists are passed, and remove corresponding handling.
32862 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
32863 do_deref argument to ifn_va_arg.
32864 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
32867 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32870 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
32871 REG before taking its REGNO.
32873 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
32875 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
32876 rsp->sign_bit_copies and rsp->nonzero_bits into ...
32877 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
32878 present to get more accurate information about the number of sign bit
32879 copies and non zero bits.
32881 2015-05-12 Richard Biener <rguenther@suse.de>
32883 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
32884 do not allow unrolling.
32886 2015-05-11 Richard Henderson <rth@redhat.com>
32888 * config/i386/i386-modes.def (CCP): New.
32889 * config/i386/i386.c (put_condition_code): Handle it.
32890 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
32892 2015-05-11 Richard Henderson <rth@redhat.com>
32894 * target.def (md_asm_clobbers): Replace with...
32895 (md_asm_adjust): this.
32896 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
32897 (TARGET_MD_ASM_ADJUST): New.
32898 * tm.texi: Rebuild.
32899 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
32900 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
32901 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
32903 * cfgexpand.c (check_operand_nalternatives): Accept vector of
32904 constraints instead of lists of outputs and inputs.
32905 (expand_asm_stmt): Save and restore input_location around the
32906 body of the function. Move asm data into vectors instead of
32907 building tree lists. Generate cleanup sequences as needed,
32908 rather than waiting til the end. Use new md_asm_adjust hook.
32910 * config/vxworks.c: Include vec.h before target.h.
32911 * gimple.c: Likewise.
32912 * incpath.c: Likewise.
32913 * mode-switching.c: Likewise.
32915 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
32916 (cris_md_asm_adjust): this.
32917 (TARGET_MD_ASM_CLOBBERS): Remove.
32918 (TARGET_MD_ASM_ADJUST): New.
32919 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
32920 (ix86_md_asm_adjust): this.
32921 (TARGET_MD_ASM_CLOBBERS): Remove.
32922 (TARGET_MD_ASM_ADJUST): New.
32923 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
32924 (mn10300_md_asm_adjust): this.
32925 (TARGET_MD_ASM_CLOBBERS): Remove.
32926 (TARGET_MD_ASM_ADJUST): New.
32927 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
32928 (rs6000_md_asm_adjust): this.
32929 (TARGET_MD_ASM_CLOBBERS): Remove.
32930 (TARGET_MD_ASM_ADJUST): New.
32931 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
32932 (visium_md_asm_adjust): this.
32933 (TARGET_MD_ASM_CLOBBERS): Remove.
32934 (TARGET_MD_ASM_ADJUST): New.
32936 2015-05-11 Richard Henderson <rth@redhat.com>
32938 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
32939 if noutputs is zero.
32940 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
32942 * cfgexpand.c (expand_asm_operands): Merge into...
32943 (expand_asm_stmt): ... here.
32945 * cfgexpand.c (expand_asm_operands): Don't call
32946 resolve_asm_operand_names.
32947 * stmt.c (resolve_asm_operand_names): Clarify block comment.
32949 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
32951 * dwarf2out.c (gen_member_die): Sanity check that we access
32952 TYPE_MAIN_VARIANT for TYPE_METHODS.
32953 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
32954 checking TYPE_METHODS.
32955 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
32957 (build_distinct_type_copy): Clear TYPE_METHODS.
32958 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
32959 (verify_type): Allow TYPE_METHODS to be error_mark_node.
32960 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
32962 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
32964 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
32965 (emit_pattern_before_setloc): Likewise.
32967 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
32969 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
32970 for define_peephole2s.
32971 (get_peephole2_pattern): New function.
32972 (main): Use it. Call validate_pattern.
32974 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
32976 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
32977 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
32978 (Last callee saved reg is different for AVR_TINY architecture)
32980 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
32982 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
32983 when looking for memory references.
32985 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
32988 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
32989 via function pointers.
32991 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
32993 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
32994 indirect call by forcing address into a pseudo with -fno-plt.
32995 * common.opt (flag_plt): New option.
32996 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
32997 ([-fno-plt]): Document.
32999 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
33002 * config/rs6000/option-defaults.h: Add space between string literal
33005 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
33007 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
33008 accross ARM targets.
33010 2015-05-11 Christian Bruel <christian.bruel@st.com>
33012 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
33013 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
33015 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
33017 PR rtl-optimization/66076
33018 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
33019 Don't grow the heap array if it is already big enough from a
33020 previous iteration.
33022 2015-05-11 Christian Bruel <christian.bruel@st.com>
33024 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
33025 (is_called_in_ARM_mode): Remove.
33026 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
33027 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
33028 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
33029 arm_declare_function_name.
33031 2015-05-11 Christian Bruel <christian.bruel@st.com>
33033 * config/arm/arm.c (arm_option_override): Reoganized and split into :
33034 (arm_option_params_internal); New function.
33035 (arm_option_check_internal): New function.
33036 (arm_option_override_internal): New function.
33037 (thumb_code, thumb1_code): Remove.
33038 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
33039 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
33040 (thumb_code, thumb1_code): Remove.
33041 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
33043 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
33045 * config/alpha/alpha.c (alpha_emit_set_const_1)
33046 (alpha_emit_set_long_const, alpha_extract_integer)
33047 (alpha_legitimate_constant_p, alpha_split_const_mov)
33048 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
33049 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33050 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
33052 * config/alpha/predicates.md (mode_mask_operand): Do not match
33054 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33055 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
33056 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
33057 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33058 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
33060 2015-05-11 Jakub Jelinek <jakub@redhat.com>
33063 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
33064 default_binds_local_p_2.
33065 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
33066 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
33068 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33070 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
33072 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33074 Patch by Richard Biener
33075 * coverage.c (coverage_obj_init): Delay building of type variant
33076 until the type is finished.
33078 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33080 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
33081 mismatch between C and C++ type; compoare correctly ARG_TYPES
33082 for non-prototypes and output correctly parameter index for METHOD_TYPE.
33083 (odr_types_equivalent_p): Fix wording of warning about attributes;
33084 it is OK to match prototype and non-prototype.
33086 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33088 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
33089 TYPE_ARG_TYPES list.
33090 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
33091 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
33093 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33095 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
33096 * tree.h (is_lang_specific): Constify.
33098 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
33100 PR tree-optimization/64454
33101 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
33104 2015-05-08 Jason Merrill <jason@redhat.com>
33106 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
33107 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
33108 config/darwin.h, config/darwin9.h, config/elfos.h,
33109 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
33110 config/microblaze/microblaze.h, config/mips/mips.h,
33111 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
33112 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
33113 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
33114 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
33115 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
33116 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
33117 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
33118 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
33119 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
33120 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
33121 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
33122 between string literal and macro name.
33124 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33126 * jump.c: Change argument types to rtx_insn *.
33129 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33131 * lra-constraints.c: Change argument type to rtx_insn *.
33133 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33135 * df-problems.c: Change argument type to rtx_insn *.
33137 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33139 * combine.c: Change argument type to rtx_insn *.
33141 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33144 * rtlanal.c: Change argument type to rtx_insn *.
33146 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33148 * sched-deps.c: Change argument types to rtx_insn *.
33149 * sched-int.h: Adjust.
33151 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33153 * dwarf2cfi.c: Change argument type to rtx_insn *.
33155 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33157 * ira.c (decrease_live_ranges_number): Changetype of local
33158 variable to rtx_insn *.
33159 * recog.c: Change argument types to rtx_insn *.
33162 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33164 * reorg.c: Change argument types to rtx_insn *.
33166 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33168 * ira-color.c: Change argument types to rtx_insn *.
33169 * lra-eliminations.c: Likewise.
33172 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33174 * gcse.c: Change argument types to rtx_insn *.
33176 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33178 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
33180 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33182 * emit-rtl.c (emit_debug_insn_before): Change argument type to
33186 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33188 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
33191 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33193 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
33196 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33198 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
33201 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33203 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
33206 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33208 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
33212 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33214 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
33218 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33220 * except.c (can_nonlocal_goto): Change type of argument to
33224 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33226 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
33229 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33231 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
33232 * cfgrtl.c (can_delete_label_p): Adjust.
33235 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33237 * reorg.c (stop_search_p): Change argument to rtx_insn *.
33239 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33241 * except.c (make_reg_eh_region_note): Change argument to
33243 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
33244 * except.h: Adjust.
33246 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33248 * mode-switching.c (commit_mode_sets): Change type of local
33249 variable from rtx to rtx_insn *.
33251 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
33253 * doc/install.texi (--enable-languages): Add missing jit and lto info.
33254 Add ^ to grep command.
33255 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
33256 arg to last gimple_simplify declaration. Add missing gimple_build
33257 declaration for built-in function case with four tree args.
33259 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33260 Szabolcs Nagy <szabolcs.nagy@arm.com>
33262 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
33263 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
33264 (GNU_USER_DYNAMIC_LINKERN32): Update.
33266 2015-05-08 Richard Biener <rguenther@suse.de>
33268 PR tree-optimization/66036
33269 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33270 Handle strided group loads.
33271 (vect_verify_datarefs_alignment): Likewise.
33272 (vect_enhance_data_refs_alignment): Likewise.
33273 (vect_analyze_group_access): Likewise.
33274 (vect_analyze_data_ref_access): Likewise.
33275 (vect_analyze_data_ref_accesses): Likewise.
33276 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
33277 (vectorizable_load): Likewise.
33279 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
33281 * config/rs6000/rs6000.md: Require operand inequality in one
33284 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
33285 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
33287 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
33289 * config/rx/rx.md (movdi, movdf): Likewise.
33290 Likewise for define_peephole2s.
33292 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33294 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
33295 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
33296 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
33297 vtst_u64): Rewrite using gcc vector extensions.
33299 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33301 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
33302 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
33304 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33306 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
33308 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
33310 * config/glibc-stdint.h (OPTION_MUSL): Define.
33311 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
33312 Change the definition based on OPTION_MUSL for 64 bit targets.
33313 * config/linux.h (OPTION_MUSL): Redefine.
33314 * config/alpha/linux.h (OPTION_MUSL): Redefine.
33315 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
33316 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
33318 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33319 Szabolcs Nagy <szabolcs.nagy@arm.com>
33321 * config.gcc (LIBC_MUSL): New tm_defines macro.
33322 * config/linux.h (OPTION_MUSL): Define.
33323 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
33324 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
33325 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33326 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33327 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33328 * config/linux.opt (mmusl): New option.
33329 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
33330 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33331 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33332 * configure: Regenerate.
33334 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
33335 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33338 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
33339 * config/i386/knetbsd-gnu64.h: New file.
33341 2015-05-08 Marek Polacek <polacek@redhat.com>
33344 * doc/invoke.texi: Document -Woverride-init-side-effects.
33346 2015-05-07 Marek Polacek <polacek@redhat.com>
33349 * doc/invoke.texi: Document -Wshift-negative-value.
33351 2015-05-06 Aditya Kumar <hiraditya@msn.com>
33353 * gcov-tool.c (do_merge): Refactore to remove int ret.
33354 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
33355 !type == FUNC to type != FUNC.
33356 * reload.h (struct target_reload): Changee to type of
33357 x_spill_indirect_levels from bool to unsigned char.
33359 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
33361 * rtl.h (always_void_p): New function.
33362 * gengenrtl.c (always_void_p): Likewise.
33363 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
33364 with code foo are always VOIDmode.
33365 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
33366 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
33367 compare-elim.c, config/aarch64/aarch64.c,
33368 config/aarch64/aarch64.md, config/alpha/alpha.c,
33369 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
33370 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
33371 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
33372 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33373 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
33374 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
33375 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
33376 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
33377 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
33378 config/ia64/vect.md, config/iq2000/iq2000.c,
33379 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
33380 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
33381 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
33382 config/mep/mep.c, config/microblaze/microblaze.c,
33383 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
33384 config/mn10300/mn10300.c, config/msp430/msp430.c,
33385 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
33386 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
33387 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
33388 config/rs6000/altivec.md, config/rs6000/rs6000.c,
33389 config/rs6000/rs6000.md, config/rs6000/vector.md,
33390 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
33391 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
33392 config/sh/sh.md, config/sh/sh_treg_combine.cc,
33393 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
33394 config/spu/spu.md, config/stormy16/stormy16.c,
33395 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
33396 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
33397 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
33398 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
33399 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
33400 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
33401 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
33402 var-tracking.c: Update calls accordingly.
33404 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
33407 PR middle-end/54303
33408 * varasm.c (function_mergeable_rodata_prefix): New function.
33409 (mergeable_string_section): Use it.
33410 (mergeable_constant_section): Use it.
33412 2015-05-07 Jeff Law <law@redhat.com>
33415 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33416 simplifier to narrow arithmetic.
33417 * generic-match-head.c: (types_match, single_use): New functions.
33418 * gimple-match-head.c: (types_match, single_use): New functions.
33420 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33422 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
33425 2015-05-07 Richard Biener <rguenther@suse.de>
33427 PR tree-optimization/66002
33428 * passes.def: Schedule another pass_merge_phi after ifcombine, right
33431 2015-05-07 Marek Polacek <polacek@redhat.com>
33432 Martin Uecker <uecker@eecs.berkeley.edu>
33434 * doc/invoke.texi: Document -fsanitize=bounds-strict.
33435 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
33436 into SANITIZE_NONDEFAULT.
33437 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
33439 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
33442 * config/alpha/alpha.c (alpha_override_options_after_change): New.
33443 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
33444 (alpha_override_options): Move align_loops, align_jumps and
33445 align_functions handling into alpha_override_options_after_change.
33447 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
33448 Chris Jones <chrisj@nvidia.com>
33449 Joshua Conner <jconner@nvidia.com>
33451 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
33452 linking of crtfastmath.o.
33453 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
33455 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
33457 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
33458 (cstore<mode>4_unsigned_imm): New expander.
33459 (cstore<mode>4): Remove empty constraint strings. Use the new
33462 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
33465 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
33468 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
33470 * config/aarch64/geniterators.sh: Use standard BRE in sed.
33472 2015-05-06 Alan Modra <amodra@gmail.com>
33475 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
33476 (UNSPEC_NOP): Define.
33477 (reload_vsx_from_gpr<mode>): Add missing DONE.
33478 (reload_gpr_from_vsx<mode>): Likewise.
33479 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
33480 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
33482 2015-05-06 Christian Bruel <christian.bruel@st.com>
33485 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
33486 align_jumps, align_functions into aarch64_override_options_after_change.
33488 2015-05-06 Richard Biener <rguenther@suse.de>
33490 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
33491 vect_transform_slp_perm_load to check if we support a permutation
33492 for basic-block vectorization.
33494 2015-05-06 Nick Clifton <nickc@redhat.com>
33496 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
33497 used, even if it is not being used as a frame pointer.
33499 2015-05-05 Jason Merrill <jason@redhat.com>
33501 * dwarf2out.c (gen_member_die): Don't emit anything for an
33502 anonymous class constructor.
33504 2015-05-05 David Malcolm <dmalcolm@redhat.com>
33506 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
33507 that it reflects the block structure.
33508 (afdo_propagate_edge): Likewise.
33509 (afdo_calculate_branch_prob): Likewise.
33510 (afdo_annotate_cfg): Likewise.
33511 * cfgcleanup.c (equal_different_set_p): Likewise.
33512 (try_crossjump_to_edge): Likewise.
33513 * cgraph.c (cgraph_node::verify_node): Likewise.
33514 * cgraphunit.c (expand_all_functions): Likewise.
33515 * config/i386/i386.c (ix86_expand_copysign): Likewise.
33516 (exact_dependency_1): Likewise.
33517 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
33518 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
33519 * gensupport.c (process_define_subst): Likewise.
33520 * lto-wrapper.c (merge_and_complain): Likewise.
33521 * tree-if-conv.c (if_convertible_bb_p): Likewise.
33522 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
33523 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
33524 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
33525 * tree-vect-loop.c (vectorizable_reduction): Likewise.
33526 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
33527 * tree-vect-stmts.c (vectorizable_shift): Likewise.
33528 * tree-vrp.c (vrp_finalize): Likewise.
33529 * tree.c (variably_modified_type_p): Likewise.
33531 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
33533 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
33534 on darwin12 and later.
33535 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
33536 file to pass -rdynamic on darwin12 and later.
33537 * config/darwin.opt (rdynamic): Add.
33539 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33541 * doc/extend.texi (C Extensions): Update menu for moved Variable
33542 Attributes and Type Attributes sections.
33544 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33547 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
33548 if rep_8byte stringop strategy was specified for 32-bit target.
33550 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
33553 * config/i386/i386.md (vector convert to float spltiter): Check for
33554 xmm16+, when splitting scalar float conversion.
33555 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
33557 2015-05-05 Nick Clifton <nickc@redhat.com>
33559 * config/msp430/msp430-opts.h (enum msp430_regions): New.
33560 * config/msp430/msp430.c (msp430_override_options): Complain if
33561 -mcode-region or -mdata-region is used on a non MSP430X.
33562 (msp430_section_attr): New function. Checks lower, upper and
33564 (msp430_attribute_table): Add lower, upper and either.
33565 (gen_prefix): New function. Generates a prefix for a section
33567 (msp430_select_section): New function - handles the choice of
33568 section for an object. Takes into account memory region
33569 attributes and options.
33570 (msp430_function_section): Use gen_prefix.
33571 (TARGET_SECTION_TYPE_FLAGS): Define.
33572 (msp430_section_type_flags): New function.
33573 (TARGET_ASM_UNIQUE_SECTION): Define.
33574 (msp430_unique_section): New function.
33575 (msp430_output_aligned_decl_common): New function.
33576 (msp430_do_not_relax_short_jumps): New function.
33577 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
33579 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
33580 * config/msp430/msp430-protos.h
33581 (msp430_do_not_relax_short_jumps): New prototype.
33582 (msp430_output_aligned_decl_common): New prototype.
33583 * config/msp430/msp430.md (length): New attribute.
33584 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
33585 then use a long code sequence for short jumps.
33586 * config/msp430/msp430.opt (mcode-region): New.
33587 (mdata-region): New.
33588 * doc/invoke.texi: Document new options.
33589 * doc/extend.texi: Document new attributes.
33591 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
33593 * config/aarch64-protos.h (struct cpu_branch_cost): New.
33594 (tune_params): Add field branch_costs.
33595 (aarch64_branch_cost): Declare.
33596 * config/aarch64.c (generic_branch_cost): New.
33597 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
33598 (cortexa53_tunings): Likewise.
33599 (cortexa57_tunings): Likewise.
33600 (thunderx_tunings): Likewise.
33601 (xgene1_tunings): Likewise.
33602 (aarch64_branch_cost): Define.
33603 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
33605 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33607 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
33608 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
33609 * config/i386/i386.md: Ditto.
33610 * config/i386/winnt.c: Ditto.
33612 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
33614 * doc/extend.texi (__atomic Builtins): Move implementation details
33615 to the end of the description, rewrite opening paragraphs, state
33616 difference with __sync builtins, state C11/C++11 assumptions,
33617 weaken itemized descriptions, add explanation of memory model
33618 behaviour, expand description of compare-exchange, simplify text.
33620 2015-05-05 Renlin Li <renlin.li@arm.com>
33622 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
33624 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
33626 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
33627 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33628 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
33629 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33630 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
33631 * configure: Regenerate.
33632 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
33633 * doc/install.texi (aarch64*-*-*): Document new
33634 --enable-fix-cortex-a53-843419 option.
33635 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
33636 and -mno-fix-cortex-a53-843419 options.
33638 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33641 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
33643 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
33645 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
33646 fix overactive TYPE_MIN_VALUE check and add FIXME for type
33647 compatibility problems.
33649 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
33651 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
33653 (cbranchsi4_reg): New.
33654 * config/microblaze/microblaze.c
33655 (microblaze_expand_conditional_branch_reg): New.
33656 * config/microblaze/microblaze-protos.h
33657 (microblaze_expand_conditional_branch_reg): New prototype.
33659 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
33661 * config/microblaze/microblaze.md (peephole2): New.
33663 2015-05-04 Jeff Law <law@redhat.com>
33666 2015-05-04 Jeff Law <law@redhat.com>
33668 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33669 simplifier to narrow arithmetic.
33670 * generic-match-head.c: (types_match, single_use): New functions.
33671 * gimple-match-head.c: (types_match, single_use): New functions.
33673 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
33676 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
33677 (split_branches): Likewise.
33679 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
33681 * common.opt (fdelete-null-pointer-checks): Init to -1.
33682 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
33683 override flag_delete_null_pointer_checks default.
33684 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
33685 behavior re address zero. Better document target-specific behavior.
33686 (-fisolate-errneous-paths-dereference): Mention relationship to
33687 -fdelete-null-pointer-checks.
33689 2015-05-04 Jakub Jelinek <jakub@redhat.com>
33691 PR tree-optimization/65984
33692 * ubsan.c: Include tree-cfg.h.
33693 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
33694 stmt_could_throw_p test, rename can_throw variable to ends_bb.
33696 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
33698 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
33699 to CONST_DOUBLE_P predicate.
33700 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
33701 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
33702 allow only operands that satisfy standard_sse_constant_p predicate.
33703 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
33704 to CONST_DOUBLE_P predicate.
33706 2015-05-04 Jeff Law <law@redhat.com>
33708 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33709 simplifier to narrow arithmetic.
33710 * generic-match-head.c: (types_match, single_use): New functions.
33711 * gimple-match-head.c: (types_match, single_use): New functions.
33713 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
33715 * config/arm/arm.c: Restore bootstrap.
33717 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
33719 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
33720 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
33721 as CONST_WIDE_INT, not CONST_DOUBLE.
33722 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
33723 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
33724 (ix86_find_base_term): Do not check for CONST_DOUBLE.
33725 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
33726 (ix86_build_signbit_mask): Rewrite using wide ints.
33727 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
33728 (ix86_rtx_costs): Handle CONST_WIDE_INT.
33729 (find_constant): Ditto.
33730 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
33731 using gen_int_mode.
33732 * config/i386/predicates.md (x86_64_immediate_operand)
33733 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33734 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
33735 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33736 (const0_operand): Also match const_wide_int.
33737 (constm1_operand): Ditto.
33738 (const1_operand): Ditto.
33740 2015-05-04 Richard Biener <rguenther@suse.de>
33742 PR tree-optimization/65965
33743 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
33744 store groups at gaps.
33746 2015-05-04 Richard Biener <rguenther@suse.de>
33748 PR tree-optimization/65935
33749 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
33750 then make sure to apply that swapping to the IL.
33752 2015-05-04 Jakub Jelinek <jakub@redhat.com>
33754 * Makefile.in (PATCHLEVEL_c): New variable.
33755 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
33756 expand the same way as if DEVPHASE_c was non-empty.
33758 2015-05-04 Kai Tietz <ktietz@redhat.com>
33761 * lto-wrapper.c (run_gcc): Open filename
33764 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
33766 * doc/extend.texi (Variable Attributes, Type Attributes): Move
33767 sections up in file, to immediately after the Function Attributes
33770 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
33772 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
33774 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33776 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
33777 (insert_partition_copy_on_edge): Adjust.
33778 (insert_rtx_to_part_on_edge): Likewise.
33779 (insert_part_to_rtx_on_edge): Likewise.
33781 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33783 * function.c (set_return_jump_label): Change type of argument to
33785 * function.h (set_return_jump_label): Adjust.
33787 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33789 * reload.h (struct reg_equivs_t): Change type of init to
33791 * ira.c (fix_reg_equiv_init): Adjust.
33792 * reload1.c (eliminate_regs_1): Likewise.
33793 (init_eliminable_invariants): Likewise.
33795 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33797 * cselib.c (fp_setter_insn): Take a rtx_insn *.
33798 * cselib.h (fp_setter_insn): Adjust.
33800 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33802 * recog.c (struct validate_replace_src_data): Change type of
33803 insn field to rtx_insn *.
33804 (validate_replace_src_group): Change type of argument to rtx_insn *.
33805 * recog.h (validate_replace_src_group): Adjust.
33807 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33809 * haifa-sched.c: Change the type of some variables to rtx_insn *.
33810 * sched-deps.c: Likewise.
33811 * sched-int.h: Likewise.
33812 * sched-rgn.c: Likewise.
33813 * sel-sched.c: Likewise.
33815 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33818 * config/i386/i386.c: Change the type of some arguments to
33820 * config/arm/arm.c: Likewise.
33822 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33824 * lra-constraints.c: Change type of some arguments to rtx_insn *.
33826 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33828 * regcprop.c (kill_autoinc_value): Change type of argument to
33831 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33833 * genrecog.c (print_subroutine): Adjust.
33834 * recog.c (get_bool_attr_mask_uncached): Likewise.
33835 * recog.h (struct recog_data_d): Change the type of insn to
33838 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33840 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
33842 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33844 * df-problems.c (df_set_note): Change type of argument to
33847 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33849 * builtins.c (expand_builtin_trap): Change type of local
33850 variable to rtx_insn *.
33851 (add_sched_insns_for_speculation): Likewise.
33852 (ix86_emit_save_regs): Likewise.
33853 (get_scratch_register_on_entry): Likewise.
33854 (ix86_emit_restore_reg_using_pop): Likewise.
33855 (ix86_emit_leave): Likewise.
33856 (ix86_emit_restore_regs_using_mov): Likewise.
33857 (ix86_expand_epilogue): Likewise.
33859 (rl78_alloc_physical_registers_umul): Likewise.
33860 * cselib.c (discard_useless_locs): Likewise.
33861 (cselib_invalidate_regno): Likewise.
33862 (cselib_invalidate_mem): Likewise.
33863 * function.c (expand_function_start): Likewise.
33864 (emit_use_return_register_into_block): Likewise.
33865 * gcse.c: Likewise.
33866 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
33867 * ifcvt.c (noce_get_alt_condition): Likewise.
33868 * loop-doloop.c (doloop_condition_get): Likewise.
33869 * lra-constraints.c (inherit_in_ebb): Likewise.
33870 * modulo-sched.c (sms_schedule_by_order): Likewise.
33871 * recog.c (next_insn_tests_no_inequality): Likewise.
33872 * reorg.c (emit_delay_sequence): Likewise.
33873 (update_reg_dead_notes): Likewise.
33874 (fix_reg_dead_note): Likewise.
33875 (fill_slots_from_thread): Likewise.
33876 (delete_computation): Likewise.
33878 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
33880 * doc/extend.texi (Variable Attributes): Add menu and proper
33881 @nodes to subsections. Move Microsoft Windows attributes to
33882 their own subsection.
33883 (Type Attributes): Reorganize introduction to remove duplicate
33884 list of attributes. Add menu and proper @nodes to subsections.
33885 Alphabetize the main table of common attributes.
33887 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
33889 * match.pd: New simplification patterns.
33890 (x + (x & 1)) -> ((x + 1) & ~1)
33891 (x & ~(x & y)) -> ((x & ~y))
33892 (x | ~(x | y)) -> ((x | ~y))
33894 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33896 * target.def (attribute_table): Mention that struct attribute_spec
33897 is defined in tree-core.h rather than tree.h
33898 * doc/tm.texi: Regenerate.
33900 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
33902 * genrecog.c (test): Rename to rtx_test. Update rest of file
33905 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
33907 PR translation/65959
33908 * params.h (DEFPARAM): Rename msgid to nocmsgid.
33910 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33912 * config/aarch64/aarch64-protos.h (tune_params):
33913 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
33914 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
33915 Return value depending on target.
33916 (generic_tunings): Initialize new target settings.
33917 (cortexa53_tunings): Likewise.
33918 (cortexa57_tunings): Likewise.
33919 (thunderx_tunings): Likewise.
33920 (xgene1_tunings): Likewise.
33922 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33924 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
33925 Make Cortex-A53 shift costs more accurate.
33927 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33929 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
33932 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33934 * config/aarch64/aarch64.c (aarch64_rtx_costs):
33935 Calculate cost of op0 and op1 in PLUS and MINUS cases.
33937 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33939 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33940 Add cost of op0 in the compare-with-fpzero case.
33942 2015-04-30 David Malcolm <dmalcolm@redhat.com>
33944 * builtins.c (fold_builtin_1): Remove spurious second
33946 * cgraph.h (symtab_node::get_availability): Likewise.
33947 * opts.c (common_handle_option): Remove spurious second semicolon.
33948 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
33949 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
33951 2015-04-30 Caroline Tice <cmtice@google.com>
33953 PR gcov-profile/65929
33954 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
33955 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
33956 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
33957 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
33958 * doc/tm.texi: Regenerate.
33959 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
33960 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
33961 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
33962 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
33964 2015-04-30 Marek Polacek <polacek@redhat.com>
33966 * varasm.c (handle_cache_entry): Fix logic.
33968 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33970 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
33971 (*extrsi5_insn_uxtw_alt): Likewise.
33972 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
33973 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
33976 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33978 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
33981 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33983 * config/aarch64/aarch64.md
33984 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
33985 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
33986 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
33987 appropriately. Handle alternative EON form.
33989 2015-04-30 Renlin Li <renlin.li@arm.com>
33991 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
33992 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
33994 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
33997 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
33998 -fstrict-aliasing boundaries.
34000 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34002 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
34003 and [SU]MNEGL patterns.
34005 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34007 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
34008 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
34009 combined arithmetic-shift ops. Properly handle all shift and extend
34010 operations that can occur in combination with PLUS/MINUS.
34011 Rename maybe_fma to compound_p.
34012 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
34013 arithmetic and shift operations.
34015 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34017 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
34018 rather than arith_shift cost when costing ADD/MINUS of an
34021 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
34024 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
34027 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
34029 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
34030 are for the same position.
34032 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
34034 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
34036 (vectorize_loops): Use it.
34038 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34040 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
34041 for aggregate types.
34042 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
34043 type to be non_ODR.
34044 * tree.c (need_assembler_name_p): Compute mangled name for
34045 non-fundamental types and integer types.
34047 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
34049 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
34051 * expr.c (expand_expr_real_2): Likewise.
34053 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34055 * tree.c (build_common_builtin_nodes): Do not build
34056 __builtin_alloca_with_align as equivalent of library alloca.
34058 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34060 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
34061 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
34063 * tree.c: Include print-tree.h and ipa-utils.h
34064 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
34065 (free_lang_data_in_cgraph): Call verify_type.
34066 (verify_type_variant): New function.
34067 (verify_type): New function.
34068 * tree.h (verify_type): Declare.
34070 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
34072 * config/mips/mips-cpus.def: (mips4): Change default processor
34073 from PROCESSOR_R8000 to PROCESSOR_R10000.
34075 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
34077 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
34078 la/jalr instead of jal.
34080 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
34083 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
34084 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
34085 (setcc+movzbl peephole2): Check also clobbered reg.
34086 (setcc+andl peephole2): Ditto.
34088 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34091 * config/nvptx/mkoffload.c (target_ilp32): New variable.
34092 (main): Set it depending on "-foffload-abi=[...]".
34093 (compile_native, main): Use it to pass "-m32" or "-m64" to the
34096 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34099 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
34100 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
34101 Flip lane index back at assembly time for bigendian.
34103 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34105 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
34106 * gimplify.c (gimplify_omp_workshare): Use it.
34108 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34110 * Makefile.in (build/genrecog.o): Depend on inchash.h.
34111 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
34113 * genrecog.c: Rewrite most of the code except for the third page.
34115 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34117 * inchash.h, inchash.c: Include bconfig.h for build objects.
34118 * Makefile.in (build/inchash.o): New rule.
34120 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
34123 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
34124 number in type attribute expression.
34126 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34128 * loop-iv.c (canon_condition): Generalize to all types of integer
34131 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
34133 * gimple-walk.c: Prune duplicate or unneeded includes.
34134 (walk_gimple_asm): Only call parse_input_constraint or
34135 parse_output_constraint if their findings are used.
34136 Honour parse_input_constraint and parse_output_constraint
34139 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34141 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
34143 2015-04-29 Tom de Vries <tom@codesourcery.com>
34145 PR tree-optimization/65893
34146 * passes.def (pass_all_optimizations): Move pass_stdarg to after
34149 2015-04-29 Richard Biener <rguenther@suse.de>
34151 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
34152 compute GROUP_SIZE for basic-block SLP.
34153 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
34154 take into account gaps.
34155 (vect_get_mask_element): Properly reject references to previous
34157 (vect_transform_slp_perm_load): Likewise.
34159 2015-04-29 Christian Bruel <christian.bruel@st.com>
34162 * config/i386/i386.c (ix86_default_align): New function.
34163 (ix86_override_options_after_change): Call ix86_default_align.
34164 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
34165 (ix86_override_options_after_change): New function.
34167 2015-04-28 Jeff Law <law@redhat.com>
34169 * tree-ssa-dom.c (record_equality); Fix comment typos.
34171 2015-04-28 Tom de Vries <tom@codesourcery.com>
34173 PR tree-optimization/65887
34174 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
34176 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
34178 * doc/extend.texi (Declaring Attributes of Functions): Split into
34179 subsections by target. Alphabetize the table of common attributes.
34180 Rewrite some of the introductory text to reflect the new structure.
34181 Update some cross-references to point to the new subsections.
34182 (Attribute Syntax): Put paragraph about "__" naming here. Remove
34183 duplicate copies in the discussion of function, label, and type
34186 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
34189 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
34191 2015-04-28 Jason Merrill <jason@redhat.com>
34194 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
34195 (finalize_type_size): Respect TYPE_USER_ALIGN.
34196 (layout_type) [ARRAY_TYPE]: Likewise.
34198 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
34200 * config/arm/arm.md (*arm_movt): Fix type attribute.
34201 (*cmpsi_shiftsi): Likewise.
34202 (*cmpsi_shiftsi_swp): Likewise.
34203 (*movsicc_insn): Likewise.
34204 (*cond_move): Likewise.
34205 (*if_plus_move): Likewise.
34206 (*if_move_plus): Likewise.
34207 (*if_arith_move): Likewise.
34208 (*if_move_arith): Likewise.
34209 (*if_shift_move): Likewise.
34210 (*if_move_shift): Likewise.
34211 (*arm_movtas_ze): Likewise.
34212 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
34213 redundancy and type attribute.
34214 (*thumb2_movsi_insn): Fix type attribute.
34215 (*thumb2_addsi_short): Likewise.
34216 (thumb2_addsi3_compare0): Likewise.
34217 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
34218 attributes accordingly.
34220 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
34223 * function.c (pad_to_arg_alignment): Add parentheses.
34225 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
34227 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
34228 libgcc/config/frv/elf-lib.h.
34230 2015-04-28 Tom de Vries <tom@codesourcery.com>
34232 * tree-call-cdce.c: Fix example in header comment.
34234 2015-04-28 Richard Biener <rguenther@suse.de>
34236 PR tree-optimization/62283
34237 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
34238 fails fatally and we are vectorizing a basic-block simply
34239 cause the child to be constructed piecewise.
34240 (vect_analyze_slp_cost_1): Adjust.
34241 (vect_detect_hybrid_slp_stmts): Likewise.
34242 (vect_bb_slp_scalar_cost): Likewise.
34243 (vect_get_constant_vectors): For piecewise constructed
34244 constants place them after the last def.
34245 (vect_get_slp_defs): Adjust.
34246 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
34247 externals for basic-block vectorization.
34249 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34252 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
34254 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
34255 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
34256 (AARCH64_TUNE_FMA_STEERING): Likewise.
34257 * config/aarch64/aarch64-cores.def: Set
34258 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
34259 FMUL/FMADD instructions.
34260 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
34261 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
34262 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
34263 * config/aarch64/cortex-a57-fma-steering.h: New file.
34264 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
34266 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
34268 * gensupport.c (std_preds): Add missing codes to address_operand entry.
34270 2015-04-28 Richard Biener <rguenther@suse.de>
34272 PR tree-optimization/65851
34273 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
34274 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
34275 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
34276 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
34277 (ccp_visit_phi_node): Adjust.
34278 (evaluate_stmt): For simplifications to SSA names return its
34279 lattice value if that isn't VARYING. Return immediately when
34280 simplified to a constant.
34281 (visit_assignment): Adjust.
34282 (ccp_visit_stmt): Likewise.
34284 2015-04-28 Tom de Vries <tom@codesourcery.com>
34286 PR tree-optimization/65818
34287 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
34290 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34292 * calls.c (save_fixed_argument_area): Don't check
34293 ARGS_GROW_DOWNWARD with the preprocessor.
34294 (restore_fixed_argument_area): Likewise.
34295 (mem_overlaps_already_clobbered_arg_p): Likewise.
34296 (check_sibcall_argument_overlap): Likewise.
34297 (expand_call): Likewise.
34298 (emit_library_call_value_1): Likewise.
34299 (store_one_arg): Likewise.
34300 * function.c (assign_parms): Likewise.
34301 (locate_and_pad_parm): Likewise.
34302 (pad_to_arg_alignment): Likewise.
34303 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34305 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34307 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
34308 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
34309 * calls.c (save_fixed_argument_area): Don't chekc if
34310 ARGS_GROW_DOWNWARD is defined.
34311 (restore_fixed_argument_area): Likewise.
34312 (mem_overlaps_already_clobbered_arg_p): Likewise.
34313 (check_sibcall_argument_overlap): Likewise.
34314 (expand_call): Likewise.
34315 (emit_library_call_value_1): Likewise.
34316 (store_one_arg): Likewise.
34317 * function.c (assign_parms): Likewise.
34318 (locate_and_pad_parm): Likewise.
34319 (pad_to_arg_alignment): Likewise.
34320 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34322 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34324 * defaults.h (gen_epilogue): New function.
34325 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
34327 * cfgrtl.c (cfg_layout_finalize): Likewise.
34328 * df-scan.c: Likewise.
34329 * function.c (thread_prologue_and_epilogue_insns): Likewise.
34330 (reposition_prologue_and_epilogue_notes): Likewise.
34331 * reorg.c (find_end_label): Likewise.
34332 * toplev.c: Likewise.
34334 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34336 * bb-reorder.c (HAVE_return): Don't check if its undefined.
34337 * defaults.h (gen_simple_return): New function.
34338 (gen_simple_return): Likewise.
34339 (HAVE_return): Add default definition to false.
34340 (HAVE_simple_return): Likewise.
34341 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
34342 HAVE_return and HAVE_simple_return are defined.
34343 * function.c (gen_return_pattern): Likewise.
34344 (convert_jumps_to_returns): Likewise.
34345 (thread_prologue_and_epilogue_insns): Likewise.
34346 * reorg.c (find_end_label): Likewise.
34347 (dbr_schedule): Likewise.
34348 * shrink-wrap.c: Likewise.
34349 * shrink-wrap.h: Likewise.
34351 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34353 * defaults.h (EPILOGUE_USES): Add default definition of false.
34354 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
34355 * resource.c (init_resource_info): Likewise.
34357 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34359 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
34361 * dwarf2out.c (field_byte_offset): REmove check if
34362 PCC_BITFIELD_TYPE_MATTERS is defined.
34363 * stor-layout.c (layout_decl): Likewise.
34364 (update_alignment_for_field): Likewise.
34365 (place_field): Likewise.
34367 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34369 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
34371 * regrename.c (check_new_reg_p): Remove check if
34372 HARD_REGNO_RENAME_OK is defined.
34373 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
34375 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34377 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
34378 * cse.c (fold_rtx): Likewise.
34379 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
34380 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
34381 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
34382 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
34383 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
34384 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
34385 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
34386 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
34387 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
34388 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
34390 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
34391 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
34392 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
34393 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
34394 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
34395 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
34396 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
34397 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
34398 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
34399 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
34400 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
34401 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
34402 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
34403 * doc/tm.texi: Regenerate.
34404 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
34405 either true or false.
34407 2015-04-27 Jeff Law <law@redhat.com>
34409 PR tree-optimization/65217
34410 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
34411 of them has a single use, make sure it is the LHS of the implied
34414 2015-04-28 Alan Modra <amodra@gmail.com>
34417 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
34418 (offsettable_ok_by_alignment): Use minimum of decl and toc
34419 pointer alignment. Replace dead code with assertion.
34420 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
34421 case if size exceeds toc pointer alignment.
34422 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
34423 (rs6000_emit_move): Likewise.
34424 * configure.ac: Add linker toc pointer alignment check.
34425 * configure: Regenerate.
34426 * config.in: Regenerate.
34428 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
34430 * config.gcc: Add h8300-*-linux.
34431 * config/h8300/linux.h: New.
34432 * config/h8300/t-linux: New.
34433 * config/h8300/h8300.c (h8300_option_override): Normal mode
34434 is not supported for h8300-*-linux.
34435 (h8300_file_start): Target priority change.
34436 (get_shift_alg): Likewise.
34437 (h8300_shift_need_scratch_p): Likewise.
34438 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
34439 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
34441 2015-04-27 Caroline Tice <cmtice@google.com>
34443 * final.c (final_scan_insn): Output cold_function_name as function
34445 * varasm.c (cold_function_name): Make global.
34446 (assemble_start_function): Re-set cold_function_name.
34447 (assemble_end_function): Output cold partition size.
34448 * varasm.h (cold_function_name): Declare global.
34450 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
34452 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
34453 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
34455 (*movxi_internal_avx512f): Ditto.
34456 (define_split): Check for xmm16+, when splitting scalar float_extend.
34457 (*extendsfdf2_mixed): Use "v" constraint.
34458 (define_split): Check for xmm16+, when splitting scalar float_truncate.
34459 (*truncdfsf_fast_sse): Use "v" constraint.
34460 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
34461 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
34462 (define_peephole2): Check for xmm16+, when converting scalar
34464 (define_peephole2): Check for xmm16+, when converting scalar
34466 (*fop_<mode>_comm_mixed): Use "v" constraint.
34467 (*fop_<mode>_comm_sse): Ditto.
34468 (*fop_<mode>_1_mixed): Ditto.
34469 (*sqrt<mode>2_sse): Ditto.
34470 (*ieee_s<ieee_maxmin><mode>3): Ditto.
34472 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34474 * combine.c (simplify_if_then_else): Use std::swap instead
34475 of manually swapping.
34476 (known_cond): Likewise.
34477 (simplify_comparison): Likewise.
34479 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
34482 * config/rs6000/htm.md: Remove all define_expands.
34483 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
34484 UNSPECV_HTM_TABORTWCI): Remove.
34485 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
34486 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
34487 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
34488 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
34489 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
34490 tabortwci_internal): Remove define_insns.
34491 (tabort<wd>c, tabort<wd>ci): New define_insns.
34492 (tabort): Use gpc_reg_operand.
34493 (tcheck): Remove operand.
34494 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
34495 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
34497 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
34498 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
34499 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
34500 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
34501 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
34502 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
34503 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
34504 (tcheck): Remove builtin argument.
34505 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
34507 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
34508 tabortdc and tabortdci builtins when not in 64-bit mode.
34509 Modify code to handle the loss of the HTM define_expands.
34510 Emit code to copy the CR register to TARGET.
34511 (htm_init_builtins): Modify code to handle the loss of the HTM
34513 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
34514 (RS6000_BTC_64BIT): Likewise.
34515 (RS6000_BTC_CR): New macro.
34516 * doc/extend.texi: Update documentation for htm builtins.
34518 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34520 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
34521 of manually swapping.
34522 (simplify_associative_operation): Likewise.
34523 (simplify_binary_operation): Likewise.
34524 (simplify_plus_minus): Likewise.
34525 (simplify_relational_operation): Likewise.
34526 (simplify_ternary_operation): Likewise.
34528 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34530 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
34531 (xs_hi_nonmemory_operand): Remove error.
34532 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
34533 general_operand rather than xs_hi_general_operand.
34535 2015-04-27 Richard Biener <rguenther@suse.de>
34537 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
34538 (record_equivalences_from_stmt): Valueize rhs.
34539 (record_equality): Canonicalize x and y order via
34540 tree_swap_operands_p. Do not swap operands for same loop depth.
34542 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
34546 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
34547 Add hint how to use own spec file.
34549 2015-04-27 Jakub Jelinek <jakub@redhat.com>
34551 PR tree-optimization/65875
34552 * tree-vrp.c (update_value_range): If in is_new case setting
34553 old_vr to VR_VARYING, also set new_vr to it. Remove
34554 old_vr->type == VR_VARYING test.
34555 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
34556 SSA_PROP_INTERESTING if update_value_range returned true,
34557 but new range is VR_VARYING.
34559 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
34561 * combine.c (sign_extend_short_imm): New.
34562 (set_nonzero_bits_and_sign_copies): Use above new function for sign
34563 extension of src short immediate.
34564 (reg_nonzero_bits_for_combine): Likewise for tem.
34566 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
34568 * stor-layout.c (self_referential_component_ref_p): New predicate.
34569 (copy_self_referential_tree_r): Use it.
34570 (self_referential_size): Punt for simple operations directly involving
34571 self-referential component references.
34572 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
34574 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
34576 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
34578 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34580 * vec.h (vec): Make splice arguments const. Update definitions
34583 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
34585 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
34588 2015-04-26 Tom de Vries <tom@codesourcery.com>
34590 PR tree-optimization/65826
34591 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
34593 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
34595 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
34596 (*madd3<mode>): Ditto.
34597 (*msub4<mode>): Ditto.
34598 (*msub3<mode>): Ditto.
34599 (*nmadd4<mode>): Ditto.
34600 (*nmadd3<mode>): Ditto.
34601 (*nmadd4<mode>_fastmath): Ditto.
34602 (*nmadd3<mode>_fastmath): Ditto.
34603 (*nmsub4<mode>): Ditto.
34604 (*nmsub3<mode>): Ditto.
34605 (*nmsub4<mode>_fastmath): Ditto.
34606 (*nmsub3<mode>_fastmath): Ditto.
34608 2015-04-24 Jason Merrill <jason@redhat.com>
34611 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
34612 down when building TYPE_CANONICAL.
34613 (build_pointer_type_for_mode): Likewise.
34615 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
34617 * genrecog.c (validate_pattern): Check matching constraint refers
34618 to a lower numbered operand.
34620 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
34623 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
34624 save to independent variables use the Save attribute. This will
34625 allow these options to be modified with the #pragma/attribute
34627 (-mallow-movmisalign): Likewise.
34628 (-mallow-df-permute): Likewise.
34629 (-msched-groups): Likewise.
34630 (-malways-hint): Likewise.
34631 (-malign-branch-targets): Likewise.
34632 (-mvectorize-builtins): Likewise.
34633 (-msave-toc-indirect): Likewise.
34635 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
34636 can be set via the #pragma/attribute target support.
34637 (rs6000_opt_vars): Likewise.
34638 (rs6000_inner_target_options): If VSX was set, also set
34639 -mno-avoid-indexed-addresses.
34641 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34643 * config/arm/iterators.md (shiftable_ops): Rename to...
34644 (SHIFTABLE_OPS): ... This. Update use in comments.
34645 (ior_xor): Rename to...
34646 (IOR_XOR): ... This.
34647 (vqh_ops): Rename to...
34648 (VQH_OPS): ... This.
34649 (vqhs_ops): Rename to...
34650 (VQHS_OPS): ... This.
34651 (rshifts): Rename to...
34652 (RSHIFTS): ... This.
34653 (returns): Rename to...
34654 (RETURNS): ... This.
34655 * config/arm/arm.md: Update uses of the above.
34656 * config/arm/neon.md: Likewise.
34658 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34660 * config.host (case ${host}): Add aarch64*-*-linux case.
34661 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
34662 fields to all the cores.
34663 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
34664 Add MCPU_MTUNE_NATIVE_SPECS.
34665 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
34666 field to all extensions.
34667 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
34668 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
34669 Adjust definition of AARCH64_OPT_EXTENSION.
34670 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
34671 (MCPU_MTUNE_NATIVE_SPECS): Define.
34672 * config/aarch64/driver-aarch64.c: New file.
34673 * config/aarch64/x-arch64: New file.
34674 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
34677 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34678 Wei Mi <wmi@google.com>
34680 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
34681 * config/i386/i386.c (extract_base_offset_in_addr): New function.
34682 (ix86_operands_ok_for_move_multiple): Ditto.
34683 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
34684 (movlpd/movhpd to movupd peephole2): Ditto.
34686 2015-04-24 Marek Polacek <polacek@redhat.com>
34689 * input.h (from_macro_expansion_at): Define.
34692 * doc/invoke.texi: Update description of -Wlogical-op.
34694 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
34696 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
34697 ternary operator in fprintf and harmonize spacing.
34699 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34701 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
34702 Mark operand1 commutative.
34704 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34706 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
34707 input operands in memory.
34708 (*vec_concatv2si_sse4_1): Ditto.
34709 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
34710 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
34712 (vec_extract_hi_v32hi): Ditto.
34713 (vec_extract_hi_v64hi): Ditto.
34714 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
34716 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
34717 Steven Bosscher <steven@gcc.gnu.org>
34719 PR rtl-optimization/34503
34720 * cprop.c (cprop_reg_p): New.
34721 (hash_scan_set): Use above function to check if register can be
34723 (find_avail_set): Return up to two sets, one whose source is a
34724 register and one whose source is a constant. Sets are returned in an
34725 array passed as parameter rather than as a return value.
34726 (cprop_insn): Use a do while loop rather than a goto. Try each of the
34727 sets returned by find_avail_set, starting with the one whose source is
34728 a constant. Use cprop_reg_p to check if register can be propagated.
34729 (do_local_cprop): Use cprop_reg_p to check if register can be
34731 (implicit_set_cond_p): Likewise.
34733 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34735 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
34736 (sem_function::equals): IGNORED_NODES parameter is now unused;
34737 update call of equals_private.
34738 (sem_function::equals_private): Do not call equals_wpa; skip
34739 gimple body matching if there is no body.
34740 (sem_function::init): Add logic to hash tthunk info.
34741 (sem_function::parse): Also parse thunks.
34742 * ipa-icf.h (equals_private): Update declaration.
34744 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34746 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
34747 asterisk from name so this can be generated directly.
34748 (*altivec_stvx_<mode>_internal): Likewise.
34749 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
34750 that this is never called during or after reload/lra.
34751 (rs6000_frame_related): Remove split_reg
34752 argument and logic that references it.
34753 (emit_frame_save): Remove last parameter from call to
34754 rs6000_frame_related.
34755 (rs6000_emit_prologue): Remove last parameter from eight calls to
34756 rs6000_frame_related. Force generation of stvx instruction for
34757 Altivec register saves. Remove split_reg handling, which is no
34759 (rs6000_emit_epilogue): Force generation of lvx instruction for
34760 Altivec register restores.
34762 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34764 * config/rs6000/rs6000.opt (mcrypto): Change option description to
34765 match category changes in ISA 2.07B.
34767 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34769 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
34771 (cmp_op, cmp_type): New code attributes.
34772 (NEON_VCMP, NEON_VACMP): New int iterators.
34773 (cmp_op_unsp): New int attribute.
34774 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
34775 (neon_vceq<mode>): Delete.
34776 (neon_vc<cmp_op><mode>_insn): New pattern.
34777 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
34778 (neon_vcgeu<mode>): Delete.
34779 (neon_vcle<mode>): Likewise.
34780 (neon_vclt<mode>: Likewise.
34781 (neon_vcage<mode>): Likewise.
34782 (neon_vcagt<mode>): Likewise.
34783 (neon_vca<cmp_op><mode>): New define_expand.
34784 (neon_vca<cmp_op><mode>_insn): New pattern.
34785 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
34787 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34789 * tree.h (attribute_value_equal): Declare.
34790 * tree.c (attribute_value_equal): Export.
34792 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34794 * ipa-icf.c (sem_item::compare_attributes): New function.
34795 (sem_item::compare_referenced_symbol_properties): Compare variable
34797 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
34798 (sem_function::param_used_p): New function.
34799 (sem_function::equals_wpa): Fix attribute comparsion; match
34800 parameter type codes; do not compare paremter flags when
34801 they are not used; compare edge flags; compare indirect calls.
34802 (sem_item::update_hash_by_addr_refs): Hash reference type.
34803 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
34804 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
34805 reference use type.
34806 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
34807 * ipa-icf.h (compare_attributes, param_used_p): Declare.
34809 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34811 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
34813 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
34814 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
34815 (sem_item::compare_referenced_symbol_properties): New.
34816 (sem_item::hash_referenced_symbol_properties): New.
34817 (sem_item::compare_cgraph_references): Rename to ...
34818 (sem_item::compare_symbol_references): ... this one; use
34819 compare_referenced_symbol_properties.
34820 (sem_function::equals_wpa): Do not compare
34821 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
34822 DECL_IS_OPERATOR_NEW; compare pointer sizes.
34823 (sem_item::update_hash_by_addr_refs): Call
34824 hash_referenced_symbol_properties.
34825 (sem_item::update_hash_by_local_refs): Cleanup.
34826 (sem_function::merge): Do not mix up symbol properties.
34827 (sem_variable::equals_wpa): Use compare_symbol_references.
34828 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
34829 (sem_item::hash_referenced_symbol_properties): New.
34830 (sem_item::compare_symbol_references): New.
34831 (sem_item::compare_cgraph_references): Remove.
34833 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
34836 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
34837 Emit size of local.
34839 2015-04-23 Nick Clifton <nickc@redhat.com>
34841 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
34842 ATTRIBUTE_UNUSED to x parameter.
34843 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
34845 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34847 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
34848 TARGET_CRYPTO to TARGET_P8_VECTOR>
34849 (crypto_vpermxor_<mode>): Likewise.
34850 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
34851 (BU_CRYPTO_3A): Likewise.
34852 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
34853 (BU_CRYPTO_OVERLOAD_3A): New #define.
34854 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
34855 (VPMSUMH): Likewise.
34856 (VPMSUMW): Likewise.
34857 (VPMSUMD): Likewise.
34858 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
34859 (VPERMXOR_V4SI): Likewise.
34860 (VPERMXOR_V8HI): Likewise.
34861 (VPERMXOR_V16QI): Likewise.
34862 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
34863 BU_CRYPTO_OVERLOAD_2A.
34864 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
34865 BU_CRYPTO_OVERLOAD_3A.
34866 * config/rs6000/rs6000.opt (mcrypto): Change description of
34869 2015-04-23 Richard Biener <rguenther@suse.de>
34871 * passes.def: Remove copy propagation passes run directly after CCP.
34872 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
34874 (ccp_visit_phi_node): Rework to handle first executable edge
34877 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
34879 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34880 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34881 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34882 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
34883 (thumb_legimitimize_reload_address): Remove.
34884 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
34886 (thumb_legimitimize_reload_address): Remove.
34888 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34890 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
34892 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34894 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
34896 (store_multiple): Likewise.
34898 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34900 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
34901 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
34902 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
34903 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
34904 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
34905 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
34906 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
34907 Specify issue_rate value.
34908 (arm_issue_rate): Look up issue rate from tuning structs. Remove
34909 large switch statement.
34910 (arm_marvell_pj4_tune): New struct.
34911 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
34914 2015-04-23 Richard Biener <rguenther@suse.de>
34916 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
34917 (vect_find_last_store_in_slp_instance): Rename to ...
34918 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
34919 (vect_analyze_slp_cost_1): Use vector_load for constant defs
34920 and vec_construct for external defs when estimating prologue cost.
34921 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
34922 Compute costs here only when vectorizing loops.
34923 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
34924 have been determined.
34925 (vect_schedule_slp_instance): Simplify vectorized code placement
34926 and prepare for in-BB external defs.
34927 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
34928 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
34929 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
34931 (vect_model_load_cost): Likewise.
34932 (vectorizable_store): Instead add it here.
34933 (vectorizable_load): Likewise.
34934 (vect_is_simple_use): Dump def type textually.
34936 2015-04-23 Richard Biener <rguenther@suse.de>
34938 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
34939 * cfgloop.c (verify_loop_structure): Verify the root loop node.
34940 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
34941 instead of get_eh_region_from_lp_number.
34942 * loop-init.c (fix_loop_structure): If we removed a loop, reset
34945 2015-04-23 Anton Blanchard <anton@samba.org>
34947 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
34948 need for -mprofile-kernel to save LR to stack.
34950 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34952 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
34954 (insn_is_swappable_p): Return 1 for a convert from double to
34955 single precision when all of its uses are splats of BE element
34958 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
34960 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
34962 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34965 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
34966 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
34967 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
34969 (rs6000_builtin_mask_for_load): Return 0 for targets with
34970 efficient unaligned VSX accesses so that the vectorizer will use
34971 direct unaligned loads.
34972 (rs6000_builtin_support_vector_misalignment): Always return true
34973 for targets with efficient unaligned VSX accesses.
34974 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
34975 stores on targets with efficient unaligned VSX accesses is almost
34976 always the same as the cost of an aligned load or store, so model
34978 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
34979 unaligned vectors if we have efficient unaligned VSX accesses.
34980 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
34981 undocumented option.
34983 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34986 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
34988 * config.gcc (LIBC_MUSL): New tm_defines macro.
34989 * config/linux.h (OPTION_MUSL): Define.
34990 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34991 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34992 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34994 * config/linux.opt (mmusl): New option.
34995 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34996 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34998 * configure: Regenerate.
35000 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
35002 * config.gcc (LIBC_MUSL): New tm_defines macro.
35003 * config/linux.h (OPTION_MUSL): Define.
35004 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
35005 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
35006 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
35008 * config/linux.opt (mmusl): New option.
35009 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
35010 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
35012 * configure: Regenerate.
35014 2015-04-22 Yury Gribov <y.gribov@samsung.com>
35016 * doc/invoke.texi (-fsanitize-sections): Update description.
35017 * asan.c (set_sanitized_sections): Parse incoming arg.
35018 (section_sanitized_p): Support wildcards.
35020 2015-04-22 Tom de Vries <tom@codesourcery.com>
35022 PR tree-optimization/65823
35023 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
35024 equality between ap_copy and ap.
35026 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35029 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
35031 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35034 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
35036 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35039 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
35040 remove already contained t-files.
35042 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35044 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
35045 Remove unneeded forward declarations.
35046 (suitable_for_tail_call_opt_p): Commentary typo fix.
35048 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35050 * varasm.c (emit_bss): Remove redundant guard.
35052 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35054 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
35056 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35058 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
35060 2015-04-22 Hale Wang <hale.wang@arm.com>
35061 Terry Guo <terry.guo@arm.com>
35063 PR rtl-optimization/64818
35064 * combine.c (can_combine_p): Don't combine user-specified
35065 register if it is in an asm input.
35067 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
35070 * passes.def (early_optimizations): Add pass_dse.
35072 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35074 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
35075 * reorg.c (redundant_insn): Remove ifdef
35076 INSN_REFERENCES_ARE_DELAYED.
35077 * resource.c (mark_referenced_resources): Likewise.
35079 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35081 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
35082 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
35083 * resource.c (mark_set_resources): Likewise.
35085 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35087 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
35088 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35089 (flow_find_head_matching_sequence): Likewise.
35090 (try_head_merge_bb): Likewise.
35091 * combine.c (can_combine_p): Likewise.
35092 (try_combine): Likewise.
35093 (distribute_notes): Likewise.
35094 * df-problems.c (can_move_insns_across): Likewise.
35095 * final.c (final): Likewise.
35096 * gcse.c (insert_insn_end_basic_block): Likewise.
35097 * ira.c (find_moveable_pseudos): Likewise.
35098 * reorg.c (try_merge_delay_insns): Likewise.
35099 (fill_simple_delay_slots): Likewise.
35100 (fill_slots_from_thread): Likewise.
35101 * sched-deps.c (sched_analyze_2): Likewise.
35103 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35105 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
35106 PIC_OFFSET_TABLE_REGNUM.
35108 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35110 * alias.c (init_alias_target): Remove ifdef
35111 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
35112 * df-scan.c (df_insn_refs_collect): Likewise.
35113 (df_get_regular_block_artificial_uses): Likewise.
35114 (df_get_eh_block_artificial_uses): Likewise.
35115 (df_get_entry_block_def_set): Likewise.
35116 (df_get_exit_block_use_set): Likewise.
35117 * emit-rtl.c (gen_rtx_REG): Likewise.
35118 * ira.c (ira_setup_eliminable_regset): Likewise.
35119 * reginfo.c (init_reg_sets_1): Likewise.
35120 * regrename.c (rename_chains): Likewise.
35121 * reload1.c (reload): Likewise.
35122 (eliminate_regs_in_insn): Likewise.
35123 * resource.c (mark_referenced_resources): Likewise.
35124 (init_resource_info): Likewise.
35126 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35128 * defaults.h (MASK_RETURN_ADDR): New definition.
35129 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35132 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35134 * defaults.h (RETURN_ADDR_OFFSET): New definition.
35135 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35136 RETURN_ADDR_OFFSET.
35137 (expand_builtin_frob_return_addr): Likewise.
35139 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35141 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
35142 (try_redirect_by_replacing_jump): Likewise.
35143 (rtl_tidy_fallthru_edge): Likewise.
35144 * combine.c (insn_a_feeds_b): Likewise.
35145 (find_split_point): Likewise.
35146 (simplify_set): Likewise.
35147 * cprop.c (cprop_jump): Likewise.
35148 * cse.c (cse_extended_basic_block): Likewise.
35149 * df-problems.c (can_move_insns_across): Likewise.
35150 * function.c (emit_use_return_register_into_block): Likewise.
35151 * haifa-sched.c (sched_init): Likewise.
35152 * ira.c (find_moveable_pseudos): Likewise.
35153 * loop-invariant.c (find_invariant_insn): Likewise.
35154 * lra-constraints.c (curr_insn_transform): Likewise.
35155 * postreload.c (reload_combine_recognize_const_pattern):
35157 * reload.c (find_reloads): Likewise.
35158 * reorg.c (delete_scheduled_jump): Likewise.
35159 (steal_delay_list_from_target): Likewise.
35160 (steal_delay_list_from_fallthrough): Likewise.
35161 (redundant_insn): Likewise.
35162 (fill_simple_delay_slots): Likewise.
35163 (fill_slots_from_thread): Likewise.
35164 (delete_computation): Likewise.
35165 * sched-rgn.c (add_branch_dependences): Likewise.
35167 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35169 * genconfig.c (main): Always define HAVE_cc0.
35170 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
35172 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35173 (flow_find_head_matching_sequence): Likewise.
35174 (try_head_merge_bb): Likewise.
35175 * cfgrtl.c (rtl_merge_blocks): Likewise.
35176 (try_redirect_by_replacing_jump): Likewise.
35177 (rtl_tidy_fallthru_edge): Likewise.
35178 * combine.c (do_SUBST_MODE): Likewise.
35179 (insn_a_feeds_b): Likewise.
35180 (combine_instructions): Likewise.
35181 (can_combine_p): Likewise.
35182 (try_combine): Likewise.
35183 (find_split_point): Likewise.
35185 (simplify_set): Likewise.
35186 (distribute_notes): Likewise.
35187 * cprop.c (cprop_jump): Likewise.
35188 * cse.c (cse_extended_basic_block): Likewise.
35189 * df-problems.c (can_move_insns_across): Likewise.
35190 * final.c (final): Likewise.
35191 (final_scan_insn): Likewise.
35192 * function.c (emit_use_return_register_into_block): Likewise.
35193 * gcse.c (insert_insn_end_basic_block): Likewise.
35194 * haifa-sched.c (sched_init): Likewise.
35195 * ira.c (find_moveable_pseudos): Likewise.
35196 * loop-invariant.c (find_invariant_insn): Likewise.
35197 * lra-constraints.c (curr_insn_transform): Likewise.
35198 * optabs.c (prepare_cmp_insn): Likewise.
35199 * postreload.c (reload_combine_recognize_const_pattern):
35201 * reload.c (find_reloads): Likewise.
35202 (find_reloads_address_1): Likewise.
35203 * reorg.c (delete_scheduled_jump): Likewise.
35204 (steal_delay_list_from_target): Likewise.
35205 (steal_delay_list_from_fallthrough): Likewise.
35206 (try_merge_delay_insns): Likewise.
35207 (redundant_insn): Likewise.
35208 (fill_simple_delay_slots): Likewise.
35209 (fill_slots_from_thread): Likewise.
35210 (delete_computation): Likewise.
35211 (relax_delay_slots): Likewise.
35212 * sched-deps.c (sched_analyze_2): Likewise.
35213 * sched-rgn.c (add_branch_dependences): Likewise.
35215 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35217 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
35218 that is trivially ded on non cc0 targets.
35219 (simplify_set): Likewise.
35220 (mark_used_regs_combine): Likewise.
35221 * cse.c (new_basic_block): Likewise.
35222 (fold_rtx): Likewise.
35223 (cse_insn): Likewise.
35224 (cse_extended_basic_block): Likewise.
35225 (set_live_p): Likewise.
35226 * rtlanal.c (canonicalize_condition): Likewise.
35227 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
35229 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35231 * conditions.h: Define macros even if HAVE_cc0 is undefined.
35232 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
35233 * final.c: Likewise.
35234 * jump.c: Likewise.
35235 * recog.c: Likewise.
35236 * recog.h: Declare functions even when HAVE_cc0 is undefined.
35237 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
35239 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35241 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
35242 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
35243 * builtins.c (expand_builtin): Remove check if
35244 EH_RETURN_DATA_REGNO is defined.
35245 * df-scan.c (df_bb_refs_collect): Likewise.
35246 (df_get_exit_block_use_set): Likewise.
35247 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
35248 * ira-lives.c (process_bb_node_lives): Likewise.
35249 * lra-lives.c (process_bb_lives): Likewise.
35251 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35253 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
35254 FIRST_PSEUDO_REG): New.
35255 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
35256 (ARG_POINTER_REGNUM): Define to ARGP_REG.
35257 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
35258 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
35259 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
35260 (FIRST_INT_REG): New.
35261 (LAST_INT_REG): New.
35262 (FIRST_*_REG): Define using *_REG.
35263 (LAST_*_REG): Ditto.
35264 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
35265 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
35266 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
35268 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35270 * expmed.c: (synth_mult): Only assume overlapping
35271 shift with previous steps in alg_sub_t_m2 case.
35273 2015-04-21 Richard Biener <rguenther@suse.de>
35275 PR tree-optimization/65650
35276 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
35277 transitions involving copies.
35278 (set_lattice_value): Adjust for copy lattice state.
35279 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
35280 if that doesn't dominate the merge point.
35281 (bit_value_unop): Adjust what we treat as varying mask.
35282 (bit_value_binop): Likewise.
35283 (bit_value_assume_aligned): Likewise.
35284 (evaluate_stmt): When we simplified to a SSA name record a copy
35285 instead of dropping to varying.
35286 (visit_assignment): Simplify.
35288 * gimple-match.h (gimple_simplify): Add another callback.
35289 * gimple-fold.c (fold_stmt_1): Adjust caller.
35290 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
35291 for the 2nd callback.
35292 * gimple-match-head.c (gimple_simplify): Add a callback that is
35293 used to valueize the stmt operands and use it that way.
35295 2015-04-21 Richard Biener <rguenther@suse.de>
35297 PR tree-optimization/65788
35298 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
35300 2015-04-21 Richard Biener <rguenther@suse.de>
35302 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
35303 vec_construct cost by vec_stmt_cost.
35305 2015-04-21 Richard Biener <rguenther@suse.de>
35307 * cfghooks.h (create_basic_block): Replace with two overloads
35308 for RTL and GIMPLE.
35309 (split_block): Likewise.
35310 * cfghooks.c (split_block): Rename to ...
35311 (split_block_1): ... this.
35312 (split_block): Add two type-safe overloads for RTL and GIMPLE.
35313 (split_block_after_labels): Call split_block_1.
35314 (create_basic_block): Rename to ...
35315 (create_basic_block_1): ... this.
35316 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
35317 (create_empty_bb): Call create_basic_block_1.
35318 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
35319 split_block_after_labels.
35320 * omp-low.c (expand_parallel_call): Likewise.
35321 (expand_omp_target): Likewise.
35322 (simd_clone_adjust): Likewise.
35323 * tree-chkp.c (chkp_get_entry_block): Likewise.
35324 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
35325 create_basic_block overload.
35326 (cgraph_node::expand_thunk): Likewise.
35327 * tree-cfg.c (make_blocks): Likewise.
35328 (handle_abnormal_edges): Likewise.
35329 * tree-inline.c (copy_bb): Likewise.
35331 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35333 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
35335 (*xor_one_cmplsidi3_ze): Likewise.
35337 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
35339 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
35340 use df_remove_problem rather than manually removing problems, leaving
35341 holes in df->problems_in_order[].
35343 2015-04-21 Tom de Vries <tom@codesourcery.com>
35345 PR tree-optimization/65802
35346 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
35348 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35350 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
35352 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
35353 at '.'. Assert that there's enough space for everything.
35355 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35357 PR tree-optimization/64950
35359 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
35362 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
35365 2015-04-20 Shiva Chen <shiva0217@gmail.com>
35367 PR rtl-optimization/64916
35368 * cfgcleanup.c (values_equal_p): New function.
35369 (can_replace_by): Use it.
35371 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
35374 * doc/invoke.texi ([-Wnarrowing]): Update.
35376 2015-04-20 Jeff Law <law@redhat.com>
35378 PR tree-optimization/65658
35379 * tree-ssa-threadupdate.c (redirection_block_p): Remove
35380 redundant test for GIMPLE_ASSIGN in last change.
35382 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
35384 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
35385 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
35386 (legitimize_tls_address): Ditto.
35387 (ix86_expand_move): Ditto.
35388 (ix86_expand_binary_operator): Remove reload_in_progress checks.
35389 (ix86_expand_unary_operator): Ditto.
35390 * config/i386/predicates.md (index_register_operand): Ditto.
35392 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
35394 * reorg.c (try_merge_delay_insns): Improve correctness checking
35395 for targets with multiple delay slots.
35397 2015-04-20 Jeff Law <law@redhat.com>
35399 PR tree-optimization/65658
35400 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
35403 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35405 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
35406 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
35409 2015-04-20 Jakub Jelinek <jakub@redhat.com>
35412 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
35414 2015-04-20 Richard Biener <rguenther@suse.de>
35416 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
35417 * gimple-fold.c (gimple_build_valueize): New function.
35418 (gimple_build): Always use gimple_build_valueize as valueize hook.
35420 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35423 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
35424 and overwrite variable parts if <= 1/2 the elements are variable.
35426 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
35428 PR rtl-optimization/65805
35429 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
35430 Don't use difference of offset and previous offset if
35431 update_sp_offset is non-zero.
35432 (eliminate_regs_in_insn): Ditto.
35433 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
35434 lra_eliminate_regs_1 call.
35435 * lra-constraints.c (get_equiv_with_elimination): Ditto.
35437 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
35439 * hash-table.h: Remove version of hash_table that stored value_type *.
35440 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
35441 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
35442 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
35443 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
35444 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
35445 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
35446 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
35447 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
35448 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
35449 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
35450 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
35451 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
35452 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
35453 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
35454 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
35455 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
35457 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35458 Jakub Jelinek <jakub@redhat.com>
35461 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
35462 subsequent SH_NONE operand does not overwrite an existing *special
35464 (adjust_extract): Handle case where a vec_extract operation is
35465 wrapped in a PARALLEL.
35467 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35470 * config/i386/i386.c (ix86_binds_local_p): Define only if
35471 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
35473 2015-04-17 Jeff Law <law@redhat.com>
35475 PR tree-optimization/47679
35476 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
35477 * tree-ssa-scopedtables.c: New file.
35478 * tree-ssa-scopedtables.h: New file.
35479 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
35480 (const_and_copies): Change name/type.
35481 (record_const_or_copy): Move into tree-ssa-scopedtables.c
35482 (record_const_or_copy_1): Similarly.
35483 (restore_vars_to_original_value): Similarly.
35484 (pass_dominator::execute): Create and destroy const_and_copies table.
35485 (thread_across_edge): Update passing of const_and_copies.
35486 (record_temporary_equivalence): Use method calls rather than
35487 manipulating const_and_copies directly.
35488 (record_equality, cprop_into_successor_phis): Similarly.
35489 (dom_opt_dom_walker::before_dom_children): Similarly.
35490 (dom_opt_dom_walker::after_dom_children): Similarly.
35491 (eliminate_redundant_computations): Similarly.
35492 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
35493 (record_temporary_equivalence): Likewise.
35494 (invalidate_equivalences): Likewise.
35495 (record_temporary_equivalences_from_phis): Update due to type
35496 change of const_and_copies. Use method calls rather than
35497 manipulating the stack directly.
35498 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
35499 (thread_through_normal_block, thread_across_edge): Likewise.
35500 (thread_across_edge): Likewise.
35501 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
35502 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
35504 (identify_jump_threads): Update due to type change of equiv_stack.
35505 (finalize_jump_threads): Delete the equiv_stack when complete.
35507 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
35509 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35510 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
35511 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
35513 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
35516 * config.gcc: Exit with a comment when we do not have a major version
35517 number for the FreeBSD target.
35519 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35522 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
35523 maybe_allows_mem bitfields.
35524 (maybe_allows_none_start, maybe_allows_none_end,
35525 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
35526 maybe_allows_mem_end): New variables.
35527 (compute_maybe_allows): New function.
35528 (add_constraint): Use it to initialize maybe_allows_reg and
35529 maybe_allows_mem fields.
35530 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
35531 is_address constraints such that those that allow neither mem nor
35532 reg come first, then those that only allow reg but not mem, then
35533 those that only allow mem but not reg, then the rest.
35534 (write_allows_reg_mem_function): New function.
35535 (write_tm_preds_h): Call it.
35536 * stmt.c (parse_output_constraint, parse_input_constraint): Use
35537 the generated insn_extra_constraint_allows_reg_mem function
35538 instead of always setting *allows_reg = true; *allows_mem = true;
35539 for unknown extra constraints.
35541 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35544 * output.h (default_binds_local_p_3): New.
35545 * varasm.c (default_binds_local_p_3): Make it public. Take an
35546 argument to indicate if common symbol may be local. If common
35547 symbol may be local, treat non-external variable as defined
35549 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
35550 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
35551 * config/i386/i386.c (ix86_binds_local_p): New.
35552 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
35553 ix86_binds_local_p.
35555 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35558 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
35559 trying mem_loc_descriptor on XEXP (rtl, 0).
35561 2015-04-17 Martin Liska <mliska@suse.cz>
35563 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
35564 Release symbol_compare_collection.
35565 * ipa-reference.c: Add TODO that a vector should be released.
35567 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
35570 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
35571 to new AVR-LibC file layout (bug #44574).
35572 (*avrlibc_devicelib): Same.
35573 * config/avr/avr-mcus.def: Adjust comments.
35574 * config/avr/avr.opt (nodevicelib): Adjust help.
35576 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
35578 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
35580 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
35583 * gimplify.c (gimplify_init_constructor): Always emit a
35584 side-effecting constructor.
35586 2015-04-17 Tom de Vries <tom@codesourcery.com>
35588 PR tree-optimization/64950
35589 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
35590 in cfun->curr_properties.
35591 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
35592 if we generate an IFN_VA_ARG.
35593 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
35594 function if PROP_gimple_lva is not set in src function.
35596 2015-04-17 Tom de Vries <tom@codesourcery.com>
35597 Michael Matz <matz@suse.de>
35599 PR tree-optimization/64950
35600 * gimple-iterator.c (update_modified_stmts): Remove static.
35601 * gimple-iterator.h (update_modified_stmts): Declare.
35602 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
35603 (gimplify_va_arg_internal): New function.
35604 (gimplify_va_arg_expr): Use IFN_VA_ARG.
35605 * gimplify.h (gimplify_va_arg_internal): Declare.
35606 * internal-fn.c (expand_VA_ARG): New unreachable function.
35607 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
35608 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
35609 (expand_ifn_va_arg): New function.
35610 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
35611 (pass_stdarg::execute): Call expand_ifn_va_arg.
35612 (pass_data_lower_vaarg): New pass_data.
35613 (pass_lower_vaarg): New gimple_opt_pass.
35614 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
35615 (make_pass_lower_vaarg): New function.
35616 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
35617 properties_required field.
35618 * passes.def (all_passes): Add pass_lower_vaarg.
35619 * tree-pass.h (PROP_gimple_lva): Add define.
35620 (make_pass_lower_vaarg): Declare.
35622 2015-04-17 Tom de Vries <tom@codesourcery.com>
35624 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
35625 * calls.c (call_expr_flags): Same.
35627 2015-04-17 Tom de Vries <tom@codesourcery.com>
35629 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
35630 (pass_stdarg::execute): ... here.
35632 2015-04-17 Tom de Vries <tom@codesourcery.com>
35633 Michael Matz <matz@suse.de>
35635 * tree-cfg.c (make_blocks_1): Factor out of ...
35636 (make_blocks): ... here.
35637 (make_edges_bb): Factor out of ...
35638 (make_edges): ... here.
35639 (gimple_find_sub_bbs): New function.
35640 * tree-cfg.h (gimple_find_sub_bbs): Declare.
35642 2015-04-17 Tom de Vries <tom@codesourcery.com>
35644 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
35646 2015-04-17 Yury Gribov <y.gribov@samsung.com>
35648 * asan.c (set_sanitized_sections): New function.
35649 (section_sanitized_p): Ditto.
35650 (asan_protect_global): Optionally sanitize user-defined
35652 * asan.h (set_sanitized_sections): Declare new function.
35653 * common.opt (fsanitize-sections): New option.
35654 * doc/invoke.texi (-fsanitize-sections): Document new option.
35655 * opts-global.c (handle_common_deferred_options): Handle new
35658 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35661 * dwarf2out.c (loc_list_from_tree): Return NULL
35662 for DEBUG_EXPR_DECL.
35664 2015-04-17 Christian Bruel <christian.bruel@st.com>
35666 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
35669 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35671 * ira-color.c (setup_left_conflict_sizes_p): Do not process
35672 node itself when computing left conflict subnode size.
35674 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
35676 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
35677 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
35678 *fop_<mode>_1_sse using enabled attribute. Use
35679 register_mixssei387nonimm_operand operand 1 predicate. Change
35680 alternative 3 constraints from "x" to "v".
35682 2015-04-16 Richard Biener <rguenther@suse.de>
35684 PR tree-optimization/65774
35685 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
35686 bit-value tracking on.
35688 2015-04-16 Richard Biener <rguenther@suse.de>
35690 PR tree-optimization/64277
35691 * tree-vrp.c (check_array_ref): Fix anti-range handling,
35692 simplify upper bound handling.
35693 (search_for_addr_array): Simplify.
35694 (check_array_bounds): Handle ADDR_EXPRs here.
35695 (check_all_array_refs): Simplify.
35697 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
35699 * config/i386/i386.c (print_reg): Rewrite function.
35701 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35703 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
35704 Invert the condition.
35706 2015-04-16 Renlin Li <renlin.li@arm.com>
35708 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
35709 simplifications for UNSIGNED_FLOAT.
35711 2015-04-16 Nick Clifton <nickc@redhat.com>
35713 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
35715 (enum rl78_cpu_type): New.
35716 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
35717 (umulhi3_shift_virt): Remove m constraint from operand 1.
35718 (umulqihi3_virt): Likewise.
35719 * config/rl78/rl78.c (rl78_option_override): Add code to process
35720 -mcpu and -mmul options.
35721 (rl78_alloc_physical_registers): Add code to handle divhi and
35722 divsi valloc attributes.
35723 (set_origin): Likewise.
35724 * config/rl78/rl78.h (RL78_MUL_G14): Define.
35725 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
35726 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
35728 (ASM_SPEC): Pass -mcpu on to assembler.
35729 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
35730 (mulqi3_rl78): Likewise.
35731 (mulhi3_g13): Likewise.
35732 (mulhi3): Generate the G13 or G14 versions of the insn directly.
35733 (mulsi3): Likewise.
35734 (mulhi3_g14): Add clobbers of AX and BC.
35735 (mulsi3_g14): Likewise.
35736 (mulsi3_g13): Likewise.
35737 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
35738 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
35739 * config/rl78/rl78.opt (mmul): Initialise value to
35741 (mcpu): New option.
35742 (m13, m14, mrl78): New option aliases.
35743 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
35744 (MULTILIB_DIRNAMES): Add g13 and g14.
35745 * doc/invoke.texi: Document -mcpu and -mmul options.
35747 2015-04-16 Richard Biener <rguenther@suse.de>
35749 * tree-ssa-ccp.c (likely_value): See if we have operands that
35750 are marked as never simulate again and return CONSTANT in this
35752 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
35753 not have any operands that will be simulated again as
35754 not being simulated again.
35756 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
35758 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
35759 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
35760 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
35762 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
35764 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
35765 *float<SWI48:mode><MODEF:mode>2_sse.
35766 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
35768 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
35771 2015-04-15 Tom de Vries <tom@codesourcery.com>
35774 * function.c (push_dummy_function): New function.
35775 (init_dummy_function_start): Use push_dummy_function.
35776 (pop_dummy_function): New function. Factored out of ...
35777 (expand_dummy_function_end): ... here.
35778 * function.h (push_dummy_function, pop_dummy_function): Declare.
35779 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
35780 pop_dummy_function.
35781 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
35783 2015-04-15 Jeff Law <law@redhat.com>
35785 PR tree-optimization/47679
35786 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
35787 need for forward declaration in upcoming changes.
35788 (record_conditions, record_edge_info): Likewise.
35790 PR rtl-optimization/42522
35791 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
35792 SIGN_EXTRACT as a whole object rather than simplifying
35795 2015-04-15 Jakub Jelinek <jakub@redhat.com>
35798 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
35799 and GIMPLE_PREDICT use break instead of return true. For
35800 GIMPLE_EH_DISPATCH, compare dispatch region.
35802 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
35804 * doc/extend.texi (__sync Builtins): Simplify some text. Update
35805 details about the implementation. Make clear preference for
35806 __atomic builtins. Reduce possibility of future change.
35808 2015-04-15 Nick Clifton <nickc@redhat.com>
35810 * config/rx/rx.opt (mallow-string-insns): New option.
35811 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
35812 builtin if string instructions are denied.
35813 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
35814 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
35816 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
35817 * config/rx/rx.md (movstr): Enable pattern only if string
35818 instructions are allowed.
35819 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
35820 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
35821 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
35822 (MULTILIB_DIRNAMES): Add no-strings.
35823 * doc/invoke.texi: Document -mno-allow-string-insns.
35825 2015-04-15 Alan Modra <amodra@gmail.com>
35829 PR middle-end/36043
35830 * calls.c (load_register_parameters): Don't load past end of
35831 mem unless suitably aligned.
35833 2015-04-15 Nick Clifton <nickc@redhat.com>
35835 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
35836 decrement instruction as being frame related.
35837 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
35839 If zero extending a function address enclose the operation in
35841 (rl78_preferred_reload_class): New function.
35842 (TARGET_PREFERRED_RELOAD_CLASS): Define.
35843 * config/rl78/rl78.md: Remove useless constraints in expanders.
35844 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
35845 (mulhi3_rl78): Likewise.
35846 (mulhi3_g13): Likewise.
35847 (mulsi3_rl78): Likewise.
35848 (es_addr): Move to before the multiply patterns.
35850 2015-04-15 Alan Modra <amodra@gmail.com>
35852 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
35853 and sequence_stack. Add seq.
35854 (seq_stack): Delete.
35855 * function.c (prepare_function_start): Don't access x_last_insn.
35856 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
35857 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
35858 * emit_rtl.c (start_sequence, push_topmost_sequence,
35859 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
35860 sequence accessors.
35861 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
35862 remove_insn): Likewise. Simplify.
35863 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
35864 and pop_topmost_sequence.
35865 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
35867 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
35869 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
35872 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
35875 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
35877 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
35878 (LEGACY_INT_REGNO_P): Ditto.
35879 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
35880 (ANY_MASK_REG_P): Remove.
35881 (BND_REG_P): Rename from ANY_BND_REG_P.
35882 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
35883 legacy integer registers. Do not handle MMX_REG_P in a special way.
35884 Merge 64byte and 32byte SSE handling.
35886 2015-04-14 Nick Clifton <nickc@redhat.com>
35888 * expr.c (expand_assignment): Force an address offset computation
35889 into a register before changing its mode.
35890 (expand_expr_real_1): Likewise.
35892 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
35894 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
35895 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
35896 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
35897 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
35898 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
35899 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
35900 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
35901 and __aarch64_vget_lane_any.
35903 2015-04-14 Jakub Jelinek <jakub@redhat.com>
35905 PR rtl-optimization/65761
35906 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
35907 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
35909 2015-04-14 Richard Biener <rguenther@suse.de>
35911 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
35912 (graphite_can_represent_scev): Use POINTER_TYPE_P.
35914 2015-04-14 Richard Biener <rguenther@suse.de>
35916 PR tree-optimization/65758
35917 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
35919 (ccp_lattice_meet): Likewise.
35920 (bit_value_unop): Likewise.
35921 (bit_value_binop): Likewise.
35922 (bit_value_assume_aligned): Likewise.
35924 2015-04-14 Christian Bruel <christian.bruel@st.com>
35926 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
35929 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
35931 PR tree-optimization/63387
35932 * match.pd ((x unord x) | (y unord y) -> (x unord y),
35933 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
35935 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
35937 * config/i386/predicates.md (any_QIreg_operand): Rename from
35938 q_regs_operand. Do not process subregs.
35939 (QIreg_operand): Use QI_REGNO_P predicate.
35940 (ext_QIreg_operand): Ditto.
35941 (ext_register_operand): Ditto.
35942 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
35943 (AND splitters): Ditto.
35944 (AND with -65536 splitter): Add SWI48 mode for operand 0.
35945 (AND with -256 splitter): Use any_QIreg_operand predicate and
35946 SWI248 mode for operand 0.
35947 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
35948 mode for operand 0.
35949 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
35951 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
35953 * doc/plugins.texi: Rewrite first introductory paragraph.
35955 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35957 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
35958 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
35960 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35962 * ipa-profie.c (ipa_profile): Check number of parameters
35963 and possible polymorphic call targets before
35966 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
35968 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
35969 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
35971 2015-04-13 Richard Biener <rguenther@suse.de>
35973 PR tree-optimization/65204
35974 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
35975 takens for bit-CCP.
35977 2015-04-13 Richard Biener <rguenther@suse.de>
35980 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
35981 and cond_not_taken_branch_cost to 4 and 2.
35982 (bdver2_cost): Likewise.
35983 (bdver3_cost): Likewise.
35984 (bdver4_cost): Likewise.
35986 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35988 * hash-table.h (hash_table constructor): Add mem stats.
35989 (alloc_entries): Likewise.
35991 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35993 * ipa-cp.c (ipcp_driver): Relase prev_edge.
35994 * passes.c (execute_one_pass): Only add transform if pass has one.
35996 2015-04-12 Joseph Myers <joseph@codesourcery.com>
35998 * config/i386/i386.c (ix86_option_override_internal): Don't set
35999 -fprefetch-loop-arrays if optimizing for size.
36001 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36002 Gerald Pfeifer <gerald@pfeifer.com>
36004 * doc/contrib.texi (Contributors): Add Martin Jambor and
36007 2015-04-12 Jakub Jelinek <jakub@redhat.com>
36009 * BASE-VER: Set to 6.0.0.
36011 PR tree-optimization/65747
36012 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
36013 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
36015 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36017 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
36018 sentence. Improve grammar.
36020 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36022 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
36024 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36027 * ipa-inline-transform.c (speculation_removed): Remove static var.
36028 (check_speculations): New function.
36029 (clone_inlined_nodes): Do not check spculations.
36030 (inline_call): Call check_speculations.
36031 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
36032 consider non-invariants.
36034 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36035 Martin Liska <mliska@suse.cz>
36038 * ipa-icf.c (sem_item::compare_cgraph_references): function and
36039 variable can not match.
36040 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
36041 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
36043 2015-04-11 Jakub Jelinek <jakub@redhat.com>
36045 PR tree-optimization/65735
36046 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
36047 Remove visited_phis argument, add visited_bbs, avoid recursing into the
36048 same bb rather than just into the same phi node.
36049 (thread_through_normal_block): Adjust caller.
36051 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36053 * doc/contrib.texi (Contributors): Add Ira Rosen.
36055 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
36057 * gcov.c (find_source): Fix miswording in error message.
36058 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
36059 (ix86_expand_sse_comi_round): Fix typo in error message.
36061 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36063 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
36065 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
36067 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
36069 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36072 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
36073 Print bad_spills_num and insn_pseudos_num.
36075 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36078 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
36079 when creating +1 values for SImode.
36081 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36084 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
36087 2015-04-10 Jakub Jelinek <jakub@redhat.com>
36088 Iain Sandoe <iain@codesourcery.com>
36091 * configure: Regenerate.
36093 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36096 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
36098 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
36100 * doc/contrib.texi (Contributors): Add John Marino.
36102 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36104 PR tree-optimization/65709
36105 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
36106 TREE_TYPE (TREE_TYPE (t)).
36108 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
36111 * lra-int.h (lra_bad_spill_regno_start): New.
36112 * lra.c (lra_bad_spill_regno_start): New.
36113 (lra): Set up lra_bad_spill_regno_start. Set up
36114 lra_constraint_new_regno_start unconditionally.
36115 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
36118 2015-04-09 Marek Polacek <polacek@redhat.com>
36119 Jakub Jelinek <jakub@redhat.com>
36121 PR middle-end/65554
36122 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
36123 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
36126 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
36128 PR rtl-optimization/65693
36129 * combine.c (is_parallel_of_n_reg_sets): Move outside of
36132 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
36135 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
36136 device specs file if "device-specs%s" didn't resolve to a path.
36138 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36141 * config/i386/i386.c (fixup_modeless_constant): New.
36142 (ix86_expand_args_builtin): Fixup modeless constant operand.
36143 (ix86_expand_round_builtin): Ditto.
36144 (ix86_expand_special_args_builtin): Ditto.
36145 (ix86_expand_builtin): Ditto.
36147 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36150 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
36151 any pow2 integer in between 2 and 0x80000000U inclusive.
36153 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
36155 PR rtl-optimization/65693
36156 * combine.c (is_parallel_of_n_reg_sets): Change first argument
36157 from an rtx_insn * to an rtx.
36158 (try_combine): Adjust both callers. Use it once more.
36160 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36162 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
36163 (chkp_make_static_const_bounds): Search existing
36164 symbol by assembler name. Use make_decl_one_only.
36165 (chkp_get_zero_bounds_var): Remove node search which
36166 is now performed in chkp_make_static_const_bounds.
36167 (chkp_get_none_bounds_var): Likewise.
36169 2015-04-08 Michael Witten <mfwitten@gmail.com>
36171 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
36174 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36176 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
36178 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36180 * doc/extend.texi (__sync Builtins): Fix grammar.
36182 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36184 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
36186 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36188 * varasm.c (emit_local): Move definition of align.
36190 2015-04-08 Julian Brown <julian@codesourcery.com>
36192 * config/nvptx/mkoffload.c (process): Support variable mapping.
36194 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
36196 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
36198 (alpha_write_one_linkage): Correct typo.
36200 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36202 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
36204 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36206 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
36208 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36210 * tree-chkp.h (chkp_insert_retbnd_call): New.
36211 * tree-chkp.c (chkp_insert_retbnd_call): New.
36212 * ipa-split.c (insert_bndret_call_after): Remove.
36213 (split_function): Use chkp_insert_retbnd_call.
36214 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
36215 bounds for instrumented functions.
36217 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
36220 * calls.c (initialize_argument_information): When producing tail
36221 call also turn SSA_NAMES passed by references to original PARM_DECLs
36223 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
36226 * lra-remat.c (do_remat): Process input and non-input insn
36227 registers separately.
36229 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36232 * valtrack.c (debug_lowpart_subreg): New function.
36233 (dead_debug_insert_temp): Use it.
36235 PR middle-end/65680
36236 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
36237 into signed HOST_WIDE_INT the same as negative bit_offset.
36239 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
36241 * ipa-comdats.c (ipa_comdats): Visit all thunks
36242 to set proper comdat group.
36244 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36247 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
36248 on constants for NEON VSTRUCT modes.
36250 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36251 Iain Sandoe <iain@codesourcery.com>
36254 * configure: Regenerate.
36256 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36259 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
36260 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
36261 that LFD is used to load double constants instead of LFS. Add
36262 defaults for all costs structures. Add comments for missing
36263 initialization fields.
36264 (size32_cost): Likewise.
36265 (size64_cost): Likewise.
36266 (rs64a_cost): Likewise.
36267 (mpccore_cost): Likewise.
36268 (ppc403_cost): Likewise.
36269 (ppc405_cost): Likewise.
36270 (ppc440_cost): Likewise.
36271 (ppc476_cost): Likewise.
36272 (ppc601_cost): Likewise.
36273 (ppc603_cost): Likewise.
36274 (ppc604_cost): Likewise.
36275 (ppc604e_cost): Likewise.
36276 (ppc620_cost): Likewise.
36277 (ppc630_cost): Likewise.
36278 (ppccell_cost): Likewise.
36279 (ppc750_cost): Likewise.
36280 (ppc7450_cost): Likewise.
36281 (ppc8540_cost): Likewise.
36282 (ppce300c2c3_cost): Likewise.
36283 (ppce500mc_cost): Likewise.
36284 (ppce500mc64_cost): Likewise.
36285 (ppce5500_cost): Likewise.
36286 (ppce6500_cost): Likewise.
36287 (titan_cost): Likewise.
36288 (power4_cost): Likewise.
36289 (power6_cost): Likewise.
36290 (power7_cost): Likewise.
36291 (power8_cost): Likewise.
36292 (ppca2_cost): Likewise.
36293 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
36295 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
36296 instead of XXLOR to copy SFmode to clear out dirty bits created
36297 when SFmode denormals are generated.
36298 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
36299 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
36301 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36303 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
36304 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
36305 * config/aarch64/aarch64-tune.md: Regenerate.
36307 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36309 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
36310 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
36311 * config/arm/arm-cores.def (exynos-m1): New core.
36312 * config/arm/arm-tune.md: Regenerate.
36313 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
36314 * config/arm/bpabi.h: Likewise.
36316 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36318 * ipa-cp (set_single_call_flag): Remove too
36319 restrictive assert.
36321 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
36323 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
36324 GOMP_offload_unregister from the destructor.
36326 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36328 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
36329 flags for instrumentation thunk.
36330 (chkp_produce_thunks): Likewise.
36332 2015-04-05 Martin Liska <mliska@suse.cz>
36335 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
36336 has computed data structure.
36337 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36339 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
36341 * invoke.texi (inline-unit-growth): Increase growth to 20%
36342 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
36344 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
36347 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
36349 (lra_rematerialization_iter): New.
36350 * lra.c (lra): Initialize lra_rematerialization_iter.
36351 Stop updating lra_constraint_new_regno_start after switching of
36352 inheritance and rematerialization.
36353 * lra-remat.c (lra_rematerialization_iter): New.
36354 (lra_remat): Add printing pass iteration. Do rematerialization
36355 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
36357 2015-04-04 Richard Biener <rguenther@suse.de>
36359 PR tree-optimization/64909
36360 PR tree-optimization/65660
36361 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
36362 to take a cost vector for scalar iteration cost.
36363 (vect_get_single_scalar_iteration_cost): Likewise.
36364 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
36365 Compute the scalar iteration cost into a cost vector.
36366 (vect_get_known_peeling_cost): Use the scalar cost vector to
36367 account for the cost of the peeled iterations.
36368 (vect_estimate_min_profitable_iters): Likewise.
36369 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
36372 2015-04-04 Alan Modra <amodra@gmail.com>
36376 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
36377 0.0 constant unless TARGET_VSX.
36378 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
36381 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36384 * ipa-inline-transform.c (inline_call): Skip sanity check to work
36387 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36390 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
36391 speculative indirect edges to avoid ordering issue.
36393 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36396 * ipa-inline.c (edge_badness): Add combined size to the denominator.
36398 2015-04-03 Jakub Jelinek <jakub@redhat.com>
36400 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
36401 TYPE_ARTIFICIAL on the .omp_data* types.
36403 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36405 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
36406 instrumentation thunks.
36408 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36410 * config/i386/i386.c (ix86_expand_call): Avoid nested
36411 PARALLEL in returned call value.
36413 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36415 * lto-cgraph.c (input_cgraph_1): Always link instrumented
36416 assembler name with original one.
36418 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36420 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
36422 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36424 Revert parts of r216820.
36425 * config/i386/i386.md (movqi_internal): Correct type calculation
36426 for alternatives 3 and 5.
36428 2015-04-02 Jakub Jelinek <jakub@redhat.com>
36430 PR preprocessor/61977
36431 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
36432 predefine __vector/__bool/__pixel macros nor context sensitive
36433 macros for CLK_ASM.
36434 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
36436 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
36438 * config/pa/pa.c (pa_output_move_double): Directly handle register
36439 indexed memory operand. Simplify handling of scaled register indexed
36442 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36445 * config/i386/linux-common.h (MPX_SPEC): New.
36446 (CHKP_SPEC): Add MPX_SPEC.
36447 * doc/invoke.texi (-fcheck-pointer-boudns): Document
36448 possible issues with '-z bndplt' support in linker.
36450 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36452 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
36453 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
36454 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
36455 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
36456 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
36458 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
36460 * config/i386/sync.md (UNSPEC_MOVA): Remove.
36461 (atomic_load<mode>): Change operand 0 predicate to
36462 nonimmediate_operand and fix up the destination when needed.
36464 (atomic_loaddi_fpu): Use UNSPEC_LDA.
36465 (atomic_store<mode>): Change operand 1 predicate to
36466 nonimmendate_operand and move the source to register when needed.
36468 (atomic_store<mode>_1): Use UNSPEC_STA.
36469 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
36470 Fix moves from memory operand. Use UNSPEC_STA.
36472 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
36474 * expmed.c (strict_volatile_bitfield_p): Check that the access will
36475 not cross a MODESIZE boundary.
36476 (store_bit_field, extract_bit_field): Added assertions in the
36477 strict volatile bitfields code path.
36479 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
36482 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
36483 Increase args array size by one to avoid buffer overflow.
36485 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36487 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
36489 * ipa-inline.c (edge_badness): Add wrapper penalty.
36490 (sum_callers): Move up.
36491 (inline_small_functions): Set single_caller.
36492 * ipa-inline.h (inline_summary): Add single_caller.
36493 * ipa-split.c (split_function): Set split_part.
36494 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
36495 * cgraph.h (cgraph_node): Add split_part.
36497 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
36500 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
36501 Do not split operands 0 and operands 2 to halfmode.
36502 (atomic_compare_and_swap<mode>): Update for
36503 atomic_compare_and_swap<dwi>_doubleword changes.
36505 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36507 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
36508 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
36509 no caching is done.
36511 2015-03-31 Martin Liska <mliska@suse.cz>
36514 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
36515 has already filled up function summary.
36516 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36518 2015-03-31 Richard Biener <rguenther@suse.de>
36520 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
36523 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
36525 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
36527 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
36528 (s390_asm_output_function_label): Adapt to new signature of
36529 s390_function_num_hotpatch_hw
36530 Optimise the code generating assembler output.
36531 Add comments to assembler file.
36533 2015-03-31 Richard Biener <rguenther@suse.de>
36535 PR middle-end/65626
36536 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
36537 of the noreturn call so it is last and cleanup_control_flow_bb
36538 can do the CFG part.
36540 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
36543 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
36544 same_comdat_group for external symbols.
36545 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
36546 infinite same_comdat_group traversal loop.
36548 2015-03-31 Jakub Jelinek <jakub@redhat.com>
36551 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
36552 automatically to $headers.
36554 2015-03-30 Jakub Jelinek <jakub@redhat.com>
36557 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
36558 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
36560 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
36562 * ipa-prop.c (param_type_may_change_p): Likewise.
36563 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
36564 (remove_unused_scope_block_p): Add in_ctor_dtor_block
36565 argument. Before inlining, preserve
36566 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
36567 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
36569 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
36571 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36574 * ipa-inline.c (edge_badness): Base denominator on callee's
36577 2015-03-27 Martin Jambor <mjambor@suse.cz>
36580 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
36581 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
36582 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
36583 node_calling_single_call.
36584 * ipa-cp.c (count_callers): New function.
36585 (set_single_call_flag): Likewise.
36586 (initialize_node_lattices): Count callers and set single_flag_call if
36588 (incorporate_penalties): New function.
36589 (good_cloning_opportunity_p): Use it, dump new flags.
36590 (propagate_constants_topo): Set node_within_scc flag if appropriate.
36591 * doc/invoke.texi (ipa-cp-recursion-penalty,
36592 ipa-cp-single-call-pentalty): Document.
36594 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36597 * symtab.c (symtab_node::get_partitioning_class): Register vars
36599 * varpool.c (symbol_table::output_variables) Do not assemble unefined
36600 decls for non-symbols.
36602 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
36605 * output.h (default_binds_local_p_2): New.
36606 * varasm.c (default_binds_local_p_2): Renamed to ...
36607 (default_binds_local_p_3): This. Don't return true on protected
36608 data symbol if protected data may be external.
36609 (default_binds_local_p): Use default_binds_local_p_3.
36610 (default_binds_local_p_1): Likewise.
36611 (default_binds_local_p_2): New.
36612 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
36613 default_binds_local_p_2 if TARGET_MACHO is undefined.
36615 2015-03-27 Jakub Jelinek <jakub@redhat.com>
36618 * config/i386/i386.c (legitimize_pic_address): If base
36619 is SYMBOL_REF or LABEL_REF using %rip addressing, force
36620 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
36622 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36625 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
36628 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36631 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
36632 of optimized out indirect call.
36633 (redirect_to_unreachable): Always build symbol table node for
36634 BUILT_IN_UNREACHABLE
36636 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
36639 * ira-costs.c (record_reg_classes): Process all constraint string
36642 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
36644 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
36648 * config/c6x/constraints.md (S3): New constraint.
36649 * config/c6x/c6x.md (real_jump): Use it.
36651 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36653 PR middle-end/65595
36654 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
36655 do redirection if the call is not optimized out.
36657 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
36660 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
36661 (fchkp-check-incomplete-type): Add LTO.
36662 (fchkp-zero-input-bounds-for-main): Likewise.
36663 (fchkp-first-field-has-own-bounds): Likewise.
36664 (fchkp-narrow-bounds): Likewise.
36665 (fchkp-narrow-to-innermost-array): Likewise.
36666 (fchkp-use-static-bounds): Likewise.
36667 (fchkp-use-static-const-bounds): Likewise.
36668 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36670 2015-03-27 Marek Polacek <polacek@redhat.com>
36672 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
36674 2015-03-27 Marek Polacek <polacek@redhat.com>
36677 * ubsan.c (ubsan_create_edge): New function.
36678 (instrument_bool_enum_load): Call it.
36679 (instrument_nonnull_arg): Likewise.
36680 (instrument_nonnull_return): Likewise.
36681 (instrument_object_size): Likewise.
36683 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36685 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
36688 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36691 * lto-streamer.h (class lto_location_cache): New.
36692 (struct data_in): Add location_cache.
36693 (lto_input_location): Update prototype.
36694 (stream_input_location_now): New.
36695 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
36696 pointer to location.
36697 (stream_input_location): Update.
36698 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
36699 (warn_odr): Apply location cache before warning.
36700 (lto_input_location): Update prototype.
36701 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
36702 Use stream_input_location_now.
36703 * lto-streamer-in.c (lto_location_cache::current_cache): New static
36705 (lto_location_cache::cmp_loc): New function.
36706 (lto_location_cache::apply_location_cache): New function.
36707 (lto_location_cache::accept_location_cache): New function.
36708 (lto_location_cache::revert_location_cache): New function.
36709 (lto_location_cache::input_location): New function.
36710 (lto_input_location): Do location caching.
36711 (stream_input_location_now): New function.
36712 (input_eh_region, input_struct_function_base): Use
36713 stream_input_location_now.
36714 (lto_data_in_create): use new.
36715 (lto_data_in_delete): Use delete.
36716 * tree-streamer-in.c (unpack_ts_block_value_fields,
36717 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
36718 lto_input_ts_exp_tree_pointers): Update for cached location api.
36720 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36723 * passes.def: Add pass_nothrow.
36724 * ipa-pure-const.c: (pass_data_nothrow): New.
36725 (pass_nothrow): New.
36726 (pass_nothrow::execute): New.
36727 (make_pass_nothrow): New.
36728 * tree-pass.h (make_pass_nothrow): Declare.
36730 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36732 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
36733 edge to change by speculation resolution or redirection.
36734 (edge_set_predicate): Likewise.
36735 (inline_summary_t::duplicate): Likewise.
36736 (remap_edge_summaries): Likewise.
36738 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36740 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
36742 (can_inline_edge_p): Relax option matching for always inline functions.
36744 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
36747 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
36748 Check operand 4 and operand 0 for equality.
36749 (avx512f_vextract<shuffletype>32x4_1_maskm):
36750 Check operand 6 and operand 0 for equality.
36751 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
36753 (vec_extract_hi_<mode>_maskm): Ditto.
36755 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36757 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
36758 dead calls back to live.
36759 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
36761 (cgraph_node::verify_node): ... here; verify only callee edges,
36763 * cif-code.def (CILK_SPAWN): New code.
36765 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36767 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
36768 (edge_set_predicate): Use it to mark unreachable edges.
36769 (inline_summary_t::duplicate): Remove unnecesary code.
36770 (remap_edge_summaries): Likewise.
36771 (dump_inline_summary): Report contains_cilk_spawn.
36772 (compute_inline_parameters): Compute contains_cilk_spawn.
36773 (inline_read_section, inline_write_summary): Stream
36774 contains_cilk_spawn.
36775 * ipa-inline.c (can_inline_edge_p): Do not touch
36776 DECL_STRUCT_FUNCTION that may not be available;
36777 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
36778 remove check for callee_fun->can_throw_non_call_exceptions and
36779 replace it by optimization attribute check; check for flag_exceptions.
36780 * ipa-inline-transform.c (inline_call): Maintain
36781 DECL_FUNCTION_PERSONALITY
36782 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
36784 2015-03-26 Jakub Jelinek <jakub@redhat.com>
36786 PR tree-optimization/65551
36787 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
36788 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
36790 2015-03-26 Richard Biener <rguenther@suse.de>
36792 PR middle-end/65555
36793 * tree-cfg.c (verify_gimple_call): Do not require a call to
36794 have no LHS if it wasn't recognized as control altering yet.
36796 2015-03-26 Jakub Jelinek <jakub@redhat.com>
36798 PR tree-optimization/64715
36799 * passes.def: Add another instance of pass_object_sizes before ccp1.
36800 * tree-object-size.c (pass_object_sizes::execute): In
36801 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
36802 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
36803 __bos result and the computed constant. Remove redundant
36804 checks, obsoleted by gimple_call_builtin_p test.
36806 * var-tracking.c (variable_tracking_main_1): Don't track
36807 variables for targetm.no_register_allocation targets.
36809 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
36811 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
36812 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
36814 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
36817 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
36818 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
36819 0.0 is correctly setup.
36820 (extenddftf2_internal): Likewise.
36822 2015-03-25 Sebastian Pop <s.pop@samsung.com>
36824 PR tree-optimization/65177
36825 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
36827 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
36828 edges not adjacent on the path to the original code.
36830 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
36833 * doc/install.texi (Building a native compiler): Document new
36834 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
36835 configuration assumes that the host supports the linker plugin.
36837 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
36840 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
36841 chain for generated call.
36843 2015-03-25 Richard Biener <rguenther@suse.de>
36845 * passes.c (pass_manager::execute_early_local_passes): Guard
36846 execution of pass_chkp_instrumentation_passes with
36847 flag_check_pointer_bounds.
36848 (pass_chkp_instrumentation_passes::gate): Likewise.
36850 2015-03-25 Martin Liska <mliska@suse.cz>
36852 PR tree-optimization/65538
36853 * symbol-summary.h (function_summary::~function_summary):
36854 Relese memory for allocated summaries.
36855 (function_summary::release): New function.
36857 2015-03-25 Jakub Jelinek <jakub@redhat.com>
36860 * lto-streamer-out.c (DFS::worklist): New struct.
36861 (DFS::worklist_vec): New data member.
36862 (DFS::next_dfs_num): Remove.
36863 (DFS::DFS): Rewritten using worklist instead of recursion,
36864 using most of code from DFS::DFS_write_tree.
36865 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
36866 pass it to DFS_write_tree calls.
36867 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
36868 quick initial checks push it into worklist_vec and return.
36870 2015-03-25 Richard Biener <rguenther@suse.de>
36872 PR middle-end/65519
36873 * genmatch.c (expr::gen_transform): Re-write to avoid
36874 using gimple_build.
36876 2015-03-25 Bin Cheng <bin.cheng@arm.com>
36878 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
36880 2015-03-25 Bin Cheng <bin.cheng@arm.com>
36882 * config/arm/arm.opt (print_tune_info): New option.
36883 * config/arm/arm.c (arm_print_tune_info): New function.
36884 (arm_file_start): Call arm_print_tune_info.
36885 * config/arm/arm-protos.h (struct tune_params): Add comment.
36886 * doc/invoke.texi (@item -mprint-tune-info): New item.
36887 (-mtune): mention it in ARM Option Summary.
36889 2015-03-25 DJ Delorie <dj@redhat.com>
36891 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
36894 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
36895 Martin Liska <mliska@suse.cz>
36897 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
36898 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
36899 (sem_item::add_type): New function.
36900 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
36901 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
36902 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
36903 (sem_function::equals_wpa): Fix typo.
36904 * ipa-icf.h (sem_item::add_type): New function.
36905 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
36908 2015-03-24 Jakub Jelinek <jakub@redhat.com>
36910 PR tree-optimization/65533
36911 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
36912 with swapped operands, call vect_free_slp_tree on
36913 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
36916 2015-03-24 Richard Biener <rguenther@suse.de>
36918 PR middle-end/65517
36919 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
36920 for fixup if necessary.
36922 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
36924 * doc/extend.texi (Function Attributes): Add @cindex entries
36925 for all attributes and regularize their format. Delete text
36926 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
36927 information about "eightbit_data", "tiny_data", and "model"
36928 variable attributes to the Variable Attributes section. Fix
36929 some obvious typos and copy-editing issues.
36930 (Variable Attributes, Type Attributes): Likewise add/fix
36931 @cindex entries for all attributes.
36933 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36936 * tree-chkp.c (chkp_build_returned_bound): Ignore
36937 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
36939 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
36942 * config/sh/predicates.md (simple_mem_operand,
36943 displacement_mem_operand): Add test for reg.
36944 (short_displacement_mem_operand): Test for displacement_mem_operand
36945 before invoking sh_disp_addr_displacement.
36946 * config/sh/constraints.md (Sdd, Sra): Simplify.
36947 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
36948 Remove redundant displacement_mem_operand tests.
36950 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
36953 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
36954 the same -mmcu=MCU more than once.
36956 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36959 * ipa-devirt.c: Remove duplicate demangle.h include.
36962 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
36964 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
36965 REG_POINTER on *destptr after adjusting it for prologue size.
36968 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
36969 ultimate_alias_target ()->order ints instead of
36970 ultimate_alias_target () pointers.
36972 2015-03-23 Richard Biener <rguenther@suse.de>
36974 PR tree-optimization/65518
36975 * tree-vect-stmts.c (vectorizable_load): Reject single-element
36976 interleaving cases we generate absymal code for.
36978 2015-03-23 Richard Biener <rguenther@suse.de>
36980 PR tree-optimization/65494
36981 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
36983 (vect_analyze_slp_instance): But do that here, always and once.
36985 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36987 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
36988 adding T or multiplying by T+1 and subracting T.
36990 2015-03-22 Jeff Law <law@redhat.com>
36992 PR rtl-optimization/64317
36993 * Makefile.in (OBJS): Add gcse-common.c
36994 * gcse.c: Include gcse-common.h
36995 (struct modify_pair_s): Move structure definition to gcse-common.h
36996 (compute_transp): Move function to gcse-common.c.
36997 (canon_list_insert): Similarly.
36998 (record_last_mem_set_info): Break out some code and put it into
36999 gcse-common.c. Call into the new common code.
37000 (compute_local_properties): Pass additional arguments to compute_transp.
37001 * postreload-gcse.c: Include gcse-common.h and df.h
37002 (modify_mem_list_set, blocks_with_calls): New variables.
37003 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
37004 (get_bb_avail_insn): Pass in the expression index too.
37005 (alloc_mem): Allocate memory for the new bitmaps and lists.
37006 (free_mem): Free memory for the new bitmaps and lists.
37007 (insert_expr_in_table): Record a bitmap index for each entry we
37009 (record_last_mem_set_info): Call into common code in gcse-common.c.
37010 (get_bb_avail_insn): If no available insn was found in the requested
37011 BB. If BB has a single predecessor, see if the expression is
37012 transparent in BB and available in that single predecessor.
37013 (compute_expr_transp): New wrapper for compute_transp.
37014 (eliminate_partially_redundant_load): Pass expression's bitmap_index
37015 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
37016 (gcse_after_reload_main): If there are elements in the hash table,
37017 then compute transparency for all the elements in the hash table.
37018 * gcse-common.h: New file.
37019 * gcse-common.c: New file.
37021 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
37023 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
37025 (System Headers): Likewise.
37027 (Traditional macros): Likewise.
37028 (Invocation): Likewise.
37029 (Option Index): Likewise.
37030 * doc/cppopts.texi (-M): Likewise.
37031 (-finput-charset): Likewise.
37032 (--help): Likewise.
37033 * doc.invoke.texi (AVR Options): Likewise.
37034 (V850 Options): Likewise.
37036 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
37039 * ipa-devirt.c: Include demangle.h
37040 (odr_type_d): Add field rtti_broken.
37041 (odr_subtypes_equivalent_p): Do not require name to match.
37042 (compare_virtual_tables): Fix typo; if type already has ODR violation,
37043 bypass the tests; be ready for function referneces in vtables that are
37044 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
37045 (warn_odr): Give up for nameless types.
37046 (warn_types_mismatch): Report mismatch in mangled names;
37047 report mismatch in anonymous namespaces; look into component types to
37048 give useful error; report when mismatch is dragged in from other ODR
37050 (odr_types_equivalent_p): Match types for being polymorphic; avoid
37051 duplicated diagnostics.
37052 (add_type_duplicate): Reorder checks so more informative ones come
37053 first; fix typo; do not output "the extra base is defined here" when
37055 (BINFO_N_BASE_BINFOS): Relax sanity check.
37057 2015-03-22 Martin Liska <mliska@suse.cz>
37058 Jakub Jelinek <jakub@redhat.com>
37060 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
37061 masks that can potentially include a builtin.
37062 (ix86_add_new_builtins): Introduce fast filter for isa values
37063 that cannot trigger builtin inclusion.
37065 2015-03-22 Martin Liska <mliska@suse.cz>
37067 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
37068 (sem_item::update_hash_by_local_refs): Likewise.
37069 (sem_variable::get_hash): Empty line is fixed.
37070 (sem_item_optimizer::execute): Include adding of hash references.
37071 (sem_item_optimizer::update_hash_by_addr_refs): New function.
37072 (sem_item_optimizer::build_hash_based_classes): Use local hash.
37073 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
37074 (sem_item::update_hash_by_local_refs): Likewise.
37076 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37079 * ipa-comdats.c (enqueue_references): Walk through thunks.
37080 (ipa_comdats): Likewise.
37081 (set_comdat_group_1): New function.
37083 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37086 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
37089 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
37090 Gerald Pfeifer <gerald@pfeifer.com>
37092 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
37094 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
37095 Sandra Loosemore <sandra@codesourcery.com>
37097 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
37098 function parameter declaration.
37099 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
37100 Update arguments to nios2_adjust_call_address().
37101 (sibcall_internal): Rename from *sibcall.
37102 (sibcall_value_internal): Rename from *sibcall_value.
37103 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
37104 (nios2_large_got_address): Add target temp reg parameter.
37105 (nios2_got_address): Adjust call to nios2_large_got_address, add
37106 force_reg around it.
37107 (nios2_load_pic_address): Add target temp reg parameter, replace call
37108 to nios2_got_address with corresponding code.
37109 (nios2_legitimize_constant_address): Update call to
37110 nios2_load_pic_address.
37111 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
37112 to use temp reg for PIC loading purposes.
37113 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
37114 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
37115 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
37117 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37119 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
37120 usage of "the @option{...}".
37121 (-Wopenmp-simd): Likewise.
37122 (-fsanitize-recover): Likewise.
37123 (-fsanitize-undefined-trap-on-error): Likewise.
37125 (tracer-dynamic-coverage-feedback): Likewise.
37126 (reorder-block-duplicate-feedback): Likewise.
37127 (loop-unroll-jam-size): Likewise.
37130 (-mabs=legacy): Likewise.
37131 (-mupper-regs-df): Likewise.
37132 (-mupper-regs-sf): Likewise.
37133 (-mpointers-to-nested-functions): Likewise.
37135 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37137 * doc/extend.texi (Cilk Plus Builtins): Add markup.
37139 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37141 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
37142 additional index entries and cross-references.
37143 (-fchkp-check-incomplete-type): Likewise.
37144 (-fchkp-first-field-has-own-bounds): Likewise.
37145 (-fchkp-narrow-to-innermost-array): Likewise.
37146 (-fchkp-use-fast-string-functions): Likewise.
37147 (-fchkp-use-nochk-string-functions): Likewise.
37148 (-fchkp-use-static-const-bounds): Likewise.
37149 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37150 (-fchkp-instrument-marked-only): Likewise.
37151 (-fchkp-use-wrappers): Likewise.
37152 (-static-libmpx): Likewise.
37153 (-static-libmpxwrappers): Likewise.
37154 * doc/extend.texi (bnd_legacy): Likewise.
37155 (bnd_instrument): Likewise.
37156 (bnd_variable_size): Likewise.
37157 (Pointer Bounds Checker builtins): Likewise.
37159 2015-03-21 Tom de Vries <tom@codesourcery.com>
37161 PR tree-optimization/65458
37162 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
37163 * cgraph.h (cgraph_node): Add parallelized_function field.
37164 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
37165 (input_overwrite_node): Read parallelized_function field.
37166 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
37167 parallelized_function on cgraph_node for child_fn.
37168 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
37169 Remove include of gt-tree-parloops.h.
37170 (parallelized_functions): Remove static variable.
37171 (parallelized_function_p): Rewrite using parallelized_function field of
37173 (create_loop_fn): Remove adding to parallelized_functions.
37174 * Makefile.in (GTFILES): Remove tree-parloops.c
37176 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
37178 PR rtl-optimization/64366
37179 * lra.c (lra_update_insn_regno_info): Consider regs in
37180 CALL_INSN_FUNCTION_USAGE memory.
37182 2015-03-20 Richard Biener <rguenther@suse.de>
37184 PR middle-end/64715
37185 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
37186 for type comparison and gcc_checking_assert.
37187 (chrec_fold_plus_poly_poly): Likewise.
37188 (chrec_fold_multiply_poly_poly): Likewise.
37189 (chrec_convert_1): Likewise.
37190 * gimplify.c (gimplify_expr): Remove premature folding of
37191 &X + CST to &MEM[&X, CST].
37193 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37195 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
37197 (ipa_inline): Recompute inline_failed codes.
37198 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
37199 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
37202 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
37204 PR rtl-optimization/60851
37205 * recog.c (constrain_operands): Accept a pseudo register before reload
37206 for LRA enabled targets.
37208 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
37211 * config/rs6000/predicates.md (easy_fp_constant): Remove special
37212 -ffast-math handling that kept non-0 constants live in the RTL
37213 until reload. Remove logic testing the number of instructions it
37214 took to create a constant in a GPR that was never used, due to a
37215 test for soft-float earlier.
37216 (memory_fp_constant): Delete, no longer used.
37218 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
37219 alternatives for loading non-0 constants into GPRs for hard
37220 floating point that is no longer needed due to changes in
37221 easy_fp_constant. Add support for loading 0.0 into GPRs.
37222 (mov<mode>_hardfloat32): Likewise.
37223 (mov<mode>_hardfloat64): Likewise.
37224 (mov<mode>_64bit_dm): Likewise.
37225 (movtd_64bit_nodm): Likewise.
37226 (pre-reload move FP constant define_split): Delete define_split,
37227 since it is no longer used.
37228 (extenddftf2_internal): Remove GHF constraints that are not valid
37231 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
37233 PR rtl-optimization/63491
37234 * lra-constraints.c (check_and_process_move): Use src instead of
37235 sreg. Remove some dead code.
37237 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
37240 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
37241 (sem_variable::merge): Likewise.
37243 2015-03-19 Martin Liska <mliska@suse.cz>
37246 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
37247 all fields of cgraph_thunk_info.
37249 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
37251 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
37252 clone instrumented thunks.
37254 2015-03-19 Richard Biener <rguenther@suse.de>
37257 2015-03-10 Richard Biener <rguenther@suse.de>
37259 PR middle-end/63155
37260 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37261 * tree-ssa-coalesce.c: Include timevar.h.
37262 (attempt_coalesce): Handle graph being NULL.
37263 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37264 Split out abnormal coalescing to ...
37265 (perform_abnormal_coalescing): ... this function.
37266 (coalesce_ssa_name): Perform abnormal coalescing without computing
37268 (verify_ssa_coalescing_worker): New function.
37269 (verify_ssa_coalescing): Likewise.
37271 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
37272 Jakub Jelinek <jakub@redhat.com>
37275 * tsan.c (instrument_gimple): Clear tail call flag on
37278 2015-03-19 Jakub Jelinek <jakub@redhat.com>
37281 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
37282 call in the return bb.
37283 (find_split_points): Add RETURN_BB argument, don't call
37285 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
37286 if true append TSAN_FUNC_EXIT internal call after the call to
37287 the split off function.
37288 (execute_split_functions): Call find_return_bb here.
37289 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
37290 Adjust find_split_points and split_function calls.
37292 2015-03-18 DJ Delorie <dj@redhat.com>
37294 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
37295 (iorqi3_virt): Likewise.
37297 2015-03-18 Tom de Vries <tom@codesourcery.com>
37299 * tree-parloops.c (parallelize_loops): Make static.
37300 * tree-parloops.h (parallelize_loops): Remove extern declaration.
37302 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
37304 PR middle-end/64491
37306 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
37308 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
37309 condition would be removed due to undefined behaviour.
37311 2015-03-18 Martin Liska <mliska@suse.cz>
37314 * cgraph.c (cgraph_node::get_create): Remove unnecessary
37315 xstrdup_for_dump wrapper.
37316 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
37318 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
37319 with xstrdup_for_dump.
37320 (sem_variable::equals): Likewise.
37321 (sem_item_optimizer::read_section): Use symtab_node::name instead of
37323 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
37324 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
37325 symtab_node::asm_name with xstrdup_for_dump.
37326 (congruence_class::dump): Use symtab_node::name instead of
37328 * ipa-icf.h (symtab_node::name): Remove.
37329 (symtab_node::asm_name): Likewise.
37331 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37333 PR tree-optimization/65450
37334 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
37336 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
37337 it instead of duplicate_ssa_name_ptr_info.
37340 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
37342 2015-03-18 Richard Biener <rguenther@suse.de>
37344 * tree-data-ref.h (struct access_matrix): Remove.
37345 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
37346 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
37347 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
37348 (am_vector_index_for_loop): Likewise.
37349 (struct data_reference): Remove access_matrix member.
37350 (DR_ACCESS_MATRIX): Remove.
37351 (lambda_vector_new): Add comment.
37352 (lambda_matrix_new): Use XOBNEWVEC.
37354 2015-03-18 Richard Biener <rguenther@suse.de>
37356 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
37357 (pass_ch::execute): Cleanup the CFG only if we did sth.
37358 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
37360 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37362 * expmed.c (synth_mult): Use std::swap instead of manually
37363 swapping algorithms.
37365 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37368 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
37370 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
37373 * config/avr/avr.opt (-nodevicelib): New option.
37374 * doc/invoke.texi (AVR Options): Document it.
37375 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
37376 libgcc.a, libc.a, libm.a.
37377 * config/avr/specs.h: Same.
37378 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
37379 which don't (directly) depend on the device. Print more help.
37380 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
37381 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
37382 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
37384 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
37385 for specs file name.
37386 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
37387 * config/avr/avr-mcus.def: Adjust initializers and comments.
37389 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
37391 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
37392 DECL_ONE_ONLY to check if decl is one only.
37393 * ipa-split.c (consider_split): Limit splitt of one only functions.
37395 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37397 PR tree-optimization/65427
37398 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
37400 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
37402 2015-03-16 Marek Polacek <polacek@redhat.com>
37404 * cgraph.h (add_new_static_var): Remove declaration.
37405 * varpool.c (add_new_static_var): Remove function.
37407 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37409 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
37410 instead of vec<tree> * with vec_alloc and release for args.
37413 PR middle-end/65431
37414 * omp-low.c (delete_omp_context): Only splay_tree_delete
37415 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
37416 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
37418 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
37421 * cfgexpand.c (align_base): New function.
37422 (alloc_stack_frame_space): Call it.
37423 (expand_stack_vars): Align prev_frame to be sure
37424 data->asan_vec elements aligned properly.
37426 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
37428 PR middle-end/65409
37429 * expr.c (store_field): Do not do a direct block copy if the source is
37430 a PARALLEL with BLKmode.
37432 2015-03-16 Tom de Vries <tom@codesourcery.com>
37434 PR middle-end/65414
37436 2015-03-12 Tom de Vries <tom@codesourcery.com>
37438 PR rtl-optimization/64895
37439 * lra-lives.c (check_pseudos_live_through_calls): Use
37440 actual_call_used_reg_set instead of call_used_reg_set, if available.
37442 2015-03-16 Alan Modra <amodra@gmail.com>
37445 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
37446 Modify Z->r bswapdi splitter to use dest in place of scratch.
37447 In r->Z and Z->r bswapdi splitter rename word_high, word_low
37448 to word1, word2 and rearrange logic to suit.
37449 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
37450 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
37451 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
37452 Add one '?' on r->r. Modify Z->r splitter to avoid need for
37455 2015-03-14 Jakub Jelinek <jakub@redhat.com>
37457 PR tree-optimization/65369
37458 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
37459 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
37460 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
37462 PR tree-optimization/65418
37463 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
37464 are casts in the first PLUS_EXPR operand, ensure tbias and
37465 *totallowp are in the inner type.
37467 PR rtl-optimization/65401
37468 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
37469 argument. If true, adjust_address_nv of x with big-endian
37470 correction for the mode widening to GET_MODE (y).
37471 (make_field_assignment): Don't do MEM mode widening here.
37472 Use MEM_P instead of GET_CODE == MEM.
37474 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
37476 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
37477 the external decls.
37479 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37482 * config/arm/arm.c (arm_gen_constant, AND case): Use
37483 ARM_SIGN_EXTEND when constructing AND mask.
37485 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37487 * graph.c (print_graph_cfg): Make function names visible and append
37488 parenthesis to it. Also make groups of basic blocks belonging to the
37489 same function visible.
37491 2015-03-12 Richard Biener <rguenther@suse.de>
37493 PR middle-end/44563
37494 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
37495 to avoid quadratic behavior with inline expansion splitting blocks.
37496 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
37497 with the successor if the predecessor will be merged with it.
37498 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
37499 entry block with its successor.
37501 2015-03-13 Richard Biener <rguenther@suse.de>
37503 PR middle-end/44563
37504 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
37505 (cleanup_tree_cfg_1): Do not call it.
37506 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
37507 (fixup_noreturn_call): Mark the stmt as control altering.
37508 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
37510 (pass_data_fixup_cfg): Produce a dump file.
37511 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
37512 (need_noreturn_fixup): New global.
37513 (pass_dominator::execute): Fixup queued noreturn calls.
37514 (optimize_stmt): Queue calls that became noreturn for fixup.
37515 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
37516 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
37517 (el_to_fixup): New global.
37518 (eliminate_dom_walker::before_dom_childre): Queue calls that
37519 became noreturn for fixup.
37520 (eliminate): Fixup queued noreturn calls.
37521 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
37522 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
37523 (substitute_and_fold_dom_walker::before_dom_children): Queue
37524 alls that became noreturn for fixup.
37525 (substitute_and_fold): Fixup queued noreturn calls.
37527 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
37529 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
37530 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
37531 are building; for methods check ODR type of class they belong to if
37532 they may lead to a polymorphic call.
37533 (sem_function::compare_polymorphic_p): Be bit smarter about testing
37534 when function may lead to a polymorphic call.
37535 (sem_function::compare_type_list): Remove.
37536 (sem_variable::equals): Update use of compatible_types_p.
37537 (sem_variable::parse_tree_refs): Remove.
37538 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
37540 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
37542 (func_checker::compatible_polymorphic_types_p): Break out from ...
37543 (unc_checker::compatible_types_p): ... here.
37544 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
37546 (unc_checker::compatible_types_p): Update.
37547 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
37550 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37552 PR rtl-optimization/65235
37553 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
37554 When first element of vec_concat is const_int, calculate its size
37555 using second element.
37557 2015-03-12 Richard Biener <rguenther@suse.de>
37559 PR middle-end/65270
37560 * fold-const.c (operand_equal_p): Fix ordering of resetting
37561 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
37563 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
37565 * config/s390/s390.c (s390_reorg): Move code to output nops after label
37567 (s390_asm_output_function_label): Likewise.
37568 * config/s390/s390.c (s390_asm_output_function_label):
37569 Fix function label alignment with -mhtopatch.
37570 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
37571 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
37572 ("nop_2_byte"): New define_insn.
37573 ("nop_4_byte"): Likewise.
37574 ("nop_6_byte"): Likewise.
37575 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
37576 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
37578 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
37581 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
37584 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
37587 * toplev.c (process_options): Restrict Pointer Bounds Checker
37588 usage with Address Sanitizer.
37590 2015-03-12 Richard Biener <rguenther@suse.de>
37592 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
37594 * omp-low.c (expand_omp_taskreg): Split block before removing
37596 (expand_omp_target): Likewise.
37597 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
37598 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
37599 stmt to split_block.
37601 2015-03-12 Tom de Vries <tom@codesourcery.com>
37603 PR rtl-optimization/64895
37604 * lra-lives.c (check_pseudos_live_through_calls): Use
37605 actual_call_used_reg_set instead of call_used_reg_set, if available.
37607 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37609 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
37610 (cgraph_node::remove): Likewise.
37611 (cgraph_node::get_untransformed_body): Likewise.
37612 * varpool.c (varpool_node::remove): Likewise.
37613 (varpool_node::get_constructor): Add sanity check.
37615 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
37617 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
37619 (-fabi-compat-version): Likewise.
37620 (-ffriend-injection): Likewise.
37621 (-Wdeclaration-after-statement): Likewise.
37622 (-fomit-frame-pointer): Likewise.
37623 (-ftree-coalesce-inlined-vars): Likewise.
37624 (-fvisibility=): Likewise.
37625 * doc/extend.texi (Typeof): Likewise.
37626 (Zero Length): Likewise.
37627 (Escaped Newlines): Likewise.
37628 (Compound Literals): Likewise.
37629 (Function Attributes): Likewise.
37630 (Label Attributes): Likewise.
37631 (Type Attributes): Likewise.
37632 (Function Names): Likewise.
37633 (Other Builtins): Likewise.
37634 (Function Specific Option Pragmas): Likewise.
37635 (C++ Interface): Likewise.
37637 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
37639 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
37641 2015-03-11 Marek Polacek <polacek@redhat.com>
37643 PR tree-optimization/65388
37644 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
37646 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
37649 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
37650 * configure: Regenerate.
37651 * config.in: Regenerate.
37652 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
37653 [-mn-flash]: Document it.
37654 [__AVR_ARCH__]: Document avrtiny.
37656 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
37657 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
37658 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
37660 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
37662 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
37664 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
37667 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
37668 allow reloads of PLUS in floating point/VSX registers.
37670 2015-03-11 Junmo Park <junmoz.park@samsung.com>
37672 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
37673 crypto_sha256_fast.
37674 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
37676 2015-03-11 Richard Biener <rguenther@suse.de>
37678 PR tree-optimization/65310
37679 * tree-sra.c (build_ref_for_offset): Also preserve larger
37682 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
37684 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
37686 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37689 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
37691 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
37693 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37695 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
37696 (sem_function::equals_wpa): ... here.
37698 2015-03-10 Marek Polacek <polacek@redhat.com>
37699 Jakub Jelinek <jakub@redhat.com>
37702 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
37703 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
37706 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37709 * config/rs6000/t-linux: For powerpc64* target set
37710 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
37712 2015-03-10 Richard Biener <rguenther@suse.de>
37714 PR middle-end/44563
37715 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
37716 for redirect_all_calls.
37718 2015-03-10 Marek Polacek <polacek@redhat.com>
37720 * gdbinit.in (pcfun): Define and document.
37722 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
37724 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
37725 of libgomp-plugin.h.
37726 (find_target_compiler): Support a case when the path to gcc is
37727 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
37728 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
37729 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
37731 (main): Use GCC_INSTALL_NAME as target_driver_name.
37732 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
37734 (mkoffload.o): Remove obsolete include path and defines.
37735 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
37737 2015-03-10 Richard Biener <rguenther@suse.de>
37739 PR middle-end/63155
37740 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37741 * tree-ssa-coalesce.c: Include timevar.h.
37742 (attempt_coalesce): Handle graph being NULL.
37743 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37744 Split out abnormal coalescing to ...
37745 (perform_abnormal_coalescing): ... this function.
37746 (coalesce_ssa_name): Perform abnormal coalescing without computing
37748 (verify_ssa_coalescing_worker): New function.
37749 (verify_ssa_coalescing): Likewise.
37751 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
37754 * config.gcc (extra_options) [avr]: Remove.
37755 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
37756 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
37757 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
37759 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
37760 (-mmcu=): Add Var and MissingArgError properties.
37762 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
37763 * config/avr/t-multilib: Regenerate.
37764 * config/avr/specs.h: New file.
37765 * config/avr/driver-avr.c: New file.
37766 * config/avr/genopt.sh: Remove file.
37767 * config/avr/avr-tables.opt: Remove file.
37768 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
37769 * config/avr/avr-c.c: Same.
37770 * avr-arch.h: Same.
37771 (avr_current_device): Remove proto.
37772 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
37773 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
37774 (EXTRA_SPEC_FUNCTIONS): Define.
37775 (avr_devicespecs_file): New specs function proto.
37776 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
37777 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
37778 (avr_current_device): Remove definition and usage.
37779 (avr_set_core_architecture): New static function.
37780 (avr_option_override): Use it.
37781 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
37782 (mcu_name): New static array.
37783 (comparator, avr_archs_str, avr_mcus_str): New static functions.
37784 (avr_inform_devices, avr_inform_core_architectures): New functions.
37785 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
37786 (avrlibc.h) [WITH_AVRLIBC]: Include.
37787 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
37788 (print_mcu): Rewrite from scratch.
37789 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
37790 Forward to avr-specific specs defined in device-specs file.
37791 * config/avr/t-avr (driver-avr.o): New rule.
37792 (avr-devices.o): Depend on avr-arch.h.
37793 (avr-mcus): No more depend on avr-tables.opt.
37794 (avr-tables.opt): Remove rule.
37795 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
37797 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37799 * c-family/c.opt (fchkp-use-wrappers): New.
37800 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
37801 (chkp_wrap_function): New.
37802 (chkp_build_instrumented_fndecl): Support wrapped
37804 * doc/invoke.texi (-fcheck-pointer-bounds): New.
37805 (-fchkp-check-incomplete-type): New.
37806 (-fchkp-first-field-has-own-bounds): New.
37807 (-fchkp-narrow-bounds): New.
37808 (-fchkp-narrow-to-innermost-array): New.
37809 (-fchkp-optimize): New.
37810 (-fchkp-use-fast-string-functions): New.
37811 (-fchkp-use-nochk-string-functions): New.
37812 (-fchkp-use-static-bounds): New.
37813 (-fchkp-use-static-const-bounds): New.
37814 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
37815 (-fchkp-check-read): New.
37816 (-fchkp-check-write): New.
37817 (-fchkp-store-bounds): New.
37818 (-fchkp-instrument-calls): New.
37819 (-fchkp-instrument-marked-only): New.
37820 (-fchkp-use-wrappers): New.
37821 (-static-libmpx): New.
37822 (-static-libmpxwrappers): New.
37824 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37826 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
37827 (CHKP_SPEC): Add wrappers library.
37828 * c-family/c.opt (static-libmpxwrappers): New.
37830 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37832 * config/i386/linux-common.h (LIBMPX_LIBS): New.
37833 (LIBMPX_SPEC): New.
37835 * gcc.c (CHKP_SPEC): New.
37836 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
37837 * c-family/c.opt (static-libmpx): New.
37839 2015-03-10 Richard Biener <rguenther@suse.de>
37841 PR middle-end/44563
37842 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
37844 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
37845 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
37846 (cgraph_add_edge_to_call_site_hash): Likewise.
37847 (cgraph_node::get_edge): Likewise.
37848 (cgraph_edge::set_call_stmt): Likewise.
37849 (cgraph_edge::remove_caller): Likewise.
37851 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
37853 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
37854 (callee_saved_gpr_regs_size): ... this.
37855 (callee_saved_regs_first_regno): Rename to ...
37856 (callee_saved_first_gpr_regno): ... this.
37857 (callee_saved_regs_last_regno) Rename to ...
37858 (callee_saved_last_gpr_regno): ... this.
37859 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
37861 (nds32_initial_elimination_offset): Likewise.
37862 (nds32_expand_prologue): Likewise.
37863 (nds32_expand_epilogue): Likewise.
37864 (nds32_expand_prologue_v3push): Likewise.
37865 (nds32_expand_epilogue_v3pop): Likewise.
37866 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
37867 Adjust renamed variables.
37868 (nds32_output_stack_pop): Likewise.
37870 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
37872 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
37875 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37877 PR rtl-optimization/65321
37878 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
37880 * var-tracking.c (use_narrower_mode): Likewise.
37882 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37884 PR tree-optimization/65355
37885 * varasm.c (notice_global_symbol): Do not produce RTL.
37886 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
37888 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
37889 check for section anchors.
37891 2015-03-10 Alan Modra <amodra@gmail.com>
37894 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
37895 to be single-arch by default. Set cpu_is_64bit for powerpc64
37896 given --with-cpu=native.
37897 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
37898 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
37900 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
37901 rs6000_isa_flags rather than TARGET_64BIT.
37903 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
37904 Kaz Kojima <kkojima@gcc.gnu.org>
37906 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
37908 2015-03-09 Jakub Jelinek <jakub@redhat.com>
37911 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
37912 on a TREE_BINFO, instead use BINFO_TYPE.
37914 2015-03-09 Richard Biener <rguenther@suse.de>
37916 PR middle-end/65270
37917 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
37918 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
37919 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
37920 of that. When comparing dereferences compare alignment.
37921 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
37923 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37925 * ipa-inline-analysis.c (check_callers): Check
37926 node->can_remove_if_no_direct_calls_and_refs_p.
37927 (growth_likely_positive): Reorganize to call
37928 can_remove_if_no_direct_calls_p later.
37929 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
37930 will_be_removed_from_program_if_no_direct_calls_p): Add
37931 will_inline parameter.
37932 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
37933 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37934 Handle inliner case correctly.
37936 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
37938 PR tree-optimization/63743
37939 * cfgexpand.c (reorder_operands): Also reorder if only second operand
37940 had its definition forwarded by TER.
37942 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37945 * ipa-utils.h (types_odr_comparable): Add strict argument.
37946 * ipa-devirt.c: Fix whitespace;
37947 (odr_hasher): Remove.
37948 (odr_name_hasher, odr_vtable_hasher): New hashers.
37949 (can_be_name_hashed_p): New predicate.
37950 (hash_type_name): remove.
37951 (hash_odr_name): New.
37952 (odr_name_hasher::hash): new.
37953 (can_be_vtable_hashed_p): New.
37954 (hash_odr_vtable): New.
37955 (odr_vtable_hasher::hash): New.
37956 (types_same_for_odr): Add strict parameter.
37957 (types_odr_comparable): Likewise.
37958 (odr_name_hasher::equal): New.
37959 (odr_vtable_hasher::equal): New.
37960 (odr_name_hasher::remove): New.
37961 (odr_hash_type): Change to hash_table<odr_name_hasher>.
37962 (odr_vtable_hash_type): New.
37963 (odr_vtable_hash): New.
37964 (odr_subtypes_equivalent_p): Do strict comparsion.
37965 (add_type_duplicate): Merge type names; cleanup; avoid type
37967 (register_odr_type): Initialize vtable hash.
37968 (build_type_inheritance_graph): Likewise
37969 (get_odr_type): Reorg to use two hashes.
37970 (dump_possible_polymorphic_call_targets): Move sanity check after debug
37972 (ipa_devirt): Dump type_inheritance_graph.
37973 (types_same_for_odr): Add strict mode.
37975 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37978 * cgraph.h (symtab_node): Add definition_alignment,
37979 can_increase_alignment_p and increase_alignment.
37980 * symtab.c (symtab_node::can_increase_alignment_p,
37981 increase_alignment_1, symtab_node::increase_alignment,
37982 symtab_node::definition_alignment): New.
37983 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
37984 can_increase_alignment_p.
37985 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
37986 * tree-vect-stmts.c (ensure_base_align): Likewise.
37987 * varasm.c (function_section_1): Use definition_alignment.
37988 (assemble_start_function): Likewise.
37989 (emit_local): likewise.
37990 (build_constant_desc): Likewsie.
37991 (output_constant_def_contents): Likewise.
37992 (place_block_symbol): Likewise.
37993 (output_object_block): Likewise.
37995 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37998 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
37999 when outputting debug.
38001 2015-03-07 Marek Polacek <polacek@redhat.com>
38002 Martin Uecker <uecker@eecs.berkeley.edu>
38005 * doc/invoke.texi: Update description of -fsanitize=bounds.
38007 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
38009 * tree-ssa-phiopt.c (neg_replacement): Remove.
38010 (tree_ssa_phiopt_worker): Remove negate optimization.
38012 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38015 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
38017 2015-03-06 Richard Biener <rguenther@suse.de>
38019 PR middle-end/64928
38020 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
38021 and liveout_obstack members.
38022 (calculate_live_on_exit): Remove.
38023 (calculate_live_ranges): Change declaration.
38024 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
38025 (new_tree_live_info): Adjust.
38026 (calculate_live_ranges): Delete livein when not wanted.
38027 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
38028 Deal with partly deleted live info.
38029 (loe_visit_block): Remove temporary bitmap by using
38030 bitmap_ior_and_compl_into.
38031 (live_worklist): Adjust accordingly.
38032 (calculate_live_on_exit): Make static.
38033 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
38034 we do not need livein.
38036 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
38038 * real.c (real_from_string): Fix typo in assertion.
38040 2015-03-06 Alex Velenko <alex.velenko@arm.com>
38042 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
38045 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38047 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
38049 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
38052 * lra-assigns.c (find_hard_regno_for): Rename to
38053 find_hard_regno_for_1. Add a new parameter.
38054 (find_hard_regno_for): New function using find_hard_regno_for_1.
38056 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38058 PR rtl-optimization/65067
38059 * expmed.c (store_bit_field, extract_bit_field): Reworked the
38060 strict volatile bitfield handling.
38062 2015-03-05 Martin Liska <mliska@suse.cz>
38065 * ipa-icf.c (sem_variable::equals): Compare variables types.
38067 2015-03-05 Richard Henderson <rth@redhat.com>
38070 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
38071 correctly check weak symbol binding.
38073 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
38075 PR middle-end/65315
38076 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
38079 2015-03-05 Martin Liska <mliska@suse.cz>
38081 * ipa-inline.c (inline_small_functions): Set default value to
38082 prevent warning during bootstrap.
38083 * tree.h: Add pragma guard that ignores false positives during
38086 2015-03-05 Richard Biener <rguenther@suse.de>
38088 PR tree-optimization/65310
38089 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
38090 Properly preserve alignment of the base of the access.
38092 2015-03-05 Richard Biener <rguenther@suse.de>
38095 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
38096 Compare dependence info.
38098 2015-03-05 Richard Biener <rguenther@suse.de>
38100 PR middle-end/65233
38101 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
38103 (walk_ssa_copies): Revert last chage. Instead do not walk
38104 SSA names registered for SSA update.
38106 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38109 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
38110 vtable references for their containing type.
38111 (sem_function::equals_wpa): Compare TYPE_RESTRICT
38112 and type attributes.
38114 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
38116 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
38117 before negating it.
38118 * stor-layout.c (finalize_record_size): Revert latest change.
38120 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
38122 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
38124 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38126 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
38127 for correct comdat handling.
38128 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
38130 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
38131 (used_from_object_file_p_worker): Remove.
38132 (cgraph_node::only_called_directly_or_alised): Add
38133 used_from_object_file_p.
38134 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
38135 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
38136 can_remove_if_no_direct_calls_and_refs_p.
38138 2015-03-04 Nick Clifton <nickc@redhat.com>
38140 * config/rl78/rl78.h (enum reg_class): Remove real registers from
38141 General register class.
38142 * config/rl78/rl78-real.md: Replace general register constraints
38143 with real+virtual register constraints.
38145 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38147 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
38148 from checking for -mhtm option.
38150 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38152 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
38153 (struct ipa_sra_check_caller_data): Add has_thunk field.
38154 (ipa_sra_check_caller): Check for thunk.
38155 (ipa_sra_preliminary_function_checks): Give up on function with
38157 (ipa_early_sra): Use call_for_symbol_and_aliases.
38159 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
38162 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
38163 called for __stack_chk_guard symbol.
38165 2015-03-03 DJ Delorie <dj@redhat.com>
38167 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
38169 (*addhi3_real): Likewise.
38170 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
38171 pattern to match incrementing memory.
38172 * config/rl78/predicates.md (rl78_1_2_operand): New.
38173 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
38174 it's the same and only mem.
38175 (rl78_alloc_physical_registers_op2): If there's effectively only
38176 one MEM, transcode it into HL.
38177 (rl78_far_p): Reject addresses that aren't legitimate.
38179 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38181 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
38184 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
38186 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38188 Implement call0 ABI for xtensa
38189 * config/xtensa/constraints.md ("a" constraint): Include stack
38190 pointer in case of call0 ABI.
38191 ("q" constraint): Make empty in case of call0 ABI.
38192 ("D" constraint): Include stack pointer in case of call0 ABI.
38193 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
38194 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
38196 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
38198 (xtensa_regno_to_class): Make it a local variable in the
38199 function xtensa_regno_to_class.
38200 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
38201 macro, function prototype and implementation.
38202 (reg_nonleaf_alloc_order): Make it a local variable in the
38203 function order_regs_for_local_alloc.
38204 (xtensa_conditional_register_usage): New function.
38205 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
38206 (xtensa_valid_move): Allow direct moves to stack pointer
38207 register in call0 ABI.
38208 (xtensa_setup_frame_addresses): Only spill register windows in
38210 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
38211 call0 ABI respectively.
38212 (xtensa_function_arg_1): Only mark a7 register for copying in
38214 (xtensa_call_save_reg): New function.
38215 (compute_frame_size): Add space for callee saved register
38216 storage to the frame size in call0 ABI.
38217 (xtensa_expand_prologue): Generate code to set up stack frame
38218 and save callee-saved registers in call0 ABI.
38219 (xtensa_expand_epilogue): New function.
38220 (xtensa_set_return_address): New function.
38221 (xtensa_return_addr): Calculate return address in call0 ABI.
38222 (xtensa_builtin_saveregs): Only mark a7 register for copying and
38223 emit copying code in windowed ABI.
38224 (order_regs_for_local_alloc): Add preferred register allocation
38225 order for non-leaf function in call0 ABI.
38226 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
38227 (xtensa_asm_trampoline_template): Add trampoline generation for
38229 (xtensa_trampoline_init): Add trampoline initialization for
38231 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
38233 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
38234 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
38235 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
38236 ABI call-used registers.
38237 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
38238 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
38240 (REG_CLASS_CONTENTS): Include all registers into the preferred
38241 reload registers set, adjust the set in the
38242 xtensa_conditional_register_usage.
38243 (xtensa_regno_to_class): Drop variable declaration.
38244 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
38246 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
38248 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
38249 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
38250 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
38251 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
38252 location in call0 ABI.
38253 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
38254 stack adjustment size when handling exception.
38255 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
38256 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
38258 ("return" pattern): Generate ret.n/ret in call0 ABI.
38259 ("epilogue" pattern): Expand epilogue.
38260 ("nonlocal_goto" pattern): Use default in call0 ABI.
38261 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
38262 emit eh_set_a0_* depending on ABI.
38263 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
38264 ("eh_set_a0_call0", "blockage"): New patterns.
38266 2015-03-03 Martin Liska <mliska@suse.cz>
38269 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
38271 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
38274 * config/rs6000/rs6000-tables.opt: Regenerate table.
38276 2015-03-03 Renlin Li <renlin.li@arm.com>
38278 * doc/md.texi (@item ^): Change ? into ^.
38280 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
38282 * doc/tm.texi: Regenerated.
38284 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38286 * builtins.c (expand_builtin_return_addr): Add
38287 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
38288 surrounding #ifdef.
38289 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
38291 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
38293 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
38295 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
38298 2015-03-03 Martin Jambor <mjambor@suse.cz>
38299 Eric Botcazou <ebotcazou@adacore.com>
38301 * tree-sra.c (ipa_sra_check_caller_data): New type.
38302 (has_caller_p): Removed.
38303 (ipa_sra_check_caller): New function.
38304 (ipa_sra_preliminary_function_checks): Use it.
38306 2015-03-03 Martin Liska <mliska@suse.cz>
38308 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
38309 instead of if branch.
38311 2015-03-03 Martin Liska <mliska@suse.cz>
38314 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
38316 2015-03-23 Jeff Law <law@redhat.com>
38318 PR tree-optimization/65241
38319 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
38320 hash table if INSERT is true.
38322 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38325 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
38327 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38330 * config/avr/avr.c (context.h, tree-pass.h): Include them.
38331 (avr_pass_data_recompute_notes): New static variable.
38332 (avr_pass_recompute_notes): New class.
38333 (avr_register_passes): New static function.
38334 (avr_option_override): Call it.
38336 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38338 Fix various problems with specs file generation.
38341 * config.gcc (extra_gcc_objs) [avr]: Remove.
38342 * config/avr/driver-avr.c: Remove file.
38343 * config/avr/t-avr (driver-avr.o): Remove rule.
38344 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
38345 INCLUDES to build. Depend on TM_H.
38346 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
38347 build warnings. Fix non-matching types and non-existing %-codes.
38349 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
38350 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
38351 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
38352 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
38353 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
38354 (LIBGCC_SPEC): Remove definitions.
38356 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38358 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
38359 to create a register in testing mode.
38361 2015-03-03 Martin Liska <mliska@suse.cz>
38362 Jan Hubicka <hubicka@ucw.cz>
38365 * cgraph.c (cgraph_node::has_thunk_p): New function.
38366 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
38367 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
38368 (sem_function::merge): Assert is changed.
38370 2015-03-03 Martin Liska <mliska@suse.cz>
38371 Martin Jambor <mjambor@suse.cz>
38374 * ipa-icf.c (sem_item_optimizer::execute): Change function
38375 return value to boolean.
38376 (sem_item_optimizer::merge_classes): Likewise.
38377 (ipa_icf_driver): Return TODO_remove_functions in case there's
38378 a merge operation processed.
38379 * ipa-icf.h: Change function return value to boolean.
38381 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
38384 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
38385 processor type for 64-bit little endian PowerPC.
38387 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
38388 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
38389 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
38390 printing built-in mask so it does not pass NULL pointers.
38392 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
38395 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
38398 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
38399 !ISA_HAS_FP_CONDMOVE.
38401 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
38403 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
38406 2015-03-02 Ulrich Drepper <drepper@gmail.com>
38408 * doc/invoke.texi (Options for Code Generation Conventions):
38409 Fix URL of DSO paper.
38411 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38414 * ipa-inline.c (check_callers): Looks for recursion.
38415 (inline_to_all_callers): Give up on uninlinable or recursive edges.
38416 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
38417 summary of inline clones.
38418 (do_estimate_growth_1): Fix recursion check.
38420 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38423 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
38426 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38427 Aldy Hernandez <aldyh@redhat.com>
38430 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
38431 when checking TYPE_BINFO.
38433 2015-03-02 Richard Biener <rguenther@suse.de>
38436 * ipa-icf-gimple.c: Include builtins.h.
38437 (func_checker::compare_memory_operand): Compare base alignment.
38439 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38442 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
38443 passed by reference.
38445 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38448 * tree-chkp.c (chkp_check_lower): Don't check against
38449 zero bounds for already instrumented functions.
38450 (chkp_check_upper): Likewise.
38451 (chkp_fini): Clean pass local data to avoid wrong reusage.
38453 2015-02-28 Martin Liska <mliska@suse.cz>
38454 Jan Hubicka <hubicka@ucw.cz>
38456 * ipa-icf.c (sem_variable::equals): Improve debug output;
38457 get variable constructor.
38458 (sem_variable::parse): Do not filter out too early; give up on
38459 volatile and register vars.
38460 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
38462 * ipa-icf.h (sem_variable::init): Do not set ctor.
38463 (sem_variable::ctor): Remove.
38465 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
38467 PR middle-end/65233
38468 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
38470 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38472 * ipa-icf.c: Include stor-layout.h
38473 (sem_function::compare_cgraph_references): Rename to ...
38474 (sem_item::compare_cgraph_references): ... this one.
38475 (sem_variable::equals_wpa): New function
38476 (sem_variable::equals): Do not check stuff already verified by
38478 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
38479 * ipa-icf.h (sem_item): Add compare_cgraph_references.
38480 (sem_function): Remove compare_cgraph_references.
38481 (sem_variable): Turns equals_wpa into non-inline.
38483 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38485 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
38486 (sem_item::add_expr): New function.
38487 (sem_function::hash_stmt): Handle operands of most statements.
38488 (sem_variable::get_hash): Hash the actual constructor.
38489 * ipa-icf.h (sem_item): Add add_expr.
38490 (sem_function): Update prototype of hash_stmt
38492 2015-02-28 Martin Liska <mliska@suse.cz>
38493 Jan Hubicka <hubicka@ucw.cz>
38496 * ipa-icf-gimple.c (func_checker::compare_function_decl):
38498 (func_checker::compare_variable_decl): Skip symtab vars.
38499 (func_checker::compare_cst_or_decl): Update.
38500 * ipa-icf.c (sem_function::parse): Do not consider aliases.
38501 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
38502 use correct symtab predicates.
38503 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
38504 (sem_variable::parse): Update comment.
38505 (sem_item_optimizer::build_graph): Consider ultimate aliases
38508 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38510 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
38513 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38515 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
38516 (sem_variable::merge) Likewise.
38518 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38520 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
38521 target; also match flag_ipa_devirt.
38523 2015-03-01 Martin Liska <mliska@suse.cz>
38524 Jan Hubicka <hubicka@ucw.cz>
38526 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
38527 Validate variable alignment.
38528 * ipa-icf.c (sem_function::equals_private): Be more precise
38529 about non-common function attributes.
38530 (sem_variable::equals): Likewise.
38532 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38535 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
38536 across COMDAT group boundary.
38538 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38541 * ipa-icf.c (clear_decl_rtl): New function.
38542 (sem_function::merge): Clear RTL before forming alias.
38543 (sem_variable::merge): Clear RTL before forming alias.
38545 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38548 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
38550 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
38552 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
38555 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38557 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
38558 a typo in the description.
38560 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38563 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38564 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38565 * lra-constraints.c: Include "params.h".
38566 (EBB_PROBABILITY_CUTOFF): Use
38567 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
38568 (lra_inheritance): Use '<' instead of '<=' for
38569 EBB_PROBABILITY_CUTOFF.
38570 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
38573 2015-02-27 Martin Liska <mliska@suse.cz>
38575 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
38576 vector length condition.
38578 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
38580 * doc/extend.texi (x86 transactional memory intrinsics):
38581 Reorganize discussion of _xbegin. Clarify that the return
38582 value is a bit mask. Expand example and move to end of section.
38584 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38585 Aldy Hernandez <aldyh@redhat.com>
38587 PR rtl-optimization/65220
38588 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
38590 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38593 * lra-remat.c (update_scratch_ops): New.
38594 (do_remat): Call it.
38595 * lra.c (lra_register_new_scratch_op): New. Take code from ...
38596 (remove_scratches): ... here.
38597 * lra-int.h (lra_register_new_scratch_op): New prototype.
38599 2015-02-27 Marek Polacek <polacek@redhat.com>
38602 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
38603 -Wformat-signedness anymore.
38605 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38607 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
38609 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
38611 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38613 * config/s390/s390.c (enum s390_builtin):
38614 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
38615 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
38616 (s390_init_builtins): Generate new builtin functions.
38617 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
38618 (s390_sfpc, s390_efpc): New pattern definitions.
38620 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38622 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
38623 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
38624 (s390_builtin_decls): New array.
38625 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
38626 (s390_builtin_decl): New function.
38627 (TARGET_BUILTIN_DECL): Define macro.
38629 2015-02-27 Richard Biener <rguenther@suse.de>
38631 PR middle-end/63175
38632 * builtins.c (get_object_alignment_2): Make sure to re-apply
38633 the ANDed mask after recursing to its operand gets us a new
38634 misalignment bit position.
38636 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
38637 Martin Liska <mliska@suse.cz>
38640 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
38641 Use address_matters_p.
38642 (redirect_all_callers, set_addressable): New functions.
38643 (sem_function::merge): Reorganize and fix merging issues.
38644 (sem_variable::merge): Likewise.
38645 (sem_variable::compare_sections): Remove.
38646 * common.opt (fmerge-all-constants, fmerge-constants): Remove
38648 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
38650 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
38652 (address_matters_1): New function.
38653 (symtab_node::address_matters_p): New function.
38654 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
38655 check for merged flag.
38656 * cgraph.h (address_matters_p): Declare.
38657 (symtab_node::address_taken_from_non_vtable_p): Remove.
38658 (symtab_node::address_can_be_compared_p): New method.
38659 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
38660 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
38662 (comdat_can_be_unshared_p_1) Use address_matters_p.
38663 (update_vtable_references): Fix formating.
38664 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
38665 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
38666 * cgraphclones.c: Preserve merged and icf_merged flags.
38668 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
38670 * doc/extend.texi (Function Attributes): Fix spelling and typos.
38671 (Label Attributes): Likewise.
38672 (Cilk Plus Builtins): Likewise.
38673 (ARC SIMD Built-in Functions): Likewise.
38674 (ARM C Language Extensions (ACLE)): Likewise.
38675 (PowerPC Built-in Functions): Likewise.
38676 (PowerPC Hardware Transactional Memory Built-in Functions):
38679 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38681 PR tree-optimization/65216
38682 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
38683 new stmt and new SSA_NAME for lhs whenever the arguments have
38684 changed and weren't just swapped. Fix comment typo.
38686 PR tree-optimization/65215
38687 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
38688 for PDP endian targets.
38689 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
38690 Fix up formatting issues.
38691 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
38692 size is smaller than the original, adjust MEM_REF offset by the
38693 difference of sizes. Use is_gimple_mem_ref_addr instead of
38694 is_gimple_min_invariant test to avoid adding address temporaries.
38696 2015-02-26 Martin Liska <mliska@suse.cz>
38697 Jan Hubicka <hubicka@ucw.cz>
38700 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
38701 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
38702 (sem_item_optimizer::process_cong_reduction): Include division by
38703 sensitive references.
38704 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
38705 * ipa-ref.c (ipa_ref::address_matters_p): New function.
38706 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
38708 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
38711 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
38713 * config/avr/avr.c: Same.
38714 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
38715 Refuse any constant address not in 0..0xbf.
38716 * config/avr/avr.md (*mov<mode>, *movsf): Remove
38717 tiny_valid_direct_memory_access_range from insn conditions.
38718 (mov<mode>): Don't special-case expansion of avrtiny addresses.
38720 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
38723 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
38724 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
38725 * config/sh/predicates.md (const_logical_operand): New predicate.
38726 * config/sh/sh.md: Add new peephole2 patterns.
38728 2015-02-26 Marek Polacek <polacek@redhat.com>
38731 * ipa-inline.c (early_inliner): Recompute inline parameters.
38733 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38736 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
38737 instructions with TImode operands are included in the analysis.
38739 2015-02-26 Sebastian Pop <s.pop@samsung.com>
38741 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
38742 of an EDGE_FSM_THREAD.
38744 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
38746 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
38748 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
38751 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
38753 2015-02-26 Sebastian Pop <s.pop@samsung.com>
38755 PR tree-optimization/65048
38756 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
38757 (thread_through_all_blocks): Call valid_jump_thread_path.
38758 Remove invalid FSM jump-thread paths.
38760 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38762 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
38763 (ipa_write_optimization_summaries): Likewise.
38764 * tree-streamer.h: Include data-streamer.h.
38765 (streamer_mode_table): Declare extern variable.
38766 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
38767 * lto-streamer-out.c (lto_output_init_mode_table,
38768 lto_write_mode_table): New functions.
38769 (produce_asm_for_decls): Call lto_write_mode_table when streaming
38771 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
38772 (lto_create_simple_input_block): Add mode_table argument to the
38773 lto_input_block constructors.
38774 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
38776 * data-streamer-in.c (string_for_index): Likewise.
38777 * ipa-inline-analysis.c (inline_read_section): Likewise.
38778 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
38779 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
38780 * lto-streamer-in.c (lto_read_body_or_constructor,
38781 lto_input_toplevel_asms): Likewise.
38782 (lto_input_mode_table): New function.
38783 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
38784 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
38785 Use bp_pack_machine_mode.
38786 * real.h (struct real_format): Add name field.
38787 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
38788 (class lto_input_block): Add mode_table member.
38789 (lto_input_block::lto_input_block): Add mode_table_ argument,
38790 initialize mode_table.
38791 (struct lto_file_decl_data): Add mode_table field.
38792 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
38793 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
38794 unpack_ts_decl_common_value_fields,
38795 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
38796 * tree-streamer.c (streamer_mode_table): New variable.
38797 * real.c (ieee_single_format, mips_single_format,
38798 motorola_single_format, spu_single_format, ieee_double_format,
38799 mips_double_format, motorola_double_format,
38800 ieee_extended_motorola_format, ieee_extended_intel_96_format,
38801 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
38802 ibm_extended_format, mips_extended_format, ieee_quad_format,
38803 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
38804 decimal_single_format, decimal_double_format, decimal_quad_format,
38805 ieee_half_format, arm_half_format, real_internal_format): Add name
38807 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
38809 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
38812 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
38813 reordering for selective scheduling.
38815 2015-02-26 Terry Guo <terry.guo@arm.com>
38817 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
38818 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
38819 (arm_arch_no_volatile_ce): Declare new global variable.
38820 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
38821 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
38822 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
38823 (TARGET_NO_VOLATILE_CE): New macro.
38824 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
38825 volatile memory access in IT block
38827 2015-02-25 Kai Tietz <ktietz@redhat.com>
38829 PR tree-optimization/61917
38830 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
38831 that reduc_def_stmt is null.
38833 2015-02-25 Martin Liska <mliska@suse.cz>
38835 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
38836 hard register variables.
38838 2015-02-25 Kai Tietz <ktietz@redhat.com>
38841 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
38842 (symtab::noninterposable_alias): Likewise.
38844 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
38847 * config/i386/i386.c (ix86_function_arg_regno_p): Support
38849 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
38851 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
38854 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
38855 as split condition; force split via '#' in output pattern.
38857 2015-02-25 Richard Biener <rguenther@suse.de>
38858 Kai Tietz <ktietz@redhat.com>
38860 PR tree-optimization/61917
38861 * tree-vect-loop.c (vectorizable_reduction): Allow
38862 vect_internal_def without reduction to exit graceful.
38864 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
38867 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
38868 only with NONDEBUG_INSN_P.
38870 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
38872 Use variadic macros with avr-log.c.
38874 * config/avr/avr-protos.h (avr_vdump): New prototype.
38875 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
38876 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
38877 * config/avr/avr-log.c: Adjust comments.
38878 (avr_vdump): New function.
38879 (avr_vadump): Pass caller as 2nd argument instead of format string.
38880 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
38881 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
38883 2015-02-25 Jakub Jelinek <jakub@redhat.com>
38886 * target.def (target_option_stream_in): New target hook.
38887 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
38888 targetm.target_option.post_stream_in if non-NULL.
38889 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
38890 * doc/tm.texi: Updated.
38891 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
38893 (TARGET_OPTION_POST_STREAM_IN): Redefine.
38895 2015-02-24 Jeff Law <law@redhat.com>
38898 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
38899 of operand 0 and operand 2.
38900 (zero_cost_loop_end, loop_end): Similarly.
38902 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
38904 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
38907 2015-02-24 DJ Delorie <dj@redhat.com>
38909 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
38910 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
38911 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
38912 instead of hardcoding SImode.
38914 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
38916 * omp-low.c (create_omp_child_function): Tag entrypoint
38917 functions with a special attribute.
38919 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38922 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
38924 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
38926 PR rtl-optimization/65123
38927 * lra-remat.c (operand_to_remat): Check hard regs in insn
38930 2015-02-24 Nick Clifton <nickc@redhat.com>
38932 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
38935 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
38938 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
38939 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
38940 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
38941 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
38942 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
38943 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
38944 (BUILT_IN_GOACC_PARALLEL): Specify as
38945 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
38946 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
38947 * builtin-types.def
38948 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38949 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38950 Remove function types.
38951 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
38952 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38953 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38954 New function types.
38956 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
38958 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
38960 2015-02-24 Jakub Jelinek <jakub@redhat.com>
38962 PR tree-optimization/65170
38963 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
38964 if val[1] < 0, clear also val[2] and return 3.
38966 2015-02-24 Alan Modra <amodra@gmail.com>
38969 * config/rs6000/rs6000.c (get_memref_parts): Only return true
38970 when *base is a reg. Handle nested plus addresses. Simplify
38973 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
38975 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
38976 use natural alignment when optimizing for size.
38978 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
38981 * config/sh/sh.md (movsicc_true+3): Remove peephole.
38982 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
38983 * config/sh/sh.c (replace_n_hard_rtx): Remove.
38985 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
38988 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
38989 too big for a wide_int. Implement missing wrapping operation.
38991 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
38994 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
38995 instead of const_int 4294901760.
38997 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
38999 * config/avr/t-avr: Fix typo in comment.
39001 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
39003 * doc/rtl.texi (fma): Clarify documentation.
39005 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
39008 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
39009 over input_location.
39011 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39013 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
39014 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
39015 restrict alignments to absolute_biggest_alignment.
39016 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
39018 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
39019 * doc/tm.texi: Regenerate.
39020 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
39022 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
39025 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
39027 2015-02-20 Richard Biener <rguenther@suse.de>
39029 PR tree-optimization/65136
39030 * tree-ssa-propagate.c: Include cfgloop.h.
39031 (replace_phi_args_in): Avoid replacing loop latch edge PHI
39032 arguments with constants.
39034 2015-02-20 Jakub Jelinek <jakub@redhat.com>
39035 Martin Liska <mliska@suse.cz>
39038 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
39039 don't try to create_thunk if stdarg_p. If
39040 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
39041 redirect_callers if possible.
39042 (sem_item_optimizer::execute): Call unregister_hooks here...
39043 (ipa_icf_driver): ... instead of here.
39045 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39047 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
39048 Mark operand 0 as earlyclobber in 2nd alternative.
39049 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
39050 Write negated shift amount into QI lowpart operand 0 and use it
39052 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
39054 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39056 * cgraph.h (clone_function_name_1): Declare.
39057 * cgraphclones.c (clone_function_name_1): New function.
39058 (clone_function_name): Use it.
39059 * lto-partition.c: Include "stringpool.h".
39060 (must_not_rename, maybe_rewrite_identifier)
39061 (validize_symbol_for_target): New static functions.
39062 (privatize_symbol_name): Use must_not_rename.
39063 (promote_symbol): Call validize_symbol_for_target.
39064 (lto_promote_cross_file_statics): Likewise.
39065 (lto_promote_statics_nonwpa): Likewise.
39067 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
39070 * config/avr/avr.md (pushhi_insn): New insn.
39071 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
39073 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39074 Jakub Jelinek <jakub@redhat.com>
39076 * tree-streamer.c (preload_common_nodes): Don't preload
39077 TI_VA_LIST* for offloading.
39078 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
39081 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
39083 * config/pa/pa.c (pa_emit_move_sequence): Always force
39084 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
39087 * config/pa/pa.c (pa_reloc_rw_mask): New function.
39088 (TARGET_ASM_RELOC_RW_MASK): Define.
39089 (pa_cannot_force_const_mem): Revert previous change.
39091 2015-02-19 Martin Jambor <mjmabor@suse.cz>
39092 Jan Hubicka <hubicka@ucw.cz>
39095 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
39096 across jump functions.
39098 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
39100 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
39102 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
39104 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
39106 2015-02-19 Richard Henderson <rth@redhat.com>
39108 PR middle-end/65074
39109 * varasm.c (default_binds_local_p_2): Don't test node->definition;
39110 test DECL_EXTERNAL independent of symtab_node.
39112 2015-02-19 Jakub Jelinek <jakub@redhat.com>
39115 * varpool.c (varpool_node::get_constructor): Return early
39116 if this->lto_file_data is NULL.
39118 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39120 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
39121 (rank_for_schedule_debug): Update.
39122 (ready_sort): Make static. Move sorting logic to ...
39123 (ready_sort_debug, ready_sort_real): New static functions.
39124 (schedule_block): Sort both debug insns and real insns in preparation
39125 for ready list trimming. Improve debug output.
39126 * sched-int.h (ready_sort): Remove global declaration.
39128 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
39130 * ipa-icf.c (sem_function::equals_private): Adjust.
39131 (sem_function::bb_dict_test): Take a vec<int> * instead of
39133 * ipa-icf.h (bb_dict_test): Likewise.
39135 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39137 PR gcov-profile/64634
39138 * tree-eh.c (frob_into_branch_around): Fix up typos
39139 in function comment.
39140 (lower_catch): Put eh_seq resulting from EH lowering of
39141 the cleanup sequence after the cleanup rather than before it.
39143 2015-02-18 Tom de Vries <tom@codesourcery.com>
39145 * common.opt (fstdarg-opt): New option.
39146 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
39147 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
39148 (@item -fstdarg-opt): New item.
39150 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
39153 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
39154 for common symbols.
39156 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39158 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
39160 (ALL_HOST_OBJS): Add mkoffload.o.
39161 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
39163 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
39165 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
39166 (compare_virtual_tables): Be smarter about skipping typeinfos;
39167 do sane output on virtual table table mismatch.
39168 (warn_odr): Be ready for forward declarations of enums;
39169 output sane info on base mismatch and virtual table mismatch.
39170 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
39171 when only one type is polymorphic.
39172 (get_odr_type): Fix hashtable corruption.
39173 (dump_odr_type): Dump mangled names.
39175 2015-02-18 Richard Biener <rguenther@suse.de>
39177 PR tree-optimization/65063
39178 * tree-predcom.c (determine_unroll_factor): Return 1 if we
39179 have replaced looparound PHIs.
39181 2015-02-18 Martin Liska <mliska@suse.cz>
39183 * lto-streamer.c (lto_streamer_init): Encapsulate
39184 streamer_check_handled_ts_structures with checking macro.
39186 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39189 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
39190 section if !implicit_section.
39191 (cgraph_node::create_version_clone_with_body): Likewise.
39192 * trans-mem.c (ipa_tm_create_version): Likewise.
39194 2015-02-18 Richard Biener <rguenther@suse.de>
39196 PR tree-optimization/62217
39197 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
39200 2015-02-18 Marek Polacek <polacek@redhat.com>
39203 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
39204 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
39205 is in range [-16K, -1]. Don't issue run-time error if
39206 (ptr > ptr + offset).
39208 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
39210 * doc/install.texi (nvptx-*-none): New section.
39211 * doc/invoke.texi (Nvidia PTX Options): Likewise.
39212 * config/nvptx/nvptx.opt: Update.
39214 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
39215 (access_check): New functions, copied from
39216 config/i386/intelmic-mkoffload.c.
39217 (main): For non-installed testing, look in all COMPILER_PATHs for
39220 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
39222 2015-02-18 Andrew Pinski <apinski@cavium.com>
39223 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39225 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
39226 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
39228 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39230 * ipa-visibility.c (function_and_variable_visibility): Only
39231 check locality if node is not already local.
39232 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39233 call_for_symbol_and_aliases instead of
39234 call_for_symbol_thunks_and_aliases.
39235 (ipa_inline): Likewise.
39236 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39237 first walk aliases.
39238 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39239 call_for_symbol_and_aliases.
39240 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39241 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39242 (ipa_propagate_frequency): Update.
39243 (ipa_profile): Add opt_for_fn gueards.
39245 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39247 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
39248 * doc/invoke.texi (SH options): Document it.
39249 * config/sh/sh.c (sh_insn_length_adjustment): Check
39250 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
39252 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
39254 * common.opt (fipa-cp-alignment): New.
39255 * ipa-cp.c (ipcp_store_alignment_results): Check
39256 flag_ipa_cp_alignment.
39257 * opts.c (default_options_table): Enable -fipa-cp-alignment for
39259 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
39260 * doc/invoke.texi: Document -fipa-cp-alignment.
39262 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39265 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
39266 to nil. Adjust comments.
39268 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39270 * ipa-visibility.c (function_and_variable_visibility): Only
39271 check locality if node is not already local.
39272 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39273 call_for_symbol_and_aliases instead of
39274 call_for_symbol_thunks_and_aliases.
39275 (ipa_inline): Likewise.
39276 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39277 first walk aliases.
39278 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39279 call_for_symbol_and_aliases.
39280 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39281 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39282 (ipa_propagate_frequency): Update.
39283 (ipa_profile): Add opt_for_fn guards.
39285 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
39287 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
39288 skipping of "strange" tokens.
39290 2015-02-17 Jeff Law <law@redhat.com>
39292 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
39295 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
39297 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
39298 as forcing a HARD_DEP between instructions, thereby
39299 disallowing rewriting to break dependencies.
39301 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39303 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
39304 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
39305 variables in boundary that have no inlitalizer encoded and are
39307 * varasm.c (default_binds_local_p_2): External definitions do not
39308 count as definitions here.
39310 2015-02-16 Jeff Law <law@redhat.com>
39312 PR tree-optimization/64823
39313 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
39315 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39316 threading through blocks with PHIs, but no statements.
39317 (thread_through_normal_block): Distinguish between blocks where
39318 we did not process all the statements and blocks with no statements.
39320 2015-02-16 Jakub Jelinek <jakub@redhat.com>
39321 James Greenhalgh <james.greenhalgh@arm.com>
39324 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
39325 section if not linkonce. Fix up formatting.
39326 (cgraph_node::create_version_clone_with_body): Copy section.
39327 * trans-mem.c (ipa_tm_create_version): Likewise.
39329 2015-02-16 Richard Biener <rguenther@suse.de>
39331 PR tree-optimization/65077
39332 * tree-ssa-structalias.c (get_constraint_for_1): Handle
39333 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
39334 (find_func_aliases): Allow float values to carry pointers again.
39336 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
39338 * doc/install.texi (Specific): Reorder targets list to put
39339 aarch64 in alphabetical order. Add a link to aarch64*-*-*
39342 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39343 David Edelsohn <dje.gcc@gmail.com>
39346 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
39347 mapping class to external variable or function reference.
39348 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
39351 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
39354 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
39355 ASM_WEAKEN_DECL if defined.
39357 2015-02-16 Richard Biener <rguenther@suse.de>
39360 * varasm.c (default_file_start): For LTO produced units
39361 emit <artificial> as file directive.
39363 2015-02-16 Richard Biener <rguenther@suse.de>
39365 PR tree-optimization/63593
39366 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
39367 stmts and releasing SSA names until...
39368 (execute_pred_commoning): ... after processing all chains.
39370 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39373 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
39374 external functions.
39376 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
39378 * doc/bugreport.texi: Adjust section titles throughout the file
39379 to use "Title Case".
39380 * doc/extend.texi: Likewise.
39381 * doc/gcov.texi: Likewise.
39382 * doc/implement-c.texi: Likewise.
39383 * doc/implement-cxx.texi: Likewise.
39384 * doc/invoke.texi: Likewise.
39385 * doc/objc.texi: Likewise.
39386 * doc/standards.texi: Likewise.
39387 * doc/trouble.texi: Likewise.
39389 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
39391 * cgraph.h (symtab_node::has_aliases_p): Simplify.
39392 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
39393 * tree.c (lookup_binfo_at_offset): Make static.
39394 (get_binfo_at_offset): Do not shadow offset; add explanatory
39397 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
39399 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
39400 for all floading point loads and stores except those using a register
39402 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
39405 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39407 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
39408 (do_estimate_growth_1): Record if any uninlinable edge was seen.
39409 (estimate_growth): Handle uninlinable edges correctly.
39410 (check_callers): New.
39411 (growth_likely_positive): Handle aliases correctly.
39413 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39415 * ipa-chkp.c: Use iterate_direct_aliases.
39416 * symtab.c (resolution_used_from_other_file_p): Move inline.
39417 (symtab_node::create_reference): Fix formating.
39418 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39419 (symtab_node::iterate_reference): Move inline.
39420 (symtab_node::iterate_referring): Move inline.
39421 (symtab_node::iterate_direct_aliases): Move inline.
39422 (symtab_node::used_from_object_file_p_worker): Inline into ...
39423 (symtab_node::used_from_object_file_p): ... this one; move inline.
39424 (symtab_node::call_for_symbol_and_aliases): Move inline;
39425 use iterate_direct_aliases.
39426 (symtab_node::call_for_symbol_and_aliases_1): New method.
39427 (cgraph_node::call_for_symbol_and_aliases): Move inline;
39428 use iterate_direct_aliases.
39429 (cgraph_node::call_for_symbol_and_aliases_1): New method.
39430 (varpool_node::call_for_node_and_aliases): Rename to ...
39431 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
39432 use iterate_direct_aliases.
39433 (varpool_node::call_for_symbol_and_aliases_1): New method.
39434 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
39435 (ipa_discover_readonly_nonaddressable_var): Update.
39436 * ipa-devirt.c: Fix formating.
39437 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
39439 (cgraph_node::call_for_symbol_and_aliases): Move inline.
39440 (cgraph_node::call_for_symbol_and_aliases_1): New function..
39441 * cgraph.h (used_from_object_file_p_worker): Remove.
39442 (resolution_used_from_other_file_p): Move inline.
39443 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39444 (symtab_node::iterate_reference): Move inline.
39445 (symtab_node::iterate_referring): Move inline.
39446 (symtab_node::iterate_direct_aliases): Move inline.
39447 (symtab_node::used_from_object_file_p_worker): Inline into ...
39448 (symtab_node::used_from_object_file_p): Move inline.
39449 * tree-emutls.c (ipa_lower_emutls): Update.
39450 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
39451 (varpool_node::call_for_node_and_aliases): Remove.
39453 2015-02-14 Jakub Jelinek <jakub@redhat.com>
39455 PR tree-optimization/62209
39456 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
39457 op == range->exp, insert seq and gimplified code after labels
39458 instead of after the phi.
39460 2015-02-13 Jeff Law <law@redhat.com>
39463 Revert my change for tree-optimization/64823.
39465 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39467 PR tree-optimization/65053
39468 * tree-ssa-phiopt.c (value_replacement): When moving assign before
39469 cond, either reset VR on lhs or set it to phi result VR.
39471 2015-02-13 Jeff Law <law@redhat.com>
39473 PR tree-optimization/64823
39474 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
39475 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39476 threading through blocks with PHIs, but no statements.
39477 (thread_through_normal_block): Distinguish between blocks where
39478 we did not process all the statements and blocks with no statements.
39480 PR rtl-optimization/47477
39481 * match.pd (convert (plus/minus (convert @0) (convert @1): New
39482 simplifier to narrow arithmetic.
39484 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
39487 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
39488 polymorphic call info when type is not known to be preserved.
39490 2015-02-13 Maritn Jambor <mjambor@suse.cz>
39493 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
39494 (inline_call): Use it.
39496 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
39498 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
39499 GOMP_DEVICE_NVIDIA_PTX.
39501 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39504 * stmt.c (emit_case_nodes): Use void_type_node instead of
39505 NULL_TREE as LABEL_DECL type.
39507 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
39509 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
39511 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
39512 symbolic references to data to be forced to constant memory on the
39515 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
39517 PR tree-optimization/65002
39518 * tree-cfg.c (pass_data_fixup_cfg): Don't update
39520 * tree-sra.c (some_callers_have_no_vuse_p): New.
39521 (ipa_early_sra): Reject functions whose callers
39522 assume function is read only.
39524 2015-02-13 Richard Biener <rguenther@suse.de>
39527 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
39528 for LTO produced CUs.
39530 2015-02-13 Bin Cheng <bin.cheng@arm.com>
39532 PR tree-optimization/64705
39533 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
39534 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
39535 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
39536 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
39537 expand_simple_operations.
39539 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
39540 Richard Henderson <rth@redhat.com>
39543 * cgraphunit.c (cgraph_node::finalize_function): Set definition
39544 before notice_global_symbol.
39545 (varpool_node::finalize_decl): Likewise.
39546 * varasm.c (default_binds_local_p_2): Rename from
39547 default_binds_local_p_1, add weak_dominate argument. Use direct
39548 returns instead of assigning to local variable. Unify varpool and
39549 cgraph paths via symtab_node. Reject undef weak variables before
39550 testing visibility. Reorder tests for simplicity.
39551 (default_binds_local_p): Use default_binds_local_p_2.
39552 (default_binds_local_p_1): Likewise.
39553 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
39555 (default_elf_asm_output_external): Emit visibility when specified.
39557 2015-02-13 Alan Modra <amodra@gmail.com>
39559 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
39560 code setting up r11 for out-of-line fp restore.
39562 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
39564 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
39565 (muser-mode): Likewise.
39567 2015-02-13 Alan Modra <amodra@gmail.com>
39569 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
39570 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
39572 2015-02-12 David Howells <dhowells@redhat.com>
39574 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
39576 * tree-ssa-uninit.c (dump_predicates): Likewise.
39577 * opts.c (print_filtered_help): Likewise.
39579 2015-02-12 Jakub Jelinek <jakub@redhat.com>
39581 * dwarf2out.c (output_die): Use "%s", name instead of name to
39582 avoid -Wformat-security warning.
39584 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
39585 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39586 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
39587 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39589 2015-02-12 Jason Merrill <jason@redhat.com>
39591 * common.opt (-flifetime-dse): New.
39593 2015-02-12 Jakub Jelinek <jakub@redhat.com>
39596 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
39598 PR tree-optimization/65014
39599 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
39600 use original second operand of arg0 or arg1 instead of
39601 that adjusted by STRIP_NOPS.
39603 2015-02-11 Jeff Law <law@redhat.com>
39606 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
39607 that needs to be queued, just queue it for a single cycle.
39609 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
39611 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
39612 bodies of thunks; comment on why.
39613 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
39614 symbols are extern.
39616 2015-02-11 Richard Henderson <rth@redhat.com>
39619 * tree-eh.c (mark_reachable_handlers): Mark source and destination
39620 regions of __builtin_eh_copy_values.
39622 2015-02-11 Jakub Jelinek <jakub@redhat.com>
39624 PR middle-end/65003
39625 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
39626 ultimate alias is MEM with SYMBOL_REF satisfying
39627 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
39628 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
39630 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
39632 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
39633 "diagnostic-core.h".
39634 (main): Initialize progname, and call diagnostic_initialize.
39636 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
39637 instead of __OPENMP_TARGET__.
39639 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
39640 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
39641 hard-coding PTX_ID.
39643 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
39645 * doc/sourcebuild.texi (pie_enabled): Document.
39647 2015-02-11 Martin Liska <mliska@suse.cz>
39650 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
39651 a return value for call to a function that is noreturn.
39653 2015-02-11 Richard Biener <rguenther@suse.de>
39656 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
39659 2015-02-11 Andrew Pinski <apinski@cavium.com>
39662 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
39663 Change the first argument type to size_type_node and add another
39665 (aarch64_simd_expand_builtin): Handle the new argument to
39666 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
39667 print an out when the first two arguments are not
39668 nonzero integer constants.
39669 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
39670 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
39672 2015-02-11 Jakub Jelinek <jakub@redhat.com>
39675 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
39676 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
39677 (ix86_set_current_function): Rewritten.
39678 (ix86_add_new_builtins): Temporarily clear current_target_pragma
39679 when creating builtin fndecls.
39681 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39684 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
39686 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
39687 have no comdat group.
39688 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
39689 (lto_output_varpool_node): Always output alias info.
39690 (output_refs): Output refs of boundary aliases, too.
39691 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
39692 (output_symtab): Output call eges in thunks in boundary.
39693 (get_alias_symbol): Remove.
39694 (input_node, input_varpool_node): Do not special case weakrefs.
39695 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
39696 alias and thunks targets in the boundary; do not take removed symbols
39697 from their comdat groups.
39698 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
39699 (cgraph_node::global_info): Remove.
39700 (cgraph_node::rtl_info): Look through aliases and thunks.
39701 * cgrpah.h (global_info): Remove.
39702 (non_local_p): Remove.
39704 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39705 Sandra Loosemore <sandra@codesourcery.com>
39707 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
39708 to inline asm. List dialects in proper order.
39710 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39711 Sandra Loosemore <sandra@codesourcery.com>
39713 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
39715 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39717 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
39718 modified) reference to Solaris.
39720 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
39722 * doc/extend.texi (Extended Asm): Fix typos.
39724 2015-02-10 Jakub Jelinek <jakub@redhat.com>
39727 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
39729 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
39732 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
39733 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
39734 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
39735 * config/sh/constraints.md (Ara, Add): New constraints.
39736 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
39738 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
39739 atomic_mem_operand_0. Don't use force_reg on the memory address.
39740 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
39741 Sra constraint. Convert to insn_and_split. Add workaround for
39743 (atomic_compare_and_swap<mode>_hard): Copy to
39744 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
39745 Use atomic_mem_operand_0 predicate.
39746 (atomic_compare_and_swap<mode>_soft_gusa,
39747 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
39748 AraAdd constraints.
39749 (atomic_compare_and_swap<mode>_soft_tcb,
39750 atomic_compare_and_swap<mode>_soft_imask,
39751 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
39752 atomic_mem_operand_0 predicate and SraSdd constraints.
39753 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
39755 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
39756 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
39757 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
39758 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
39759 force_reg on the memory address.
39760 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
39761 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
39762 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
39763 atomic_mem_operand_1 predicate and Sra constraint.
39764 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
39765 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
39766 Use atomic_mem_operand_1 predicate.
39767 (atomic_<fetchop_name><mode>_hard): Copy to
39768 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
39769 Use atomic_mem_operand_1 predicate.
39770 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
39771 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
39772 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
39773 insn_and_split. Use atomic_mem_operand_1 predicate.
39774 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
39775 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
39776 Use atomic_mem_operand_1 predicate.
39777 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
39778 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
39779 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
39780 in generated insn with original mem operand before emitting the insn.
39781 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
39782 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
39783 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
39784 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
39785 Use atomic_mem_operand_1 predicate and AraAdd constraints.
39786 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
39787 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
39788 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
39789 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
39790 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
39791 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
39792 atomic_not_fetch<mode>_soft_tcb,
39793 atomic_<fetchop_name>_fetch<mode>_soft_imask,
39794 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
39795 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
39796 Use atomic_mem_operand_1 predicate and SraSdd constraints.
39798 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
39800 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
39801 and 3 earlyclobber operands.
39803 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39805 * common.opt (fstack-reuse): Mark as optimization.
39807 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39810 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
39812 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
39814 PR tree-optimization/64326
39815 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
39817 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
39819 PR gcov-profile/61889
39820 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
39822 2015-02-10 Richard Biener <rguenther@suse.de>
39824 PR tree-optimization/64995
39825 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
39826 value we use is final.
39827 (visit_reference_op_store): Always valueize op.
39828 (visit_use): Properly valueize vuses.
39830 2015-02-10 Richard Biener <rguenther@suse.de>
39832 PR tree-optimization/64909
39833 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
39834 pass a scalar-stmt count estimate to the cost model.
39835 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
39837 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
39839 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
39840 enabled by default together with var-tracking.
39842 2015-02-10 Nick Clifton <nickc@redhat.com>
39844 * config/rl78/rl78.c: Remove DIV attribute code accidentally
39845 included in previous rl78 commit.
39847 2015-02-10 Richard Biener <rguenther@suse.de>
39849 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
39850 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
39851 return the bitpack.
39853 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
39855 PR gcov-profile/61889
39856 * config.in: regenerate.
39857 * configure.in: Likewise.
39858 * configure.ac: Check for ftw.h.
39859 * gcov-tool.c: Check for ftw.h before using nftw.
39861 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
39864 * ipa-visibility.c (update_visibility_by_resolution_info): Only
39865 assert when not in lto mode.
39867 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
39869 * ira-color.c (setup_left_conflict_sizes_p): Simplify
39870 initialization/assignment of conflict_size.
39872 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
39875 * ipa-cp.c (gather_caller_stats): Skip thunks.
39876 (propagate_constants_topo): Skip aliases.
39878 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
39881 * config/sh/sh.c (sh_option_override): Don't change
39882 -freorder-blocks-and-partition to -freorder-blocks even when
39883 unwinding is enabled.
39884 (sh_can_follow_jump): Return false if the followee jump is
39885 a crossing jump when -freorder-blocks-and-partition is specified.
39886 * config/sh/sh.md (*jump_compact_crossing): New insn.
39888 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
39889 Kaz Kojima <kkojima@gcc.gnu.org>
39892 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
39893 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
39894 (sh_can_redirect_branch): Rename to ...
39895 (sh_can_follow_jump): ... this. Constify argument types.
39896 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
39897 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
39898 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
39899 * doc/tm.texi: Regenerate.
39901 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39904 * builtins.c (expand_builtin): Call targetm.expand_builtin
39905 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
39907 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39910 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
39912 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39915 * ipa-icf.c (set_local): New function.
39916 (sem_function::merge): Use it.
39918 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39920 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
39921 (add_type_duplicate): Fix comparison of BINFOs.
39923 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39925 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
39926 on getting VOID pointer.
39928 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39931 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
39934 2015-02-09 Richard Biener <rguenther@suse.de>
39936 * genmatch.c (replace_id): Copy expr_type.
39938 2015-02-09 Richard Biener <rguenther@suse.de>
39940 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
39941 (streamer_write_tree_bitfields): Declare.
39942 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
39943 properly unpack padding.
39944 (unpack_value_fields): Inline ...
39945 (streamer_read_tree_bitfields): ... here.
39946 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
39947 and properly add padding bits.
39948 (streamer_pack_tree_bitfields): Fold into ...
39949 (streamer_write_tree_bitfields): ... this new function,
39950 exposing the bitpack object.
39951 * lto-streamer-out.c (lto_write_tree_1): Call
39952 streamer_write_tree_bitfields.
39954 2015-02-09 Richard Biener <rguenther@suse.de>
39956 PR tree-optimization/54000
39957 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
39958 (struct ivopts_data): Add loop_loc member.
39959 (tree_ssa_iv_optimize_loop): Dump loop location.
39960 (create_new_ivs): Likewise, also dump number of IVs generated.
39962 2015-02-09 Martin Liska <mliska@suse.cz>
39964 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
39965 just if not yet registered.
39966 (ipa_icf_generate_summary): Register callgraph hooks.
39968 2015-02-08 Andrew Pinski <apinski@cavium.com>
39970 * config/aarch64/aarch64.c (gty_dummy): Delete.
39972 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39975 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
39976 (cgraph_node::local_p): Remove thunk related FIXME.
39978 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39981 * i386.c (ix86_function_regparm): Look through aliases to see if callee
39982 is local and optimized.
39983 (ix86_function_sseregparm): Likewise; also use target's SSE math
39984 settings; error out instead of silently generating wrong code
39986 (init_cumulative_args): Look through aliases.
39988 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39991 * ipa-split.c (execute_split_functions): Split if function has aliases.
39993 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39996 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
39997 aliases before trying to expand it.
39998 (cgraph_node::expand_thunk): Fix formating.
40000 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
40002 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
40003 (Using Assembly Language with C): Expand introduction.
40004 (Basic Asm): Copy-edit. Add more information about uses of
40006 (Extended Asm): Copy-edit. Document new escape syntax and
40008 (Global Reg Vars): Copy-edit.
40009 (Local Reg Vars): Likewise.
40011 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
40015 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
40016 (DBX_CONTIN_CHAR): Define.
40018 2015-02-06 Sebastian Pop <s.pop@samsung.com>
40019 Brian Rzycki <b.rzycki@samsung.com>
40021 PR tree-optimization/64878
40022 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
40023 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
40024 Stop recursion at loop phi nodes after having visited a loop phi node.
40026 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40028 * toplev.c (process_options): Change flag_ipa_ra before creating
40029 optimization_{default,current}_node.
40032 * cgraphunit.c (cgraph_node::expand_thunk): If
40033 restype is not is_gimple_reg_type nor the thunk_fndecl
40034 returns aggregate_value_p, set restmp to a temporary variable
40035 instead of resdecl.
40037 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
40039 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
40041 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40044 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
40045 add a general secondary reload handler for SDmode, unless we have
40046 both read/write support for SDmode.
40048 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40050 PR middle-end/64937
40051 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
40052 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
40053 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
40054 1 before, push it to abstract_vec.
40055 (dwarf2out_abstract_function): Adjust caller. Don't call
40056 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
40057 DECL_ABSTRACT_P flags for all abstract_vec elts.
40059 2015-02-06 Renlin Li <renlin.li@arm.com>
40061 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
40063 * tree-ssa.c (execute_update_addresses_taken): Likewise.
40065 2015-02-06 Jeff Law <law@redhat.com>
40068 * config/h8300/h8300.c (push): New argument "in_prologue".
40069 Pass "in_prologue" along to "F".
40070 (h8300_push_pop): Corresponding changes.
40071 (h8300_expand_prologue): Likewise.
40072 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
40074 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40076 PR rtl-optimization/64957
40078 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
40079 IOR rather than for AND.
40081 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
40084 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
40085 of shift-add and (add + shift) operations. Rename local variable.
40087 2015-02-05 Jeff Law <law@redhat.com>
40090 * config/h8300/constraints.md (U): Correctly dectect
40091 "eightbit_data" memory addresses.
40092 * config/h8300/h8300.c (eightbit_constant_address_p): Also
40093 handle (const (plus (symbol_ref (x)))) where x is declared
40094 as an 8-bit data memory address.
40095 * config/h8300/h8300.md (call, call_value): Correctly detect
40096 "funcvec" functions.
40099 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
40100 24 to 28 bits for the H8/300.
40102 2015-02-06 Alan Modra <amodra@gmail.com>
40105 * config/rs6000/rs6000.c (chain_already_loaded): New function.
40106 (rs6000_call_aix): Use it.
40108 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
40110 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
40113 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
40115 * config/h8300/constraints.md ("U" constraint): Use strict
40116 variant of REG_OK_FOR_BASE_P after reload has started.
40118 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
40120 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
40121 define to zero if !TARGET_NEON.
40122 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
40124 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40125 Trevor Saunders <tsaunders@mozilla.com>
40128 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
40130 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40133 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
40134 when removing varpool nodes.
40136 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40139 * varpool.c (varpool_node::remove): Fix order of variables.
40141 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40144 * ipa-inline.c (inline_small_functions): Fix ordering issue between
40145 speculation resolution and key updates.
40147 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40149 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
40150 about not letting any speculative edges unupdated.
40152 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40155 * gcov-io.c (gcov_var): Export.
40157 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40159 PR middle-end/64922
40160 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
40161 edges that become speculative.
40163 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40165 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
40166 or DW_LANG_Fortran08.
40167 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
40169 (gen_compile_unit_die): Handle "GNU Fortran2003" and
40170 "GNU Fortran2008" language strings.
40171 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
40172 * langhooks.h (lang_GNU_Fortran): New prototype.
40173 * langhooks.c (lang_GNU_Fortran): New function.
40174 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
40177 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40179 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
40180 (RTX_OK_FOR_OLO10_P): Likewise.
40182 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40184 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
40186 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40188 PR middle-end/64922
40189 * gimple.c: Include gimple-ssa.h.
40190 (maybe_remove_unused_call_args): New function.
40191 * gimple.h (maybe_remove_unused_call_args): Declare.
40192 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
40193 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
40194 * gimple-fold.c (gimple_fold_call): Likewise.
40196 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
40198 PR rtl-optimization/64905
40199 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
40200 pointer alignment if it isn't needed.
40202 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40204 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
40205 cortex-a72.cortex-a53.
40206 * config/aarch64/aarch64-tune.md: Regenerate.
40207 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
40209 2015-02-04 Nick Clifton <nickc@redhat.com>
40211 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
40214 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40216 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
40217 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
40218 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
40220 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
40221 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
40222 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
40223 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
40224 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
40225 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
40226 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
40227 * tree-core.h (enum built_in_function): In between
40228 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
40229 for builtins that use DEF_BUILTIN_CHKP macro.
40231 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
40234 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
40235 operands for tcc_comparison exprs. Fix typos.
40238 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
40239 of two XORs that have an intervening AND or IOR.
40242 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
40243 simplification of XOR of AND to not allocate new rtx before
40244 committing to a simplification.
40246 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40248 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
40249 manual swaps in all peepholes.
40251 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40253 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
40254 of manual swapping implementation.
40255 (aarch64_expand_vec_perm_const_1): Likewise.
40257 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
40259 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
40260 (generic_addrcost_table): Remove NAMED_PARAM.
40261 (cortexa57_addrcost_table): Likewise.
40262 (xgene1_addrcost_table): Likewise.
40263 (generic_regmove_table): Likewise.
40264 (cortexa53_regmove_table): Likewise.
40265 (xgene1_regmove_table): Likewise.
40266 (generic_vector_table): Likewise.
40267 (cortexa57_vector_table): Likewise.
40268 (xgene1_vector_table): Likewise.
40269 (generic_tunings): Likewise.
40270 (cortexa53_tunings): Likewise.
40271 (cortexa57_tunings): Likewise.
40272 (xgene1_tunings): Likewise.
40274 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40276 * config/arm/arm-cores.def: Add cortex-a72 and
40277 cortex-a72.cortex-a53.
40278 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
40279 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
40280 * config/arm/arm-tune.md: Regenerate.
40281 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
40282 "cortex-a72.cortex-a53".
40283 * doc/invoke.texi (ARM Options/-mtune): Likewise.
40285 2015-02-04 Nick Clifton <nickc@redhat.com>
40288 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
40290 (nonimmediate_di_operand): Likewise.
40292 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
40293 prefixes of known F5 using MSP430 MCUs.
40295 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40297 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
40298 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
40299 instead of __builtin_sqrt.
40301 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
40303 * varasm.c (do_assemble_alias): Follow transparent alias
40305 (default_assemble_visibility): Follow transparent alias
40306 chain for decl name.
40308 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
40310 PR middle-end/62103
40311 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
40312 to compute size of referenced value in the constant case.
40314 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40316 PR rtl-optimization/64756
40317 * cse.c (invalidate_dest): New function.
40318 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
40319 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
40320 invalidate and do not record it.
40322 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
40325 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
40326 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
40327 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
40328 atomic_nand<mode>_soft_tcb): New insns.
40329 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
40330 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
40331 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
40332 Split into atomic_not_fetchsi_hard if operands[0] is unused.
40333 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
40334 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40335 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
40336 atomic_not<mode>_hard if operands[0] is unused.
40337 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
40338 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
40339 if operands[0] is unused.
40340 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
40341 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
40342 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
40343 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40345 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
40346 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40347 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
40348 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
40349 if operands[0] is unused.
40350 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
40351 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
40352 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
40353 atomic_nand_fetchsi_hard if operands[0] is unused.
40354 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
40355 atomic_nand<mode>_hard if operands[0] is unused.
40356 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
40357 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
40358 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
40359 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40360 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
40361 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
40362 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
40363 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40364 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
40365 atomic_not<mode>_hard if operands[0] is unused.
40366 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
40367 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40369 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40370 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40371 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
40372 atomic_nand<mode>_hard if operands[0] is unused.
40373 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40374 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40376 2015-02-03 David Malcolm <dmalcolm@redhat.com>
40379 * Makefile.in (GCC_OBJS): Add gcc-main.o.
40380 * gcc-main.c: New file, containing "main" taken from gcc.c.
40381 * gcc.c (do_self_spec): Free decoded_options.
40382 (class driver): Move declaration to gcc.h.
40383 (main): Move declaration and implementation to new file
40385 (driver_get_configure_time_options): New function.
40386 * gcc.h (class driver): Move this declaration here, from
40388 (driver_get_configure_time_options): New declaration.
40390 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
40392 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
40393 cross-module inlining.
40394 * cgraph.h (cgraph_node): Add flag merged.
40395 * ipa-icf.c (sem_function::merge): Maintain it.
40397 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
40399 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
40400 instead of OBJECT_P.
40402 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
40405 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
40406 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
40407 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
40408 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
40410 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40413 * combine.c (reg_n_sets_max): New variable.
40414 (can_change_dest_mode, reg_nonzero_bits_for_combine,
40415 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
40416 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
40417 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
40418 (rest_of_handle_combine): Initialize reg_n_sets_max.
40420 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
40422 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
40423 if some always_inline was inlined, apply changes before inlining
40426 2015-02-02 David Malcolm <dmalcolm@redhat.com>
40429 * config/arm/arm.c (arm_option_override): Set
40430 arm_selected_arch/cpu/tune to NULL on entry.
40432 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
40433 Andrew Pinski <pinskia@gcc.gnu.org>
40434 Jakub Jelinek <jakub@gcc.gnu.org>
40437 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
40438 integer typing for small model. Use IN_RANGE.
40440 2015-02-02 Richard Biener <rguenther@suse.de>
40442 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
40443 * tree-vrp.c (vrp_valueize_1): Likewise.
40445 2015-02-02 Alan Modra <amodra@gmail.com>
40447 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
40448 than mem for toc_restore.
40449 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
40450 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
40451 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
40453 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
40456 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
40457 explicit default options.
40459 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
40462 * ipa-utils.c (ipa_merge_profiles): Add release argument.
40463 * ipa-icf.c (sem_function::merge): Do not release body when merging.
40464 * ipa-utils.h (ipa_merge_profiles): Update prototype.
40466 2015-02-01 Jakub Jelinek <jakub@redhat.com>
40469 * cfgexpand.c (deep_ter_debug_map): New variable.
40470 (avoid_deep_ter_for_debug): New function.
40471 (expand_debug_expr): If TERed SSA_NAME is in
40472 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
40473 instead of trying to expand SSA_NAME's def stmt.
40474 (expand_debug_locations): When expanding debug bind
40475 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
40476 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
40478 (pass_expand::execute): Call avoid_deep_ter_for_debug on
40479 all debug bind stmts. Delete deep_ter_debug_map after
40480 expand_debug_location if non-NULL and clear it.
40482 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
40485 * config/sh/sync.md (atomic_fetch_notsi_hard,
40486 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
40487 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
40488 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
40489 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
40490 atomic_not_fetch<mode>_soft_imask): New insns.
40492 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40494 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
40495 (rank_for_schedule_debug): Split from ...
40496 (rank_for_schedule): ... this.
40497 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
40498 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
40500 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40502 * doc/md.texi (Machine Constraints): Alphabetize table by target.
40503 * doc/extend.texi (x86 Variable Attributes): Move section to
40504 correct alphabetization after renaming.
40505 (x86 Type Attributes): Likewise.
40506 (Target Builtins): Re-alphabetize menu.
40507 (x86 Built-in Functions): Move section to correct alphabetization
40509 (x86 transactional memory intrinsics): Likewise.
40510 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
40511 and x86 Windows Options in table and menu.
40512 (x86 Options): Move section to correct alphabetization after
40514 (x86 Windows Options): Likewise.
40516 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40518 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
40519 preferred names of the architecture and its 32- and 64-bit
40521 * doc/invoke.texi: Likewise.
40522 * doc/md.texi: Likewise.
40524 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40527 * config/i386/predicates.md (address_no_seg_operand): Reject
40528 non-CONST_INT_P operands in invalid mode.
40530 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40532 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
40533 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
40534 * config/i386/predicates.md (address_no_seg_operand): Call
40535 address_operand with VOIDmode.
40536 (vsib_address_operand): Ditto.
40537 (address_mpx_no_base_operand): Ditto.
40538 (address_mpx_no_index_operand): Ditto.
40540 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40543 * lra-constraints.c (original_subreg_reg_mode): New.
40544 (simplify_operand_subreg): Try to simplify subreg of const. Use
40545 original_subreg_reg_mode for it.
40546 (swap_operands): Update original_subreg_reg_mode.
40547 (curr_insn_transform): Set up original_subreg_reg_mode.
40549 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40552 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
40554 (process_alt_operands): Use it.
40555 (curr_insn_transform): Check the optional reload pseudo class is
40558 2015-01-30 Joseph Myers <joseph@codesourcery.com>
40560 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
40561 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
40563 * toplev.h (init_asm_output): Update comment on use of
40564 UNKNOWN_LOCATION with fatal_error.
40565 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
40566 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
40567 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
40568 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
40569 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
40570 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
40571 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
40572 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
40573 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
40574 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
40575 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
40576 fatal_error changed to pass input_location as first argument.
40578 2015-01-30 Martin Liska <mliska@suse.cz>
40580 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
40581 in #pragma GCC diagnostic guards.
40583 2015-01-30 Richard Biener <rguenther@suse.de>
40585 PR tree-optimization/64829
40586 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
40587 not add a widening conversion pattern but hand off extra
40588 widenings to callers.
40589 (vect_recog_widen_mult_pattern): Handle extra widening produced
40590 by vect_handle_widen_op_by_const.
40591 (vect_recog_widen_shift_pattern): Likewise.
40592 (vect_pattern_recog_1): Remove excess vertical space in dumping.
40593 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
40594 (vect_init_vector_1): Likewise.
40595 (vect_get_vec_def_for_operand): Likewise.
40596 (vect_finish_stmt_generation): Likewise.
40597 (vectorizable_load): Likewise.
40598 (vect_analyze_stmt): Likewise.
40599 (vect_is_simple_use): Likewise.
40601 2015-01-29 Jeff Law <law@redhat.com>
40603 * combine.c (try_combine): Fix typo in comment.
40605 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
40608 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
40609 (rs6000_stack_info): Add assert.
40610 (rs6000_output_savres_externs): New function, split off from...
40611 (rs6000_output_function_prologue): ... here. Do not call it for
40614 2015-01-29 Jeff Law <law@redhat.com>
40617 * combine.c (try_combine): If I0 is a memory load and I3 a store
40618 to a related address, increase the "goodness" of doing a 4-insn
40619 combination with I0-I3.
40620 (make_field_assignment): Handle SUBREGs in the ior+and case.
40622 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
40624 PR tree-optimization/64746
40625 * tree-if-conv.c (mask_exists): New function.
40626 (predicate_mem_writes): Save created mask with given size for further
40628 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
40629 (ifcvt_repair_bool_pattern): Collect all statements that are root
40630 of bool pattern and use iterative algorithm to remove multiple uses
40631 of predicates, display number of required iterations.
40633 2015-01-29 Richard Biener <rguenther@suse.de>
40635 PR tree-optimization/64853
40636 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
40637 stmt will get simulated again.
40638 * tree-ssa-ccp.c (valueize_op_1): Likewise.
40640 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40642 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
40643 return_in_pc. Remove redundant assignments.
40644 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
40645 (arm_expand_epilogue): Don't compare boolean with true in if condition.
40647 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
40649 * config/i386/i386.c (ix86_mode_after): Make static.
40651 2015-01-29 Richard Biener <rguenther@suse.de>
40653 PR tree-optimization/64844
40654 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
40655 dump cost model analysis.
40656 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
40657 Do not register adjusted load/store costs here.
40659 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
40660 Uros Bizjak <ubizjak@gmail.com>
40662 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
40663 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
40664 using x86_use_pseudo_pic_reg.
40665 * config/i386/i386.c (ix86_conditional_register_usage): Remove
40666 support for fixed PIC register.
40667 (ix86_use_pseudo_pic_reg): Not static any more.
40669 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
40671 PR middle-end/64805
40672 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
40673 to avoid error in cgraph node verification.
40675 2015-01-29 Marek Polacek <polacek@redhat.com>
40677 * doc/standards.texi: Reflect that the default for C is gnu11.
40679 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
40682 * reorg.c (switch_text_sections_between_p): New function.
40683 (relax_delay_slots): Call it when testing if the jump insn
40684 is removable. Use targetm.can_follow_jump when testing if
40685 the conditional branch can follow an unconditional jump.
40687 2015-01-27 Caroline Tice <cmtice@google.com>
40689 Committing VTV Cywin/Ming patch for Patrick Wollgast
40690 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
40691 if -fvtable-verify=preinit/std is used.
40692 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
40693 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
40694 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
40695 if -fvtable-verify=preinit/std is used.
40696 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
40697 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
40698 if -fvtable-verify=preinit/std is used.
40699 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
40700 * config/i386/mingw32.h (LIB_SPEC): Likewise.
40701 * varasm.c (assemble_variable): Add code to properly set the comdat
40702 section and name for the .vtable_map_vars section in case the
40703 target is PE or COFF.
40705 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
40708 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
40709 make sane BB profile.
40710 (cgraph_node::expand_thunk): Make sane BB profile.
40711 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
40712 * cgraph.h (init_lowered_empty_function): Update prototype.
40713 * config/i386/i386.c (make_resolver_func): Update call.
40714 * predict.c (gate): Disable branch prediction pass if
40715 profile is already there.
40717 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
40719 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
40720 * opth-gen.awk: Likewise.
40721 * common.opt: Mark flag_fp_contract_mode as Optimization.
40723 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
40725 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
40726 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
40728 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
40731 * config/sh/predicates.md (atomic_arith_operand,
40732 atomic_logical_operand): Remove.
40733 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
40734 (atomic_arith_operand_0): New predicate.
40735 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
40736 Use atomic_arith_operand_0 for input values.
40737 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
40738 atomic_compare_and_swap<mode>_soft_gusa,
40739 atomic_compare_and_swap<mode>_soft_tcb,
40740 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
40741 arith_reg_operand instead of register_operand.
40742 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
40743 atomic_arith_operand_0 for newval input.
40744 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
40745 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
40746 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
40747 arith_reg_operand instead of register_operand.
40748 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
40749 fetchop_predicate_1, fetchop_constraint_1_llcs,
40750 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
40751 fetchop_constraint_1_imask): New code iterator attributes.
40752 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
40753 register_operand. Use fetchop_predicate_1.
40754 (atomic_fetch_<fetchop_name>si_hard,
40755 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
40756 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
40757 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
40758 and arith_reg_operand instead of register_operand. Use
40759 fetchop_predicate_1, fetchop_constraint_1_gusa.
40760 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
40761 and arith_reg_operand instead of register_operand. Use
40762 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
40764 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
40765 and arith_reg_operand instead of register_operand. Use
40766 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
40768 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
40769 register_operand. Use atomic_logical_operand_1.
40770 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
40771 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
40772 arith_reg_operand instead of register_operand.
40773 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
40774 Use arith_reg_dest and arith_reg_operand instead of register_operand.
40775 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
40776 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
40777 register_operand. Use fetchop_predicate_1.
40778 (atomic_<fetchop_name>_fetchsi_hard,
40779 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
40780 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40781 fetchop_constraint_1_llcs.
40782 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
40783 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40784 fetchop_constraint_1_gusa.
40785 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
40786 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40787 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
40788 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
40789 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40790 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
40791 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
40792 register_operand. Use atomic_logical_operand_1.
40793 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
40794 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
40795 arith_reg_operand instead of register_operand.
40796 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
40797 arith_reg_operand instead of register_operand. Use logical_operand
40798 and K08. Adjust asm sequence to allow R0 usage.
40799 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
40800 arith_reg_operand instead of register_operand. Use logical_operand
40803 2015-01-28 Jakub Jelinek <jakub@redhat.com>
40806 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
40807 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
40808 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
40809 only get_full_len HOST_WIDE_INTs from get_val () array rather than
40810 all bits in *val_wide.
40812 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
40814 * varpool.c (tls_model_names): Fix names.
40815 (varpool_node::dump): Dump tls- prefix for tls models.
40817 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
40818 Bernd Schmidt <bernds@codesourcery.com>
40819 Nathan Sidwell <nathan@codesourcery.com>
40821 * config/nvptx/mkoffload.c: New file.
40822 * config/nvptx/t-nvptx: Add build rules for it.
40823 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
40824 (extra_programs): Add mkoffload.
40825 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
40827 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
40829 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
40831 PR middle-end/64809
40832 * cfgexpand.c (reorder_operands): Skip debug gimples.
40834 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
40836 PR tree-optimization/64277
40837 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
40838 range info when possible to refine estimation.
40840 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
40842 PR tree-optimization/64718
40843 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
40844 be a 16bit unsigned integer when n->range is 16.
40845 (bswap_replace): Convert src to that type if necessary for all bswap
40846 sizes. Fix rotation right notation in nearby comment. Use bswap_type
40847 set in pass_optimize_bswap::execute ().
40849 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
40851 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
40852 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
40853 integer and floating point variants.
40854 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
40856 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
40858 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
40859 for all vector modes.
40861 2015-01-28 Jakub Jelinek <jakub@redhat.com>
40864 * doc/sourcebuild.texi (comdat_group): Document.
40866 2015-01-28 Terry Guo <terry.guo@arm.com>
40868 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
40870 2015-01-27 David Malcolm <dmalcolm@redhat.com>
40872 * toplev.c (print_version): Add param "show_global_state", and
40873 only print GGC and plugin information if it is true.
40874 (init_asm_output): Pass in "true" for the new param when calling
40876 (process_options): Likewise.
40877 (toplev::main): Likewise.
40878 * toplev.h (print_version): Add new param to decl.
40880 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
40884 * tree.c (lookup_binfo_at_offset): New function.
40885 (get_binfo_at_offset): Use it.
40887 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
40890 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
40891 on vtable being vtable.
40893 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
40895 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
40896 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
40897 -mhotpatch= option.
40898 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
40899 -mno-hotpatch options. Change syntax of -mhotpatch= option.
40900 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
40902 (s390_hotpatch_trampoline_halfwords_max): Renamed.
40903 (s390_hotpatch_hw_max): New name.
40904 (s390_hotpatch_trampoline_halfwords): Renamed.
40905 (s390_hotpatch_hw_before_label): New name.
40906 (get_hotpatch_attribute): Removed.
40907 (s390_hotpatch_hw_after_label): New name.
40908 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
40910 (s390_attribute_table): Ditto.
40911 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
40912 (s390_function_num_hotpatch_hw): New name.
40913 Remove special handling of inline functions and hotpatching.
40914 Return number of nops before and after the function label.
40915 (s390_can_inline_p): Removed.
40916 (s390_asm_output_function_label): Emit a configurable number of nops
40917 after the function label.
40918 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
40919 (TARGET_CAN_INLINE_P) Removed.
40920 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
40922 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40923 Jiong Wang <jiong.wang@arm.com>
40925 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
40927 (cb<optab><mode>1): Likewise.
40928 * config/aarch64/iterators.md (bcond): New define_code_attr.
40930 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40932 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
40935 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40937 * config/s390/s390.c (s390_register_move_cost): Increase costs for
40940 2015-01-27 Richard Biener <rguenther@suse.de>
40942 * tree-vrp.c (update_value_range): Intersect the range with
40943 old recorded SSA name range information.
40945 2015-01-27 Nick Clifton <nickc@redhat.com>
40947 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
40948 BC, DE and HL registers directly, not via AX.
40949 When decrementing the stack pointer by a large amount, transfer SP
40950 into AX and perform the subtraction there.
40951 (rl78_expand_epilogue): Perform the inverse of the above
40954 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40956 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
40958 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40959 Yury Gribov <y.gribov@samsung.com>
40962 * ubsan.c (ubsan_source_location): Refactor code.
40963 (ubsan_type_descriptor): Update type size. Refactor code.
40965 2015-01-27 Richard Biener <rguenther@suse.de>
40967 PR tree-optimization/56273
40968 PR tree-optimization/59124
40969 PR tree-optimization/64277
40970 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
40971 from the first VRP pass.
40973 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40976 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
40977 handle the first argument in the same loop as all the other arguments.
40979 PR rtl-optimization/61058
40980 * jump.c (cleanup_barriers): Update basic block boundaries
40981 if BLOCK_FOR_INSN is non-NULL on PREV.
40983 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
40985 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
40986 bounds narrowing, already instrumented calls and calls to
40987 not instrumentable functions.
40989 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40991 PR tree-optimization/64807
40992 * wide-int.cc (wi::divmod_internal): Clear
40993 b_dividend[dividend_blocks_needed].
40995 2015-01-26 DJ Delorie <dj@redhat.com>
40997 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
40998 volatile memory references.
41000 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
41003 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
41005 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
41006 shifts if it already fits into K08.
41008 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41011 * ipa-inline.c (inline_small_functions): Print "unknown" even
41012 if edge->call_stmt is non-NULL, but has builtins or unknown
41015 PR middle-end/64421
41016 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
41017 with asterisk, skip the first character.
41019 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41022 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
41025 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
41028 * config/i386/i386.md (*movdi_internal): Also check operand 0
41029 to determine TYPE_LEA operand.
41030 (*movsi_internal): Ditto.
41032 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41034 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
41035 OPTION_MASK_QUAD_MEMORY_ATOMIC.
41037 2015-01-26 Renlin Li <renlin.li@arm.com>
41039 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
41041 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
41044 2015-01-26 Richard Biener <rguenther@suse.de>
41046 PR middle-end/64764
41047 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
41048 combining two BIT_AND_EXPR predicates.
41050 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41053 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
41055 2015-01-26 Terry Guo <terry.guo@arm.com>
41057 * config/arm/arm.c (arm_file_start): Update the assignment of
41058 Tag_ABI_HardFP_use.
41060 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
41062 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
41064 config/arm/arm.md: Include the new Cortex-A57 model.
41065 (generic_sched): Don't use generic_sched when tuning for
41068 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
41069 Uros Bizjak <ubizjak@gmail.com>
41071 * config/i386/i386.c (get_builtin_code_for_version): Add
41072 support for BMI and BMI2 multiversion functions.
41074 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41076 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
41077 (extract_bit_field): Likewise.
41078 (extract_low_bits): Likewise.
41079 (expand_mult): Likewise.
41080 (expand_mult_highpart_adjust): Likewise.
41082 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
41084 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
41085 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
41086 * config/i386/i386.c (processor_model): Add
41087 M_INTEL_COREI7_BROADWELL.
41088 (arch_names_table): Add "broadwell".
41090 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
41099 * config/sh/sh-protos.h
41100 (sh_extending_set_of_reg::can_use_as_unextended_reg,
41101 sh_extending_set_of_reg::use_as_unextended_reg,
41102 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
41103 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
41104 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
41105 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
41106 (sh_treg_insns): New class.
41107 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
41108 (scope_counter): New class.
41109 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
41110 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
41111 sh_extending_set_of_reg::can_use_as_unextended_reg,
41112 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
41113 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
41114 sh_split_treg_set_expr): New functions.
41115 (addsubcosts): Handle treg_set_expr.
41116 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
41117 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
41118 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
41119 (sh_insn_operands_modified_between_p): Make non-static.
41120 * config/sh/predicates.md (zero_extend_movu_operand): Allow
41121 simple_mem_operand in addition to displacement_mem_operand.
41122 (zero_extend_operand): Don't allow zero_extend_movu_operand.
41123 (treg_set_expr, treg_set_expr_not_const01,
41124 arith_reg_or_treg_set_expr): New predicates.
41125 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
41126 arith_or_int_operand instead of logical_operand. Convert to
41127 insn_and_split. Try to optimize constant operand in splitter.
41128 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
41129 (*tstqi_t_zero): Delete.
41130 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
41131 (tstsi_t_and_not): Delete.
41132 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
41133 Convert to insn_and_split.
41134 (unnamed split, tstsi_t_zero_extract_xor,
41135 tstsi_t_zero_extract_subreg_xor_little,
41136 tstsi_t_zero_extract_subreg_xor_big): Delete.
41137 (*tstsi_t_shift_mask): New insn_and_split.
41138 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
41139 to recombine with surrounding insns when splitting.
41140 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
41141 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
41142 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
41143 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
41144 (*cbranch_div0s: Delete.
41145 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41146 Try to recombine with surrounding insns when splitting. Add operand
41148 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
41149 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
41150 *addc_r_r_msb, *addc_2r_msb): Delete.
41151 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
41153 (*addc_negreg_t): New insn_and_split.
41154 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41155 Try to recombine with surrounding insns when splitting.
41156 Add operand order variants.
41157 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
41158 insn_and_split patterns.
41159 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
41160 surrounding insns when splitting.
41161 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
41162 (*rotcl): Likewise. Add zero_extract variant.
41163 (*ashrsi2_31): New insn_and_split.
41164 (*negc): Convert to insn_and_split. Use treg_set_expr.
41165 (*zero_extend<mode>si2_disp_mem): Update comment.
41166 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
41168 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
41169 with surrounding insns when splitting.
41170 (any_treg_expr_to_reg): New insn_and_split.
41171 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
41172 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
41173 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
41174 *zero_extract_2): New single bit zero extract patterns.
41175 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
41176 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
41177 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
41178 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
41180 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
41181 register_operand for set source.
41183 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
41185 * i386.opt (prefetch_sse): New targetsave.
41186 * i386.c (ix86_function_specific_save): Save prefetch_sse.
41187 (ix86_function_specific_restore): Restore prefetch_sse and initialize
41188 ix86_cost/ix86_tune_cost.
41190 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41192 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
41193 Support the JIT by using 0 as the language type.
41195 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
41198 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
41199 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
41200 (mark_regno_live, process_bb_lives): Pass new parameter value to
41201 make_hard_regno_born.
41203 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41205 PR rtl-optimization/63637
41206 PR rtl-optimization/60663
41207 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
41208 if elt->cost is MAX_COST for ASM_OPERANDS.
41209 (find_sets_in_insn): Fix up comment typo.
41210 (cse_insn): Don't set src_volatile for all non-volatile
41211 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
41212 or with "memory" clobber. Set elt->cost to MAX_COST
41213 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
41214 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
41216 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41218 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
41221 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41223 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
41224 libgcc/config/i386/elf-lib.h.
41226 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41229 * gcc.c (print_configuration): Don't print a blank line at the end
41231 (run_attempt): ... but here unstead.
41233 PR middle-end/64734
41234 * omp-low.c (scan_sharing_clauses): Don't ignore
41235 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
41236 on target data/update constructs.
41238 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
41241 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
41242 (DEBUG_RELOAD): Removed define.
41243 (m32c_limit_reload_class): Enable traces with if DEBUG0.
41244 (m32c_function_arg): Added a type cast.
41245 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
41246 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
41247 * config/m32c/bitops.md (andqi3_16): Likewise.
41248 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
41249 (push_a01_l): Likewise.
41251 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41254 * main.c (main): Construct toplev instances with init_signals=true.
41255 * toplev.c (general_init): Add param "init_signals", and use it to
41256 conditionalize the calls to signal and host_hooks.extra_signals.
41257 (toplev::toplev): Add param "init_signals".
41258 (toplev::main): When invoking general_init, pass m_init_signals
41259 to control whether signal-handlers are installed.
41260 * toplev.h (toplev::toplev): Add param "init_signals".
41261 (toplev::m_init_signals): New field.
41263 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41266 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
41267 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
41268 latter may be affected by the former (e.g. on i686).
41270 2015-01-23 Martin Liska <mliska@suse.cz>
41272 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
41273 false positive during profiledbootstrap.
41275 2015-01-23 Tom de Vries <tom@codesourcery.com>
41278 * lto-opts.c (lto_write_options): Output non-explicit conservative
41280 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
41281 (append_compiler_options): Pass -fopenacc through.
41283 2015-01-23 Tom de Vries <tom@codesourcery.com>
41286 * lto-opts.c (lto_write_options): Output non-explicit conservative
41288 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
41289 (append_compiler_options): Pass -fopenmp through.
41291 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41294 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
41297 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
41298 * diagnostic.def (DK_ICE_NOBT): New kind.
41299 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
41300 like DK_ICE, but never print backtrace.
41301 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
41302 (internal_error_no_backtrace): New function.
41303 * gcc.c (execute): Use internal_error_no_backtrace instead of
41306 2015-01-22 Jeff Law <law@redhat.com>
41309 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
41310 improve code density for small immediate to memory case.
41311 (insv): Better handle bitfield assignments when the field is
41312 being set to all ones.
41313 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
41316 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41317 Jakub Jelinek <jakub@redhat.com>
41319 PR middle-end/64729
41320 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
41321 for !TARGET_LIBC_PROVIDES_SSP version and
41322 -fstack-protector-{all,strong,explicit} otherwise.
41323 * config/freebsd.h (LINK_SSP_SPEC): Handle
41324 -fstack-protector-{strong,explicit}.
41326 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
41327 H.J. Lu <hongjiu.lu@intel.com>
41330 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
41333 2015-01-22 Wei Mi <wmi@google.com>
41335 PR rtl-optimization/64557
41336 * dse.c (record_store): Call get_addr for mem_addr.
41337 (check_mem_read_rtx): Likewise.
41339 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
41341 * fold-const.c (const_binop): Add early return for non-tcc_binary.
41343 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
41345 * toplev.c (init_local_tick): Process the failure when read
41346 fails for random_seed.
41348 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
41349 'pretty_name' to avoid memory overflow.
41351 2015-01-22 Richard Biener <rguenther@suse.de>
41353 PR middle-end/64728
41354 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
41355 abnormal coalescing on undefined SSA names.
41357 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
41361 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
41363 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
41365 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
41367 PR middle-end/63325
41368 * fold-const.c (fold_checksum_tree): Don't include value of
41369 expr->decl_with_vis.symtab_node in the checksum.
41371 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41373 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
41375 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
41378 * gcc.c (insert_comments): New function.
41379 (try_generate_repro): Call it.
41380 (append_text): Removed.
41382 2015-01-22 Richard Biener <rguenther@suse.de>
41384 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
41385 with IL incompatible options. Properly honor user optimize
41388 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
41390 PR rtl-optimization/64682
41391 * combine.c (distribute_notes): When moving a death note for
41392 a register that is set in the new I2, make sure to put it
41393 before that new I2.
41395 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
41397 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
41398 not TARGET_DEFAULT.
41400 2015-01-21 Jakub Jelinek <jakub@redhat.com>
41403 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
41404 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
41405 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
41408 * doc/invoke.texi (-fsanitize=vptr): Document.
41410 PR rtl-optimization/62078
41411 * dse.c: Include cfgcleanup.h.
41412 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
41413 anything call purge_all_dead_edges and cleanup_cfg at the end
41416 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
41418 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
41421 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
41423 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
41426 2015-01-21 David Sherwood <david.sherwood@arm.com>
41427 Tejas Belagod <Tejas.Belagod@arm.com>
41429 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
41430 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
41431 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
41434 2015-01-21 David Sherwood <david.sherwood@arm.com>
41435 Tejas Belagod <Tejas.Belagod@arm.com>
41437 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
41438 (aarch64_reverse_mask): New decls.
41439 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
41440 (insn_count): New mode_attr.
41441 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
41442 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
41443 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
41444 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
41445 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
41446 (aarch64_simd_st4): New patterns.
41447 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
41448 (aarch64_reverse_mask): New functions.
41450 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41452 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
41454 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
41455 addressing modes for BE.
41456 (aarch64_print_operand): Add 'R' specifier.
41457 (aarch64_simd_disambiguate_copy): Delete.
41458 (aarch64_simd_emit_reg_reg_move): New function.
41459 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
41460 in define_splits for structural moves.
41461 (mov<mode>): Use less restrictive predicates.
41462 (*aarch64_mov<mode>): Simplify and only allow for LE.
41463 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
41465 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41467 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
41469 2015-01-21 Richard Henderson <rth@redhat.com>
41472 * ccmp.c (used_in_cond_stmt_p): Remove.
41473 (expand_ccmp_expr): Don't use it.
41475 2015-01-21 Nick Clifton <nickc@redhat.com>
41477 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
41480 2015-01-21 Richard Biener <rguenther@suse.de>
41482 PR middle-end/64313
41483 * tree-core.h (builtin_info, builtin_info_type): Turn from
41484 an object with two arrays into an array of an object with
41485 decl and two flags, implicit_p and declared_p.
41486 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
41487 set_builtin_decl, set_builtin_decl_implicit_p,
41488 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
41489 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
41490 * builtins.c (builtin_info): Adjust.
41491 * gimplify.c (gimplify_addr_expr): References to builtins
41492 that have been declared by the user makes them eligible for
41493 use by the compiler. Call set_builtin_decl_implicit_p on them.
41495 2015-01-20 Jeff Law <law@redhat.com>
41498 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
41499 allow pc-relative addresses in operand predicates or constraints.
41501 2015-01-21 Bin Cheng <bin.cheng@arm.com>
41503 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
41504 neon on aarch32 processors for stringops.
41506 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41509 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
41511 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41514 * ipa-inline.c: Include lto-streamer.h
41515 (report_inline_failed_reason): Output source file differences and
41516 flags on optimization/target node mismatch.
41517 (can_inline_edge_p): Consider caller to be the outer inline function;
41518 be less restrictive about matching opimize and optimize_size attributes.
41519 (inline_account_function_p): Break out from ...
41520 (inline_small_functions): ... here.
41521 * ipa-inline-transform.c (clone_inlined_nodes): Use
41522 inline_account_function_p.
41523 (inline_call): Use optimize attribution; use inline_account_function_p.
41524 (inline_transform): Use opt_for_fn.
41525 * ipa-inline.h (inline_account_function_p): Declare.
41527 2015-01-20 Jakub Jelinek <jakub@redhat.com>
41530 * dwarf2out.c (decl_piece_node): Don't put bitsize into
41531 mode if bitsize <= 0.
41532 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
41533 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
41534 sizes and positions.
41536 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
41538 * config/nios2/nios2.c (nios2_asm_file_end): Implement
41539 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
41541 (TARGET_ASM_FILE_END): Define.
41543 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41545 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
41546 (struct tune_params): Use the enum.
41547 * arm.c (arm_*_tune): Update.
41548 (arm_option_override): Update.
41550 2015-01-20 Richard Biener <rguenther@suse.de>
41553 * ipa-reference.c (add_static_var): Inline ...
41554 (analyze_function): ... here after splitting out from ...
41555 (is_proper_for_analysis): ... this.
41557 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
41560 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
41561 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
41562 replace the conditional with it's true branch.
41563 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
41564 (arm_lra_p): Remove.
41566 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
41568 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
41570 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41572 * config/tilegx/mul-tables.c: Move symtab.h include after
41573 coretypes.h include.
41574 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
41575 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
41576 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
41577 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
41578 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41580 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
41584 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
41586 PR rtl-optimization/64081
41587 * loop-iv.c (def_pred_latch_p): New function.
41588 (latch_dominating_def): Allow specific cases with non-single
41590 (iv_get_reaching_def): Likewise.
41591 (check_complex_exit_p): New function.
41592 (check_simple_exit): Use check_complex_exit_p to allow certain cases
41593 with exits not executing on any iteration.
41595 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41598 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
41599 to set branch cost.
41601 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41604 * i386.c (gate): Check flag_expensive_optimizations and
41606 (ix86_option_override_internal): Drop optimize_size condition
41607 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
41608 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
41609 MASK_PREFER_AVX128.
41610 (ix86_avx256_split_vector_move_misalign,
41611 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
41612 * sse.md (all uses of TARGET_PREFER_AVX128): Add
41613 optimize_insn_for_speed_p check.
41615 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
41617 * config/mips/mips.h (FP_ASM_SPEC): New define.
41618 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
41621 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
41624 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
41625 nullptr for insn when reaching the first insn.
41626 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
41627 (sh_insn_operands_modified_between_p): Add nullptr check.
41628 (sh_find_extending_set_of_reg): Fix log message. Don't accept
41629 sign extending mem load if the insn contains any UNSPEC or
41632 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41634 * params.def (inline-unit-growth): Drop to 15%.
41635 * invoke.texi (inline-unit-growth): Document change.
41637 2015-01-19 Martin Liska <mliska@suse.cz>
41640 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
41641 function for second argument of OBJ_TYPE_REF.
41643 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41646 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
41647 whether function is an alias.
41649 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41651 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
41654 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
41656 PR rtl-optimization/64671
41657 * lra-remat.c (operand_to_remat): Don't consider jump and call
41660 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
41663 * config/rs6000/default64.h: Include rs6000-cpus.def.
41664 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
41665 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
41666 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
41668 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
41670 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
41671 pseudo-op to specify assembler dialect.
41673 2015-01-19 Martin Liska <mliska@suse.cz>
41676 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
41677 Handle safe potentially removed nodes during filtering.
41679 2015-01-19 Martin Liska <mliska@suse.cz>
41681 * doc/extend.texi (no_icf): Add new attribute description.
41682 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
41683 where the pass attempts to merge a function with no_icf attribute.
41685 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41688 * doc/md.texi (ARM Options): Document register constraints.
41690 2015-01-19 Jiong Wang <jiong.wang@arm.com>
41691 Andrew Pinski <apinski@cavium.com>
41694 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
41695 (ashl<mode>3): Don't expand if operands[2] is not constant.
41697 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41700 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
41701 Match xor-and-xor RTL pattern.
41703 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
41705 PR rtl-optimization/64081
41706 * loop-iv.c (def_pred_latch_p): New function.
41707 (latch_dominating_def): Allow specific cases with non-single
41709 (iv_get_reaching_def): Likewise.
41710 (check_complex_exit_p): New function.
41711 (check_simple_exit): Use check_complex_exit_p to allow certain cases
41712 with exits not executing on any iteration.
41714 2015-01-19 Jakub Jelinek <jakub@redhat.com>
41716 * common.opt (fgraphite): Fix a typo.
41718 2015-01-19 Felix Yang <felix.yang@huawei.com>
41720 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
41722 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
41723 uminp, smax_nanp, smin_nanp): New builtins.
41724 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
41725 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
41726 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
41727 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
41728 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
41729 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
41730 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
41731 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
41732 vpminnms_f32): Rewrite using builtin functions.
41734 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
41737 * omp-low.c (offload_symbol_decl): Remove variable.
41738 (get_offload_symbol_decl): Remove function.
41739 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
41740 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
41741 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
41742 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
41743 BUILT_IN_GOACC_UPDATE don't pass it at all.
41745 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
41747 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
41750 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
41752 * ipa-chkp.c (chkp_produce_thunks): Add early param
41753 to split thunks production into two passes. Keep
41754 'always_inline' function bodies after the first pass.
41755 (pass_data_ipa_chkp_early_produce_thunks): New.
41756 (pass_ipa_chkp_early_produce_thunks): New.
41757 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
41758 chkp_produce_thunks signature.
41759 (make_pass_ipa_chkp_early_produce_thunks): New.
41760 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
41761 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
41762 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
41764 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41766 * cgraph.c (cgraph_node::dump): Dump profile flags.
41768 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
41771 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
41772 reg appear first in the parallel.
41774 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41776 * ipa-reference.c (set_reference_optimization_summary,
41777 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
41779 (ignore_module_statics): New static var.
41780 (propagate_bits): If ipa-reference is disabled, do not look into local
41782 (analyze_function): Disable analysis when ipa_reference is disabled.
41783 (generate_summary): Do not dump when reference is disabled;
41784 collect vars accessed from functions with ipa-reference disabled.
41785 (get_read_write_all_from_node): When ipa-reference is disabled, use the
41787 (gate): Enable for LTO.
41788 (ignore_edge_p): New function.
41789 (propagate): Skip functions w/o ipa-reference analysis.
41790 * optc-save-gen.awk: Handle optimize_debug correctly.
41791 * opth-gen.awk: Likewise.
41792 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
41793 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
41794 fira-share-save-slots, fira-share-spill-slots,
41795 fmodulo-sched-allow-regmoves, fpartial-inlining,
41796 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
41797 ftracer, ftree-parallelize-loops, fassociative-math,
41798 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
41800 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
41801 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
41803 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
41806 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41809 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
41811 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
41813 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
41815 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
41816 Remove duplicate option listings.
41818 2015-01-18 Felix Yang <felix.yang@huawei.com>
41820 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
41821 (autofdo_source_profile::get_callsite_total_count,
41822 function_instance::get_function_instance_by_decl,
41823 string_table::get_index, string_table::get_index_by_decl,
41824 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
41825 Fix comment typos. Reformatting and minor code rearrangement.
41827 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41829 * config/rs6000/rs6000.md (probe_stack): Delete.
41830 (probe_stack_address): New.
41832 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41834 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
41835 to test for 32-bit ABIs, not !TARGET_POWERPC64.
41837 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41839 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
41840 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
41841 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
41843 (rs6000_libcall_value): Use the new function.
41845 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
41847 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
41849 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
41851 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
41852 implement a more precise life analysis for it during backward scan.
41854 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
41856 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
41858 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
41860 PR rtl-optimization/52773
41861 * calls.c (emit_library_call_value): When pushing arguments use
41862 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
41863 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
41864 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
41866 2015-01-17 Jeff Law <law@redhat.com>
41868 PR rtl-optimization/32790
41869 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
41870 not ZERO_EXTEND in SET_DESTs.
41872 2015-01-17 Alan Modra <amodra@gmail.com>
41874 * cprop.c (do_local_cprop): Revert last change.
41876 2015-01-16 DJ Delorie <dj@redhat.com>
41877 Nick Clifton <nickc@redhat.com>
41879 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
41880 (addhi3_real): Likewise. Fix [HL+0] syntax.
41881 (subqi3_real): Likewise.
41882 (subhi3_real): Likewise.
41883 (cbranchqi4_real): Likewise. Allow saddr,#imm.
41884 (cbranchhi4_real): Likewise.
41885 (cbranchhi4_real_inverted): Likewise.
41886 (cbranchsi4_real_lt): Likewise.
41887 (cbranchsi4_real_ge): Likewise.
41888 (cbranchsi4_real_ge): Likewise.
41889 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
41890 (sub<mode>3_virt): Likewise.
41891 (cbranchqi4_virt): Likewise.
41892 (cbranchhi4_virt): Likewise.
41893 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
41894 always use '[reg+imm]' even when imm is zero.
41895 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
41896 (rl78_general_operand): New.
41897 (rl78_nonimmediate_operand): New.
41898 (rl78_nonfar_operand): Use them.
41899 (rl78_nonfar_nonimm_operand): Likewise.
41900 (rl78_stack_based_mem): Fix.
41901 * config/rl78/constraints.md (Ibqi): New.
41906 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
41907 (iorqi3): Likewise.
41908 (xorqi3): Likewise.
41909 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
41911 * config/rl78/constrains (Qs8): New constraint.
41912 * config/rl78/rl78.c (rl78_flags_already_set): New function.
41913 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
41914 * config/rl78/rl78-real.md (update_Z): New attribute.
41915 Update patterns to set it.
41916 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
41917 shorter compare and branch sequence can be used.
41918 (cbranchhi4_real): Likewise.
41919 (cbranchhi4_real_inverted): Likewise.
41921 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
41922 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
41924 * config/rl78/rl78.c (rl78_get_name_encoding): New.
41925 (rl78_option_override): Allow -mes0 only if C.
41926 (characterize_address): Support subregs of symbol_refs.
41927 (rl78_addr_space_address_mode): Move. Add __near.
41928 (rl78_far_p): Likewise.
41929 (rl78_addr_space_pointer_mode): Likewise.
41930 (rl78_as_legitimate_address): Likewise.
41931 (rl78_addr_space_subset_p): Likewise.
41932 (rl78_addr_space_convert): Likewise.
41933 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
41934 symbols with -mes0.
41935 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
41937 (rl78_alloc_physical_registers_op1): Change logic to prefer
41938 symbol[BC] addressing.
41939 (frodata_section): New.
41940 (rl78_asm_init_sections): Initialize it.
41941 (rl78_select_section): Put __far readonly symbols in .frodata.
41942 (rl78_make_type_far): New.
41943 (rl78_insert_attributes): Force all readonly symbols to be
41945 (rl78_asm_out_integer): New.
41946 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
41947 * config/rl78/rl78.opt (-mes0): New.
41949 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
41950 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
41951 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
41952 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
41953 (rl78_saddr_p): New.
41954 (rl78_output_aligned_common): New.
41955 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
41956 (rl78_handle_saddr_attribute): New.
41957 (rl78_handle_naked_attribute): New.
41958 (rl78_attribute_table): Add saddr.
41959 (rl78_print_operand_1): Don't print '!' on saddr operands.
41960 (rl78_print_operand_1): Strip encodings.
41962 (rl78_strip_name_encoding): New.
41963 (rl78_attrlist_to_encoding): New.
41964 (rl78_encode_section_info): New.
41965 (rl78_asm_init_sections): New.
41966 (rl78_select_section): New.
41967 (rl78_output_labelref): New.
41968 (rl78_output_aligned_common): New.
41969 (rl78_asm_out_integer): New.
41970 (rl78_asm_ctor_dtor): New.
41971 (rl78_asm_constructor): New.
41972 (rl78_asm_destructor): New.
41974 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
41975 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
41976 (transcode_memory_rtx): Update.
41977 (rl78_expand_epilogue): Use A_REG instead of 0.
41979 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41981 * config/arm/arm-protos.h (struct tune_params): New field
41982 sched_autopref_queue_depth.
41983 * config/arm/arm.c (sched-int.h): Include header.
41984 (arm_first_cycle_multipass_dfa_lookahead_guard,)
41985 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
41986 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
41987 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
41988 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
41989 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
41990 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
41991 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
41992 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
41993 * config/arm/t-arm (arm.o): Update.
41994 * haifa-sched.c (update_insn_after_change): Update.
41995 (rank_for_schedule): Use auto-prefetcher model, if requested.
41996 (autopref_multipass_init): New static function.
41997 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
41998 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
41999 variable for debug dumps.
42000 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
42001 (autopref_multipass_dfa_lookahead_guard): New global function that
42002 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
42003 (init_h_i_d): Update.
42004 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
42005 * sched-int.h (enum autopref_multipass_data_status): New const enum.
42006 (autopref_multipass_data_): Structure for auto-prefetcher data.
42007 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
42008 (struct _haifa_insn_data:autopref_multipass_data): New field.
42009 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
42010 (autopref_multipass_dfa_lookahead_guard): Declare.
42012 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42014 * rtlanal.c (get_base_term): Handle SCRATCH.
42016 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42018 * config/aarch64/aarch64.c
42019 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
42020 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42022 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
42023 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42025 2015-01-17 Alan Modra <amodra@gmail.com>
42027 * cprop.c (do_local_cprop): Disallow replacement of fixed
42030 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42033 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
42036 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
42038 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
42039 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
42041 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42043 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
42044 * config/arm/thumb1.md: ... Here.
42046 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42048 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
42049 TImode for TARGET_32BIT.
42051 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42053 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
42054 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
42056 (rs6000_abi_word_mode): New function.
42058 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42060 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
42061 instead of UNITS_PER_WORD to describe the size of stack slots.
42063 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42065 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
42066 as rs6000_promote_function_mode. Move comment to there.
42067 (rs6000_promote_function_mode): New function.
42069 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42071 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
42072 -mpowerpc64 is active.
42074 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42076 PR middle-end/64353
42077 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
42080 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42082 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
42083 introduced in revision 219724.
42085 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42086 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42089 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
42090 destination is not a GP reg.
42091 (*movdi_aarch64): Likewise.
42093 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
42096 * config/rs6000/default64.h: Revert ISA change.
42098 2015-01-16 Richard Biener <rguenther@suse.de>
42100 PR middle-end/64614
42101 * tree-ssa-uninit.c: Include tree-cfg.h.
42102 (MAX_SWITCH_CASES): New define.
42103 (convert_control_dep_chain_into_preds): Handle switch statements.
42104 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
42105 (normalize_one_pred_1): Do not split bit-manipulations.
42108 2015-01-16 Richard Biener <rguenther@suse.de>
42110 PR tree-optimization/64568
42111 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
42112 complex load rewriting for TARGET_MEM_REFs.
42114 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
42116 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
42118 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
42121 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
42123 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
42124 (aarch64_lra_p): Remove.
42126 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42129 * ipa-chkp.h (chkp_instrumentable_p): New.
42130 * ipa-chkp.c: Include tree-inline.h.
42131 (chkp_instrumentable_p): New.
42132 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
42133 Fix processing of not instrumentable functions.
42134 (chkp_versioning): Use chkp_instrumentable_p. Warn about
42135 not instrumentable functions.
42136 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
42137 chkp_instrumentable_p.
42138 * tree-inline.h (copy_forbidden): New.
42139 * tree-inline.c (copy_forbidden): Not static anymore.
42141 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42143 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
42146 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42148 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
42149 type OP_OUT to OP_INOUT.
42151 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42153 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
42154 (high x) y) to y if x and y have the same base.
42156 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42158 * config/arm/cortex-a57.md: New.
42159 * config/aarch64/aarch64.md: Include it.
42160 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
42161 * config/aarch64/aarch64-tune.md: Regenerate.
42163 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
42166 * ccmp.c (expand_ccmp_next): New function.
42167 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
42168 and compare insn sequence.
42169 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
42170 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
42171 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
42172 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
42173 (*ccmp_ior): Changed to ccmp_ior<mode>.
42174 (cmp<mode>): New pattern.
42175 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
42177 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
42179 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
42181 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
42182 _mm256_bsrli_epi128): New.
42183 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
42185 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42187 * expmed.c (store_bit_field_using_insv): Improve warning message.
42188 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
42190 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42192 PR rtl-optimization/64011
42193 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
42194 there is partial overflow.
42196 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42198 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
42200 (nds32_expand_epilogue_v3pop): Likewise.
42201 * config/nds32/nds32.md (sibcall): Define this for sibling call
42203 (sibcall_register): Likewise.
42204 (sibcall_immediate): Likewise.
42205 (sibcall_value): Likewise.
42206 (sibcall_value_register): Likewise.
42207 (sibcall_value_immediate): Likewise.
42208 (sibcall_epilogue): Likewise.
42209 (epilogue): Pass false to indicate this is not a sibcall epilogue.
42210 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
42211 (nds32_expand_epilogue_v3pop): Likewise.
42213 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42215 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
42216 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
42217 (return_internal): New.
42218 (return): Define this named pattern.
42219 (simple_return): Define this named pattern.
42220 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
42221 pattern instead of unspec_volatile_func_return.
42222 (nds32_expand_epilogue_v3pop): Likewise.
42223 (nds32_can_use_return_insn): New function.
42225 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42227 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
42228 * config/nds32/nds32.md (pop25return): New.
42229 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
42230 pop25return pattern.
42232 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42234 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
42235 -mforbid-fp-as-gp, and -mex9 options.
42237 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42239 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
42240 remove -mgp-direct option.
42242 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42244 * doc/invoke.texi (--param early-inlining-insns): Update default value.
42245 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
42247 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42249 * ipa-inline.c (inline_small_functions): Work around hints
42252 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
42255 * doc/invoke.texi (Option Summary): Document new Nios II
42257 (Nios II Options): Likewise.
42258 * config/nios2/nios2.opt: Add -mgpopt= option support.
42259 Modify existing -mgpopt and -mno-gpopt options to be aliases.
42260 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
42261 * config/nios2/nios2.c (nios2_option_override): Adjust
42262 -mgpopt defaulting.
42263 (nios2_in_small_data_p): Return true for explicit small data
42264 sections even with -G0.
42265 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
42268 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42271 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
42273 (inline_call): Fix removal of aliases.
42275 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42277 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
42278 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
42279 * opts.c (common_handle_option): Add -fsanitize=vptr.
42280 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
42281 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
42282 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
42283 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
42284 (ubsan_expand_vptr_ifn): New prototype.
42285 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
42286 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
42287 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
42288 expand_LOOP_VECTORIZED): Make argument nameless, remove
42290 (expand_UBSAN_VPTR): New function.
42291 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
42293 (UBSAN_VPTR): New internal function.
42294 * sanopt.c (tree_map_traits): Renamed to ...
42295 (sanopt_tree_map_traits): ... this.
42296 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
42297 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
42298 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
42299 (maybe_optimize_ubsan_vptr_ifn): New function.
42300 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
42301 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
42303 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
42304 internal calls like pure functions for aliasing, even when they
42305 have other side-effects that prevent making them ECF_PURE.
42306 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
42307 (ubsan_expand_vptr_ifn): New function.
42309 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
42311 PR rtl-optimization/64110
42312 * stmt.c (parse_output_constraint): Process '^' and '$'.
42313 (parse_input_constraint): Ditto.
42314 * lra-constraints.c (process_alt_operands): Process the new
42316 * ira-costs.c (record_reg_classes): Process the new constraint
42318 * genoutput.c (indep_constraints): Add '^' and '$'.
42319 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
42320 * doc/md.texi: Add description of the new constraints.
42322 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
42323 Bernd Schmidt <bernds@codesourcery.com>
42324 Cesar Philippidis <cesar@codesourcery.com>
42325 James Norris <jnorris@codesourcery.com>
42326 Tom de Vries <tom@codesourcery.com>
42327 Ilmir Usmanov <i.usmanov@samsung.com>
42328 Dmitry Bocharnikov <dmitry.b@samsung.com>
42329 Evgeny Gavrin <e.gavrin@samsung.com>
42330 Jakub Jelinek <jakub@redhat.com>
42332 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
42333 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
42334 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
42335 New function types.
42336 * builtins.c: Include "gomp-constants.h".
42337 (expand_builtin_acc_on_device): New function.
42338 (expand_builtin, is_inexpensive_builtin): Handle
42339 BUILT_IN_ACC_ON_DEVICE.
42340 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
42342 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
42344 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
42345 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
42346 i386/intelmic-offload.h.
42347 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
42348 to libgomp and its dependencies.
42349 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
42350 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
42351 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
42352 * config/ia64/hpux.h (LIB_SPEC): Likewise.
42353 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
42354 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
42355 * doc/generic.texi: Update for OpenACC changes.
42356 * doc/gimple.texi: Likewise.
42357 * doc/invoke.texi: Likewise.
42358 * doc/sourcebuild.texi: Likewise.
42359 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
42360 GF_OMP_FOR_KIND_OACC_LOOP.
42361 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
42362 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
42363 GF_OMP_TARGET_KIND_OACC_UPDATE,
42364 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42366 * gimple.c: Update comments for OpenACC changes.
42367 * gimple.def: Likewise.
42368 * gimple.h: Likewise.
42369 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
42370 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42371 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
42372 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42373 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
42375 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
42376 * gimplify.c: Include "gomp-constants.h".
42377 Update comments for OpenACC changes.
42378 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
42379 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
42380 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42381 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
42382 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42383 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42384 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
42385 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42386 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
42388 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
42389 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42390 OMP_CLAUSE_SET_MAP_KIND.
42391 (gimplify_oacc_cache): New function.
42392 (gimplify_omp_for): Handle OACC_LOOP.
42393 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
42395 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
42396 OACC_EXIT_DATA, OACC_UPDATE.
42397 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
42398 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
42399 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
42400 (gimplify_body): Consider flag_openacc next to flag_openmp.
42401 * lto-streamer-out.c: Include "gomp-constants.h".
42402 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
42403 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
42404 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
42405 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
42406 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
42407 (BUILT_IN_ACC_ON_DEVICE): New builtins.
42408 * omp-low.c: Include "gomp-constants.h".
42409 Update comments for OpenACC changes.
42410 (struct omp_context): Add reduction_map, gwv_below, gwv_this
42412 (extract_omp_for_data, use_pointer_for_field, install_var_field)
42413 (new_omp_context, delete_omp_context, scan_sharing_clauses)
42414 (create_omp_child_function, scan_omp_for, scan_omp_target)
42415 (check_omp_nesting_restrictions, lower_reduction_clauses)
42416 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
42417 Update for OpenACC changes.
42418 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
42419 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
42420 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
42421 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42422 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
42423 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
42425 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
42426 Handle GF_OMP_FOR_KIND_OACC_LOOP.
42427 (expand_omp_target, lower_omp_target): Handle
42428 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42429 GF_OMP_TARGET_KIND_OACC_UPDATE,
42430 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
42431 GF_OMP_TARGET_KIND_OACC_DATA.
42432 (pass_expand_omp::execute, execute_lower_omp)
42433 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
42435 (offload_symbol_decl): New variable.
42436 (oacc_get_reduction_array_id, oacc_max_threads)
42437 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
42438 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
42439 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
42440 (oacc_gimple_assign, oacc_initialize_reduction_data)
42441 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
42443 (is_targetreg_ctx): Remove function.
42444 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
42445 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
42446 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42447 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
42448 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
42449 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
42450 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
42451 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
42452 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
42453 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
42454 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
42455 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
42456 * tree-core.h: Update comments for OpenACC changes.
42457 (enum omp_clause_map_kind): Remove.
42458 (struct tree_omp_clause): Change type of map_kind member from enum
42459 omp_clause_map_kind to unsigned char.
42460 * tree-inline.c: Update comments for OpenACC changes.
42461 * tree-nested.c: Likewise. Include "gomp-constants.h".
42462 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
42463 (convert_tramp_reference_stmt, convert_gimple_call): Update for
42464 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42465 OMP_CLAUSE_SET_MAP_KIND.
42466 * tree-pretty-print.c: Include "gomp-constants.h".
42467 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
42468 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
42469 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
42470 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
42471 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42472 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
42473 instead of OMP_CLAUSE_MAP_*.
42474 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
42475 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
42476 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42477 * tree-streamer-in.c: Include "gomp-constants.h".
42478 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
42479 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
42480 * tree-streamer-out.c: Include "gomp-constants.h".
42481 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
42483 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
42484 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
42485 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
42486 * tree.c (omp_clause_num_ops): Update accordingly.
42487 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
42489 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
42490 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
42491 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
42492 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
42493 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
42494 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
42495 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
42496 (OMP_CLAUSE_SET_MAP_KIND): New macro.
42497 * varpool.c (varpool_node::get_create): Consider flag_openacc next
42499 * config/i386/intelmic-offload.h: New file.
42500 * config/nvptx/offload.h: Likewise.
42502 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42504 * explow.h: Remove duplicate contents.
42505 * dojump.h: Likewise.
42507 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
42509 * arm.c (arm_xgene_tune): Add default initializer for instruction
42512 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42516 * ipa.c (symbol_table::remove_unreachable_nodes):
42517 Do not put abstract origins into boundary.
42519 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
42521 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
42522 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
42524 2015-01-15 Steve Ellcey <sellcey@mips.com>
42526 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
42527 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
42528 builtins.def, and chkp-builtins.def.
42530 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
42532 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
42535 2015-01-15 Richard Biener <rguenther@suse.de>
42537 PR tree-optimization/61743
42538 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
42539 information on PHIs for some simple cases.
42541 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42543 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
42545 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
42546 * config/arm/arm-cores.def (xgene1): New entry.
42547 * config/arm/arm-tables.opt: Regenerate.
42548 * config/arm/arm-tune.md: Regenerate.
42549 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
42551 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42553 * tree-if-conv.c: Include hash-map.h.
42554 (aggressive_if_conv): New variable.
42555 (fold_build_cond_expr): Add simplification of non-zero condition.
42556 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
42557 destination block is not always executed.
42558 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
42559 than two predecessors if AGGRESSIVE_IF_CONV is true.
42560 (if_convertible_stmt_p): Fix commentary.
42561 (all_preds_critical_p): New function.
42562 (has_pred_critical_p): New function.
42563 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
42564 BB can have more than two predecessors and all incoming edges can be
42566 (predicate_bbs): Skip predication for loop exit block, use build2_loc
42567 to compute predicate for true edge.
42568 (find_phi_replacement_condition): Delete this function.
42569 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
42570 Allow interchange PHI arguments if EXTENDED is false.
42571 Change check that block containing reduction statement candidate
42572 is predecessor of phi-block since phi may have more than two arguments.
42573 (phi_args_hash_traits): New helper structure.
42574 (struct phi_args_hash_traits): New type.
42575 (phi_args_hash_traits::hash): New function.
42576 (phi_args_hash_traits::equal_keys): New function.
42577 (gen_phi_arg_condition): New function.
42578 (predicate_scalar_phi): Add handling of phi nodes with more than two
42579 arguments, delete COND and TRUE_BB arguments, insert body of
42580 find_phi_replacement_condition to predicate ordinary phi nodes.
42581 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
42582 delete call of find_phi_replacement_condition and invoke
42583 predicate_scalar_phi with two arguments.
42584 (insert_gimplified_predicates): Add assert that non-predicated block
42585 don't have statements to insert.
42586 (ifcvt_split_critical_edges): New function.
42587 (ifcvt_split_def_stmt): Likewise.
42588 (ifcvt_walk_pattern_tree): Likewise.
42589 (stmt_is_root_of_bool_pattern): Likewise.
42590 (ifcvt_repair_bool_pattern): Likewise.
42591 (ifcvt_local_dce): Likewise.
42592 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
42593 is copy of inner or outer loop force_vectorize field, invoke
42594 ifcvt_split_critical_edges, ifcvt_local_dce and
42595 ifcvt_repair_bool_pattern for aggressive if-conversion.
42597 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
42599 * config/aarch64/aarch64.md: Include xgene1.md.
42600 * config/aarch64/xgene1.md: New file.
42602 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42604 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
42605 xgene1 (APM XGene-1) core definition.
42606 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
42607 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
42608 * doc/invoke.texi: Document -mcpu=xgene1.
42610 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42612 * dojump.h: New header file.
42613 * explow.h: Likewise.
42614 * expr.h: Remove includes.
42615 Move expmed.c prototypes to expmed.h.
42616 Move dojump.c prototypes to dojump.h.
42617 Move alias.c prototypes to alias.h.
42618 Move explow.c prototypes to explow.h.
42619 Move calls.c prototypes to calls.h.
42620 Move emit-rtl.c prototypes to emit-rtl.h.
42621 Move varasm.c prototypes to varasm.h.
42622 Move stmt.c prototypes to stmt.h.
42623 (saved_pending_stack_adjust): Move to dojump.h.
42624 (adjust_address): Move to explow.h.
42625 (adjust_address_nv): Move to emit-rtl.h.
42626 (adjust_bitfield_address): Likewise.
42627 (adjust_bitfield_address_size): Likewise.
42628 (adjust_bitfield_address_nv): Likewise.
42629 (adjust_automodify_address_nv): Likewise.
42630 * explow.c (expr_size): Move to expr.c.
42631 (int_expr_size): Likewise.
42632 (tree_expr_size): Likewise.
42633 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42634 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42635 * genemit.c (main): Generate includes statistics.h, real.h,
42636 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
42638 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
42639 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
42640 explow.h, emit-rtl.h, stmt.h.
42641 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
42642 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
42643 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
42644 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
42645 emit-rtl.h, varasm.h, stmt.h.
42646 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
42647 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
42648 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
42649 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
42650 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
42651 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
42652 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
42653 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
42654 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
42655 tm.h tree.h varasm.h vec.h wide-int.h.
42656 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42657 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42658 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
42659 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
42660 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
42661 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
42662 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
42663 * loop-iv.c: Likewise.
42664 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
42665 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
42666 statistics.h stmt.h tree.h varasm.h wide-int.h.
42667 * lra-constraints.c: Likewise.
42668 * lra-eliminations.c: Likewise.
42669 * lra-lives.c: Likewise.
42670 * lra-remat.c: Likewise.
42671 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42672 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
42673 statistics.h stmt.h tree.h varasm.h wide-int.h.
42674 * hw-doloop.c: Likewise.
42675 * ira-color.c: Likewise.
42676 * ira-emit.c: Likewise.
42677 * loop-doloop.c: Likewise.
42678 * loop-invariant.c: Likewise.
42679 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42680 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
42681 statistics.h stmt.h tree.h varasm.h wide-int.h.
42682 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
42683 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
42684 statistics.h stmt.h tree.h varasm.h wide-int.h.
42685 * combine-stack-adj.c: Likewise.
42688 * ifcvt.c: Likewise.
42689 * ira-costs.c: Likewise.
42690 * jump.c: Likewise.
42691 * lra-coalesce.c: Likewise.
42692 * lra-spills.c: Likewise.
42693 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42694 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
42695 stmt.h varasm.h wide-int.h.
42696 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42697 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42699 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
42700 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
42701 statistics.h stmt.h varasm.h wide-int.h.
42702 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
42703 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
42704 varasm.h wide-int.h.
42705 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
42706 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42707 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
42708 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
42709 statistics.h stmt.h.
42710 * config/tilepro/tilepro.c: Likewise.
42711 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
42712 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
42713 * config/pdp11/pdp11.c: Likewise.
42714 * config/xtensa/xtensa.c: Likewise.
42715 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
42716 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42718 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42719 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42720 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
42721 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42722 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42723 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
42724 * rtl-chkp.c: Likewise.
42725 * tree-chkp-opt.c: Likewise.
42726 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
42727 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42728 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
42729 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42730 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42731 statistics.h stmt.h.
42732 * tree-vect-data-refs.c: Likewise.
42733 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
42734 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42735 rtl.h statistics.h stmt.h varasm.h.
42736 * internal-fn.c: Likewise.
42737 * ipa-icf-gimple.c: Likewise.
42738 * lto-section-out.c: Likewise.
42739 * tree-data-ref.c: Likewise.
42740 * tree-nested.c: Likewise.
42741 * tree-outof-ssa.c: Likewise.
42742 * tree-predcom.c: Likewise.
42743 * tree-pretty-print.c: Likewise.
42744 * tree-scalar-evolution.c: Likewise.
42745 * tree-ssa-strlen.c: Likewise.
42746 * tree-vect-loop.c: Likewise.
42747 * tree-vect-patterns.c: Likewise.
42748 * tree-vect-slp.c: Likewise.
42749 * tree-vect-stmts.c: Likewise.
42750 * tsan.c: Likewise.
42751 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42752 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
42754 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
42755 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42756 statistics.h stmt.h varasm.h.
42757 * loop-unroll.c: Likewise.
42758 * ubsan.c: Likewise.
42759 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
42760 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
42762 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42763 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
42764 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
42765 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42766 statistics.h stmt.h.
42767 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
42768 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42769 statistics.h stmt.h varasm.h.
42770 * gimple-match-head.c: Likewise.
42771 * lto-cgraph.c: Likewise.
42772 * lto-section-in.c: Likewise.
42773 * lto-streamer-in.c: Likewise.
42774 * lto-streamer-out.c: Likewise.
42775 * tree-affine.c: Likewise.
42776 * tree-cfg.c: Likewise.
42777 * tree-cfgcleanup.c: Likewise.
42778 * tree-if-conv.c: Likewise.
42779 * tree-into-ssa.c: Likewise.
42780 * tree-ssa-alias.c: Likewise.
42781 * tree-ssa-copyrename.c: Likewise.
42782 * tree-ssa-dse.c: Likewise.
42783 * tree-ssa-forwprop.c: Likewise.
42784 * tree-ssa-live.c: Likewise.
42785 * tree-ssa-math-opts.c: Likewise.
42786 * tree-ssa-pre.c: Likewise.
42787 * tree-ssa-sccvn.c: Likewise.
42788 * tree-tailcall.c: Likewise.
42789 * tree-vect-generic.c: Likewise.
42790 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42791 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
42792 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42793 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
42794 * varasm.c: Likewise.
42795 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42796 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
42798 * init-regs.c: Likewise.
42800 * omp-low.c: Likewise.
42801 * stack-ptr-mod.c: Likewise.
42802 * tree-ssa-reassoc.c: Likewise.
42803 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42804 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
42806 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42807 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
42808 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42809 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
42810 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42811 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
42812 * tree-ssa-phiopt.c: Likewise.
42813 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42814 fixed-value.h hashtab.h real.h statistics.h stmt.h.
42815 * config/fr30/fr30.c: Likewise.
42816 * config/frv/frv.c: Likewise.
42817 * expr.c: Likewise.
42818 * final.c: Likewise.
42819 * optabs.c: Likewise.
42820 * passes.c: Likewise.
42821 * simplify-rtx.c: Likewise.
42822 * stmt.c: Likewise.
42823 * toplev.c: Likewise.
42824 * var-tracking.c: Likewise.
42825 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42826 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42827 * lower-subreg.c: Likewise.
42828 * postreload-gcse.c: Likewise.
42830 * reginfo.c: Likewise.
42831 * store-motion.c: Likewise.
42832 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42833 fixed-value.h hashtab.h real.h stmt.h varasm.h.
42834 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42835 fixed-value.h hashtab.h statistics.h stmt.h.
42836 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42837 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42838 * except.c: Likewise.
42839 * explow.c: Likewise.
42840 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42841 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
42843 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42844 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
42845 * tree-ssa-structalias.c: Likewise.
42846 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42847 fixed-value.h insn-config.h real.h statistics.h.
42848 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42849 fixed-value.h insn-config.h real.h statistics.h stmt.h.
42850 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42851 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42852 * cfgbuild.c: Likewise.
42853 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42854 fixed-value.h real.h rtl.h statistics.h stmt.h.
42855 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42856 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42857 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42858 fixed-value.h real.h statistics.h stmt.h.
42859 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42860 fixed-value.h real.h statistics.h stmt.h varasm.h.
42861 * cprop.c: Likewise.
42862 * modulo-sched.c: Likewise.
42863 * postreload.c: Likewise.
42864 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42865 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
42866 statistics.h stmt.h varasm.h.
42867 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
42868 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42869 rtl.h statistics.h stmt.h varasm.h.
42870 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
42871 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
42873 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42874 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
42876 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
42877 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
42879 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
42880 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42881 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42882 function.h real.h statistics.h stmt.h varasm.h.
42883 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42884 insn-config.h real.h statistics.h stmt.h.
42885 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42886 statistics.h stmt.h.
42887 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
42888 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
42889 statistics.h stmt.h varasm.h.
42890 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
42891 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
42892 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42893 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
42894 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
42895 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42896 statistics.h stmt.h varasm.h.
42897 * ipa-polymorphic-call.c: Likewise.
42898 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
42899 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42900 statistics.h stmt.h.
42901 * config/c6x/c6x.c: Likewise.
42902 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
42903 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42904 statistics.h stmt.h varasm.h.
42905 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
42906 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
42908 * ipa-split.c: Likewise.
42909 * tree-eh.c: Likewise.
42910 * tree-ssa-dce.c: Likewise.
42911 * tree-ssa-loop-niter.c: Likewise.
42912 * tree-vrp.c: Likewise.
42913 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
42914 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
42916 * config/nds32/nds32-fp-as-gp.c: Likewise.
42917 * config/nds32/nds32-intrinsic.c: Likewise.
42918 * config/nds32/nds32-isr.c: Likewise.
42919 * config/nds32/nds32-md-auxiliary.c: Likewise.
42920 * config/nds32/nds32-memory-manipulation.c: Likewise.
42921 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
42922 * config/nds32/nds32-predicates.c: Likewise.
42923 * config/nds32/nds32.c: Likewise.
42924 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
42925 fixed-value.h hashtab.h real.h statistics.h.
42926 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
42927 fixed-value.h hashtab.h real.h statistics.h stmt.h.
42928 * config/arm/arm.c: Likewise.
42929 * config/avr/avr.c: Likewise.
42930 * config/bfin/bfin.c: Likewise.
42931 * config/h8300/h8300.c: Likewise.
42932 * config/i386/i386.c: Likewise.
42933 * config/ia64/ia64.c: Likewise.
42934 * config/iq2000/iq2000.c: Likewise.
42935 * config/m32c/m32c.c: Likewise.
42936 * config/m32r/m32r.c: Likewise.
42937 * config/m68k/m68k.c: Likewise.
42938 * config/mcore/mcore.c: Likewise.
42939 * config/mep/mep.c: Likewise.
42940 * config/mips/mips.c: Likewise.
42941 * config/mn10300/mn10300.c: Likewise.
42942 * config/moxie/moxie.c: Likewise.
42943 * config/pa/pa.c: Likewise.
42944 * config/rl78/rl78.c: Likewise.
42945 * config/rx/rx.c: Likewise.
42946 * config/s390/s390.c: Likewise.
42947 * config/sh/sh.c: Likewise.
42948 * config/sparc/sparc.c: Likewise.
42949 * config/spu/spu.c: Likewise.
42950 * config/stormy16/stormy16.c: Likewise.
42951 * config/v850/v850.c: Likewise.
42952 * config/vax/vax.c: Likewise.
42953 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
42954 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42955 * config/msp430/msp430.c: Likewise.
42956 * predict.c: Likewise.
42957 * value-prof.c: Likewise.
42958 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
42959 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
42960 * config/microblaze/microblaze.c: Likewise.
42961 * config/nios2/nios2.c: Likewise.
42962 * config/rs6000/rs6000.c: Likewise.
42963 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42964 insn-config.h real.h rtl.h statistics.h stmt.h.
42965 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42966 insn-config.h real.h statistics.h stmt.h.
42967 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
42968 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42969 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
42970 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42971 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
42972 fixed-value.h real.h statistics.h stmt.h.
42973 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
42974 fixed-value.h statistics.h stmt.h.
42975 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
42978 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42980 * gengtype.c (create_user_defined_type): Workaround
42981 -Wmaybe-uninitialized false positives.
42982 * cse.c (fold_rtx): Likewise.
42983 * loop-invariant.c (gain_for_invariant): Likewise.
42985 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
42987 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
42988 set the memory attributes in all cases but clear MEM_EXPR if need be.
42990 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42992 PR tree-optimization/64434
42993 * cfgexpand.c (reorder_operands): New function.
42994 (expand_gimple_basic_block): Insert call of reorder_operands if
42997 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
42999 * config/mips/micromips.md (*swp): Remove explicit parallel.
43000 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
43001 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
43002 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
43003 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
43004 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
43005 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
43006 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
43007 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
43008 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
43009 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
43010 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
43011 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
43012 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
43013 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
43014 (mips_wrdsp): Likewise.
43015 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
43017 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
43018 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
43019 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
43020 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
43021 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
43022 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
43023 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
43024 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
43025 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
43027 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43029 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
43030 (mips_print_operand): Support 'y' to print exact log2 in decimal
43032 * config/mips/mips.h (ISA_HAS_LSA): New define.
43033 (ISA_HAS_DLSA): Likewise.
43034 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
43035 * config/mips/predicates.md (const_immlsa_operand): New predicate.
43037 2015-01-15 Martin Liska <mliska@suse.cz>
43040 * optc-save-gen.awk: Add support for array types.
43042 2015-01-15 Richard Biener <rguenther@suse.de>
43044 PR middle-end/64365
43045 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
43046 for MEM_REF access functions with the same base can never partially
43049 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
43051 * common.opt: New option -fstack-protector-explicit.
43052 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
43053 (stack_protect_decl_phase): Handle stack_protect attribute for
43054 explicit stack protection requests.
43055 (expand_used_vars): Similarly.
43056 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
43057 * doc/extend.texi: Add documentation for "stack_protect" attribute.
43058 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
43060 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
43063 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
43065 (sh_extending_set_of_reg): New struct.
43066 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
43067 sh_remove_reg_dead_or_unused_notes): New Declarations.
43068 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
43069 sh_find_extending_set_of_reg, sh_split_tst_subregs,
43070 sh_extending_set_of_reg::use_as_extended_reg): New functions.
43071 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
43072 convert to insn_and_split and use new function sh_split_tst_subregs.
43074 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
43076 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
43078 (Optimization Options): Move -fuse-ld documentation to...
43079 (Link Options): ...here.
43081 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43083 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
43085 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
43086 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
43087 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
43088 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
43089 instead of ZR for the memory operand of LL/SC.
43090 (compare_and_swap_12, sync_add<mode>): Likewise.
43091 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
43092 (sync_new_<optab>_12, sync_nand_12): Likewise.
43093 (sync_old_nand_12, sync_new_nand_12): Likewise.
43094 (sync_sub<mode>, sync_old_add<mode>): Likewise.
43095 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
43096 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
43097 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
43098 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
43099 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
43100 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
43101 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
43102 * doc/md.texi (ZC): Update description.
43104 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43106 * builtins.c (expand_builtin_atomic_exchange): Remove error when
43107 memory model is CONSUME.
43108 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
43109 expand_builtin_atomic_store): Change invalid memory model errors to
43111 (expand_builtin_atomic_clear): Change invalid model errors to warnings
43112 and issue warning for CONSUME.
43114 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
43116 * lto-cgraph: Update function comments for
43117 lto_symtab_encoder_encode_*.
43119 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43121 * Makefile.in (site.exp): Do not set ENABLE_LTO.
43123 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43125 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
43126 * lto-cgraph.c (select_what_to_stream): Remove argument, use
43127 lto_stream_offload_p instead.
43128 * lto-streamer.h (select_what_to_stream): Remove argument.
43129 * passes.c (ipa_write_summaries): Likewise.
43130 * tree-pass.h (ipa_write_summaries): Likewise.
43132 2015-01-14 Richard Biener <rguenther@suse.de>
43134 PR tree-optimization/59354
43135 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
43136 groups larger than the slp group size as having gaps.
43138 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43140 PR middle-end/59448
43141 * builtins.c (get_memmodel): Promote consume to acquire always.
43143 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43146 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
43149 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43152 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
43154 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
43155 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
43156 AVX512VBMI, as it implies AVX512BW.
43158 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43161 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
43162 (vec_unpacks_hi_v16sf): Ditto.
43164 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43166 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
43169 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43171 * doc/invoke.texi (mapcs): Mention deprecation.
43172 (mapcs-frame): Likewise.
43174 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
43177 * config/arm/arm.c (callee_saved_reg_p): Define.
43178 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
43179 register is callee saved instead of !call_used_regs[reg].
43180 (thumb1_compute_save_reg_mask): Likewise.
43182 2015-01-14 Hale Wang <hale.wang@arm.com>
43184 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
43187 2015-01-14 Richard Biener <rguenther@suse.de>
43190 * tree-inline.c (insert_debug_decl_map): Check destination
43191 function MAY_HAVE_DEBUG_STMTS.
43192 (insert_init_debug_bind): Likewise.
43193 (insert_init_stmt): Remove redundant check.
43194 (remap_gimple_stmt): Drop debug stmts if the destination
43195 function has var-tracking assignments disabled.
43197 2015-01-14 Martin Liska <mliska@suse.cz>
43199 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
43200 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
43202 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43205 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
43206 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
43208 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43210 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
43211 level from an ARCH; do not inject the default.
43212 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
43213 MIPS_ISA_LEVEL_SPEC.
43214 (MIPS_ISA_NAN2008_SPEC): Update comment.
43215 (BASE_DRIVER_SELF_SPECS): Likewise.
43216 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
43217 MIPS_DEFAULT_ISA_LEVEL_SPEC.
43218 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
43219 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
43220 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
43222 2015-01-14 Richard Biener <rguenther@suse.de>
43224 PR tree-optimization/64493
43225 PR tree-optimization/64495
43226 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
43227 assign the proper vectorized PHI to the inner loop exit PHIs.
43229 2015-01-14 Joey Ye <joey.ye@arm.com>
43231 * config/arm/arm.c (arm_compute_save_reg_mask):
43232 Do not save lr in case of tail call.
43233 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
43235 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
43237 * tree-vrp.c (check_array_ref): Emit more warnings
43238 for warn_array_bounds >= 2.
43239 * common.opt: New option -Warray-bounds=.
43240 * doc/invoke.texi: Document -Warray-bounds=.
43242 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
43244 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
43245 (mforbid-fp-as-gp): Remove.
43247 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
43248 (nds32_symbol_load_store_p): Remove.
43249 (nds32_fp_as_gp_check_available): Clean up implementation.
43250 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
43252 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
43253 fp-as-gp and ex9 cases.
43255 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43257 * tree-profile.c (init_ic_make_global_vars): Drop workaround
43258 for bintuils bug 14342.
43259 (init_ic_make_global_vars): Likewise.
43260 (gimple_init_edge_profiler): Likewise.
43261 (gimple_gen_ic_func_profiler): Likewise.
43263 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
43265 * ipa-inline.c (inline_small_functions): Swap the operands in
43268 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43271 * ipa-inline-analysis.c (node_growth_cache): Remove.
43272 (initialize_growth_caches): Do not initialize it.
43273 (free_growth_caches): Do not free it.
43274 (do_estimate_growth): Rename to ...
43275 (estimate_growth): ... this one; drop growth cache code.
43276 (growth_likely_positive): Always go the heuristics way.
43277 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
43278 (reset_edge_caches): Do not reset node growth.
43279 (heap_edge_removal_hook): Do not maintain cache.
43280 (inline_small_functions): Likewise; strenghten sanity check.
43281 (ipa_inline): Do not maintain caches.
43282 * ipa-inline.h (node_growth_cache): Remove.
43283 (do_estimate_growth): Remove to ...
43284 (estimate_growth): this one; remove inline version.
43285 (reset_node_growth_cache): Remove.
43287 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43290 * ipa-inline.c (inline_small_functions): Update callee keys after
43291 resolving speculation
43292 (inline_small_functions): Always check monotonicity of the queue.
43294 2015-01-13 Marek Polacek <polacek@redhat.com>
43296 PR middle-end/64391
43297 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
43299 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43301 PR rtl-optimization/64286
43302 * ree.c (combine_reaching_defs): Move part of comment earlier,
43303 remove !SCALAR_INT_MODE_P check.
43304 (add_removable_extension): Don't add vector mode
43305 extensions if all uses of the source register aren't the same
43308 2015-01-13 Renlin Li <renlin.li@arm.com>
43310 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
43311 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
43313 2015-01-13 Martin Liska <mliska@suse.cz>
43315 * ipa-icf.c (sem_function::equals_private): Call new functions
43316 cl_target_option_print_diff and cl_optimization_print_diff.
43317 * optc-save-gen.awk (cl_target_option_print_diff): New function.
43318 (cl_optimization_print_diff): Likewise.
43319 * opth-gen.awk: Likewise.
43321 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
43323 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
43324 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
43325 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
43326 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
43327 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
43328 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
43330 2015-01-13 Andrew Pinski <apinski@cavium.com>
43332 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
43333 instead of src mode.
43335 2015-01-13 Richard Biener <rguenther@suse.de>
43338 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
43341 2015-01-13 Andrew Pinski <apinski@cavium.com>
43343 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
43345 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
43347 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43349 PR middle-end/63974
43350 * cfgexpand.c (expand_computed_goto): Don't call
43351 convert_memory_address here.
43353 2015-01-13 Richard Biener <rguenther@suse.de>
43355 PR tree-optimization/64406
43356 * tree-loop-distibution.c (pass_loop_distribution::execute):
43357 Reset the SCEV hashtable if we distributed anything.
43359 2015-01-13 Richard Biener <rguenther@suse.de>
43361 PR tree-optimization/64404
43362 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
43363 SLP types for CSEd loads.
43365 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
43367 PR tree-optimization/64436
43368 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
43369 merge of two symbolic numbers for a bitwise OR to ...
43370 (perform_symbolic_merge): This. Also fix computation of the range and
43371 end of the symbolic number corresponding to the result of a bitwise OR.
43373 2015-01-13 Richard Biener <rguenther@suse.de>
43375 PR tree-optimization/64568
43376 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
43377 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
43379 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43381 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
43382 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
43384 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43386 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
43387 target-specific symbol_ref flag.
43388 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
43389 resides in rodata section.
43390 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
43391 (nds32_encode_section_info): New function.
43393 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43395 * config/nds32/nds32.md (call): Use pseudo instruction bal which
43396 clobbers TA_REGNUM if large code model is specified.
43397 (call_register): Likewise.
43398 (call_immediate): Likewise.
43399 (call_value): Likewise.
43400 (call_value_register): Likewise.
43401 (call_value_immediate): Likewise.
43403 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43405 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
43406 (TARGET_CMODEL_MEDIUM): New macro.
43407 (TARGET_CMODEL_LARGE): New macro.
43408 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
43409 code model setting in assembly code.
43411 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43413 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
43414 Remove MASK_GP_DIRECT flag.
43415 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
43416 one of the multilib default options.
43417 * config/nds32/nds32.opt (mgp-direct): Remove.
43418 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
43419 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
43421 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43423 * config/nds32/nds32.opt (mcmodel): Add new option.
43424 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
43425 to describe code model.
43427 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
43430 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
43432 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
43434 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
43435 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43436 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
43437 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
43438 __builtin_sh_set_fpscr.
43440 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43442 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
43443 after a funtion name just to indicate it is a function.
43444 ([-fsanitize-undefined-trap-on-error]): Likewise.
43445 ([-fdbg-cnt=]): Likewise.
43446 ([-mmemcpy]): Likewise.
43447 ([-mflush-func]): Likewise.
43448 ([-msynci]): Likewise.
43450 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43452 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
43455 2015-01-12 Jakub Jelinek <jakub@redhat.com>
43457 PR tree-optimization/64563
43458 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
43459 instead of != VR_VARYING.
43462 * config/i386/i386.c (ix86_expand_prologue): Add
43463 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
43465 PR tree-optimization/64454
43466 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
43467 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
43468 for signed or [0, op1 - 1] for unsigned modulo.
43469 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
43470 even if op1 does not satisfy integer_pow2p.
43473 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
43475 2015-01-12 Jeff Law <law@redhat.com>
43478 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
43479 (trunchiqi2, truncsihi2): Similarly.
43481 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
43482 rather than calling F.
43484 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
43486 * tsan.c (instrument_expr): Use force_gimple_operand.
43487 Use may_be_nonaddressable_p instead of is_gimple_addressable.
43489 2015-01-12 Richard Biener <rguenther@suse.de>
43491 PR tree-optimization/64530
43492 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
43495 2015-01-12 Richard Biener <rguenther@suse.de>
43497 PR middle-end/64357
43498 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
43501 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43503 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
43504 Cortex-A17 tuning parameters.
43505 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
43507 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43509 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
43510 * config/arm/arm.c (arm_macro_fusion_p): New function.
43511 (arm_macro_fusion_pair_p): Likewise.
43512 (TARGET_SCHED_MACRO_FUSION_P): Define.
43513 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
43514 (ARM_FUSE_NOTHING): Likewise.
43515 (ARM_FUSE_MOVW_MOVT): Likewise.
43516 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
43517 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
43518 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
43519 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
43520 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
43521 arm_cortex_a5_tune): Specify fuseable_ops value.
43523 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
43526 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
43527 test for PIE with copy reloc.
43528 * configure: Regenerated.
43530 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43532 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
43534 (arm_tls_descseq_addr): Likewise.
43535 (arm_gen_movmemqi): Likewise.
43536 (arm_expand_epilogue_apcs_frame): Likewise.
43537 (arm_expand_epilogue): Likewise.
43538 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
43541 2015-01-12 Martin Liska <mliska@suse.cz>
43544 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
43545 volatility for correct operands.
43547 2015-01-12 Martin Liska <mliska@suse.cz>
43549 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
43550 indication that a function is not leaf.
43551 (sem_function::compare_polymorphic_p): Likewise.
43553 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43555 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
43556 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
43557 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
43558 fold-const.h, tree-check.h.
43560 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
43564 * ipa-inline.c (compute_uninlined_call_time,
43565 compute_inlined_call_time): Use counts for extra precision when
43567 (big_speedup_p): Fix formating.
43568 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
43569 (relative_time_benefit): Remove.
43570 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
43571 merge guessed and read profile paths.
43572 (inline_small_functions): Count only !optimize_size functions into
43573 initial size; be more lax about sanity check when profile is used;
43574 be sure to update inlined function profile when profile is read.
43576 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
43579 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
43580 cost when edge becomes direct.
43581 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
43582 is resolved or when introducing new speculation.
43584 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
43588 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
43589 '||' to fix typo issue.
43591 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
43592 accept and return NULL.
43594 2015-01-12 Martin Liska <mliska@suse.cz>
43596 * cgraph.c (cgraph_edge::remove_callee): Move function to header
43597 file for being inlined.
43598 (cgraph_set_edge_callee): Delete.
43599 (cgraph_edge::redirect_callee): Move function to header file
43601 (cgraph_edge::make_direct): Use new function.
43602 (cgraph_edge::dump_edge_flags): New function created from
43603 static dump_edge_flags function.
43604 (cgraph_node::dump): Use new function.
43605 (cgraph_edge::verify_count_and_frequency): New function created
43606 from verify_edge_count_and_frequency.
43607 (cgraph_edge::verify_corresponds_to_fndecl): New function created
43608 from verify_edge_corresponds_to_fndecl.
43609 (verify_edge_corresponds_to_fndecl): Delete.
43610 (cgraph_node::verify_node): Use new function.
43611 * cgraph.h (cgraph_edge::set_callee): New function.
43612 (cgraph_edge::dump_edge_flags): Likewise.
43613 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
43615 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
43617 * ipa-utils.c (estimate_function_body_sizes): Do not
43618 free node params when called late with early=true.
43620 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
43622 * doc/md.texi (Instruction Patterns): Rewrite text for
43624 (Example): Likewise.
43626 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
43628 * doc/invoke.texi (Option Summary): Break long lines.
43629 [(-fdiagnostics-color)]: Put long literal in @smallexample
43631 [(-fsanitize-recover)]: Likewise.
43632 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
43633 [(-ffast-math)]: Likewise.
43634 [(--param max-inline-insns-recursive)]: Likewise.
43635 [(--param max-inline-recursive-depth)]: Likewise.
43636 [(-mno-text-section-literals)]: Likewise.
43638 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
43640 * doc/install.texi: Update for libgomp being renamed from "GNU
43641 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
43643 * doc/sourcebuild.texi: Likewise.
43645 2015-01-10 Anthony Green <green@moxielogic.com>
43647 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
43648 mul.x availability for moxiebox configuration.
43650 2015-01-09 Anthony Green <green@moxielogic.com>
43652 * config/moxie/moxie.md: Tabify assembly output.
43654 2015-01-09 Anthony Green <green@moxielogic.com>
43656 * config/moxie/moxie.md (CC_REG): Correct register definition.
43658 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
43660 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
43661 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
43664 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43666 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
43668 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
43669 Jakub Jelinek <jakub@redhat.com>
43671 PR middle-end/64412
43672 * lto-streamer.h (lto_stream_offload_p): New declaration.
43673 * lto-streamer.c (lto_stream_offload_p): New variable.
43674 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
43675 at the same time as section_name_prefix.
43676 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
43677 if lto_stream_offload_p.
43678 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
43679 stream TREE_TARGET_OPTION if lto_stream_offload_p.
43680 (write_ts_function_decl_tree_pointers): Don't
43681 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
43682 * tree-streamer-in.c (unpack_value_fields): Don't stream
43683 TREE_TARGET_OPTION in if ACCEL_COMPILER.
43684 (lto_input_ts_function_decl_tree_pointers): Don't stream
43685 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
43686 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
43687 instead of section_name_prefix string comparisons.
43689 2015-01-09 Jakub Jelinek <jakub@redhat.com>
43691 PR rtl-optimization/64536
43692 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
43695 2015-01-09 Michael Collison <michael.collison@linaro.org>
43697 PR tree-optimization/64322
43698 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
43699 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
43701 2015-01-09 Tom de Vries <tom@codesourcery.com>
43703 PR rtl-optimization/64539
43704 * regcprop.c (kill_clobbered_values): Factor out of ...
43705 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
43706 instead of note_stores with kill_clobbered_value.
43708 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43710 * ginclude/unwind-arm-common.h: Revert previous commit.
43712 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43714 * config.gcc (arm*-*-freebsd*): New configuration.
43715 * config/arm/freebsd.h: New file.
43716 * config.host: Add extra components for arm*-*-freebsd*.
43717 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
43718 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
43720 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43722 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
43724 * config/rs6000/t-rtems: Add e6500 multilibs.
43726 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43728 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
43731 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43733 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
43734 MULTILIB_EXCEPTIONS.
43736 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43738 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
43739 MULTILIB_EXCEPTIONS.
43741 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43743 * config/arm/t-rtems-eabi: Rename to...
43744 * config/arm/t-rtems: ...this.
43745 * config/arm/rtems-eabi.h: Rename to...
43746 * config/arm/rtems.h: ...this.
43747 * config.gcc (arm*-*-rtems*): Reflect changes above.
43749 2015-01-09 Richard Biener <rguenther@suse.de>
43751 PR tree-optimization/64410
43752 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
43754 (execute_update_addresses_taken): Deal with that.
43755 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
43756 loads/stores for complex variables.
43758 2015-01-09 Martin Liska <mliska@suse.cz>
43760 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
43762 (func_checker::compare_memory_operand): New function.
43763 (func_checker::compare_operand): Split case to newly
43765 (func_checker::compare_cst_or_decl): New function.
43766 (func_checker::compare_gimple_call): Identify
43768 (func_checker::compare_gimple_assign): Likewise.
43769 * ipa-icf-gimple.h: New function.
43771 2015-01-09 Martin Liska <mliska@suse.cz>
43774 * sreal.c (sreal::dump): Change unsigned format to signed for
43776 (sreal::to_double): Replace exp2 with scalbln.
43778 2015-01-09 Martin Liska <mliska@suse.cz>
43780 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
43781 * ipa-icf.c (sem_function::equals_private): Add support for target and
43782 (sem_item_optimizer::merge_classes): Remove redundant function
43783 optimization flags comparison.
43784 * tree.h (target_opts_for_fn): New function.
43786 2015-01-09 Tom de Vries <tom@codesourcery.com>
43788 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
43790 2015-01-09 Kito Cheng <kito@0xlab.org>
43792 PR rtl-optimization/64348
43793 * lra-constraints.c (split_reg): Fix caller-save store/restore
43794 instruction generation.
43796 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
43798 PR gcov-profile/61790
43799 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
43800 long long. Fallback to int64_t if host doesn't have long long and
43801 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
43803 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43805 PR tree-optimization/63989
43806 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
43807 from 1000 to 10000.
43808 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
43809 (get_stridx): If we don't have a record for certain SSA_NAME,
43810 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
43811 constant offset, call get_stridx_plus_constant.
43812 (get_stridx_plus_constant): New function.
43813 (zero_length_string): Don't use get_stridx here.
43816 PR middle-end/64388
43817 * dse.c (struct insn_info): Mention frame_read set also
43818 before reload for tail calls on some targets.
43819 (scan_insn): Revert 2014-12-22 change. Set frame_read
43820 also before reload for tail calls if
43821 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
43822 instead of add_non_frame_wild_read for non-const/memset
43823 tail calls after reload.
43825 2015-01-08 Jason Merrill <jason@redhat.com>
43827 * ubsan.c (do_ubsan_in_current_function): New.
43828 (pass_ubsan::gate): Use it.
43829 * ubsan.h: Declare it.
43830 * convert.c (convert_to_integer): Use it.
43832 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43835 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
43836 compare_code when it is unconditionally overwritten afterwards.
43837 Use ix86_reverse_condition instead of reverse_condition. Don't
43838 change code if *reverse_condition* returned UNKNOWN and don't
43839 swap ct/cf and negate diff in that case.
43841 2015-01-08 Mike Stump <mikestump@comcast.net>
43843 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
43844 (pass_tsan_O0::gate): Likewise.
43845 * extend.texi (Function Attributes): Add no_sanitize_thread
43848 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
43850 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
43851 for registering builtins.
43852 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
43853 add -fopenmp to the argv_obstack used when invoking
43854 compile_for_target.
43856 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
43857 add "-m32" or "-m64" to argv_obstack.
43858 (generate_host_descr_file): Likewise, when invoking host_compiler.
43859 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
43862 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
43864 * config/sh/sh-mem.cc: Use constant as second operand when emitting
43867 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
43870 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
43871 constant load if constant operand fits into I08.
43873 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43876 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
43877 and TREE_THIS_VOLATILE for MEM_REFs.
43878 (build5_stat): Fix up initialization of TREE_READONLY and
43879 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
43881 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
43884 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
43885 of r for the second alternative of the destination operand.
43887 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
43890 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
43892 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
43894 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
43896 ([-fivar-visibility], [-fvisibility]): Likewise.
43898 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
43900 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
43901 the file where @code, @command, etc is more appropriate.
43903 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
43905 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
43906 of -mrecip= documentation.
43908 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
43911 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
43912 correct reload handler if -m32 -mpowerpc64 is used.
43914 2015-01-06 Tom de Vries <tom@codesourcery.com>
43916 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
43918 2015-01-08 Christian Bruel <christian.bruel@st.com>
43921 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
43923 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
43925 PR tree-optimization/63259
43926 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
43927 if optab exists for 16bit byteswap.
43929 2015-01-06 Jakub Jelinek <jakub@redhat.com>
43931 * opts.c (common_handle_option): Add support for
43932 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
43933 * doc/invoke.texi: Document -fno-sanitize=all,
43934 -f{,no-}sanitize-recover=all. Document that
43935 -fsanitize=float-cast-overflow is not enabled
43936 by -fsanitize=undefined. Fix up documentation
43937 of -f{,no-}sanitize-recover.
43939 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
43941 * config.gcc: Add Visium support.
43942 * configure.ac: Likewise.
43943 * configure: Regenerate.
43944 * doc/extend.texi (interrupt attribute): Add Visium.
43945 * doc/invoke.texi: Document Visium options.
43946 * doc/install.texi: Document Visium target.
43947 * doc/md.texi: Document Visium constraints.
43948 * common/config/visium: New directory.
43949 * config/visium: Likewise.
43951 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43953 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
43954 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
43956 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43958 * combine.c (combine_validate_cost): Do not count the cost of a
43959 split I2 twice. Do not display it twice in the dump, either.
43961 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
43963 Revert parts of r219199.
43964 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
43966 ([-Wtraditional]): Restore markup on <limits.h>.
43968 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
43971 * doc/invoke.texi: Document -Wsuggest-override.
43973 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
43975 PR rtl-optimization/64287
43976 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
43977 (process_options): Disable flag_ipa_ra if profiling.
43979 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
43981 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
43983 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
43985 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
43986 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
43987 put under #if TARGET_LOOPS guard.
43989 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
43991 * config/i386/i386.c (output_387_binary_op): Use std::swap.
43993 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
43995 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
43996 * rtl.h (refers_to_regno_p): Add overload.
43998 * bt-load.c: Likewise.
43999 * combine.c: Likewise.
44000 * df-scan.c: Likewise.
44001 * sched-deps.c: Likewise.
44002 * config/s390/s390.c: Likewise.
44003 * config/m32r/m32r.c: Likewise.
44004 * config/rs6000/spe.md: Likewise.
44005 * config/rs6000/rs6000.c: Likewise.
44006 * config/pa/pa.c: Likewise.
44007 * config/stormy16/stormy16.c: Likewise.
44008 * config/cris/cris.c: Likewise.
44009 * config/arc/arc.md: Likewise.
44010 * config/arc/arc.c: Likewise.
44011 * config/sh/sh.md: Likewise.
44012 * config/sh/sh.c: Likewise.
44013 * config/frv/frv.c: Likewise.
44015 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44018 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
44019 call as cleanup of the whole body.
44020 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
44021 * tsan.c (replace_func_exit): New function.
44022 (instrument_func_exit): Moved earlier.
44023 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
44024 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
44026 (tsan_pass): Don't call instrument_func_exit.
44027 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
44028 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
44032 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
44033 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
44034 it to libubsan handler instead of EXPR. Fold comparisons earlier,
44035 if the result is integer_zerop, return NULL_TREE.
44036 * convert.c (convert_to_integer): Pass expr as ARG.
44038 PR tree-optimization/64465
44039 * tree-inline.c (redirect_all_calls): During inlining
44040 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
44041 changed the stmt to a non-throwing call.
44043 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
44045 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
44046 etc markup throughout the file.
44048 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
44050 Enable experimental TSAN support for Ada.
44051 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
44053 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44055 PR tree-optimization/64494
44056 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
44057 clear SSA_NAME_ANTI_RANGE_P flag.
44059 2015-01-05 Marek Polacek <polacek@redhat.com>
44061 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
44063 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44065 Update copyright years.
44067 * gcc.c (process_command): Update copyright notice dates.
44068 * gcov-dump.c: Ditto.
44070 * doc/cpp.texi: Bump @copying's copyright year.
44071 * doc/cppinternals.texi: Ditto.
44072 * doc/gcc.texi: Ditto.
44073 * doc/gccint.texi: Ditto.
44074 * doc/gcov.texi: Ditto.
44075 * doc/install.texi: Ditto.
44076 * doc/invoke.texi: Ditto.
44078 * auto-profile.c, auto-profile.h: Fix up Copyright line.
44080 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
44082 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
44084 ([-fvtable-verify], [-fvtv-debug]): Likewise.
44085 ([-Wabi]): Likewise.
44086 ([-fmessage-length]): Likewise.
44087 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
44088 ([-Wno-discarded-qualifiers]): Likewise.
44089 ([-Wnodiscarded-array-qualifiers]): Likewise.
44090 ([-Wno-virtual-move-assign]): Likewise.
44091 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
44092 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
44093 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
44094 ([-fsanitize-undefined-trap-on-error]): Likewise.
44095 ([-floop-interchange]): Likewise.
44096 ([-ftree-coalesce-inlined-vars]): Likewise.
44097 ([-fvect-cost-model]): Likewise.
44098 ([-flto]): Likewise.
44099 ([--param]): Likewise.
44100 (Spec Files): Likewise.
44101 ([-mstrict-align]): Likewise.
44102 ([-mfix-cortex-a53-835769]): Likewise.
44103 ([-march], [-mtune]): Likewise.
44104 ([-mpic-register]): Likewise.
44105 ([-munaligned-access]): Likewise.
44106 ([-msp8]): Likewise.
44107 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
44108 (AVR Built-in Macros): Likewise.
44109 ([-mpreferred-stack-boundary]): Likewise.
44110 ([-mtune-crtl]): Likewise.
44111 ([-mashf]): Likewise.
44112 ([-mmcu=]): Likewise.
44113 ([-minrt]): Likewise.
44114 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
44115 ([-mupper-regs]): Likewise.
44116 ([-matomic-model]): Likewise.
44117 ([-mdiv]): Likewise.
44118 ([-mzdcbranch]): Likewise.
44119 ([-mdisable-callt]): Likewise.
44120 ([-msoft-float]): Likewise.
44121 ([-m8byte-align]): Likewise.
44122 ([-fstack-reuse]): Likewise.
44124 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44126 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
44127 Fix markup, light copy-editing.
44128 ([-fauto-profile]): Rewrite to fix formatting and content
44131 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44133 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
44134 Copy-edit description.
44135 ([-fisolate-erroneous-paths-attribute]): Likewise.
44136 * common.opt (fisolate-erroneous-paths-dereference):
44137 Copy-edit description.
44138 (fisolate-erroneous-paths-attribute): Likewise.
44140 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44142 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
44145 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44147 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
44148 ([-fvtv-debug]): Likewise.
44149 ([-Wc++-compat]): Likewise.
44150 ([-Wc++11-compat]): Likewise.
44151 ([-Wc++14-compat]): Likewise.
44152 ([-Wno-sized-deallocation]): Likewise.
44153 ([-femit-class-debug-always]): Likewise.
44154 ([-femit-struct-debug-detailed]): Likewise.
44155 ([-fno-keep-inline-dllexport]): Likewise.
44156 ([-fira-algorithm]): Likewise.
44157 ([-fira-region]): Likewise.
44158 ([-flra-remat]): Likewise.
44159 ([-fipa-ra]): Likewise.
44160 ([-fhoist-adjacent-loads]): Likewise.
44161 ([-fisolate-erroneous-paths-dereference]): Likewise.
44162 ([-fisolate-erroneous-paths-attribute]): Likewise.
44163 ([-ftree-switch-conversion]): Likewise.
44164 ([-ftree-tail-merge]): Likewise.
44165 ([-ftree-loop-if-convert]): Likewise.
44166 ([-ftree-loop-if-convert-stores]): Likewise.
44167 ([-ftree-loop-distribution]): Likewise.
44168 ([-ftree-loop-distribute-patterns]): Likewise.
44169 ([-flto-compression-level]): Likewise.
44170 ([-flto-report]): Likewise.
44171 ([-flto-report-wpa]): Likewise.
44172 ([-fuse-linker-plugin]): Likewise.
44173 ([-mfix-cortex-a53-835769]): Likewise.
44174 ([-mno-fix-cortex-a53-835769]): Likewise.
44175 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
44176 explicit listing; add a note to the discussion indicating they
44177 exist. Reorder table to group similar options. Add missing
44178 @opindex entries. Add @need commands throughout the table to
44179 allow it to be split across multiple pages.
44180 ([-m8bit-idiv]): Fix @opindex.
44181 ([-mavx256-split-unaligned-load]): Likewise.
44182 ([-mavx256-split-unaligned-store]): Likewise.
44183 ([-mstack-protector-guard]): Likewise.
44184 ([-mcpu=]): Likewise.
44185 ([-mcpu]): Likewise.
44186 ([-mpointer-size=]): Likewise.
44188 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
44190 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
44191 instead of `m' constraint. Likewise for unnamed movb comparison
44192 patterns using reg_before_reload_operand predicate.
44193 * config/pa/predicates.md (reg_before_reload_operand): Tighten
44194 predicate to reject register index and LO_SUM DLT memory forms
44197 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44199 * doc/invoke.texi (Option Summary): Fix spelling of
44200 -fdevirtualize-at-ltrans.
44201 ([-fdevirtualize]): Fix markup.
44202 ([-fdevirtualize-speculatively]): Fix typo.
44203 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
44204 implementor-speaky.
44205 * common.opt (fdevirtualize-at-ltrans): Likewise.
44206 * ipa-devirt.c: Fix typos in comments throughout the file.
44207 (ipa_devirt): Fix typos in format strings for dump output.
44209 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44211 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
44212 discussion of defaults, light copy-editing.
44214 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44216 * tsan.c (instrument_expr): corrected previous checkin.
44218 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44220 Instrument bit field and unaligned accesses for TSAN.
44221 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
44222 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
44223 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
44224 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
44225 unaligned memory regions.
44227 2015-01-01 Anthony Green <green@moxielogic.com>
44229 * config/moxie/predicates.md (moxie_general_movsrc_operand):
44230 Restrict move source register offsets to 16 bits.
44232 Copyright (C) 2015 Free Software Foundation, Inc.
44234 Copying and distribution of this file, with or without modification,
44235 are permitted in any medium without royalty provided the copyright
44236 notice and this notice are preserved.