1 2015-13-18 John David Anglin <danglin@gcc.gnu.org>
4 * config/pa/pa.c (pa_emit_move_sequence): Reorganize handling of
5 floating-point reloads. Only reload operands that are not valid
6 floating-point memory operands.
8 2015-12-18 Jakub Jelinek <jakub@redhat.com>
11 * ipa-split.c (split_function): Only perform caller side
12 modifications for decl_debug_args here.
13 * cgraph.c: Include gimplify.h.
14 (cgraph_edge::redirect_call_stmt_to_callee): Add caller side
15 debug stmts for decl_debug_args. Spelling fix in a comment.
16 * tree-inline.c (tree_function_versioning): Populate decl_debug_args
17 for args_to_skip arguments and add callee side debug stmts.
18 Formatting fixes. Avoid shadowing i variable.
20 2015-12-18 Nathan Sidwell <nathan@acm.org>
22 * config/nvptx/nvptx.c (nvptx_maybe_convert_symbolic_operand):
23 Remove UNSPEC_TO_GENERIC generation.
24 (nvptx_output_mov_insn): Generate cvta for symbolic src.
25 * config/nvptx/nvptx.md (nvptx_register_operand): Allow hard reg.
26 (nvptx_reg_or_mem_operand): Likewise.
27 (nvptx_nonmemory_operand): Likewise.
28 (nvptx_general_operand): Delete.
29 (*mov<mode>_insn): Use nonimmediate_operand, permit hardregs.
30 (oacc_fork, oacc_join): Use general_operand.
32 2015-12-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
34 * dwarf2out.c (gen_producer_string): Ignore -fdebug-prefix-map.
36 2015-12-18 Nathan Sidwell <nathan@acm.org>
38 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry for
40 (nvptx_assemble_undefined_decl): Use nvptx_assemble_decl_end.
42 2015-12-18 Jeff Law <law@redhat.com>
44 PR rtl-optimization/49847
45 * cse.c (record_jump_equiv): Handle fold_rtx returning NULL_RTX.
47 2015-12-18 Nathan Sidwell <nathan@acm.org>
49 * config/nvptx/nvptx.c (worker_bcast_name, worker_red_name): Delete.
50 (nvptx_option_override): Adjust worker symbol creation.
51 (nvptx_gen_wcast): Wrap worker address in UNSPEC_TO_GENERIC.
52 (write_worker_buffer): New.
53 (nvptx_file_end): Call write_worker_buffer.
54 * config/nvptx/nvptx.md (UNSPEC_SHARED_DATA): Delete.
55 (worker_load<mode>, worker_store<mode>): Delete.
57 2015-12-18 Richard Biener <rguenther@suse.de>
60 * tree-vect-patterns.c (struct vect_recog_func): New.
61 (vect_vect_recog_func_ptrs): Make an array of function name pairs.
62 (vect_pattern_recog_1): Print the recognized pattern name. Return
63 true if a pattern was recognized.
64 (vect_pattern_recog): Adjust. Stop iterating over pattern recognition
65 functions on a stmt if a pattern was recognized.
67 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
69 * ira.c (ira_setup_alts): Move the scan for commutative modifier
70 to the first loop to make it work even with disabled alternatives.
72 2015-12-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
74 * config/s390/s390.c (s390_init_frame_layout): Try r4 to r2 for the
77 2015-12-18 Yuri Rumyantsev <ysrumyan@gmail.com>
79 PR tree-optimization/68906
80 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Add check
81 that an exit block belongs to LOOP.
83 2015-12-18 Ilya Enkovich <enkovich.gnu@gmail.com>
85 PR tree-optimization/68956
86 * tree-vect-stmts.c (vect_init_vector): Fix constants
87 used for boolean vectors.
89 2015-12-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
91 PR rtl-optimization/68796
92 * config/aarch64/aarch64.md (*and<mode>3nr_compare0_zextract):
94 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle
95 ZERO_EXTRACT comparison with zero.
96 (aarch64_mask_from_zextract_ops): New function.
97 * config/aarch64/aarch64-protos.h (aarch64_mask_from_zextract_ops):
100 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
102 * config/s390/predicates.md: Change and rename
103 constm1_operand to all_ones_operand
104 * config/s390/s390.c (s390_expand_vcond): Use all_ones_operand
105 * config/s390/vector.md: Likewise
107 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
109 * config/s390/s390.c (s390_expand_vcond): Convert vector
110 conditional into shift.
111 * config/s390/vector.md: Change operand predicate.
113 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
115 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
116 z900 -march -mtune even on g5 and g6 machines.
117 * config/s390/s390.c (s390_option_override_internal): New argument
118 to distingiush between options and target attributes. Emit
119 deprecation warning for g5 and g6 arch/tune options.
120 (s390_option_override): Set new s390_option_override_internal
122 (s390_valid_target_attribute_tree): Set new
123 s390_option_override_internal argument to false.
124 * config/s390/s390.h: Default to z900 in the driver.
125 * doc/invoke.texi: Document the deprecation of g5 and g6.
127 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
129 * config/i386/djgpp-stdint.h: update typedefs for integer types
131 2015-12-17 Jeff Law <law@redhat.com>
133 * passes.def: Put the split-paths pass immediately before the
136 * doc/invoke.texi (-O2 options): Remove -fsplit-paths.
137 (-O3 options): Add -fsplit-paths.
138 * gimple-ssa-split-paths.c: Include predict.h
139 (split_paths): Only split paths in a loop that should be
141 * opts.c (default_options_table): Move -fsplit-paths from -O2 to
144 2015-12-17 Nathan Sidwell <nathan@acm.org>
146 * ipa-icf.c (sem_item_optimizer::merge): Don't pick 'main' as the
149 2015-12-17 Sebastian Pop <s.pop@samsung.com>
151 * Makefile.in: Replace ISL with isl.
153 * configure: Regenerate.
154 * configure.ac: Same.
155 * doc/install.texi: Same.
156 * doc/invoke.texi: Same.
157 * graphite-isl-ast-to-gimple.c: Same.
158 * graphite-scop-detection.c: Same.
159 * graphite-sese-to-poly.c: Same.
163 * testsuite/gcc.dg/graphite/fuse-1.c: Same.
164 * testsuite/gcc.dg/graphite/fuse-2.c: Same.
165 * testsuite/gcc.dg/graphite/interchange-1.c: Same.
166 * testsuite/gcc.dg/graphite/pr35356-1.c: Same.
169 2015-12-17 Sebastian Pop <s.pop@samsung.com>
171 * graphite-dependences.c: Move all isl include files to...
172 * graphite-isl-ast-to-gimple.c: Same.
173 * graphite-optimize-isl.c: Same.
174 * graphite-poly.c: Same.
175 * graphite-scop-detection.c: Same.
177 * graphite.h: ... here.
179 2015-12-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
181 * config/avr/avr.h (MOVE_MAX): Set value to 1.
182 (MOVE_MAX_PIECES): Define.
183 (MOVE_RATIO): Define.
184 * config/avr/avr.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P):
186 (avr_use_by_pieces_infrastructure_p): New function.
188 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
190 * config.gcc: mark *-interix* as obsolete.
192 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
194 * config.gcc: Mark openbsd 2.0 and 3.X as obsolete.
196 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
198 * config.gcc: Mark knetbsd targets as obsolete.
200 2015-12-17 Nathan Sidwell <nathan@acm.org>
202 * config/nvptx/nvptx.h (NVPTX_RETURN_REGNUM, FRAME_POINTER_REGNUM,
203 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Renumber.
204 (REGISTER_NAMES): Update and rename.
205 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
206 (enum_reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Reformat.
208 2015-12-17 Richard Biener <rguenther@suse.de>
210 PR tree-optimization/68946
211 * tree-vect-slp.c (vect_slp_analyze_node_operations): Push
212 SLP def type to stmt operands one stmt at a time.
214 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
216 * langhooks.h (struct lang_hooks_for_types): New get_bias_field.
217 * langhooks-def.h (LANG_HOOKS_GET_TYPE_BIAS): New.
218 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
221 (base_type_die): In non-strict DWARF mode, invoke the
222 get_type_bias language hook for INTEGER_TYPE nodes. If it
223 returns a bias, emit an attribute for it.
224 (subrange_type_die): Change signature to handle bias. If
225 non-strict DWARF mode, emit an attribute for it, if one passed.
226 (modified_type_die): For subrange types, invoke the
227 get_type_bias langage hook and pass the bias to
230 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
232 * dwarf2out.h (DWARF2OUT_ARRAY_DESCR_INFO_MAX_DIMEN): New macro.
233 (struct array_descr_info): Use it for the dimensions array's
235 * dwarf2out.c (gen_type_die_with_usage): Check that the array
236 descr. language hook does not return an array with more
237 dimensions that it should.
239 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
241 * langhooks.h (struct lang_hooks_for_types): Add a
242 get_fixed_point_type_info field.
243 * langhooks-def.h (LANG_HOOKS_GET_FIXED_POINT_TYPE_INFO): New
245 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
246 get_fixed_point_type_info field.
247 * dwarf2out.h (enum fixed_point_scale_factor): New.
248 (struct fixed_point_type_info): New.
249 * dwarf2out.c (base_type_die): In DWARFv3 or non-strict DWARF
250 mode, get fixed-point type information using the debugging hook
251 and describe it in DWARF, if any.
253 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
255 * langhooks.h (struct lang_hooks_for_types): Add a
256 get_debug_type field.
257 * langhooks-def.h (LANG_HOOKS_GET_DEBUG_TYPE): New macro.
258 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
259 get_debug_type field.
260 * dwarf2out.h (struct array_descr_info): Add an array-wide
262 * dwarf2out.c (modified_type_die): Invoke the get_debug_type
263 language hook, process its result instead, if any.
264 (gen_descr_array_type_die): Add array-wide stride processing.
266 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
268 * debug.h (struct gcc_debug_hooks): Add a new size_function
270 * debug.c (do_nothing_debug_hooks): Set the size_function field
272 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
273 * sdbout.c (sdb_debug_hooks): Likewise.
274 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
275 * stor-layout.c (finalize_size_functions): Let the debug info
276 back-end know about the implementation of size functions.
277 * dwarf2out.h (dw_discr_list_ref): New typedef.
278 (enum dw_val_class): Add value classes for discriminant values
279 and discriminant lists.
280 (struct dw_discr_value): New structure.
281 (struct dw_val_node): Add discriminant values and discriminant
283 (struct dw_loc_descr_node): Add frame_offset_rel and
284 dw_loc_frame_offset (only for checking) fields to handle DWARF
285 procedures generation.
286 (struct dw_discr_list_node): New structure.
287 * dwarf2out.c (dwarf2out_size_function): New.
288 (dwarf2_debug_hooks): Set the size_function field to
289 dwarf2out_size_function.
290 (dwarf2_lineno_debug_hooks): Set the size_function field to
292 (new_loc_descr): Initialize the
293 dw_loc_frame_offset field.
294 (dwarf_proc_stack_usage_map): New.
295 (dw_val_equal_p): Handle discriminants.
296 (size_of_discr_value): New.
297 (size_of_discr_list): New.
298 (size_of_die): Handle discriminants.
299 (add_loc_descr_to_each): New.
301 (print_discr_value): New.
302 (print_dw_val): Handle discriminants.
303 (value_format): Handle discriminants.
304 (output_discr_value): New.
305 (output_die): Handle discriminants.
306 (output_loc_operands): Handle DW_OP_call2 and DW_OP_call4.
307 (uint_loc_descriptor): New.
308 (uint_comparison_loc_list): New.
309 (loc_list_from_uint_comparison): New.
310 (add_discr_value): New.
311 (add_discr_list): New.
312 (AT_discr_list): New.
313 (loc_descr_to_next_no_op): New.
314 (free_loc_descr): New.
315 (loc_descr_without_nops): New.
316 (struct loc_descr_context): Add a dpi field.
317 (struct dwarf_procedure_info): New helper structure.
318 (new_dwarf_proc_die): New.
319 (is_handled_procedure_type): New.
320 (resolve_args_picking_1): New.
321 (resolve_args_picking): New.
322 (function_to_dwarf_procedure): New.
323 (copy_dwarf_procedure): New.
324 (copy_dwarf_procs_ref_in_attrs): New.
325 (copy_dwarf_procs_ref_in_dies): New.
326 (break_out_comdat_types): Copy DWARF procedures along with the
327 types that reference them.
328 (loc_list_from_tree): Rename into loc_list_from_tree_1. Handle
329 CALL_EXPR in the cases suitable for DWARF procedures. Handle
330 for PARM_DECL when generating a location description for a DWARF
331 procedure. Handle big unsigned INTEGER_CST nodes. Handle
332 NON_LVALUE_EXPR, EXACT_DIV_EXPR and all unsigned comparison
333 operators. Add a wrapper for loc_list_from_tree that strips
334 DW_OP_nop operations from the result.
335 (type_byte_size): New.
336 (struct vlr_context): New helper structure.
337 (field_byte_offset): Change signature to return either a
338 constant offset or a location description for dynamic ones.
339 Handle dynamic byte offsets with constant bit offsets and handle
340 fields in variant parts.
341 (add_data_member_location): Change signature to handle dynamic
342 member offsets and fields in variant parts. Update call to
343 field_byte_offset. Handle location lists. Emit a variable data
344 member location only when -fgnat-encodings=minimal.
345 (add_bound_info): Emit self-referential bounds only when
346 -fgnat-encodings=minimal.
347 (add_byte_size_attribute): Use type_byte_size in order to handle
348 dynamic type sizes. Emit variable byte size only when
349 -fgnat-encodings=minimal and when the target DWARF version
351 (add_bit_offset_attribute): Change signature to handle
352 variable-length records. Update call to field_byte_offset.
353 (gen_descr_array_type_die): Update call to gen_field_die.
354 Update loc_descr_context literal.
355 (gen_type_die_for_member): Likewise.
356 (gen_subprogram_die): Update calls to get_decl_die.
357 (gen_field_die): Change signature to handle variable-length
358 records. Update calls to add_bit_offset_attribute and
359 add_data_member_location_attribute.
360 (gen_inheritance_die): Update call to
361 add_data_member_location_attribute.
362 (gen_decl_die): Change signature to handle variable-length
363 records. Update call to gen_field_die.
364 (gen_inheritance_die): Change signature to handle
365 variable-length records. Update call to
366 add_data_member_location_attribute.
367 (is_variant_part): New.
368 (analyze_discr_in_predicate): New.
369 (get_discr_value): New.
370 (analyze_variants_discr): New.
371 (gen_variant_part): New.
372 (gen_member_die): Update calls to gen_decl_die. Call instead
373 gen_variant_part for variant parts.
374 (gen_type_die_with_usage): Update calls to gen_decl_die.
375 (process_scope_var): Likewise.
376 (force_decl_die): Likewise.
377 (declare_in_namespace): Likewise.
378 (dwarf2out_decl): Likewise.
379 (prune_unused_types_walk_loc_descr): New.
380 (prune_unused_types_walk_attribs): Mark DIEs referenced by
381 location descriptions and loc. descr. lists.
382 (prune_unused_types_walk): Don't mark DWARF procedures by
383 default. Mark variant parts since nothing is supposed to
385 (dwarf2out_init): Allocate dwarf_proc_stack_usage_map.
386 (dwarf2out_c_finalize): Deallocate and reset
387 dwarf_proc_stack_usage_map.
389 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
391 * common.opt (gnat_encodings): New variable
392 (dwarf_gnat_encodings): New enum type.
393 (fgnat_encodings): New option.
394 * flag-types.h (enum dwarf_gnat_encodings): New.
396 2015-12-17 Christian Bruel <christian.bruel@st.com>
398 * tree.h (TYPE_MODE_RAW): New macro.
399 * tree-streamer-out.c (pack_ts_type_common_value_fields):
400 Replace TYPE_MODE by TYPE_MODE_RAW.
402 2015-12-17 Jakub Jelinek <jakub@redhat.com>
404 PR tree-optimization/68835
405 * tree.c (get_int_cst_ext_nunits): Return
406 cst.get_precision () / HOST_BITS_PER_WIDE_INT + 1
407 for all unsigned wi::neg_p (cst) constants.
408 (build_new_int_cst): If cst.get_precision is not a multiple
409 of HOST_BITS_PER_WIDE_INT, zero extend -1 to the precision
410 % HOST_BITS_PER_WIDE_INT.
412 2015-12-17 Richard Biener <rguenther@suse.de>
414 PR tree-optimization/68951
415 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
416 Ignore strided non-group accesses.
418 2015-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
420 * config/arc/arc.c (arc_loop_hazard): Don't convert the jump label
421 rtx to an rtx_insn until we confirm it's not a return rtx.
423 2015-12-17 Richard Biener <rguenther@suse.de>
425 * gimple-ssa.h (struct gimple_df): Remove modified_noreturn_calls
427 * tree-ssa.c (delete_tree_ssa): Do not zero it.
429 2015-12-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
432 * configure.ac (gcc_cv_as_stabs_directive): New test.
433 * configure: Regenerate.
434 * config.in: Regenerate.
435 * config/darwin.h (DBX_DEBUGGING_INFO): Wrap in
436 HAVE_AS_STABS_DIRECTIVE.
437 (PREFERRED_DEBUGGING_TYPE): Likewise.
438 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Only include
439 DBX_DEBUG if HAVE_AS_STABS_DIRECTIVE.
441 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
442 attributes): Document stabs.
444 2015-12-16 Martin Sebor <msebor@redhat.com>
447 * ginclude/stdatomic.h (atomic_init): Use atomic_store instead
450 2015-12-15 Michael Meissner <meissner@linux.vnet.ibm.com>
453 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use ROTATE
454 instead of VEC_SELECT for TImode.
456 * config/rs6000/vsx.md (VSX_LE): Move TImode from VSX_LE to
457 VSX_LE_128, so that we use ROTATE to swap the 64-bit words instead
459 (VSX_LE_128): Likewise.
460 (define_peephole2): Add peephole to eliminate double xxpermdi when
463 2015-12-16 John David Anglin <danglin@gcc.gnu.org>
466 * config/pa/pa.md (atomic_loaddi): Honor -mdisable-fpregs.
467 (atomic_loaddi_1): Likewise.
468 (atomic_storedi): Likewise.
469 (atomic_storedi_1): Likewise.
470 (atomic_loaddf): Likewise.
471 (atomic_loaddf_1): Likewise.
472 (atomic_storedf): Likewise.
473 (atomic_storedf_1): Likewise.
474 Move all atomic patterns to end of file.
476 2015-12-16 Abderrazek Zaafrani <a.zaafrani@samsung.com>
478 * graphite-isl-ast-to-gimple.c: Include isl/schedule_node.h.
479 (set_separate_option): New.
480 (translate_isl_ast_to_gimple::set_options_for_schedule_tree): New.
481 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->schedule.
482 * graphite-optimize-isl.c (optimize_isl): Set scop->schedule, do not
483 free the computed schedule tree.
484 * graphite-poly.c (new_scop): Initialize scop->schedule.
485 * graphite.h: Include isl/schedule.h.
486 (struct scop): Add field schedule.
488 2015-12-16 Nathan Sidwell <nathan@acm.org>
490 * ipa-visibility.c (can_replace_by_local_alias): Make static,
491 check ASM_OUTPUT_DEF.
492 (can_replace_by_local_alias_in_vtable): Make static.
493 (function_and_variable_visibility): Reformat overlong comment.
495 2015-12-16 Jeff Law <law@redhat.com>
497 * ree.c (add_removable_extension): Use reg_overlap_mentioned_p
498 rather than testing hard register #s.
500 2015-12-16 Nathan Sidwell <nathan@acm.org>
502 * config/nvptx/nvptx.h (OUTGOING_STATIC_CHAIN_REGNUM): Remove.
503 (REGISTER_NAMES): Adjust.
504 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Avoid long line.
505 (nvptx_static_hain): Delete.
506 (write_arg_mode): Don't emit initializer if argno < 0.
507 (write_arg_type): Fix whitespace.
508 (init_frame): Initialize reg to zero if frame is zero-sized.
509 (nvptx_declare_function_name): Use write_arg_type to emit chain
511 (nvptx_output_call_insn): Adjust static chain emission.
512 (nvptx_goacc_reduction): Make static.
513 (TARGET_STATIC_CHAIN): Don't override.
515 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
517 * graphite-dependences.c (scop_get_dependences): Use local pointers.
518 * graphite-isl-ast-to-gimple.c
519 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->dependence.
520 * graphite-optimize-isl.c (optimize_isl): Same.
521 * graphite-poly.c (new_scop): Remove initialization of removed
524 * graphite.h (struct scop): Remove individial dependence pointers and
525 add a scop::dependence to contain all the dependence.
527 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
529 * graphite-sese-to-poly.c (build_poly_sr): Use refs.
531 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
532 Sebastian Pop <s.pop@samsung.com>
534 * config.in: Regenerate.
535 * configure: Regenerate.
536 * configure.ac: Remove checks for functions that exist in isl 0.13
538 * graphite-isl-ast-to-gimple.c: Remove #ifdefs and code for isl 0.12.
539 * graphite-optimize-isl.c: Same.
540 * graphite-poly.c: Same.
541 * graphite-sese-to-poly.c: Same.
542 * graphite.h: Add comment for isl 0.14.
543 * toplev.c (print_version): Print isl version.
545 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
547 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use can_refer; do not
548 speculate to impossible targets.
549 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
551 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
552 Sebastian Pop <s.pop@samsung.com>
554 * graphite-dependences.c (scop_get_reads): Add more dumps.
555 (scop_get_must_writes): Same.
556 (scop_get_may_writes): Same.
557 * graphite-poly.c (new_poly_dr): Same.
558 * graphite-scop-detection.c (build_cross_bb_scalars_def): Same.
559 (gather_bbs::before_dom_children): Same.
561 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
563 * config/aarch64/aarch64.c (aarch64_extend_bitfield_pattern_p):
565 (aarch64_rtx_costs, ZERO_EXTEND, SIGN_EXTEND cases): Use the above
566 to handle extend+shift rtxes.
568 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
571 * config/aarch64/aarch64-simd.md (*aarch64_simd_bsl<mode>_alt):
573 (aarch64_simd_bsl<mode>_internal): Update comment to reflect
576 2015-12-16 Richard Biener <rguenther@suse.de>
578 PR tree-optimization/68870
579 * tree-cfgcleanup.c (cleanup_control_expr_graph): Add first_p
580 parameter, if set only perform trivial constant folding.
581 Queue other blocks with conditions for later processing.
582 (cleanup_control_flow_bb): Add first_p parameter and pass it through.
583 (cleanup_tree_cfg_1): Pass true for the first iteration
584 cleanup_control_expr_graph.
586 2015-12-16 Nathan Sidwell <nathan@acm.org>
588 * config/nvptx/nvptx-protos.h (nvptx_hard_regno_mode_ok): Delete.
589 * config/nvptx/nvptx.h (struct machine_function):
590 Reimplement. Adjust all users.
591 * config/nvptx/nvptx.c (nvptx_declare_function_name): Move stack
592 and frame array generation earlier.
593 (nvptx_call_args): Reimplement.
594 (nvptx_expand_call): Adjust.
595 (nvptx_hard_reno_mode_ok): Delete.
596 (nvptx_reorg): Revert scan of hard regs.
598 2015-12-16 Tom de Vries <tom@codesourcery.com>
600 * opts.c (default_options_optimization): Set fipa-pta on by
601 default for fopenacc.
602 * passes.def: Move kernels pass group to pass_ipa_oacc.
603 * tree-pass.h (make_pass_oacc_kernels2): Remove.
604 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): Declare.
605 * tree-ssa-loop.c (pass_oacc_kernels2, make_pass_oacc_kernels2):
607 (pass_ipa_oacc, pass_ipa_oacc_kernels): New pass.
608 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): New function.
609 * tree-ssa-structalias.c (pass_ipa_pta::clone): New function.
611 2015-12-16 Richard Biener <rguenther@suse.de>
613 PR tree-optimization/68861
614 * tree-vect-slp.c (vect_build_slp_tree): Properly handle
615 duplicate stmts when applying swapping to stmts.
617 2015-12-16 Kirill Yukhin <kirill.yukhin@intel.com>
619 * config/i386/i386-c.c (ix86_target_macros_internal): Remove
620 duplicate check (__CLZERO__).
622 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
624 * config/arm/arm_neon.h (vqrdmlahq_lane_s16): New.
625 (vqrdmlahq_lane_s32): New.
626 (vqrdmlah_lane_s16): New.
627 (vqrdmlah_lane_s32): New.
628 (vqrdmlshq_lane_s16): New.
629 (vqrdmlshq_lane_s32): New.
630 (vqrdmlsh_lane_s16): New.
631 (vqrdmlsh_lane_s32): New.
632 * config/arm/arm_neon_builtins.def: Add "vqrdmlah_lane" and
635 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
637 * config/arm/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
638 (vqrdmlahq_s16, vqrdmlahq_s32): New.
639 (vqrdmlsh_s16, vqrdmlsh_s32): New.
640 (vqrdmlahq_s16, vqrdmlshq_s32): New.
641 * config/arm/arm_neon_builtins.def: Add "vqrdmlah" and "vqrdmlsh".
643 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
645 * doc/sourcebuild.texi (ARM-specific attributes): Add
646 "arm_v8_1a_neon_ok" and "arm_v8_1a_neon_hw".
648 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
650 * config/arm/arm-c.c (arm_cpu_builtins): Define
651 __ARM_FEATURE_QRDMX. Clean up some trailing whitespace.
653 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
655 * config/arm/iterators.md (VQRDMLH_AS): New.
658 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h<mode>): New.
659 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h_lane<mode>): New.
660 * config/arm/unspecs.md (UNSPEC_VQRDMLAH): New.
661 (UNSPEC_VQRDMLSH): New.
663 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
665 * config/arm/t-aprofile: Make "armv8.1-a" and "armv8.1-a+crc"
666 matches for "armv8-a".
668 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
670 * config/arm/arm-arches.def: Add "armv8.1-a" and "armv8.1-a+crc".
671 * config/arm/arm-protos.h (FL2_ARCH8_1): New.
672 (FL2_FOR_ARCH8_1A): New.
673 * config/arm/arm-tables.opt: Regenerate.
674 * config/arm/arm.c (arm_arch8_1): New.
675 (arm_option_override): Set arm_arch8_1.
676 * config/arm/arm.h (TARGET_NEON_RDMA): New.
677 (arm_arch8_1): Declare.
678 * doc/invoke.texi (ARM Options, -march): Add "armv8.1-a" and
680 (ARM Options, -mfpu): Fix a typo.
682 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
685 * config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
686 the complement of operands[3] during splitting.
688 2015-12-16 Richard Biener <rguenther@suse.de>
690 PR tree-optimization/68892
691 * tree-vect-slp.c (vect_analyze_slp_cost_1): Properly compute
692 cost for permuted loads.
694 2015-12-16 Jakub Jelinek <jakub@redhat.com>
696 PR rtl-optimization/65980
697 * jump.c (rtx_renumbered_equal_p) <case LABEL_REF>: Use
698 next_nonnote_nondebug_insn instead of next_real_insn and
699 skip over CODE_LABELs too.
701 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
703 * symtab.c (symtab_node::fixup_same_cpp_alias_visibility):
704 Do not copy DECL_VIRTUAL_P.
706 2015-12-15 Martin Sebor <msebor@redhat.com>
709 * tree-chkp.c (chkp_find_bound_slots_1): Handle flexible array
711 * tree.c (type_contains_placeholder_1): Avoid assuming type has
712 a non-null domain or an upper bound to handle flexible array
714 * varasm.c (output_constructor_regular_field): Same.
715 (output_constructor): Set min_index to integer_zero_node rather
716 than null when a type has no domain to avoid crashing later.
718 2015-12-15 Nathan Sidwell <nathan@acm.org>
720 * config/nvptx/nvptx.c (write_one_arg): Rename to ...
721 (write_arg_mode): ... here. Update callers.
722 (write_arg): Rename to ...
723 (write__arg_type): ... here. Update callers.
724 (write_return_mode): New fn, broken out of ...
725 (write_return): ... here. Rename to ...
726 (write_return_type): ... here. Call it. Update callers.
727 (write_fn_proto_from_insn): Use write_arg_mode and
729 (init_frame): New fn.
730 (nvptx_declare_function_name): Call it for frame and varargs. Only
731 emit outgoing static chain, if it's live.
732 (nvptx_output_return): Use reg_names for return reg name.
733 (nvptx_output_call_insn): Likewise.
734 (nvptx_reorg): Mark unused hard regs too.
736 2015-12-15 Nathan Sidwell <nathan@acm.org>
738 * config/nvptx/nvptx.md (nvptx_register_operand): Don't accept and
740 (nvptx_reg_or_mem_operand): Likewise.
741 (nvptx_nonmemory_operand): Likewise.
742 (call_insn_operand): A regular predicate, check SYMBOL_REF_FUNCTION_P.
743 (call_insn, call_value_insn): Address is not SImode.
744 * config/nvptx/nvptx.h (FIXED_REGISTERS): Make return reg fixed.
745 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove
747 (REGNO_REG_CLASS): Alwaus ALL_REGS.
748 (PROMOTE_MODE): QI and HI are the only smaller than SI int modes.
749 (HARD_FRAME_POINTER_REGNUM): Delete.
750 (REGISTER_NAMES): Move earlier.
751 (struct nvptx_args): Remove 'off'.
752 (INIT_CUMULATIVE_ARGS): Don't initialize 'off'.
753 (ELIMINABLE_REGS): Remove HARD_FRAME_POINTER_REGNUM.
754 * config/nvptx/nvptx.c (arg_promotion): Delete.
755 (nvptx_expand_call): Remove check for funtype being an fntype.
757 2015-12-15 Jason Merrill <jason@redhat.com>
759 * hash-map.h, hash-table.h: Make copy constructors explicit.
761 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
763 * cgraphunit.c (output_in_order): Do not assemble "omp declare target
764 link" variables in ACCEL_COMPILER.
765 * gimplify.c (gimplify_adjust_omp_clauses): Do not remove mapping of
766 "omp declare target link" variables.
767 * omp-low.c (scan_sharing_clauses): Do not remove mapping of "omp
768 declare target link" variables.
769 (add_decls_addresses_to_decl_constructor): For "omp declare target
770 link" variables output address of the artificial pointer instead
771 of address of the variable. Set most significant bit of the size
773 (pass_data_omp_target_link): New pass_data.
774 (pass_omp_target_link): New class.
775 (find_link_var_op): New static function.
776 (make_pass_omp_target_link): New function.
777 * passes.def: Add pass_omp_target_link.
778 * tree-pass.h (make_pass_omp_target_link): Declare.
779 * varpool.c (symbol_table::output_variables): Do not assemble "omp
780 declare target link" variables in ACCEL_COMPILER.
782 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
785 * gensupport.c (collect_insn_data): Look for number of alternatives
788 2015-12-15 Nathan Sidwell <nathan@acm.org>
790 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Reformat.
791 (CANNOT_CHANGE_MODE_CLASS): Always return true.
792 (HARD_REGNO_MODE_OK): Reformat.
793 * config/nvptx/nvptx.md (define_expand mov<mode>): No
794 RETURN_REGNUM handling here.
795 * config/nvptx/nvptx.c (nvptx_function_value): Set ret_reg_mode
797 (write_one_arg): No QI or HI mode args.
798 (write_fn_proto_from_insn): No argument promotion here.
799 (nvptx_output_return_insn): No return promotion here.
800 (nvptx_output_mov_insn): No RETURN_REGNUM handling needed.
801 (nvptx_output_call_insn): No return promotion here.
803 2015-12-15 Martin Jambor <mjambor@suse.cz>
806 * cgraph.c (collect_callers_of_node_1): Do not collect thunks.
807 * cgraph.h (cgraph_node): Change comment of collect_callers.
809 2015-12-15 Jakub Jelinek <jakub@redhat.com>
811 PR tree-optimization/66688
812 * tree-cfgcleanup.c (cleanup_control_flow_bb): Handle
813 noreturn call followed only by debug stmts by removing
814 the debug stmts and handling it the same as if the noreturn
815 call is the last stmt.
817 2015-12-14 Steve Ellcey <sellcey@imgtec.com>
819 * config/mips/mips.c (mips_promote_function_mode): New function.
820 (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
821 (TARGET_PROMOTE_PROTOTYPES): Remove.
823 2015-12-14 Jason Merrill <jason@redhat.com>
826 * hash-table.h: Add copy constructor.
827 * hash-map.h: Add copy constructor.
829 2015-12-14 Tom de Vries <tom@codesourcery.com>
832 * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
833 * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
834 * tree-cfg.c (dump_default_def): New function.
835 (dump_function_to_file): Dump default defs for arguments, static chain,
836 and decl-by-reference.
838 2015-12-14 Nathan Sidwell <nathan@acm.org>
840 * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
841 * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
842 (pass_in_memory, promote_arg, promote_return): New.
843 (nvptx_function_arg_boundary): Delete.
844 (nvptx_function_value): Use promote_return.
845 (nvptx_pass_by_reference): Use pass_in_memory.
846 (nvptx_return_in_memory): Use pass_in_memory.
847 (nvptx_promote_function_mode): Use promote_arg.
848 (write_arg): Adjust arg splitting logic.
849 (write_return): Check and clear ret_reg_mode, if needed.
850 (write_fn_proto, nvptx_declare_function_name): Adust write_return
852 (TARGET_RUNCTION_ARG_BOUNDARY,
853 TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
855 2015-12-14 Jakub Jelinek <jakub@redhat.com>
858 * common.opt (Wmissing-noreturn): Add Warning option.
859 * opts-common.c (control_warning_option): If opt is
860 alias_target with alias_arg, set arg to it.
862 2015-12-14 Segher Boessenkool <segher@kernel.crashing.org>
866 * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
869 2015-12-14 Richard Biener <rguenther@suse.de>
871 Revert accidentially applied
872 PR tree-optimization/68707
873 PR tree-optimization/67323
874 * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
875 if they can be vectorized using load/store-lane instructions.
877 2015-12-14 Richard Biener <rguenther@suse.de>
879 PR tree-optimization/68852
880 * tree-vectorizer.h (struct _slp_tree): Add def_type member.
881 (SLP_TREE_DEF_TYPE): New accessor.
882 * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
884 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
886 (vect_build_slp_tree): When a node is to be built up from scalars
887 do not push a NULL as child but instead set its def_type to
889 (vect_analyze_slp_cost_1): Check for child def-type instead
891 (vect_detect_hybrid_slp_stmts): Likewise.
892 (vect_bb_slp_scalar_cost): Likewise.
893 (vect_get_slp_defs): Likewise.
894 (vect_slp_analyze_node_operations): Likewise. Before
895 processing node push the children def-types to the underlying
896 stmts vinfo and restore it afterwards.
897 (vect_schedule_slp_instance): Likewise.
898 (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
901 2015-12-14 Richard Biener <rguenther@suse.de>
903 PR tree-optimization/68775
904 * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
905 a operand swapping even if replacing the op with scalars.
907 2015-12-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
909 * combine.c (change_zero_ext): Do not create a shift of zero length.
911 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
913 * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
915 (arc_no_speculation_in_delay_slots_p): New function.
917 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
918 Andrew Burgess <andrew.burgess@embecosm.com>
920 * config/arc/arc.c (frame_move): Set frame related flag.
921 (arc_save_restore): Emit epilogue related DWARF2 information.
922 (arc_expand_epilogue): Likewise.
923 * config/arc/arc.opt (mno-epilogue-cfi): Remove.
924 (mepilogue-cfi): Likewise.
925 * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
927 2015-12-14 Martin Jambor <mjambor@suse.cz>
930 * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
931 (call_passes_through_thunk_p): ...here.
932 (find_more_scalar_values_for_callers_subset): Perform thunk checks
933 like propagate_constants_accross_call does.
935 2015-12-14 Jakub Jelinek <jakub@redhat.com>
937 PR rtl-optimization/68730
938 * cfgrtl.c (cfg_layout_finalize): Free dominators.
940 2015-12-13 Alexandre Oliva <aoliva@redhat.com>
943 * var-tracking.c (reverse_op): Don't add dummy zero to reverse
944 ops that simplify back to the original value.
945 * alias.c (refs_newer_value_p): Cut off recursion for
946 expressions containing the original value.
948 2015-12-13 Kazu Kirata <kazu@gcc.gnu.org>
950 * config/m68k/m68k.md (load feeding clear byte): New peephole2.
952 2015-12-13 Tom de Vries <tom@codesourcery.com>
954 * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
955 parameters of GOACC_paralllel.
957 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
959 * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
960 flag to lto_get_section_data.
961 * varpool.c (varpool_node::get_constructor): Likewise.
962 * lto-section-in.c (lto_get_section_data): Add new flag decompress.
963 (lto_free_section_data): Likewise.
964 (lto_get_raw_section_data): New function.
965 (lto_free_raw_section_data): New function.
966 (copy_function_or_variable): Copy sections w/o decompressing.
967 (lto_output_decl_state_refs): Picke compressed bit.
968 * lto-streamer.h (lto_in_decl_state): New flag compressed.
969 (lto_out_decl_state): Likewise.
970 (lto_get_section_data, lto_free_section_data): Update prototypes
971 (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
972 (lto_write_raw_data): Declare.
973 (lto_begin_section): Remove FIXME.
974 (lto_write_raw_data): New function.
975 (lto_write_stream): Remove FIXME.
976 (lto_new_out_decl_state): Set compressed flag.
978 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
980 * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
981 unnecesary type decls.
982 * tree.h (is_redundant_typedef): Declare.
983 * dwarf2out.c (is_redundant_typedef): Export; booleanize
985 2015-12-12 Eric Botcazou <ebotcazou@adacore.com>
987 * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
988 * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
989 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
990 (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
991 <CONST_DOUBLE>: Remove VOIDmode test.
992 (epilogue_renumber) <CONST_WIDE_INT>: New case.
993 (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
994 (sparc_assemble_integer): Likewise.
995 (set_extends): Likewise.
996 (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
997 <CONST_WIDE_INT>: New case.
998 <CONST_DOUBLE>: Remove support for VOIDmode.
999 <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
1000 * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
1001 (const_all_ones_operand): Likewise.
1002 (uns_small_int_operand): Remove const_double and code conditionalized
1003 on HOST_BITS_PER_WIDE_INT == 32.
1004 (arith_double_operand): Likewise.
1005 (arith_double_add_operand): Likewise.
1006 (input_operand): Remove support for CONST_DOUBLE with DImode.
1007 * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
1008 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
1009 (DFmode CONST_DOUBLE splitter): Likewise.
1010 (*adddi3_insn_sp32): Likewise.
1011 (*subdi3_insn_sp32): Likewise.
1012 (DImode logical splitter): Likewise.
1013 (DImode CONST_DOUBLE splitter): Delete.
1015 2015-12-12 Paolo Bonzini <bonzini@gnu.org>
1018 * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
1019 sanitization of left shifts for wrapping signed types as well.
1021 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
1024 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
1025 Do not gimplify the result.
1026 (do_unop): Adjust call to tree_vec_extract.
1027 (do_binop): Likewise.
1028 (do_compare): Likewise.
1029 (do_plus_minus): Likewise.
1030 (do_negate): Likewise.
1031 (expand_vector_condition): Likewise.
1032 (do_cond): Likewise.
1034 2015-12-11 Nathan Sidwell <nathan@acm.org>
1036 * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
1037 (OUTGOING_ARG_POINTER_REGNUM): Delete.
1038 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1039 (REGISTER_NAMES): Name static chain regs.
1040 * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
1042 (nvptx_incoming_arg): Merge ifs.
1043 (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
1044 (nvptx_function_value): Tail call nvptx_libcall_value.
1045 (nvptx_pass_by_reference): Add ARG_UNUSED.
1046 (nvptx_static_chain): Use conditional op.
1047 (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
1049 2015-12-11 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1050 Dominique d'Humieres <dominiq@lps.ens.fr>
1055 * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
1056 trailing whitespace.
1058 2015-12-11 Jan Beulich <jbeulich@suse.com>
1060 * cfgexpand.c (expand_one_var): Exit early for static and
1061 external variables when adjusting stack alignment related.
1063 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1065 * config/s390/s390.c (s390_rtx_costs)
1066 (s390_cannot_force_const_mem, legitimate_pic_operand_p)
1067 (s390_preferred_reload_class, s390_reload_symref_address)
1068 (legitimate_reload_constant_p, print_operand): Wide int support.
1069 * config/s390/predicates.md ("const0_operand", "constm1_operand")
1070 ("consttable_operand"): Likewise.
1071 ("larl_operand"): Add a comment.
1072 * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
1075 2015-12-11 Nathan Sidwell <nathan@acm.org>
1077 * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
1078 * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
1081 2015-12-11 Tom de Vries <tom@codesourcery.com>
1083 * passes.def: Remove unpaired TERMINATE_PASS_LIST.
1085 2015-12-11 Michael Matz <matz@suse.de>
1087 * hash-map.h (hash_map::hash_map): Gather statistics only
1088 when GATHER_STATISTICS is true.
1089 * hash-set.h (hash_set::hash_set): Ditto.
1090 * hash-table.h (hash_table::hash_table): Ditto.
1091 (hash_table::create_ggc): Ditto.
1093 2015-12-11 Martin Jambor <mjambor@suse.cz>
1096 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
1097 assert that align is nonzero.
1099 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1101 * config/s390/s390.c (s390_expand_setmem): Use new expanders.
1102 * config/s390/s390.md ("*setmem_long")
1103 ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
1104 ("*setmem_long_and_31z"): New define_insn.
1105 ("setmem_long_<P:mode>"): New expanders.
1106 * (<modesize>): New mode attribute
1108 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1110 * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
1111 ("movstr<P:mode>"): New indirect expanders used by "movstr".
1113 2015-12-11 Martin Liska <mliska@suse.cz>
1114 Uros Bizjak <ubizjak@gmail.com>
1117 * config/i386/i386.c (ix86_valid_target_attribute_tree):
1118 Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
1119 opts->x_ix86_tune_string.
1121 2015-12-11 Richard Biener <rguenther@suse.de>
1123 * lto-streamer.h (lto_simple_header_with_strings): Remove
1124 main_size field already in lto_simple_header.
1126 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1128 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1131 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1133 * config/i386/i386.c (ix86_get_mask_mode): Use scalar
1134 modes for 32 and 16 byte boolean vectors when possible.
1136 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1138 PR rtl-optimization/67778
1139 PR rtl-optimization/68634
1140 * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
1141 to put the prologue earlier. When determining if an earlier block is
1142 suitable, make sure it dominates every block reachable from it.
1144 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1146 PR rtl-optimization/68814
1147 * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
1150 2015-12-10 Nathan Sidwell <nathan@acm.org>
1152 * config/nvptx/nvptx.c (nvptx_function_arg,
1153 nvptx_function_incoming_arg, nvptx_function_arg_advance,
1154 nvptx_strict_argument_naming, nvptx_function_arg_boundary,
1155 nvptx_libcall_value, nvptx_function_value,
1156 nvptx_function_value_regno_p, nvptx_pass_by_reference,
1157 nvptx_return_in_memory, nvptx_promote_function_mode,
1158 nvptx_static_chain): Move earlier.
1159 (write_one_arg): Break out as helper fn for ...
1160 (write_arg): ... this new function. Adjust all callers.
1162 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1164 * lto-streamer-out.c (wrap_refs): Only wrap public decls.
1166 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1168 * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
1169 (good_cloning_opportunity_p): Likewise.
1170 (gather_context_independent_values): Do not return true when
1171 polymorphic call context is known or when we have known aggregate
1172 value of unused parameter.
1173 (estimate_local_effects): Try to create clone for all context
1174 when either some params are substituted or devirtualization is possible
1175 or some params can be removed; use local flag instead of
1176 node->will_be_removed_from_program_if_no_direct_calls_p.
1177 (identify_dead_nodes): Likewise.
1179 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1181 * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
1183 (-Wmisleading-indentation): Update documentation to reflect
1184 being enabled by -Wall in C/C++.
1186 2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
1188 PR rtl-optimization/68691
1189 * lra-spills.c (lra_final_code_change): Check pseudo occurrence
1190 number in non-debug insns and remove debug insns if necessary.
1192 2015-12-10 Martin Sebor <msebor@redhat.com>
1194 * invoke.texi (Warning Options): Update -Wall options. Clarify
1195 when some -Wextra options are enabled. Add -Wplacement-new example.
1197 2015-12-10 Uros Bizjak <ubizjak@gmail.com>
1199 * graphite-scop-detection.c (gather_bbs::before_dom_children):
1200 Change return type to an edge. Always return NULL.
1202 2015-12-10 Jeff Law <law@redhat.com>
1204 PR tree-optimization/68619
1205 * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
1206 return value from optimize_stmt.
1207 (dom_opt_dom_walker): Add new argument to dom_walker constructor.
1208 (pass_dominator:execute): If a block has an unreachable edge,
1209 remove all jump threads through any successor of the affected block.
1210 (record_equivalences_from_phis): Ignore alternative if the edge
1211 does not have EDGE_EXECUTABLE set.
1212 (single_incoming_edge_ignoring_loop_edges): Similarly.
1213 (optimize_stmt): If a gimple_code has a compile-time constant
1214 condition, return the edge taken for that constant value. Also
1215 change the condition to true/false as necessary.
1216 * domwalk.h (dom_walker::dom_walker): Add new argument
1217 skip_unreachable_blocks. Don't provide empty constructor body.
1218 (dom_walker::before_dom_children): Change return type.
1219 (dom_walker::bb_reachable): Declare new private method.
1220 (dom_walker::propagate_unreachable_to_edges): Likewise.
1221 (dom_walker::m_unreachable_dom): Declare new private data member.
1222 (dom_walker::m_skip_unreachable_blocks): Likewise.
1223 * domwalk.c: Include dumpfile.h.
1224 (dom_walker::dom_walker): New constructor. Initialize private data
1225 members. If needed, set EDGE_EXECUTABLE for all edges in the CFG,
1226 extracted from tree-ssa-sccvn.c.
1227 (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
1228 (dom_walker::propagate_unreachable_to_edges): Likewise.
1229 (dom_walker::walk): Only call before_dom_children on reachable
1230 blocks. If before_dom_children returns an edge, then clear
1231 EDGE_EXECUTABLE for all other outgoing edges from the same block.
1232 For unreachable blocks, call propagate_unreachable_to_edges.
1233 Similarly, only call after_dom_children on reachable blocks. For
1234 unreachable blocks, conditionally clear m_unreachable_dom.
1235 * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
1236 private data member.
1237 (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
1239 (run_scc_vn): Likewise.
1240 (sccvn_dom_walker::before_dom_children): Likewise. Return the taken
1241 outgoing edge if a COND, SWITCH, or GOTO are optimized.
1242 * compare-elim.c (find_comparison_dom_walker::before_dom_children):
1243 Change return type to an edge. Always return NULL.
1244 * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
1245 * gimple-ssa-strength-reduction.c
1246 (find_candidates_dom_walker::before_dom_children): Likewise.
1247 * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
1248 (ipcp_modif_dom_walker::before_dom_children): Likewise.
1249 * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
1250 (rewrite_update_dom_walker::before_dom_children): Likewise.
1251 (mark_def_dom_children::before_dom_children): Likewise.
1252 * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
1253 * tree-ssa-loop-im.c
1254 (invariantness_dom_walker::before_dom_children): Likewise.
1255 (move_computations_dom_walker::before_dom_walker): Likewise.
1257 (nontrapping_dom_walker::before_dom_children): Likewise.
1259 (eliminate_dom_walker::before_dom_children): Likewise.
1260 * tree-ssa-propagate.c
1261 (substitute_and_fold_dom_walker::before_dom_children): Likewise.
1263 (strlen_dom_walker::before_dom_children): Likewise.
1264 * tree-ssa-uncprop.c
1265 (uncprop_dom_walker::before_dom_children): Likewise.
1267 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1269 PR rtl-optimization/68376
1270 PR rtl-optimization/68670
1271 * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
1272 or > -1 conditions regardless of negate, and disallow
1273 all other conditions.
1275 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1277 * tree-chkp.c (chkp_call_returns_bounds_p): Return true
1279 (chkp_fixup_inlined_call): New.
1280 * tree-chkp.h (chkp_fixup_inlined_call): New.
1281 * tree-stdarg.c: Include tree-chkp.h.
1282 (expand_ifn_va_arg_1): Fixup bndret calls for removed
1285 2015-12-10 Martin Jambor <mjambor@suse.cz>
1287 * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
1288 (replace_locals_op): Duplicate gimple sequences in OMP clauses.
1290 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1292 * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
1294 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1296 * ifcvt.c (noce_try_inverse_constants): Fix indentation.
1298 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1300 * regrename.c (scan_rtx_address): Fix indentation.
1302 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1304 * function.c (locate_and_pad_parm): Fix indentation.
1306 2015-12-10 Richard Biener <rguenther@suse.de>
1308 * tree-ssa-structalias.c (struct variable_info): Add
1309 is_ipa_escape_point flag.
1310 (new_var_info): Initialize to false.
1311 (find_func_aliases): Generate escape constraints for stores
1312 properly in IPA mode.
1313 (ipa_pta_execute): Compute is_ipa_escape_point for globals.
1315 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1317 * config/arc/atomic.md: Add new file.
1319 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1321 * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
1322 (arc_split_compare_and_swap): Likewise.
1323 (arc_expand_compare_and_swap): Likewise.
1324 * config/arc/arc.c (arc_init): Check usage atomic option.
1325 (arc_pre_atomic_barrier): New function.
1326 (arc_post_atomic_barrier): Likewise.
1327 (emit_unlikely_jump): Likewise.
1328 (arc_expand_compare_and_swap_qh): Likewise.
1329 (arc_expand_compare_and_swap): Likewise.
1330 (arc_split_compare_and_swap): Likewise.
1331 (arc_expand_atomic_op): Likewise.
1332 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
1333 (ASM_SPEC): Enable mlock option when matomic is used.
1334 * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
1335 (VUNSPEC_ARC_CAS): Likewise.
1336 (VUNSPEC_ARC_LL): Likewise.
1337 (VUNSPEC_ARC_SC): Likewise.
1338 (VUNSPEC_ARC_EX): Likewise.
1339 * config/arc/arc.opt (matomic): New option.
1340 * config/arc/constraints.md (ATO): New constraint.
1341 * config/arc/predicates.md (mem_noofs_operand): New predicate.
1342 * doc/invoke.texi: Document -matomic.
1343 * config/arc/atomic.md: New file.
1345 2015-12-10 Richard Biener <rguenther@suse.de>
1347 PR tree-optimization/68817
1348 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
1351 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1353 * tree-vect-stmts.c (vectorizable_assignment): Support
1354 useless boolean conversion.
1356 2015-12-10 Alan Lawrence <alan.lawrence@arm.com>
1358 * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
1360 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1362 PR tree-optimization/68785
1363 * gimple-fold.c (fold_ctor_reference): Pass return value from
1364 native_encode_expr to native_interpret_expr.
1365 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
1367 2015-12-10 Richard Biener <rguenther@suse.de>
1370 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
1371 parameter and make vars_contains_nonlocal properly have
1372 function-scope semantics in IPA mode.
1373 (find_what_var_points_to): Add fndecl parameter.
1374 (find_what_p_points_to): Likewise.
1375 (pt_solution_includes_global): Remove IPA PTA early out.
1376 (compute_points_to_sets): Adjust.
1377 (ipa_pta_execute): Likewise. Clear final_solutions after
1380 2015-12-10 Tom de Vries <tom@codesourcery.com>
1383 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
1384 ifdef to allow disabling default @node GNU Free Documentation License.
1386 2015-12-10 Richard Biener <rguenther@suse.de>
1388 * tree-ssa-structalias.c (create_function_info_for): Add missing
1389 constraint from nonlocal for DECL_RESULT.
1391 2015-12-10 Richard Biener <rguenther@suse.de>
1393 * tree-if-conv.c: Include params.h.
1394 (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
1395 instead of flag_tree_loop_if_convert_stores to guard cases
1396 we'd introduce store-data-races.
1398 2015-12-10 Richard Biener <rguenther@suse.de>
1401 * ipa-split.c (split_function): Record return value properly
1402 when the split part doesn't set it.
1404 2015-12-10 Richard Biener <rguenther@suse.de>
1406 PR tree-optimization/68806
1407 * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
1408 reduction chains and ignore SLP reductions.
1410 2015-12-10 Richard Biener <rguenther@suse.de>
1412 * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
1414 (if_convertible_loop_p): Adjust.
1416 2015-12-10 Tom de Vries <tom@codesourcery.com>
1418 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
1421 2015-12-10 Martin Liska <mliska@suse.cz>
1423 * tree-vect-data-refs.c: Free an overwritten dataref.
1425 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
1428 * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
1429 consistent with modes of the input and output operands when doing
1430 reloads to and from floating point registers. Do reload for all
1433 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1437 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
1438 (nonoverlapping_component_refs_of_decl_p): Update sanity check.
1439 (decl_refs_may_alias_p): Use compare_base_decls.
1440 * alias.c: Include cgraph.h
1441 (get_alias_set): Add cut-off for recursion.
1442 (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
1443 (compare_base_decls): New function.
1444 (base_alias_check): Likewise.
1445 (memrefs_conflict_p): Likewise.
1446 (nonoverlapping_memrefs_p): Likewise.
1447 * alias.h (compare_base_decls): Declare.
1449 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1452 * ipa-visibility.c (function_and_variable_visibility): Fix vtable
1455 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1459 * ipa-reference.c (ipa_reference_get_not_read_global,
1460 ipa_reference_get_not_read_global): Fix WRT aliases.
1461 (is_improper): Break out from ...
1462 (is_proper_for_analysis): ... here; fix WRT aliases.
1463 (analyze_function, generate_summary,
1464 ipa_reference_write_optimization_summary,
1465 ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
1466 * ipa-refrence.h (ipa_reference_var_uid): New inline.
1467 * tree-ssa-alias.c: Revert my accidental previous commit.
1468 (ref_maybe_used_by_call_p_1,
1469 call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
1471 2015-12-09 Andreas Tobler <andreast@gcc.gnu.org>
1473 * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
1475 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1476 Sebastian Pop <s.pop@samsung.com>
1478 * graphite-optimize-isl.c: Include isl/ast_build.h
1479 (optimize_isl): Set several isl_options_set_* options.
1481 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1482 Sebastian Pop <s.pop@samsung.com>
1484 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
1485 the same order as adding data reference access functions.
1487 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1488 Sebastian Pop <s.pop@samsung.com>
1490 * graphite-optimize-isl.c (optimize_isl): Improve dump message.
1492 2015-12-09 Marek Polacek <polacek@redhat.com>
1494 PR tree-optimization/66949
1495 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
1496 single_non_singleton_phi_for_edges to get the PHI from
1497 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
1498 (factor_out_conditional_conversion): Adjust declaration. Make it
1499 return the newly-created PHI.
1501 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
1503 * config/aarch64/aarch64-protos.h
1504 (aarch64_cannot_change_mode_class): Bring back.
1505 * config/aarch64/aarch64.c
1506 (aarch64_cannot_change_mode_class): Likewise.
1507 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
1508 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
1509 zero_extract rather than truncate.
1510 (aarch64_movdi_<mode>high): Likewise.
1512 2015-12-09 Jakub Jelinek <jakub@redhat.com>
1514 PR tree-optimization/68786
1515 * tree-if-conv.c: Include builtins.h.
1516 (predicate_mem_writes): Put result of get_object_alignment (ref)
1517 into second argument's value.
1518 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
1519 pointer alignment into second argument's value.
1520 * tree-data-ref.c (get_references_in_stmt): Use value of second
1521 argument for build_aligned_type, and only the type to build
1522 a zero second argument for MEM_REF.
1523 * internal-fn.c (expand_mask_load_optab_fn,
1524 expand_mask_store_optab_fn): Likewise.
1526 2015-12-09 Richard Biener <rguenther@suse.de>
1528 PR tree-optimization/68583
1529 * tree-if-conv.c (if_convertible_phi_p): Drop
1530 flag_tree_loop_if_convert_stores check in favor of the
1531 existing any_mask_load_store check.
1532 (insert_gimplified_predicates): Likewise.
1533 (combine_blocks): Likewise.
1534 (tree_if_conversion): Likewise.
1535 (ifcvt_memrefs_wont_trap): Properly check
1536 flag_tree_loop_if_convert_stores in all places that can end
1537 up introducing store-data-races.
1538 (if_convertible_gimple_assign_stmt_p): Remove restriction
1539 on flag_tree_loop_if_convert_stores for stores we can if-convert
1540 without introducing store-data-races. Force versioning for
1541 all if-converted stores.
1543 2015-12-09 Tom de Vries <tom@codesourcery.com>
1545 PR tree-optimization/68716
1546 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
1547 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
1549 2015-12-09 Martin Liska <mliska@suse.cz>
1551 * hash-traits.h (struct typed_delete_remove): New function.
1552 (typed_delete_remove ::remove): Likewise.
1553 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
1555 (record_common_cand): Replace XNEW with operator new.
1557 2015-12-09 Martin Liska <mliska@suse.cz>
1559 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
1561 2015-12-09 Martin Liska <mliska@suse.cz>
1564 * ipa-icf.c (sem_function::param_used_p): Return true
1565 if ipa_node_params_sum equals to NULL.
1567 2015-12-09 Richard Biener <rguenther@suse.de>
1569 PR tree-optimization/68583
1570 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
1571 flag and rename predicates to w_predicate, rw_predicate and
1573 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
1574 (DR_BASE_W_UNCONDITIONALLY): ... this.
1575 (DR_W_UNCONDITIONALLY): Add.
1576 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
1577 unconditionally written separately from read or written.
1578 (ifcvt_memrefs_wont_trap): Properly treat reads.
1579 (ifcvt_could_trap_p): Inline ...
1580 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
1581 to avoid code duplication.
1582 (if_convertible_loop_p_1): Adjust and properly initialize
1585 2015-12-09 Richard Biener <rguenther@suse.de>
1587 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
1588 if it was not yet set.
1589 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
1590 overwrite an existing entry.
1592 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1594 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
1595 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
1596 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
1598 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1601 * symtab.c (symtab_node::equal_address_to): New parameter
1603 * cgraph.h (symtab_node::equal_address_to): Update prototype.
1605 2015-12-08 DJ Delorie <dj@redhat.com>
1607 * config/rx/rx.opt (-mjsr): Add.
1608 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
1610 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
1612 * doc/invoke.texi (-mjsr): Document it.
1614 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1617 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
1618 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
1619 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
1620 DECL_ABSTRACT_ORIGIN is not error_mark_node.
1622 2015-12-08 David Malcolm <dmalcolm@redhat.com>
1624 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
1626 2015-12-08 David Malcolm <dmalcolm@redhat.com>
1628 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
1631 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1634 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
1637 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1640 * varpool.c (varpool_node::get_availability): Recurse only on
1641 weakrefs with definition in the target.
1642 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
1644 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1647 * ipa-visibility.c (can_replace_by_local_alias): Look through
1648 transparent aliases; refuse weakrefs.
1649 (update_visibility_by_resolution_info): Skip transparent aliases in the
1652 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1655 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
1656 (symtab_node::noninterposable_alias): Do not accept transparent
1659 2015-12-08 Nathan Sidwell <nathan@acm.org>
1661 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
1662 decl_offset, init_part, object_size, object_finished): Replace
1664 (struct init_frag): ... this new struct variable.
1665 (begin_decl_field, output_decl_chunk): Replace with ...
1666 (output_init_frag): ... this new function.
1667 (nvptx_assemble_value): Reimplement.
1668 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
1669 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
1670 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
1672 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1676 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
1677 with BLKmode promoted mode based on RESULT_DECLs.
1679 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
1682 * config/i386/i386.c (ix86_option_override_internal): Enable
1683 -maccumulate-outgoing-args when %ebp is fixed due to stack
1684 realignment requirements.
1686 2015-12-08 Tom de Vries <tom@codesourcery.com>
1688 PR tree-optimization/68640
1689 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
1692 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
1694 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
1695 assembler to make source always 128bit.
1697 2015-12-08 Jakub Jelinek <jakub@redhat.com>
1701 * common.opt (Wframe-larger-than=): Add Warning.
1702 * opts.h (control_warning_option): Add ARG argument.
1703 * opts-common.c (cmdline_handle_error): New function.
1704 (read_cmdline_option): Use it.
1705 (control_warning_option): Likewise. Add ARG argument.
1706 If non-NULL, decode it if needed and pass through
1707 to handle_generated_option. Handle CLVC_ENUM like
1709 * opts.c (common_handle_option): Adjust control_warning_option
1711 (enable_warning_as_error): Likewise.
1713 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
1715 * config/aarch64/aarch64-options-extensions.def: Remove
1716 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
1718 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
1719 (AARCH64_FL_LOR): Remove.
1720 (AARCH64_FL_RDMA): Remove.
1721 (AARCH64_FL_V8_1): New.
1722 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
1723 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1724 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
1725 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
1726 section on -march=native. Group descriptions of permitted
1727 architecture names together. Expand description of
1729 (AArch64 -mtune): Slightly rework section on -march=native.
1730 (AArch64 -mcpu): Slightly rework section on -march=native.
1731 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
1732 State that -march=armv8.1-a enables "crc" and "lse".
1734 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1736 * doc/invoke.texi (SPARC options): Fix typo.
1738 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
1740 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
1741 (output_probe_stack_range): Rotate the loop and simplify.
1743 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
1745 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
1746 infinity filterning code.
1748 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
1750 PR tree-optimization/68766
1751 * tree-vectorizer.c (vectorize_loops): Check for
1752 if-converted loops when debug counters are used.
1754 2015-12-07 DJ Delorie <dj@redhat.com>
1756 * config/rl78/constraints.md (Wfr): Change to be a non-memory
1758 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
1759 * config/rl78/rl78.c (rl78_one_far_p): Define.
1760 * config/rl78/rl78-virt (movqi_virt): Fix far memory
1762 (movhi_virt): Likewise.
1763 (zero_extendqihi2_virt): Likewise.
1764 (extendqihi2_virt): Likewise.
1765 (add<mode>3_virt): Likewise.
1766 (sub<mode>3_virt): Likewise.
1767 (andqi3_virt): Likewise.
1768 (iorqi3_virt): Likewise.
1769 (xorqi3_virt): Likewise.
1770 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
1771 overflow in large files.
1773 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
1776 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
1777 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
1778 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
1779 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
1781 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
1783 * reorg.c (optimize_skip): Do not put frame related instructions
1784 in annulled delay slots.
1785 (steal_delay_list_from_target): Ditto.
1786 (fill_slots_from_thread): Ditto.
1788 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
1790 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
1791 * config/aarch64/aarch64.md: Include "exynos-m1.md".
1792 * config/arm/arm.md: Likewise.
1793 * config/arm/exynos-m1.md: New file.
1795 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
1797 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
1799 2015-12-07 Nathan Sidwell <nathan@acm.org>
1801 * config//nvptx/nvptx.c (write_return): New.
1802 (write_fn_proto, nvptx_declare_function_name): Call it.
1804 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
1807 * symtab.c (ultimate_transparent_alias_target): New inline function.
1808 (symbol_table::assembler_names_equal_p): New method; break out from ...
1809 (symbol_table::decl_assembler_name_equal): ... here.
1810 (symbol_table::change_decl_assembler_name): Also update names and
1811 translation links of transparent aliases.
1812 (symtab_node::dump_base): Dump transparent_alias.
1813 (symtab_node::verify_base): Implement basic transparent alias
1815 (symtab_node::make_decl_local): Support localization of weakrefs;
1816 recurse to transparent aliases; set TREE_STATIC.
1817 (symtab_node::ultimate_alias_target_1): Handle visibility of
1818 transparent aliases.
1819 (symtab_node::resolve_alias): New parmaeter transparent; handle
1820 transparent aliases; recurse to aliases of aliases to fix comdat
1822 (symtab_node::get_partitioning_class): Handle transparent aliases.
1823 * ipa-visibility.c (cgraph_externally_visible_p,
1824 varpool_node::externally_visible_p): Visibility of transparent alias
1825 depends on its target.
1826 (function_and_variable_visibility): Do not tweak visibility of
1827 transparent laiases.
1828 (function_and_variable_visibility): Likewise.
1829 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
1830 transparent_alias flag.
1831 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
1832 Support transparent aliases.
1833 * cgraph.h (symtab_node): Update prototype of resolve_alias;
1834 add transparent_alias flag.
1835 (symbol_table: Add assembler_names_equal_p.
1836 (symtab_node::real_symbol_p): Skip transparent aliases.
1837 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
1838 (handle_alias_pairs): Set transparent_alias for weakref.
1839 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
1841 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
1842 skip symbols not put into boundary; stream transparent_alias.
1843 (lto_output_varpool_node): Likewise.
1844 (input_overwrite_node, input_varpool_node): Stream transparent alias.
1845 * varpool.c (ctor_for_folding, varpool_node::get_availability,
1846 varpool_node::assemble_aliases,
1847 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
1848 (varpool_node::create_alias): Set transparent_alias.
1850 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
1854 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
1855 SSA names based on RESULT_DECLs.
1856 * function.c (expand_function_start): Do not create BLKmode REGs
1857 for GIMPLE registers when coalescing is enabled.
1859 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1861 * final.c (shorten_branches): Fix check for basic asm.
1862 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
1865 2015-12-07 Nathan Sidwell <nathan@acm.org>
1867 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
1870 2015-12-07 David Malcolm <dmalcolm@redhat.com>
1872 * pretty-print.c (text_info::set_range): Rename to...
1873 (text_info::set_location): ...this, converting 2nd param
1874 from source_range to a location_t.
1875 * pretty-print.h (text_info::set_location): Convert
1876 from inline function to external definition.
1877 (text_info::set_range): Delete.
1879 2015-12-07 Nathan Sidwell <nathan@acm.org>
1881 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
1882 complex and vector types. Cope with packed structs.
1884 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
1887 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
1888 Force destination to 512 bits register.
1890 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
1893 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
1894 (define_insn "kunpcksi"): Ditto.
1895 (define_insn "kunpckdi"): Ditto.
1897 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
1899 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
1901 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
1903 * common/config/i386/i386-common.c
1904 (OPTION_MASK_ISA_CLZERO_SET): New.
1905 (ix86_handle_option): Handle clzero.
1906 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
1907 (x86_64-*-*): Likewise.
1908 * config/i386/clzerointrin.h: New header.
1909 * config/i386/cpuid.h (bit_CLZERO): Define.
1910 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1912 * config/i386/i386.opt (clzero): New.
1913 * config/i386/i386-c.c: Define __CLZERO__ if needed.
1914 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
1916 (ix86_option_override_internal): Handle new option.
1917 (processor_alias_table): Added PTA_CLZERO.
1918 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
1919 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
1920 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
1921 IX86_BUILTIN_CLZERO built-ins.
1922 * config/i386/i386.h (TARGET_CLZERO): New.
1923 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
1924 (clzero): New pattern.
1925 (clzero_<mode>): New pattern.
1926 * config/i386/x86intrin.h: Include clzerointrin.h.
1927 * doc/extend.texi: Document clzero builtins.
1928 * doc/invoke.texi: Document -mclzero option.
1930 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
1932 * ipa-icf.c (sem_function::merge): Check that local_original exists.
1934 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
1937 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
1939 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
1940 non-reciporcal path.
1941 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
1942 (sqrt<mode>2): Replace define_insn with define_expand that may call
1945 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1946 Sebastian Pop <s.pop@samsung.com>
1948 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1950 (get_rename_from_scev): Check that all the ops in an expression
1951 have their uses dominated by corresponding defs.
1953 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1954 Sebastian Pop <s.pop@samsung.com>
1956 PR tree-optimization/68693
1957 * graphite-scop-detection.c (dot_all_sese): New
1958 (dot_all_scops_1): Renamed to dot_all_sese.
1959 (dot_all_scops): Removed.
1962 (scop_detection::get_nearest_dom_with_single_entry): Check that
1963 preds are from different loop levels.
1964 (scop_detection::get_nearest_pdom_with_single_exit): Check that
1965 succs are from different loop levels.
1966 (scop_detection::print_sese): Inlined.
1967 (scop_detection::print_edge): New.
1968 (scop_detection::merge_sese): Added dumps.
1969 * graphite.h: Add declarations.
1971 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
1973 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
1976 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
1978 PR rtl-optimization/68349
1979 * lra-eliminations.c (move_plus_up): New function.
1980 (lra_eliminate_regs_1): Use the function.
1982 2015-12-04 Nathan Sidwell <nathan@acm.org>
1984 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
1985 (init_output_initializer): ... this.
1986 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
1987 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
1988 nvptx_assemble_decl_begin.
1990 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
1992 * sancov.c: New file.
1993 * Makefile.in (OBJS): Add sancov.o.
1994 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
1995 * passes.def (sancov_pass): Add.
1996 * tree-pass.h (sancov_pass): Add.
1997 * common.opt (-fsanitize-coverage=trace-pc): Add.
1998 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
1999 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
2000 flag_sanitize_coverage.
2002 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2005 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
2006 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
2007 * config/arm/arm.md (probe_stack_range): Adjust.
2008 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
2009 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
2010 (probe_stack_range_<PTR:mode>): Adjust.
2012 2015-12-04 David Malcolm <dmalcolm@redhat.com>
2014 * convert.c (convert_to_real_1): When converting from a
2015 REAL_TYPE, preserve the location of EXPR in the result.
2016 * tree.c (get_pure_location): Make non-static.
2017 (set_source_range): Return the resulting location_t.
2018 (make_location): New function.
2019 * tree.h (get_pure_location): New decl.
2020 (get_finish): New inline function.
2021 (set_source_range): Convert return type from void to location_t.
2022 (make_location): New decl.
2024 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2027 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
2028 input_location to inform.
2029 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
2030 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
2031 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
2033 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
2035 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
2036 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
2037 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
2038 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
2039 comdat and non-comdat.
2040 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
2041 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
2044 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
2046 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
2047 instead of register_operand. Remove empty constraints. Use std::swap.
2048 (cstore_si_as_di, cstore<mode>4_signed_imm,
2049 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
2050 gpc_reg_operand instead of register_operand.
2051 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
2052 register_operand. Remove empty constraints.
2054 2015-12-04 Nick Clifton <nickc@redhat.com>
2056 * config.gcc (extra_gcc_objs): Define for MSP430.
2057 * common/config/msp430/msp430-common.c (msp430_handle_option):
2058 Pass both -mmcu and -mcpu on to the back end if they are both defined.
2059 * config/msp430/msp430.c (hwmult_name): New function.
2060 (msp430_option_override): If an unrecognised MCU name is
2061 detected only warn if the user has not provided suitable
2062 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
2063 warning messages. Generate warnings about conflicts between
2064 -mmcu and -mcpu and -mhwmult options.
2065 If neither -mcpu nor -mmcu have been specified but -mhwmult=
2066 f5series has the select the 430X isa.
2067 (msp430_no_hwmult): If -mmcu has not been specified and
2068 msp430_hwmult_type is AUTO then return true.
2069 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
2070 (LIB_SPEC): Add hardware multiply library selection.
2071 * config/msp430/t-msp430: Delete hardware multiply multilibs.
2072 Add rule to build driver-msp430.o
2073 * config/msp430/driver-msp430.c: New file.
2074 * config/msp430/msp430.opt (warn-mcu): New option.
2075 * doc/invoke.texi: Update description of -mhwmult=auto.
2076 Document -mwarn-mcu option.
2078 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
2080 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
2081 (cstore<mode>4): Call it.
2083 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2085 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
2087 PR tree-optimization/68680
2088 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
2089 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
2092 PR tree-optimization/68671
2093 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
2094 blocks starting with the successor of first bb we've modified
2095 and ending with last_bb call reset_flow_sensitive_info_in_bb.
2097 2015-12-04 Jeff Law <law@redhat.com>
2099 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
2100 indicating if a gimple conditional was optimized to true/false.
2101 (reassociate_bb): Bubble up return value from
2102 maybe_optimize_range_tests.
2103 (do_reassoc): Similarly, but for reassociate_bb.
2104 (execute_reassoc): Return TODO_cleanup_cfg as needed.
2106 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2108 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2109 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
2110 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
2111 does not affect the assembler directives.
2113 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2115 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
2116 emit .machine and .machinemode to the top of the assembler file.
2117 (TARGET_ASM_FILE_START): Provide target hook.
2118 (s390_asm_output_machine_for_arch): Protect with
2119 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
2121 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2123 * config/s390/s390.opt (s390_arch_string): Remove.
2124 (s390_tune_string): Likewise.
2125 (s390_cost_pointer): Add Variable.
2126 (s390_tune_flags): Add TargetVariable.
2127 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
2128 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
2129 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
2130 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
2131 (mwarn-framesize=): Save option.
2132 (mno-stack-guard, mno-stack-guard): New option.
2133 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
2134 (mwarn-framesize=): Convert to UInteger (negative values are rejected
2136 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
2137 macros changeable through the GCC target pragma into a separate
2139 (s390_cpu_cpp_builtins): Likewise.
2140 (s390_pragma_target_parse): New function, implement GCC target pragma
2142 (s390_register_target_pragmas): Register s390_pragma_target_parse if
2144 * common/config/s390/s390-common.c (s390_handle_option):
2146 Move setting s390_arch_flags to s390.c.
2147 Remove s390_tune_flags.
2148 Allow 0 as argument to -mstack-size (switch to default value).
2149 Allow 0 as argument to -mstack-guard (switch off).
2150 Remove now unnecessary explicit parsing code for -mwarn-framesize.
2151 * config/s390/s390-protos.h (s390_handle_option): Export.
2152 (s390_valid_target_attribute_tree): Export.
2153 (s390_reset_previous_fndecl): Export.
2154 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
2155 and end of HTM and VX builtins.
2156 (s390_asm_output_function_prefix): Declare hook.
2157 (s390_asm_declare_function_size): Likewise.
2158 * config/s390/s390-builtins.h (B_GROUP): Use macro.
2159 * config/s390/s390-opts.h: Add comment about processor_type usage.
2160 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
2161 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
2162 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
2163 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
2164 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
2165 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
2166 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
2167 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
2168 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
2169 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
2170 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
2171 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
2172 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
2173 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
2175 (vec_all_nan): Rewrite as macro using statement expressions to avoid
2176 that the vector keyword needs to be defined when including the file.
2177 (vec_all_numeric): Likewise.
2178 (vec_any_nan): Likewise.
2179 (vec_any_numeric): Likewise.
2180 * config/s390/s390.c (s390_previous_fndecl): New static variable.
2181 (s390_set_current_function): New function.
2182 (s390_cost): Wrapper macro to allow defining the cost table pointer in
2184 (processor_table): Table for march= and mtune= parsing.
2185 (s390_init_builtins): Enable all builtins and types unconditionally.
2186 (s390_expand_builtin): Generate an error message if builtin is not
2187 supported by current options.
2188 Correct an error message.
2189 (s390_function_specific_restore): New function to set s390_cost.
2190 (s390_asm_output_machine_for_arch): New function for emitting .machine
2191 and .machinmode directives to the assembler file.
2192 (s390_asm_output_function_prefix): Likewise.
2193 (s390_asm_declare_function_size): Likewise.
2194 (s390_asm_output_function_label): Add mdebug output for feature testing.
2195 (s390_option_override): Move implementation into internal function.
2196 (s390_option_override_internal): Likewise.
2197 Implement option overriding based on current options.
2198 (s390_valid_target_attribute_inner_p): New function implementing target
2200 (s390_valid_target_attribute_tree): Likewise.
2201 (s390_valid_target_attribute_p): Likewise.
2202 (s390_reset_previous_fndecl): Likewise.
2203 (s390_set_current_function): Likewise.
2204 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
2205 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
2206 (TARGET_OPTION_RESTORE): Likewise.
2207 * doc/extend.texi: S390: Document target attribute and pragma.
2208 * config.in: Regenerated.
2209 * configure: Regenerated.
2210 * configure.ac: S390: Check for .machinemode and .machine in gas.
2211 S390: Check for architecture modifiers support in gas.
2213 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2215 * doc/extend.texi ("simd"): Describe new flags.
2217 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
2219 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
2220 operand checked for alignment.
2222 2015-12-04 Nathan Sidwell <nathan@acm.org>
2224 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
2225 emission too. Change 'no_arg_types' to 'prototyped'.
2226 (write_fn_proto): Use write_one_arg for stdarg, static chain &
2228 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
2230 2015-12-04 Richard Biener <rguenther@suse.de>
2232 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
2233 member and initialize it.
2234 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
2236 (sccvn_dom_walker::before_dom_children): If unreachable_dom
2237 is set BB is not reachable either. Set unreachable_dom
2238 if not set and BB is unreachable.
2240 2015-12-04 Richard Biener <rguenther@suse.de>
2242 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
2243 query with GATHER_STATISTICS.
2245 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2248 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
2249 fields, add keep_stack and reorder them.
2250 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
2251 set it to false. Do not insert a stack save/restore pair if it has
2252 been set to true by the gimplification of the statements.
2253 Restore it to the saved value on exit if it is still false.
2254 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
2255 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
2256 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
2257 * doc/extend.texi (Variable Length): Document new behavior.
2258 * doc/generic.texi (Blocks): Document new handling of VLAs.
2260 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2261 Tristan Gingold <gingold@adacore.com>
2264 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
2266 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
2267 UNSPEC_PROBE_STACK_RANGE.
2268 (blockage): New instruction.
2269 (probe_stack_range_<PTR:mode>): Likewise.
2270 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
2272 (aarch64_output_probe_stack_range): Likewise.
2273 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
2274 static builtin stack checking is enabled.
2275 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
2278 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2281 * config/arm/arm.md (*call_mem): Delete pattern.
2282 (*call_value_mem): Likewise.
2283 * config/arm/arm.c (output_call_mem): Delete.
2284 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
2286 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2288 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
2289 aarch64_sync_memory_operand.
2291 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2294 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
2295 (expand_vec_perm_1): Use it and recurse if everything else
2296 failed. Use nd.perm instead of perm2.
2297 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
2298 instead of gen_lowpart for the target.
2299 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
2300 and recurse if everything else failed.
2302 2015-12-04 Richard Biener <rguenther@suse.de>
2305 * builtins.c (get_pointer_alignment_1): Take care of byte to
2306 bit alignment computation overflow.
2308 2015-12-04 Richard Biener <rguenther@suse.de>
2311 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
2312 a constant with single_use.
2314 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2315 Jiong Wang <jiong.wang@arm.com>
2317 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
2318 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
2320 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
2322 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
2323 Add short circuit for !flag_strict_aliasing
2324 (get_alias_set): Remove flag_strict_aliasing check.
2325 (new_alias_set): Likewise.
2327 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
2329 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
2330 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
2331 (exynosm1_regmove_cost): Likewise.
2332 (exynosm1_vector_cost): Likewise.
2333 (exynosm1_tunings): Likewise.
2334 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
2335 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
2337 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
2338 Richard Biener <richard.guenther@gmail.com>
2340 * cfgexpand.c (pass_expand::execute): Replace call to
2341 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
2342 * tree-ssa.c (delete_tree_ssa): Likewise.
2343 * function.c (set_cfun): Call redirect_edge_var_map_empty.
2344 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
2345 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
2346 (redirect_edge_var_map_empty): New.
2347 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
2348 (redirect_edge_var_map_empty): New.
2350 2015-12-03 Jeff Law <law@redhat.com>
2352 PR tree-optimization/68599
2353 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
2354 in call to loop_optimizer_init.
2355 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
2356 optimization to drop the assumptions/infinite notations if
2357 the loop has a single exit.
2359 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2361 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
2362 the pattern cannot FAIL.
2363 (vec_store_lanes@var{m}@var{n}): Likewise.
2364 (maskload@var{m}@var{n}): Likewise.
2365 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
2366 in the name of the pattern.
2367 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
2368 floating-point mode and that all operands have that mode.
2369 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
2370 pattern cannot FAIL.
2371 (sqrt@var{m}2): Document that mode m must be a scalar or vector
2372 floating-point mode, that all operands have that mode, and that
2373 the patterns cannot FAIL. Remove previous documentation referring
2374 to @code{double} and @code{float}.
2375 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
2376 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
2377 (copysign@var{m}3): Likewise.
2378 (exp@var{m}2): Likewise. Explicitly state the base.
2379 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
2380 (btrunc@var{m}2, rint@var{m}2): Likewise.
2381 (round@var{m}2): Likewise. Fix incorrect description of rounding
2383 (ceil@var{m}2): As for round@var{m}2.
2384 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
2385 the instruction must not raise an inexact condition.
2386 (scalb@var{m}3): Document previously-undocumented pattern
2387 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
2388 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
2389 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
2390 (significand@var{m}2): Likewise.
2391 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
2392 mode m and operand 0 is defined more freely. Document that @var{m}
2393 can be a scalar or vector integer mode and that the pattern is not
2395 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
2396 (clrsb@var{m}2): Likewise, except that the description of the
2397 mode was missing in this case.
2399 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2401 * internal-fn.def (RSQRT): New function.
2402 * optabs.def (rsqrt_optab): New optab.
2403 * doc/md.texi (rsqrtM2): Document.
2404 * target.def (builtin_reciprocal): Replace gcall argument with
2405 a function decl. Restrict hook to machine functions.
2406 * doc/tm.texi: Regenerate.
2407 * targhooks.h (default_builtin_reciprocal): Update prototype.
2408 * targhooks.c (default_builtin_reciprocal): Likewise.
2409 * tree-ssa-math-opts.c: Include internal-fn.h.
2410 (internal_fn_reciprocal): New function.
2411 (pass_cse_reciprocals::execute): Call it, and build a call to an
2412 internal function on success. Only call targetm.builtin_reciprocal
2413 for machine functions.
2414 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
2416 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
2417 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
2418 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
2420 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
2421 (aarch64_builtin_reciprocal): Replace gcall argument with a
2422 function decl. Use use_rsqrt_p. Remove optimize_size check.
2423 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
2424 (aarch64_optab_supported_p): New function.
2425 (TARGET_OPTAB_SUPPORTED_P): Define.
2426 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
2427 (rsqrt<mode>2): ...this.
2428 * config/i386/i386.c (use_rsqrt_p): New function.
2429 (ix86_builtin_reciprocal): Replace gcall argument with a
2430 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
2431 check. Only handle machine functions.
2432 (ix86_optab_supported_p): Handle rsqrt_optab.
2433 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
2434 (rs6000_builtin_reciprocal): Replace gcall argument with a
2435 function decl. Remove optimize_insn_for_size_p check.
2436 Only handle machine functions.
2437 (rs6000_optab_supported_p): New function.
2439 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
2443 * config/i386/i386.c (ix86_mitigate_rop): Don't call
2444 compute_bb_for_insn again. Call df_insn_rescan_all.
2445 * config/i386/i386.md (set_got_rex64): Override modrm_class.
2447 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
2449 2015-12-03 Nathan Sidwell <nathan@acm.org>
2451 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
2452 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
2453 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
2454 (nvptx_option_override): Set data ares for worker vars.
2455 (nvptx_addr_space_from_sym): Delete.
2456 (nvptx_encode_section_info): New.
2457 (section_for_sym, section_for_decl): New.
2458 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
2459 (nvptx_section_from_addr_space): Delete.
2460 (nvptx_section_for_decl): Delete.
2461 (nvptx_output_aligned, nvptx_declare_object_name,
2462 nvptx_assemble_undefined_decl): Use section_for_decl, remove
2464 (nvptx_print_operand): Add 'D', adjust 'A'.
2465 (nvptx_expand_worker_addr): Adjust unspec generation.
2466 (TARGET_ENCODE_SECTION_INFO): Override.
2467 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
2468 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
2469 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
2470 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
2471 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
2472 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
2473 (UNSPEC_TO_GENERIC): New.
2474 (nvptx_register_or_symbolic_operand): Delete.
2475 (cvt_code, cvt_name, cvt_str): Delete.
2476 (convaddr_<cvt_name><mode> [P]): Delete.
2477 (convaddr_<mode> [P]): New.
2479 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2481 PR rtl-optimization/68624
2482 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
2483 blocks if they exist and simplify the logic choosing the order to emit
2486 2015-12-03 Richard Biener <rguenther@suse.de>
2488 PR tree-optimization/66051
2489 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
2490 on load group size. Do not pass in vectorization_factor.
2491 (vect_transform_slp_perm_load): Do not require any permute support.
2492 (vect_build_slp_tree): Do not pass in vectorization factor.
2493 (vect_analyze_slp_instance): Do not compute vectorization
2494 factor estimate. Use vector size instead of vectorization factor
2495 estimate to split store groups for BB vectorization.
2497 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
2499 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
2500 DECL as return value is allowed to have NULL bounds.
2502 2015-12-03 Tom de Vries <tom@codesourcery.com>
2504 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
2505 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
2506 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2508 2015-12-03 Richard Biener <rguenther@suse.de>
2510 PR tree-optimization/67800
2511 PR tree-optimization/68333
2512 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
2513 restriction to reduction contexts but allow SLP reductions as well.
2514 (vect_recog_sad_pattern): Likewise.
2515 (vect_recog_widen_sum_pattern): Likewise.
2517 2015-12-03 Richard Biener <rguenther@suse.de>
2519 PR tree-optimization/68639
2520 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
2521 belonging to different loops.
2522 (vect_analyze_data_ref_accesses): Likewise.
2524 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
2526 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
2527 Remove "prefix_extra".
2528 (define_insn "vec_extract_hi_<mode>_mask"): New.
2529 (define_insn "vec_extract_hi_<mode>"): Remove masking.
2531 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2533 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
2534 (propagate_pure_const): Use it; fix comments and optimize loops.
2536 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2538 * ipa-pure-const.c (ignore_edge): Rename to ...
2539 (ignore_edge_for_nothrow) ... this one; also ignore eges to
2540 interposable functions or ones that can not throw.
2541 (propagate_nothrow): Fix handling of availability.
2543 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2546 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
2548 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2549 Sebastian Pop <s.pop@samsung.com>
2551 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
2553 (gcc_expression_from_isl_expr_op): Same.
2555 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2556 Sebastian Pop <s.pop@samsung.com>
2558 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
2559 that insertion point is still in the region.
2561 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2562 Sebastian Pop <s.pop@samsung.com>
2564 PR tree-optimization/68550
2565 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
2566 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
2569 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2571 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
2572 * configure: Regenerate.
2573 * config.in: Regenerate.
2574 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
2576 (rs6000_output_function_prologue): Use it instead of checking
2577 cfun->machine->r2_setup_needed. Use internal labels instead of
2578 GNU as local label extension. Handle ELFv2 large code model.
2579 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
2580 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
2582 2015-12-02 Jakub Jelinek <jakub@redhat.com>
2585 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
2587 (expand_unop): Use them.
2589 2015-12-02 Marek Polacek <polacek@redhat.com>
2592 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
2594 2015-12-02 Nathan Sidwell <nathan@acm.org>
2596 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
2598 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
2600 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2601 Sebastian Pop <s.pop@samsung.com>
2603 * graphite-dependences.c (scop_get_reads): Add extra dumps.
2604 (scop_get_must_writes): Same.
2605 (scop_get_may_writes): Same.
2606 (compute_deps): Same.
2607 * graphite-sese-to-poly.c (bounds_are_valid): New.
2608 (pdr_add_data_dimensions): Call bounds_are_valid.
2610 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2611 Sebastian Pop <s.pop@samsung.com>
2613 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
2614 * graphite-poly.c (apply_poly_transforms): Same.
2615 * graphite.c (gate_graphite_transforms): Same.
2616 * toplev.c (process_options): Same.
2618 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
2620 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
2621 (mips_output_probe_stack_range): Rotate the loop and simplify.
2623 2015-12-02 David Sherwood <david.sherwood@arm.com>
2625 * config/aarch64/aarch64.md: New pattern.
2626 * config/aarch64/aarch64-simd.md: Likewise.
2627 * config/aarch64/iterators.md: New unspecs, iterators.
2629 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
2631 * dwarf2out.c (dwar2out_var_location): In addition to notes,
2632 process indirect calls whose target is compile-time known.
2633 Enhance pattern matching to get the SYMBOL_REF they embed.
2634 (gen_subprogram_die): Handle such calls.
2635 * final.c (final_scan_insn): For call instructions, invoke the
2636 var_location debug hook only after the call has been emitted.
2638 2015-12-02 Tom de Vries <tom@codesourcery.com>
2640 * gimplify.c (enum gimplify_omp_var_data): Add enum value
2642 (oacc_default_clause): Fix default for scalars in oacc kernels.
2643 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
2645 2015-12-02 Tom de Vries <tom@codesourcery.com>
2647 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
2648 parameter base_pointers_restrict.
2649 (omp_target_base_pointers_restrict_p): New function.
2650 (scan_omp_target): Call scan_sharing_clauses with
2651 base_pointers_restrict arg.
2653 2015-12-02 Nathan Sidwell <nathan@acm.org>
2655 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
2656 (nvptx_underlying_object_mode): Delete.
2657 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
2659 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
2660 (nvptx_output_mov_insn): New.
2661 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
2662 Use output_reg. Merge 't' and 'u' handling.
2663 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
2664 (struct machine_function): Remvoe punning_buffer_size.
2665 (REGISTER_NAMES): Remove %punbuffer.
2666 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
2667 UNSPEC_CPLX_HIGHPART): Delete.
2668 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
2669 nvptx_output_mov_insn.
2670 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
2671 Use nvptx_output_mov_insn.
2672 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
2674 (mov<mode> [SDCM]): Delete.
2676 2015-12-02 Richard Biener <rguenther@suse.de>
2678 * tree.h (tree_invariant_p): Declare.
2679 * tree.c (tree_invariant_p): Export.
2680 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
2681 create SAVE_EXPRs but reject patterns if we would need to.
2683 2015-12-02 Tom de Vries <tom@codesourcery.com>
2685 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
2686 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
2688 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
2690 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
2691 (cstore<mode>4): Use it.
2693 2015-12-02 Richard Biener <rguenther@suse.de>
2695 PR tree-optimization/68625
2696 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
2697 cleanup_control_flow_bb.
2698 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
2699 on all BBs, then cleanup_tree_cfg_bb and finally iterate
2700 over the worklist doing both.
2702 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
2704 PR tree-optimization/68432
2705 * coretypes.h (optimization_type): New enum.
2706 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
2707 * doc/tm.texi: Regenerate.
2708 * target.def (optab_supported_p): New hook.
2709 * targhooks.h (default_optab_supported_p): Declare.
2710 * targhooks.c (default_optab_supported_p): New function.
2711 * predict.h (function_optimization_type): Declare.
2712 (bb_optimization_type): Likewise.
2713 * predict.c (function_optimization_type): New function.
2714 (bb_optimization_type): Likewise.
2715 * optabs-query.h (convert_optab_handler): Define an overload
2716 that takes an optimization type.
2717 (direct_optab_handler): Likewise.
2718 * optabs-query.c (convert_optab_handler): Likewise.
2719 (direct_optab_handler): Likewise.
2720 * internal-fn.h (direct_internal_fn_supported_p): Take an
2721 optimization_type argument.
2722 * internal-fn.c (direct_optab_supported_p): Likewise.
2723 (multi_vector_optab_supported_p): Likewise.
2724 (direct_internal_fn_supported_p): Likewise.
2725 * builtins.c (replacement_internal_fn): Update call to
2726 direct_internal_fn_supported_p.
2727 * gimple-match-head.c (build_call_internal): Likewise.
2728 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
2729 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
2730 * tree.c (maybe_build_call_expr_loc): Likewise.
2731 * config/i386/i386.c (ix86_optab_supported_p): New function.
2732 (TARGET_OPTAB_SUPPORTED_P): Define.
2733 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
2734 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
2735 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
2736 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
2737 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
2738 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
2740 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
2742 * Makefile.in (GENSUPPORT_H): New macro.
2743 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2744 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
2745 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
2746 (build/genconstants.o, build/genextract.o, build/genflags.o)
2747 (build/gentarget-def.o): Use it.
2748 (build/genemit.o): Likewise. Depend on internal-fn.def.
2749 * genopinit.c: Move block comment to optabs.def.
2750 (optab_tag, optab_def): Move to gensupport.h
2751 (pattern): Likewise, renaming to optab_pattern.
2752 (match_pattern): Move to gensupport.c
2753 (gen_insn): Use find_optab.
2754 (patterns, pattern_cmp): Replace pattern with optab_pattern.
2755 (main): Likewise. Use num_optabs.
2756 * optabs.def: Add comment that was previously in genopinit.c.
2757 * gensupport.h (optab_tag): Moved from genopinit.c
2758 (optab_def): Likewise, expanding commentary.
2759 (optab_pattern): Likewise, after renaming from pattern.
2760 (optabs, num_optabs, find_optab): Declare.
2761 * gensupport.c (optabs): Moved from genopinit.c.
2762 (num_optabs): New variable.
2763 (match_pattern): Moved from genopinit.c.
2764 (find_optab): New function, extracted from genopinit.c:gen_insn.
2765 * genemit.c (nofail_optabs): New variable.
2766 (emit_c_code): New function.
2767 (gen_expand): Check whether the instruction is an optab that isn't
2768 allowed to fail. Call emit_c_code.
2769 (gen_split): Call emit_c_code here too.
2770 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
2772 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2774 * config/s390/predicates.md (const_mask_operand): New predicate.
2775 * config/s390/s390-builtins.def: Set a smaller bitmask
2777 * config/s390/vector.md: Change predicate from immediate_operand
2778 to either const_int_operand or const_mask_operand. Add special
2779 insn conditions on patterns which have to exclude certain values.
2780 * config/s390/vx-builtins.md: Likewise.
2782 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2784 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
2787 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2789 * config/s390/s390-builtin-types.def: New builtin types added.
2790 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
2791 * config/s390/s390.c (s390_expand_builtin): Always truncate
2792 constants to the mode in the pattern.
2793 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
2794 respective builtin __builtin_s390_vec_splat_*.
2796 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2798 * config/s390/s390-builtin-types.def: Sort builtin types.
2800 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2802 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
2803 condition for the RT flag.
2805 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2807 * config/s390/constraints.md ("jKK"): New constraint.
2808 * config/s390/s390.c (tm-constrs.h): Include for
2809 satisfies_constraint_*.
2810 (s390_legitimate_constant_p): Allow jKK constants. Use
2811 satisfies_constraint_* also for the others.
2812 (legitimate_reload_vector_constant_p): Likewise.
2813 (print_operand): Allow h output modifier on vectors.
2814 * config/s390/vector.md ("mov<mode>"): Add vrepi.
2816 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2818 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
2821 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2823 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
2824 ("bswaphi2"): New pattern.
2825 New splitter for HI reg-reg bswap.
2827 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
2830 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
2831 if it is the first parameter.
2833 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2835 PR tree-optimization/68577
2836 * tree-vect-stmts.c (simple_integer_narrowing): New function.
2837 (vectorizable_call): Restrict internal function handling
2838 to NONE and NARROW cases, using simple_integer_narrowing
2839 to test for the latter. Add cost of narrowing operation
2840 and insert it where necessary.
2842 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
2844 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
2845 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2846 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2848 2015-12-01 Nathan Sidwell <nathan@acm.org>
2850 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
2851 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2852 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
2853 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
2854 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
2855 (init_output_initializer): Call write_var_marker.
2856 (nvptx_output_aligned_decl): New.
2857 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
2859 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2861 * c-common.c (parse_optimize_options): Do not silently ignore
2862 -fstrict-aliasing changes.
2864 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2866 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
2867 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
2868 stream TYPE_ALIAS_SET.
2869 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
2870 stream TYPE_ALIAS_SET.
2872 2015-12-01 Nathan Sidwell <nathan@acm.org>
2874 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
2877 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2879 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
2880 indirection for large and small code models.
2881 (adjust_vperm): Likewise.
2883 2015-12-01 Julian Brown <julian@codesourcery.com>
2884 Cesar Philippidis <cesar@codesourcery.com>
2885 James Norris <James_Norris@mentor.com>
2887 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
2888 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
2889 (is_gimple_omp_oacc): Add support for above.
2890 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
2891 (omp_notice_variable): Diagnose undefined implicit uses of
2892 use_device variables in offloaded regions.
2893 (gimplify_scan_omp_clauses): Add host_data, use_device
2894 support. Diagnose undefined mapping of use_device variables in
2896 (gimplify_omp_workshare): Add host_data support.
2897 (gimplify_expr): Likewise.
2898 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
2899 * omp-low.c (lookup_decl_in_outer_ctx)
2900 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
2902 (scan_sharing_clauses): Support use_device.
2903 (check_omp_nesting_restrictions): Support host_data.
2904 (expand_omp_target): Support host_data.
2905 (lower_omp_target): Skip over outer host_data regions when looking
2906 up decls. Support use_device.
2907 (make_gimple_omp_edges): Support host_data.
2908 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
2910 2015-12-01 Marek Polacek <polacek@redhat.com>
2913 * cgraphunit.c (check_global_declaration): Only depend
2914 on TREE_THIS_VOLATILE for VAR_DECLs.
2916 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2918 PR tree-optimization/68474
2919 * tree-call-cdce.c (use_internal_fn): Protect call to
2920 gen_shrink_wrap_conditions.
2922 2015-12-01 Christian Bruel <christian.bruel@st.com>
2925 * config/arm/arm.opt (unaligned_access): Save.
2926 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
2927 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
2928 (arm_option_override_internal): ... here.
2929 * config/arm/arm.h (TARGET_32BIT_P): New macro.
2931 2015-12-01 Richard Biener <rguenther@suse.de>
2933 PR tree-optimization/68379
2934 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2935 always base loads on the first used DR of a group.
2936 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
2937 Compute alignment of the first scalar element unconditionally.
2939 2015-12-01 Richard Biener <rguenther@suse.de>
2942 * genmatch.c (struct capture_info): Add match_use_count.
2943 (capture_info::walk_match): Increment match_use_count.
2944 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
2945 replacements in a save_expr if they occur more often than
2946 in the original expression.
2948 2015-12-01 Richard Biener <rguenther@suse.de>
2951 * ipa-split.c (split_function): Handle main part not returning.
2953 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2956 * tree-vect-stmts.c (vect_init_vector): Cast boolean
2957 scalars to a proper value before building a vector.
2959 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2961 * genattrtab.c (check_attr_test): Take an attr_desc instead of
2962 an is_const flag. Put the file_location argument first.
2963 Update recursive calls. Improve error messages.
2964 (check_attr_value): Take a file location and use it instead
2965 of attr->loc. Improve error messages. Update calls to
2967 (check_defs): Update call to check_attr_value.
2968 (make_canonical): Likewise.
2969 (gen_attr): Likewise.
2971 (gen_insn_reserv): Update call to check_attr_test.
2973 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2975 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
2977 2015-12-01 Richard Biener <rguenther@suse.de>
2980 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
2982 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2984 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
2985 odr_type_p): Move to ...
2986 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
2987 odr_type_p): here; miscro-optimize.
2989 2015-12-01 Bin Cheng <bin.cheng@arm.com>
2991 PR tree-optimization/68529
2992 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
2993 Compute no-overflow information for control iv.
2994 (number_of_iterations_lt, number_of_iterations_le): Add new param.
2995 (number_of_iterations_cond): Pass new argument to above functions.
2997 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
2999 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
3000 inlining -fno-strict-aliasing into -fstrict-aliasing body.
3002 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
3003 Sebastian Pop <s.pop@samsung.com>
3005 PR tree-optimization/68565
3006 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
3007 codegen_error. Fail when rhs of division operations is integer_zerop.
3008 (ternary_op_to_tree): Early return on codegen_error.
3009 (unary_op_to_tree): Same.
3010 (nary_op_to_tree): Same.
3011 (gcc_expression_from_isl_expr_op): Same.
3012 (gcc_expression_from_isl_expression): Same.
3013 (graphite_create_new_loop): On codegen_error continue generating
3015 (graphite_create_new_loop_guard): Same.
3016 (build_iv_mapping): Same.
3017 (graphite_create_new_guard): Same.
3019 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
3020 Sebastian Pop <s.pop@samsung.com>
3022 * graphite-isl-ast-to-gimple.c: Fix dump messages.
3023 * graphite-scop-detection.c: Same.
3024 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
3026 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
3028 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
3029 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
3030 (convert_local_omp_clauses): Likewise.
3032 2015-11-30 Tom de Vries <tom@codesourcery.com>
3034 PR tree-optimization/46032
3035 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
3037 (find_func_aliases_for_call): ... here.
3038 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
3039 BUILT_IN_GOMP_PARALLEL.
3040 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
3043 2015-11-30 Jakub Jelinek <jakub@redhat.com>
3045 PR tree-optimization/68501
3046 * target.def (builtin_reciprocal): Replace the 3 arguments with
3047 a gcall * one, adjust description.
3048 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
3050 * targhooks.c (default_builtin_reciprocal): Likewise.
3051 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
3052 targetm.builtin_reciprocal even on internal functions, adjust
3053 the arguments and allow replacing an internal function with normal
3055 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
3056 with a gcall * one. Handle internal fns too.
3057 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
3058 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
3059 * doc/tm.texi (builtin_reciprocal): Document.
3061 2015-11-30 Richard Biener <rguenther@suse.de>
3063 PR tree-optimization/68592
3064 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
3065 on the pattern def sequence.
3067 2015-11-30 Nathan Sidwell <nathan@acm.org>
3069 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
3070 (write_one_arg): Reorder parms, add 'sep' param.
3071 (nvptx_write_function_decl): Rename to ...
3072 (write_fn_proto): ... here. Do name replacement. Emit linaer
3073 comment marker. Deal with both decls and defns. Simplify argument
3075 (write_function_decl_and_comment): Delete.
3076 (write_func_decl_from_insn): Rename to ...
3077 (write_fn_proto_from_insn): ... here. Don't do name replacement.
3078 (nvptx_record_fndecl): Call write_fn_proto.
3079 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
3080 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
3081 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
3083 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
3085 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
3086 (define_insn "*k<logic><mode>"): Use new iterator.
3088 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3091 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
3092 (sparc_adjust_cost): Add missing space.
3094 2015-11-30 Richard Biener <rguenther@suse.de>
3097 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
3099 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3101 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
3102 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
3103 base ref, DR pairs and store base_predicate for write type DRs.
3104 (ifcvt_memrefs_wont_trap): Guard checks with
3105 -ftree-loop-if-convert-stores flag.
3107 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3109 * cgraph.c (cgraph_node::make_local): No name is unique during
3110 incremental linking.
3111 * cgraph.h (can_be_discarded_p): Update comment; also common and
3112 WEAK in named sections can be discarded; when doing incremental
3113 link do not rely on resolution being the final one.
3114 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
3115 When symbol can be discarded, do not rely on resolution info.
3116 * symtab.c (symtab_node::nonzero_address): Take into account that
3117 symbol can be discarded.
3118 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
3119 definition correctly.
3120 (function_and_variable_visibility): Do not set unique_name when
3121 incrementally linking.
3123 2015-11-29 Nathan Sidwell <nathan@acm.org>
3125 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
3126 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
3127 (ctrap<mode>): Use const0_operand.
3129 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3131 * ipa-devirt.c (add_type_duplicate): Remove redundant
3134 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
3137 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
3138 recog_memoized test for insn and check recog_memoized for dep_insn.
3140 2015-11-28 Nathan Sidwell <nathan@acm.org>
3142 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
3143 (FRAME_POINTER_CFA_OFFSET): Define.
3144 (struct nvptx_args): Use 'tree' type.
3145 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
3147 2015-11-28 Tom de Vries <tom@codesourcery.com>
3149 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
3151 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
3153 * doc/invoke.texi (Option Summary): Use negative form of
3154 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
3155 sort alphabetically and re-justify.
3157 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
3159 PR rtl-optimization/68536
3160 * lra.c (lra_emit_add): Add code for null base.
3161 * lra-constraints.c (curr_insn_transform): Skip operators for
3164 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3167 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3169 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3171 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3172 are not modified by the final modified insns in the basic blocks.
3174 2015-11-27 Nathan Sidwell <nathan@acm.org>
3176 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
3178 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
3179 (nvptx_maybe_convert_symbolic_operand): Simplify.
3180 (nvptx_addr_space_from_address): Delete.
3181 (nvptx_print_operand): Adjust 'A' case.
3183 2015-11-27 Richard Biener <rguenther@suse.de>
3185 PR tree-optimization/68559
3186 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
3187 peeling for gap checks ...
3188 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
3189 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
3190 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
3192 2015-11-27 Nathan Sidwell <nathan@acm.org>
3194 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
3195 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
3196 (nvptx_record_fndecl): Don't return value, remove force
3197 argument. Require fndecl.
3198 (nvptx_record_libfunc): New.
3199 (nvptx_record_needed_decl): Deteermine how to record decl here.
3200 (nvptx_maybe_record_fnsym): New.
3201 (nvptx_expand_call): Don't record libfuncs here,
3202 (nvptx_maybe_convert_symbolic_operand): Use
3203 nvptx_maye_record_fnsym.
3204 (nvptx_assemble_integer): Reimplement with single switch.
3205 (nvptx_output_call_insn): Register libfuncs here.
3206 (nvptx_file_end): Adjust nvptx_record_fndecl call.
3207 * config/nvptx/nvptx.md (expand_movdi): Don't call
3208 nvptx_record_needed_decl.
3210 2015-11-27 Richard Biener <rguenther@suse.de>
3212 PR tree-optimization/68553
3213 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
3214 generation for 1:1 permutations.
3215 (vect_transform_slp_perm_load): Detect 1:1 permutations.
3217 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
3219 * gimple.h (nonbarrier_call_p): Declare.
3220 * gimple.c (nonbarrier_call_p): New function.
3221 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
3222 Also increment call phase for ASMs with vdef and potential barrier
3225 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3227 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3229 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3230 are not modified by the final modified insns in the basic blocks.
3232 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3234 PR rtl-optimization/68506
3235 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
3236 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
3239 2015-11-27 Martin Liska <mliska@suse.cz>
3242 * vec.h (release_vec_vec): New function.
3244 2015-11-27 Jakub Jelinek <jakub@redhat.com>
3246 PR tree-optimization/68552
3247 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
3248 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
3249 or whether v0 == v1.
3251 2015-11-27 Martin Liska <mliska@suse.cz>
3253 * tree-ssa-uninit.c: Fix whitespaces in the source file.
3254 The change is just automatical.
3256 2015-11-27 Martin Liska <mliska@suse.cz>
3258 * tree-chkp.c (chkp_make_static_bounds): Release buffer
3261 2015-11-27 Martin Liska <mliska@suse.cz>
3263 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3264 Do not release memory for comp_alias_ddrs.
3265 * tree-vect-loop.c (destroy_loop_vec_info): Release
3266 the memory for all loop_vec_info.
3268 2015-11-27 Martin Liska <mliska@suse.cz>
3270 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
3271 of a local-scope vec.
3272 (struct final_warning_record): Use auto_vec instead of vec.
3274 2015-11-27 Richard Biener <rguenther@suse.de>
3276 PR tree-optimization/68553
3277 * tree-vect-slp.c (vect_get_mask_element): Remove.
3278 (vect_transform_slp_perm_load): Implement in a simpler way.
3280 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
3282 PR rtl-optimization/67753
3283 PR rtl-optimization/64164
3284 * function.c (assign_parm_setup_block): Right-shift
3285 upward-padded big-endian args when bypassing the stack slot.
3287 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
3289 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
3290 `-mcompact-branches='.
3291 (MIPS Options): Likewise.
3293 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3295 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
3297 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
3299 * doc/install.texi (Prerequisites): Increase ISL requirement to
3302 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3304 * config/aarch64/arm_neon.h
3305 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
3306 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
3307 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3308 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
3309 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
3310 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
3311 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
3312 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
3313 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3314 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
3315 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
3316 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
3318 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3320 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
3321 (vqrdmlahq_s16, vqrdmlahq_s32): New.
3322 (vqrdmlsh_s16, vqrdmlsh_s32): New.
3323 (vqrdmlshq_s16, vqrdmlshq_s32): New.
3325 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3327 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
3330 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
3333 * tree-nested.c (finalize_nesting_tree_1): Append a field to
3334 hold the frame base address.
3335 * dwarf2out.c (gen_subprogram_die): Generate for
3336 DW_AT_static_link a location description that computes the value
3339 2015-11-26 Tom de Vries <tom@codesourcery.com>
3342 2015-11-25 Tom de Vries <tom@codesourcery.com>
3344 * cfgloop.c (find_single_latch): New function, factored out of ...
3345 (flow_loops_find): ... here.
3346 (verify_loop_structure): Improve verification of loop->latch.
3347 * cfgloop.h (find_single_latch): Declare.
3348 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3350 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3352 * config/aarch64/aarch64-simd-builtins.def:
3353 Add missing changes from r230962.
3355 2015-11-26 Nathan Sidwell <nathan@acm.org>
3357 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
3358 arg with name. Don't deal with split regs. Tweak formatting.
3359 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
3360 (nvptx_output_call_insn): Don't deal with split regs here.
3362 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3364 * config/aarch64/aarch64-simd-builtins.def
3365 (sqrdmlah, sqrdmlsh): New.
3366 (sqrdmlah_lane, sqrdmlsh_lane): New.
3367 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
3369 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3371 * config/aarch64/aarch64-simd.md
3372 (aarch64_sqmovun<mode>): Fix some white-space.
3373 (aarch64_<sur>qmovun<mode>): Likewise.
3374 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
3375 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
3376 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
3377 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
3378 (UNSPEC_SQRDMLSH): New.
3382 2015-11-26 Richard Biener <rguenther@suse.de>
3384 PR tree-optimization/66721
3385 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
3386 iteration cost earlier. Re-do analysis without SLP when
3387 vectorization using SLP fails and without has a chance to succeed.
3389 2015-11-26 Richard Biener <rguenther@suse.de>
3391 * genmatch.c (dt_simplify::gen_1): For generic wrap all
3392 multi-result-use captures in a SAVE_EXPR.
3394 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3396 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
3397 (TARGET_SIMD_RDMA): New.
3399 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3401 * combine.c (subst): Do not return clobber of zero in widening mult
3402 case. Just return x unchanged if it is a no-op substitution.
3404 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
3407 * config/i386/i386.h (enum reg_class): Add
3408 bounds registers to ALL_REGS.
3410 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3412 PR tree-optimization/68128
3413 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
3414 * gimplify.c: Include gimple-walk.h.
3415 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
3416 (omp_notice_variable): Set flags to n->value if n already
3417 exists in target region, but we need to jump to do_outer.
3418 (omp_shared_to_firstprivate_optimizable_decl_p,
3419 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
3421 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
3422 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3423 not modified in the body. Call omp_mark_stores for outer
3424 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3425 in the body or on OMP_CLAUSE_LASTPRIVATE.
3426 (gimplify_adjust_omp_clauses): Add body argument, call
3427 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
3428 Set OMP_CLAUSE_SHARED_READONLY
3429 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3430 not modified in the body. Call omp_mark_stores for outer
3431 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3432 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
3433 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
3434 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
3435 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
3436 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
3437 * tree-nested.c (convert_nonlocal_omp_clauses,
3438 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
3439 non-local vars or local vars referenced from nested routines.
3440 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
3441 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
3442 TREE_READONLY, don't call use_pointer_for_field with non-NULL
3443 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
3445 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
3447 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
3448 about signed left shift stronger and clarify the cases when they're
3451 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3452 Bernd Schmidt <bschmidt@redhat.com>
3454 PR rtl-optimization/67226
3455 * calls.c (store_one_arg): Take into account
3456 crtl->args.pretend_args_size when checking for overlap between
3457 arg->value and argblock + arg->locate.offset during sibcall
3460 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3462 * config/aarch64/aarch64.md (cbranch<mode>4): Use
3463 aarch64_fp_compare_operand.
3464 (store_pairsf): Use aarch64_reg_or_fp_zero.
3465 (store_pairdf): Likewise.
3466 (cstore<mode>4): Use aarch64_fp_compare_operand.
3467 (cmov<mode>6): Likewise.
3468 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
3470 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
3471 Sebastian Pop <s.pop@samsung.com>
3473 PR tree-optimization/68453
3474 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
3475 not redirect edges already pointing to their destination.
3476 (translate_isl_ast_node_for): Split edges after loops to create
3477 basic blocks for close phi nodes. Save merge points at the end of
3479 (translate_isl_ast_node_if): Save merge points at the end of the
3481 (add_close_phis_to_outer_loops): New.
3482 (add_close_phis_to_merge_points): New.
3483 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
3484 (copy_bb_and_scalar_dependences): Do not split basic blocks on
3485 loop close phi locations.
3487 2015-11-25 Jan Hubicka <jh@suse.cz>
3489 * ipa-visibility.c (cgraph_externally_visible_p,
3490 varpool_node::externally_visible_p): When doing incremental linking,
3491 hidden symbols may be still used later.
3492 (update_visibility_by_resolution_info): Do not drop weak during
3494 (function_and_variable_visibility): Fix formating.
3495 * flag-types.h (lto_linker_output): Declare.
3496 * common.opt 9flag_incremental_link): New flag.
3498 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3500 * config/rs6000/constraints.md (wb constraint): New constraint for
3501 ISA 3.0 d-form scalar addressing.
3503 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
3504 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
3505 Altivec registers. Add wb constraint for Altivec registers with
3506 D-form addressing. If we have ISA 3.0 d-form support, undo
3507 secondary reload support for using FPR registers if we want to do
3509 (rs6000_debug_reg_global): Likewise.
3510 (rs6000_setup_reg_addr_masks): Likewise.
3511 (rs6000_init_hard_regno_mode_ok): Likewise.
3512 (rs6000_secondary_reload): Likewise.
3513 (rs6000_preferred_reload_class): Likewise.
3514 (rs6000_secondary_reload_class): Likewise.
3516 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
3519 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
3520 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
3521 (f32_lm2): Likewise.
3522 (f32_li2): Likewise.
3523 (f32_sr2): Likewise.
3524 (f32_sm2): Likewise.
3525 (f32_si2): Likewise.
3527 (extendsfdf2_fpr): Likewise.
3528 (mov<mode>_hardfloat): Likewise.
3529 (mov<mode>_hardfloat32): Likewise.
3530 (mov<mode>_hardfloat64): Likewise.
3532 * doc/md.texi (RS/6000 constraints): Document wb constraint.
3533 Fixup we constraint documentation.
3535 2015-11-25 Tom de Vries <tom@codesourcery.com>
3537 * omp-low.c (pass_expand_omp_ssa::clone): New function.
3538 * passes.def: Add pass_oacc_kernels pass group.
3539 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
3541 2015-11-25 Tom de Vries <tom@codesourcery.com>
3543 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
3545 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
3546 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
3547 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
3548 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
3550 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3552 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
3553 TV_IPA_LTO_OUTPUT): New.
3554 * lto-compress.c: Include timevar.h
3555 (lto_end_compression, lto_end_uncompression): Add timers.
3556 * langhooks.c: Include timevar.h.
3557 (lhd_append_data): Add timer.
3559 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3561 * varasm.c (default_elf_asm_output_limited_string,
3562 default_elf_asm_output_ascii): Replace fprintf by putc.
3564 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
3566 PR rtl-optimization/67954
3567 * lra-constraints.c (curr_insn_transform): Add check on scratch
3568 pseudo when change class to NO_REGS. Add an assert.
3570 2015-11-25 Nathan Sidwell <nathan@acm.org>
3572 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
3574 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
3575 (nvptx_write_function_decl): Number args from 0.
3576 (nvptx_declare_function_name): Likewise.
3577 (nvptx_function_incoming_arg): Likewise.
3578 (nvptx_output_call_insn): Correct formatting.
3580 2015-11-25 David Sherwood <david.sherwood@arm.com>
3582 * optabs.def: Add new optabs fmax_optab/fmin_optab.
3583 * internal-fn.def: Add new fmax/fmin internal functions.
3584 * doc/md.texi: Add fmin and fmax patterns.
3586 2015-11-25 Jason Merrill <jason@redhat.com>
3589 * tree.c (integer_zerop, integer_onep, integer_each_onep)
3590 (integer_all_onesp, integer_minus_onep, integer_pow2p)
3591 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
3592 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
3594 2015-11-25 Richard Biener <rguenther@suse.de>
3597 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
3598 on stripped operands.
3600 2015-11-25 Nathan Sidwell <nathan@acm.org>
3602 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
3603 (nvptx_declare_function_name): Move assignments next to register
3604 declarations, and process params here.
3606 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
3608 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
3609 both the symbol and the "dot" symbol for function descriptors. Fix
3610 inversion for rename of symbols with dollar sign.
3612 2015-11-25 Tom de Vries <tom@codesourcery.com>
3614 * cfgloop.c (find_single_latch): New function, factored out of ...
3615 (flow_loops_find): ... here.
3616 (verify_loop_structure): Improve verification of loop->latch.
3617 * cfgloop.h (find_single_latch): Declare.
3618 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3620 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3622 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
3623 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
3624 (STARTFILE_SPEC): Use %(startfile_vtv).
3625 (ENDFILE_SPEC): Use %(endfile_vtv).
3626 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
3629 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
3631 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
3633 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
3634 noce_can_store_speculate): Delete.
3635 (noce_process_if_block): Don't try to handle single MEM stores.
3636 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
3637 * alias.c (memory_must_be_modified_in_insn_p): Delete.
3639 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3641 PR rtl-optimization/68435
3642 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
3643 for conflicts between a, b and the set destinations.
3645 2015-11-25 Richard Biener <rguenther@suse.de>
3647 PR tree-optimization/68517
3648 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
3649 Properly handle zero-sized types.
3651 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3653 * ipa-inline-analysis.c: Include gimplify.h
3654 (set_cond_stmt_execution_predicate,
3655 set_switch_stmt_execution_predicate): Be sure to not leak locations
3658 2015-11-25 Jakub Jelinek <jakub@redhat.com>
3661 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
3662 match_uaddsub_overflow): New functions.
3663 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
3665 2015-11-25 Richard Biener <rguenther@suse.de>
3667 PR tree-optimization/68492
3668 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
3669 op from scalars after operand swapping.
3671 2015-11-25 Richard Biener <rguenther@suse.de>
3673 PR tree-optimization/68502
3674 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
3675 check that the step is a multiple of the type size.
3677 2015-11-24 Michael Collison <michael.collison@linaro.org>
3679 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
3680 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
3681 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
3683 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
3685 * frame-header-opt.c (gate): Check for optimize > 0.
3686 (has_inlined_assembly): New function.
3687 (needs_frame_header_p): Remove is_leaf_function check,
3688 add argument type check.
3689 (callees_functions_use_frame_header): Add is_leaf_function
3690 and has_inlined_assembly calls..
3691 (set_callers_may_not_allocate_frame): New function.
3692 (frame_header_opt): Add is_leaf_function call, add
3693 set_callers_may_not_allocate_frame call.
3694 * config/mips/mips.c (mips_compute_frame_info): Add check
3695 to see if callee saved regs can be put in frame header.
3696 (mips_expand_prologue): Add check to see if step1 is zero,
3697 fix cfa restores when using frame header to store regs.
3698 (mips_can_use_return_insn): Check to see if registers are
3699 stored in frame header.
3700 * config/mips/mips.h (machine_function): Add
3701 callers_may_not_allocate_frame and
3702 use_frame_header_for_callee_saved_regs fields.
3704 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3706 PR rtl-optimization/68520
3707 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
3708 its bit was already set in BB_WITH.
3710 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3712 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
3713 double check that type is main variant.
3714 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
3716 (verify_type_variant): Verify that variants have no
3717 TYPE_ALIAS_SET_KNOWN_P set
3718 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
3719 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
3720 only for main variants; stream TYPE_ALIAS_SET as a bit.
3721 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
3724 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3726 * tree.c (make_vector_type): Properly compute canonical type of the
3728 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
3731 2015-11-24 Nathan Sidwell <nathan@acm.org>
3733 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
3734 VOIDmode, don't alter incoming mode.
3735 (nvptx_split_reg_p): Delete.
3736 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
3737 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
3738 maybe_split_mode calls.
3739 (nvptx_print_operand): Use maybe_split_mode.
3741 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3743 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
3744 only for types where LTO sets them.
3745 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
3746 (make_vector_type): Likewise.
3747 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
3748 * tree.h (canonical_type_used_p): New inline.
3749 * alias.c (get_alias_set): Handle structural equality for all
3750 types that pass canonical_type_used_p.
3751 (record_component_aliases): Look through all types with
3752 record_component_aliases for possible pointers; sanity check that
3753 the alias sets match.
3755 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
3757 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
3759 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
3761 * tree.c (free_node): New function.
3762 (type_hash_canon): Use it.
3763 * tree.h (free_node): Declare.
3765 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
3766 Michael Meissner <meissner@linux.vnet.ibm.com>
3768 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
3769 (Fv2): New mode attribute to be used when ISA 2.07 instructions
3770 are used on SF values, and ISA 2.06 instructions on DF values.
3771 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
3772 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
3773 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
3774 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
3775 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
3776 (fre<Fs>): Use <Fv2> instead of <Fv>.
3777 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
3778 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
3779 (xsrdpi<mode>): Add support for the lround function.
3780 (lround<mode>di2): Likewise.
3781 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3782 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3783 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
3784 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
3786 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
3787 Sebastian Pop <s.pop@samsung.com>
3789 PR tree-optimization/67984
3790 * graphite-isl-ast-to-gimple.c (is_constant): New.
3791 (get_rename): Call is_constant.
3792 (get_new_name): Same.
3794 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
3795 Sebastian Pop <s.pop@samsung.com>
3797 * graphite-dependences.c: Only include graphite.h.
3798 * graphite-isl-ast-to-gimple.c: Same.
3799 * graphite-optimize-isl.c: Same.
3800 * graphite-poly.c: Same.
3801 * graphite-scop-detection.c: Same.
3802 * graphite-sese-to-poly.c: Same.
3804 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
3805 * graphite-poly.h: Same.
3806 * graphite-scop-detection.h: Same.
3809 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
3811 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
3812 DW_TAG_namespace for IMPORTED_DECL declarations. Call
3813 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
3814 function already takes care of checking what it can emit.
3816 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
3818 * doc/invoke.texi (-fpic): Add the AArch64 limit.
3819 (-fPIC): Add AArch64.
3821 2015-11-24 Tom de Vries <tom@codesourcery.com>
3823 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
3824 (pass_lim::execute): Allow to run outside pass_tree_loop.
3826 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
3828 * config/aarch64/aarch64.md (add<mode>3):
3829 Block early expansion into 2 add instructions.
3830 (add<mode>3_pluslong): New pattern to combine complex
3831 immediates into 2 additions.
3833 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3838 * config/rs6000/predicates.md (and_operand): Check that the operand
3839 is a const_int before calling rs6000_is_valid_and_mask.
3841 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3843 * config/aarch64/aarch64.md (*condjump): Rename to...
3844 (condjump): ... This.
3845 (*compare_condjump<mode>): New define_insn_and_split.
3846 (*compare_cstore<mode>_insn): Likewise.
3847 (*cstore<mode>_insn): Rename to...
3848 (cstore<mode>_insn): ... This.
3849 * config/aarch64/iterators.md (CMP): Handle ne code.
3850 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
3852 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
3855 * config/i386/i386.c (output_387_binary_op): Fix assertion for
3858 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3860 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
3861 (val_ssa_equiv_hash_traits::remove): Likewise.
3862 (pass_uncprop::execute): Adjust.
3864 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3866 * hash-map-traits.h (simple_hashmap_traits ::remove): call
3867 destructors on values that are being removed.
3868 * mem-stats.h (hash_map): Pass type of values to
3869 simple_hashmap_traits.
3870 * tree-sra.c (sra_deinitialize): Remove work around for hash
3871 maps not destructing values.
3872 * genmatch.c (sinfo_hashmap_traits): Adjust.
3873 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
3875 2015-11-24 Richard Biener <rguenther@suse.de>
3876 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3879 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
3882 2015-11-24 Jakub Jelinek <jakub@redhat.com>
3885 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
3886 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
3888 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
3889 whenever first is nelt or above. Don't mask expected with
3892 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
3895 * gimple-fold.c: Include ipa-chkp.h.
3896 (gimple_fold_builtin_memory_op): Don't fold call if we
3897 are going to instrument it and it may copy pointers.
3899 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
3900 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3902 PR rtl-optimization/68194
3903 PR rtl-optimization/68328
3904 PR rtl-optimization/68185
3905 * ree.c (combine_reaching_defs): Reject copy_needed case if
3906 copies_list is not empty.
3908 2015-11-24 Richard Biener <rguenther@suse.de>
3911 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3914 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
3916 PR rtl-optimization/68381
3917 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
3920 2015-11-23 Nick Clifton <nickc@redhat.com>
3921 Jeff Law <law@redhat.com>
3923 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
3924 the source/dest of the target extension require a different number of
3926 (combine_set_extension): Remove #if 0 code.
3928 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3929 Sebastian Pop <s.pop@samsung.com>
3931 PR tree-optimization/68314
3932 * graphite-optimize-isl.c (optimize_isl): Do not call
3933 isl_union_map_is_equal.
3934 * graphite-poly.c (new_scop): Remove original_schedule.
3936 * graphite-poly.h (struct scop): Same.
3937 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
3939 (build_pbb_scattering_polyhedrons): Add back.
3940 (build_scop_minimal_scattering): Remove.
3941 (build_scop_scattering): Add back.
3942 (build_scop_original_schedule): Remove.
3943 (build_poly_scop): Revert to only call build_scop_scattering.
3945 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3946 Sebastian Pop <s.pop@samsung.com>
3948 PR tree-optimization/68493
3949 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
3950 missing early return when codegen_error is set.
3952 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3953 Sebastian Pop <s.pop@samsung.com>
3955 PR tree-optimization/68279
3956 * graphite-poly.c (new_scop): Remove poly_scop_p.
3957 * graphite-poly.h (struct scop): Same.
3958 (build_poly_scop): Declare.
3959 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
3960 (cleanup_loop_iter_dom): New.
3961 (build_loop_iteration_domains): Early return when scev analysis fails.
3962 (create_pw_aff_from_tree): Same.
3963 (add_condition_to_pbb): Same.
3964 (add_conditions_to_domain): Same.
3965 (add_conditions_to_constraints): Same.
3966 (build_scop_iteration_domain): Same.
3967 (build_poly_scop): Same. Do not initialize poly_scop_p.
3968 * graphite-sese-to-poly.h: Remove.
3969 * graphite.c: Do not include graphite-sese-to-poly.h.
3970 (graphite_transform_loops): Stop before code generation when
3971 build_poly_scop fails.
3972 * sese.c (scalar_evolution_in_region): Add fixme note about scev
3975 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3976 Sebastian Pop <s.pop@samsung.com>
3978 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3979 Remove call to update_ssa.
3980 * sese.c (sese_insert_phis_for_liveouts): Same.
3982 2015-11-23 Marek Polacek <polacek@redhat.com>
3984 PR tree-optimization/68455
3985 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
3986 extract_range_from_multiplicative_op_1 on symbolic ranges.
3988 2015-11-23 Richard Henderson <rth@redhat.com>
3990 * optabs.def (uaddv4_optab, usubv4_optab): New.
3991 * internal-fn.c (expand_addsub_overflow): Use them.
3992 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
3994 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
3995 to reversed operands.
3996 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
3997 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
3998 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
3999 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
4000 (*add<SWI>3_cconly_overflow_2): New.
4001 (*add<SWI>3_cc_overflow_2): New.
4002 (*addsi3_zext_cc_overflow_2): New.
4004 2015-11-23 Richard Biener <rguenther@suse.de>
4006 PR tree-optimization/68465
4007 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
4008 Also record equalities from multiple predecessor blocks if
4009 only one non-backedge exists.
4011 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4014 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
4015 that are not INSN_P.
4017 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
4019 * config/aarch64/aarch64-builtins.c
4020 (aarch64_gimple_fold_builtin): Fold FMULX.
4022 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
4024 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
4025 * graphite-dependences.c: Define USES_ISL. Include ISL header files
4026 after GCC header files and before graphite header files.
4027 * graphite-dependences.c: Same.
4028 * graphite-isl-ast-to-gimple.c: Same.
4029 * graphite-optimize-isl.c: Same.
4030 * graphite-poly.c: Same.
4031 * graphite-scop-detection.c: Same.
4032 * graphite-sese-to-poly.c: Same.
4035 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
4036 Jiong Wang <jiong.wang@arm.com>
4038 PR tree-optimization/68317
4039 PR tree-optimization/68326
4040 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
4041 final min and max are not infinity.
4043 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4044 Richard Biener <rguenther@suse.de>
4046 PR tree-optimization/68327
4047 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4048 compute vectype for non-relevant mask producers.
4049 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
4052 2015-11-23 Tom de Vries <tom@codesourcery.com>
4054 PR tree-optimization/68460
4055 * tree-parloops.c (gather_scalar_reductions): Also call
4056 free_stmt_vec_info_vec if simple_loop_info == NULL.
4058 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
4060 * opts.c (finish_options): Allow -fsanitize-recover=address for
4061 userspace sanitization.
4062 * asan.c (asan_expand_check_ifn): Redefine recover_p.
4063 * doc/invoke.texi (fsanitize-recover): Update documentation.
4065 2015-11-23 Tom de Vries <tom@codesourcery.com>
4067 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
4069 2015-11-23 Richard Biener <rguenther@suse.de>
4071 PR tree-optimization/68445
4072 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
4073 two different strides.
4075 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
4077 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
4078 * config/s390/s390.c (s390_check_symref_alignment): Use new
4079 symref flags, early abort on wrong alignment
4080 (s390_secondary_reload): Use new symref flags.
4081 (s390_encode_section_info): Likewise.
4082 * config/s390/predicates.md: Likewise.
4084 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4087 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
4088 for indirect function call.
4090 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
4092 * config/aarch64/aarch64-simd.md
4093 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
4094 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
4095 (*aarch64_mulx_elt_to_64v2df): Likewise.
4096 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
4097 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
4098 (vmulx_lane_f64): Likewise.
4099 (vmulxq_lane_f32): Refactored & moved.
4100 (vmulxq_lane_f64): Likewise.
4101 (vmulx_laneq_f32): New.
4102 (vmulx_laneq_f64): Likewise.
4103 (vmulxq_laneq_f32): Likewise.
4104 (vmulxq_laneq_f64): Likewise.
4105 (vmulxs_lane_f32): Likewise.
4106 (vmulxs_laneq_f32): Likewise.
4107 (vmulxd_lane_f64): Likewise.
4108 (vmulxd_laneq_f64): Likewise.
4110 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
4112 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
4113 In LTO we do not compute TYPE_CANONICAL of pointers.
4114 (gimple_canonical_types_compatible_p): Improve coments; sanity check
4115 that pointers do not have canonical type that would make us believe
4117 * alias.c (get_alias_set): Do structural type equality on pointers;
4118 enable pointer path for LTO; also glob pointer to vector with pointer
4119 to vector element; glob pointers and references for LTO; do more strict
4120 sanity checking about build_pointer_type returning the canonical type
4121 which is also the main variant.
4122 (record_component_aliases): When component type is pointer and we
4123 do LTO; record void_type_node alias set.
4125 2015-11-21 Nathan Sidwell <nathan@acm.org>
4127 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
4129 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
4131 (write_func_decl_from_insn): Likewise.
4132 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
4133 (nvptx_file_end): Likewise.
4134 (nvptx_function_end): Undent output.
4135 (nvptx_expand_call): Fix formatting.
4136 (nvptx_output_call_insn): Indent output.
4137 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
4138 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
4140 2015-11-21 Jakub Jelinek <jakub@redhat.com>
4143 * tree-inline.c (copy_debug_stmt): If
4144 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
4145 in decl_debug_args, don't call remap_gimple_op_r on it.
4147 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4149 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
4150 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
4151 Check that all record types are complete.
4152 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
4153 compare alias sets for types w/o alias sets.
4155 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4157 * config/sparc/sparc.md (umulxhi_vis): Move around.
4158 (*umulxhi_sp64): Likewise.
4159 (umulxhi_v8plus): Likewise.
4160 (xmulx_vis): Likewise.
4161 (*xmulx_sp64): Likewise.
4162 (xmulx_v8plus): Likewise.
4163 (xmulxhi_vis): Likewise.
4164 (*xmulxhi_sp64): Likewise.
4165 (xmulxhi_v8plus): Likewise.
4167 2015-11-20 David Malcolm <dmalcolm@redhat.com>
4170 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
4171 (class layout): Update comment
4172 (layout::print_any_fixits): New method.
4173 (layout::move_to_column): New method.
4174 (diagnostic_show_locus): Add call to layout.print_any_fixits.
4176 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4179 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
4180 has non-zero bias, subtract it in integer type instead of
4181 pointer plus of negated bias.
4184 * omp-low.c (expand_simd_clones): Call node->get_body () before
4185 allocating stuff in GC.
4187 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
4189 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
4191 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
4193 * config/aarch64/aarch64.md (predicated): Copy attribute from
4195 * config/arm/arm.md (predicated): Added description.
4197 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4199 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
4200 for unaligned_access.
4201 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
4202 from matching condition.
4203 (unaligned_loadhis): Likewise.
4204 (unaligned_loadhiu): Likewise.
4205 (unaligned_storesi): Likewise.
4206 (unaligned_storehi): Likewise.
4208 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4211 * config/arm/arm.md (unaligned_loaddi): Delete.
4212 (unaligned_storedi): Likewise.
4213 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
4214 unaligned DImode memory ops. Instead perform two back-to-back
4215 unaligned SImode ops.
4217 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
4218 James Norris <jnorris@codesourcery.com>
4220 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
4221 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
4223 2015-11-20 Alan Hayward <alan.hayward@arm.com>
4225 PR tree-optimization/68413
4226 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
4228 (vectorizable_reduction): Use cached base
4230 2015-11-20 Tom de Vries <tom@codesourcery.com>
4232 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
4234 (try_create_reduction_list): Same. Fix typo in dump-file string.
4236 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4238 * doc/md.texi (Standard Names): Move entry for addptr3 around,
4239 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
4240 glitch in entries for cbranch4 and jump.
4242 2015-11-20 Tom de Vries <tom@codesourcery.com>
4244 PR tree-optimization/68373
4245 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
4247 (scev_const_prop): ... here.
4248 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
4249 * tree-parloops.c (try_create_reduction_list): Call
4250 final_value_replacement_loop.
4252 2015-11-20 Bin Cheng <bin.cheng@arm.com>
4254 PR tree-optimization/52272
4255 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
4256 (struct iv_common_cand_hasher): New struct.
4257 (iv_common_cand_hasher::hash): New function.
4258 (iv_common_cand_hasher::equal): New function.
4259 (struct ivopts_data): New fields, iv_common_cand_tab and
4261 (tree_ssa_iv_optimize_init): Initialize above fields.
4262 (record_common_cand, common_cand_cmp): New functions.
4263 (add_iv_candidate_derived_from_uses): New function.
4264 (add_iv_candidate_for_use): Record iv_common_cands derived from
4265 iv use in hash table, instead of adding candidates directly.
4266 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
4267 (record_important_candidates): Add important candidates to iv uses'
4268 related_cands. Always keep related_cands for future use.
4269 (try_add_cand_for): Use iv uses' related_cands.
4270 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
4271 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
4273 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4275 * config/s390/s390.md ("bswaphi2"): New pattern.
4277 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
4279 * config/s390/s390.md (GPR1_REGNUM): New constant.
4280 ("*trunc<BFP:mode><DFP_ALL:mode>2")
4281 ("*trunc<DFP_ALL:mode><BFP:mode>2")
4282 ("trunc<BFP:mode><DFP_ALL:mode>2")
4283 ("trunc<DFP_ALL:mode><BFP:mode>2")
4284 ("*extend<BFP:mode><DFP_ALL:mode>2")
4285 ("*extend<DFP_ALL:mode><BFP:mode>2")
4286 ("extend<BFP:mode><DFP_ALL:mode>2")
4287 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
4289 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4290 Sebastian Pop <s.pop@samsung.com>
4292 PR tree-optimization/68428
4293 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
4294 over basic blocks outside the scop.
4296 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4297 Sebastian Pop <s.pop@samsung.com>
4299 PR tree-optimization/68341
4300 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
4301 gcc_unreachable and safely fail codegen.
4302 (copy_loop_close_phi_args): Do not insert merge phis in a basic
4303 block with loop phi nodes.
4304 (edge_for_new_close_phis): New.
4305 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
4307 2015-11-19 Nathan Sidwell <nathan@acm.org>
4309 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
4310 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
4311 (nvptx_declare_objec_name): Likewise.
4313 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4315 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
4316 (get_false_edge_from_guard_bb): Move...
4317 * sese.c (get_false_edge_from_guard_bb)
4318 (get_true_edge_from_guard_bb): ... here.
4320 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
4323 2015-11-18 Alan Modra <amodra@gmail.com>
4325 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4326 type-limits warning.
4329 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4331 * tree.h (desired_pro_or_demotion_p): New function.
4332 * tree-vrp.c (simplify_cond_using_ranges): Call it.
4334 2015-11-19 Michael Matz <matz@suse.de>
4336 PR rtl-optimization/68392
4337 * fwprop.c (update_uses): Use flag_checking instead of
4338 gcc_checking_assert.
4340 2015-11-19 David Malcolm <dmalcolm@redhat.com>
4342 * doc/gty.texi (Support for inheritance): Fix missing
4343 parentheses in example.
4345 2015-11-19 Marek Polacek <polacek@redhat.com>
4347 PR tree-optimization/68431
4348 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
4350 2015-11-19 Nathan Sidwell <nathan@acm.org>
4352 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
4353 atomic_exchange<mode>): Input values can be immediates.
4355 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4358 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
4360 * configure: Regenerate.
4362 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4365 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
4366 (DTORS_SECTION_ASM_OP): Likewise.
4368 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4370 PR rtl-optimization/68376
4371 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
4372 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
4374 2015-11-19 Richard Biener <rguenther@suse.de>
4377 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
4378 redirect_edge_var_map_destroy.
4380 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4383 * config/i386/i386.md (simple_return): Disable if
4384 ix86_static_chain_on_stack is true.
4386 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
4389 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
4392 2015-11-18 Jeff Law <law@redhat.com>
4394 PR tree-optimization/68198
4395 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
4396 between threading a multi-way branch and a thread path that contains
4397 a multi-way branch. Disallow the case where a path contains a
4398 multi-way branch and does not thread a multi-way branch.
4399 (thread_through_all_blocks): Update comment.
4401 2015-11-18 Joseph Myers <joseph@codesourcery.com>
4404 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
4405 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
4406 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
4407 functions before defining as macros.
4409 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4411 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
4412 (nvptx_record_offload_symbol): Remove code compensating for lack
4413 of default dimension handling.
4414 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
4416 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4418 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
4419 type to bool for early exit.
4420 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
4422 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4423 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
4424 predecessor dominates the other.
4425 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
4426 element is not found it returns -1.
4427 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
4428 out early when codegen fails.
4429 (graphite_regenerate_ast_isl): Remove codegen region when pending
4430 phis could not be generated.
4432 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4434 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
4436 (class translate_isl_ast_to_gimple): Indentation.
4437 (translate_pending_phi_nodes): Comment.
4438 (add_parameters_to_ivs_params): Moved from sese.c inside class
4439 translate_isl_ast_to_gimple.
4440 (get_max_schedule_dimensions): Same.
4441 (generate_isl_context): Same.
4442 (extend_schedule): Same.
4443 (generate_isl_schedule): Same.
4444 (set_options): Same.
4445 (scop_to_isl_ast): Same.
4446 (is_valid_rename): Same.
4448 (get_rename_from_scev): Same.
4449 (get_def_bb_for_const): Same.
4450 (get_new_name): Same.
4451 (collect_all_ssa_names): Same.
4452 (copy_loop_phi_args): Same.
4453 (copy_loop_phi_nodes): Same.
4454 (copy_loop_close_phi_args): Same.
4455 (copy_loop_close_phi_nodes): Same.
4456 (copy_cond_phi_args): Same.
4457 (copy_cond_phi_nodes): Same.
4458 (graphite_copy_stmts_from_block): Same.
4459 (copy_bb_and_scalar_dependences): Same.
4460 (add_phi_arg_for_new_expr): Same.
4461 (rename_uses): Same.
4463 (set_rename_for_each_def): Same.
4464 (gsi_insert_earliest): Same.
4465 (rename_all_uses): Same.
4466 (codegen_error_p): Same.
4467 (print_isl_ast_node): Same.
4468 (translate_isl_ast_for_loop): Call function codegen_error_p.
4469 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4470 (translate_isl_ast_node_user): Make nb_loops const and release
4472 (get_true_edge_from_guard_bb): Move all free-functions early.
4473 (get_false_edge_from_guard_bb): Same.
4474 (bb_contains_loop_close_phi_nodes): Same.
4475 (bb_contains_loop_phi_nodes): Same.
4476 (is_loop_closed_ssa_use): Same.
4477 (number_of_phi_nodes): Same.
4478 (phi_uses_name): Same.
4479 (later_of_the_two): Same.
4480 (substitute_ssa_name):
4483 (get_loop_init_value): Same.
4484 (find_init_value): Same.
4485 (find_init_value_close_phi): Same.
4486 (ast_build_before_for): Same.
4487 (graphite_regenerate_ast_isl): Formatting changes.
4488 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
4489 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
4491 (gsi_insert_earliest): Same.
4492 (collect_all_ssa_names): Same.
4493 (rename_all_uses): Same.
4494 (rename_uses): Same.
4495 (get_def_bb_for_const): Same.
4496 (copy_loop_phi_nodes): Same.
4497 (copy_loop_close_phi_args): Same.
4498 (copy_loop_close_phi_nodes): Same.
4499 (copy_cond_phi_args): Same.
4500 (copy_cond_phi_nodes): Same.
4501 (set_rename_for_each_def): Same.
4502 (graphite_copy_stmts_from_block): Same.
4503 (copy_bb_and_scalar_dependences): Same.
4504 (if_region_set_false_region): Same.
4505 (scev_analyzable_p): Same.
4506 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
4508 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
4510 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
4511 commit from r125920 for FreeBSD.
4513 2015-11-18 Jason Merrill <jason@redhat.com>
4515 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
4517 (add_finalizer): Split out from ggc_internal_alloc.
4518 (ggc_handle_finalizers): Run finalizers for the current depth.
4519 (init_ggc, ggc_pch_read): Reserve space for finalizers.
4521 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
4524 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
4527 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4529 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
4530 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
4532 * doc/avr-mmcu.texi: Regenerate.
4534 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4536 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
4537 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
4538 (struct bb_sese): New struct.
4539 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
4540 (BB_GET_SESE, BB_SET_SESE): Define.
4541 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
4542 (nvptx_find_sese): New.
4543 (nvptx_neuter_pars): Find SESE regions when optimizing.
4545 2015-11-18 Alan Modra <amodra@gmail.com>
4547 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4548 type-limits warning.
4550 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
4553 * hash-set.h (hash_set::traverse): Expand Key typedef.
4555 2015-11-18 Martin Liska <mliska@suse.cz>
4557 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
4560 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4562 * config/nvptx/nvptx.c (global_lock_var): New.
4563 (nvptx_global_lock_addr): New.
4564 (nvptx_lockless_update): Recomment and adjust for clarity.
4565 (nvptx_lockfull_update): New.
4566 (nvptx_reduction_update): New.
4567 (nvptx_goacc_reduction_fini): Call it.
4569 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
4571 * regrename.h (struct du_head): Add target_data_1 and target_data_2
4573 * regrename.c (create_new_chain): Clear entire struct after allocating.
4575 * config/i386/i386.opt (mmitigate-rop): New option.
4576 * doc/invoke.texi (mmitigate-rop): Document.
4577 * config/i386/i386.c: Include "regrename.h".
4578 (ix86_rop_should_change_byte_p, reg_encoded_number,
4579 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
4581 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
4582 * config/i386/i386.md (attr "modrm_class"): New.
4583 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
4584 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
4585 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
4587 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
4590 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
4592 2015-11-18 Jakub Jelinek <jakub@redhat.com>
4594 PR tree-optimization/68157
4595 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
4596 pow_stmt or mul_stmt from stmt's uid.
4597 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
4599 2015-11-18 Martin Liska <mliska@suse.cz>
4601 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
4603 2015-11-18 Martin Liska <mliska@suse.cz>
4605 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4606 Fix GNU coding style.
4607 (find_def_preds): Use auto_vec.
4608 (destroy_predicate_vecs): Change signature of the function.
4609 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
4611 (simplify_preds_4): Use destroy_predicate_vecs instread of
4612 just releasing preds vector.
4613 (normalize_preds): Likewise.
4614 (is_use_properly_guarded): Use new signature of
4615 destroy_predicate_vecs.
4616 (find_uninit_use): Likewise.
4618 2015-11-18 Richard Biener <rguenther@suse.de>
4620 PR tree-optimization/67790
4621 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
4622 IL rewrite for MINUS_EXPR reductions, rename back to ...
4623 (vect_is_simple_reduction): ... this, removing the wrapper.
4624 (vect_force_simple_reduction): Adjust.
4625 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
4626 reductions and make use if reduc_index in all places. For
4627 the final reduction of MINUS_EXPR use PLUS_EXPR.
4629 2015-11-18 Alan Modra <amodra@gmail.com>
4631 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
4633 * configure: Regenerate.
4635 2015-11-17 Tom de Vries <tom@codesourcery.com>
4637 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
4639 2015-11-17 Tom de Vries <tom@codesourcery.com>
4641 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
4642 uses of ssa_name with constant.
4644 2015-11-17 Tom de Vries <tom@codesourcery.com>
4646 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
4649 2015-11-17 Tom de Vries <tom@codesourcery.com>
4651 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
4652 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
4653 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
4655 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
4657 * regrename.c (regrename_find_superclass): New function, code moved
4659 (rename_chains): ... here. Call it.
4660 * regrename.h (regrename_find_superclass): Declare.
4662 * regrename.c (record_out_operands): Terminate earlyclobbered
4666 * regrename.c (record_operand_use): Keep track of failed operands
4667 and stop appending if we see any.
4668 * regrename.h (struct operand_rr_info): Add a failed field and shrink
4671 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
4674 * doc/extend.texi (Common Function Attributes) [visibility]:
4675 Add cross-references to matching variable and type attributes.
4676 (Common Variable Attributes) [visibility]: Add missing entry.
4678 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4680 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
4681 entries that map directly to optabs.
4683 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4685 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
4686 entries that map directly to optabs.
4688 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4690 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
4691 * internal-fn.c (direct_internal_fn_array): Update accordingly.
4692 * tree-vectorizer.h (vectorizable_function): Delete.
4693 * tree-vect-stmts.c: Include internal-fn.h.
4694 (vectorizable_internal_function): New function.
4695 (vectorizable_function): Inline into...
4696 (vectorizable_call): ...here. Explicitly reject calls that read
4697 from or write to memory. Try using an internal function before
4698 falling back on the old vectorizable_function behavior.
4700 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4702 * target.def (builtin_vectorized_function): Take a combined_fn (in
4703 the form of an unsigned int) rather than a function decl.
4704 (builtin_md_vectorized_function): New.
4705 * targhooks.h (default_builtin_vectorized_function): Replace the
4706 fndecl argument with an unsigned int.
4707 (default_builtin_md_vectorized_function): Declare.
4708 * targhooks.c (default_builtin_vectorized_function): Replace the
4709 fndecl argument with an unsigned int.
4710 (default_builtin_md_vectorized_function): New function.
4711 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
4713 * doc/tm.texi: Regenerate.
4714 * tree-vect-stmts.c (vectorizable_function): Update call to
4715 builtin_vectorized_function, also passing internal functions.
4716 Call builtin_md_vectorized_function for target-specific builtins.
4717 * config/aarch64/aarch64-protos.h
4718 (aarch64_builtin_vectorized_function): Replace fndecl argument
4719 with an unsigned int.
4720 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
4721 (aarch64_builtin_vectorized_function): Update after above changes.
4723 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
4724 fndecl argument with an unsigned int.
4725 * config/arm/arm-builtins.c: Include case-cfn-macros.h
4726 (arm_builtin_vectorized_function): Update after above changes.
4728 * config/i386/i386.c: Include case-cfn-macros.h
4729 (ix86_veclib_handler): Take a combined_fn rather than a
4731 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
4732 mathfn_built_in rather than calling builtin_decl_implicit directly.
4733 (ix86_builtin_vectorized_function) Update after above changes.
4735 * config/rs6000/rs6000.c: Include case-cfn-macros.h
4736 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
4737 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
4738 than calling builtin_decl_implicit directly.
4739 (rs6000_builtin_vectorized_function): Update after above changes.
4740 Use CASE_CFN_*. Move BUILT_IN_MD to...
4741 (rs6000_builtin_md_vectorized_function): ...this new function.
4742 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
4744 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4746 * tree-vect-patterns.c: Include internal-fn.h.
4747 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
4749 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4751 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
4752 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
4754 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4756 * builtins.c (expand_errno_check, expand_builtin_mathfn)
4757 (expand_builtin_mathfn_2): Delete.
4758 (expand_builtin): Remove handling of functions with
4759 internal function equivalents.
4760 * internal-fn.def (SET_EDOM): New internal function.
4761 * internal-fn.h (set_edom_supported_p): Declare.
4762 * internal-fn.c (expand_SET_EDOM): New function.
4763 (set_edom_supported_p): Likewise.
4764 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
4765 Rewrite comment at head of file.
4766 (is_call_dce_candidate): Rename to...
4767 (can_test_argument_range): ...this. Don't check gimple_call_lhs
4768 or gimple_call_builtin_p here.
4769 (edom_only_function): New function.
4770 (shrink_wrap_one_built_in_call_with_conds): New function, split out
4772 (shrink_wrap_one_built_in_call): ...here.
4773 (can_use_internal_fn, use_internal_fn): New functions.
4774 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
4775 for calls that have an lhs.
4776 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
4777 (pass_call_cdce::execute): Skip blocks that are optimized for size.
4778 Check gimple_call_builtin_p here. Use can_use_internal_fn for
4780 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
4783 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4785 * builtins.h (called_as_built_in): Declare.
4786 * builtins.c (called_as_built_in): Make external.
4787 * internal-fn.h (expand_internal_call): Define a variant that
4788 specifies the internal function explicitly.
4789 * internal-fn.c (expand_load_lanes_optab_fn)
4790 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
4791 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
4792 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
4793 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
4794 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
4795 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
4796 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
4797 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
4798 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
4799 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
4800 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
4801 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
4802 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
4804 (internal_fn_expanders): Update prototype.
4805 (expand_internal_call): Define a variant that specifies the
4806 internal function explicitly. Use it to implement the previous
4808 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
4809 functions as calls to internal functions.
4811 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4813 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
4814 (generated_files): Likewise.
4815 (s-cfn-operators, cfn-operators.pd): New rules.
4816 (s-match): Depend on cfn-operators.pd.
4817 * gencfn-macros.c: Expand comment to describe -o behavior.
4818 (print_define_operator_list): New function.
4819 (main): Accept -o. Call print_define_operator_list.
4820 * genmatch.c (main): Add the current directory to the include path.
4821 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
4824 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4826 * doc/match-and-simplify.texi: Document the "null" identifier.
4827 * genmatch.c (id_base::NULL_ID): New kind.
4828 (null_id): New variable.
4829 (get_operator): Add a parameter that says whether null identifiers
4831 (contains_id): New function.
4832 (lower_for): Skip substitutions that would have a null_id in
4833 either the match or the result.
4834 (parser::parse_for): Allow the null identifier to be used.
4835 (parser::parse_operator_list): Likewise.
4836 (main): Initialize null_id.
4838 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4840 * match.pd: Use HYPOT and COS rather than hypot and cos.
4841 Use CASE_CFN_* macros. Guard log/exp folds with
4842 SCALAR_FLOAT_TYPE_P.
4843 * genmatch.c (internal_fn): New enum.
4844 (fn_id::fn): Change to an unsigned int.
4845 (fn_id::fn_id): Accept internal_fn too.
4846 (add_builtin): Rename to...
4847 (add_function): ...this and turn into a template.
4848 (get_operator): Only try one variation if the original name fails.
4849 Only add _EXPR if the original name was all lower case.
4850 Try converting internal and built-in function names to their
4852 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
4853 (dt_simplify::gen_1): Likewise.
4854 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
4855 and get_call_combined_fn for generic.
4856 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
4857 (decision_tree::gen): Likewise.
4858 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
4859 Use add_function rather than add_builtin. Register internal
4861 * generic-match-head.c: Include case-cfn-macros.h.
4862 * gimple-fold.c (replace_stmt_with_simplification): Use
4863 gimple_call_combined_fn to test whether we can keep an
4865 * gimple-match.h (code_helper): Replace built_in_function
4867 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
4868 and case-fn-macros.h.
4869 (gimple_resimplify1): Use fold_const_call.
4870 (gimple_resimplify2, gimple_resimplify3): Likewise.
4871 (build_call_internal, build_call): New functions.
4872 (maybe_push_res_to_seq): Use them.
4873 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
4874 rather than a built-in function.
4875 * tree.h (build_call_expr_internal_loc): Declare.
4876 (maybe_build_call_expr_loc): Likewise.
4877 * tree.c (build_call_expr_internal_loc_array): New function.
4878 (maybe_build_call_expr_loc): Likewise.
4880 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4882 * builtins.h (mathfn_built_in): Add a variant that takes
4884 * builtins.c: Include case-cfn-macros.h.
4885 (CASE_MATHFN): Use CASE_CFN_*.
4886 (CASE_MATHFN_REENT): Use CFN_ codes.
4887 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
4888 argument with a combined_fn.
4889 (mathfn_built_in): Add a variant that takes a combined_fn.
4890 (expand_builtin_int_roundingfn_2): Update callers accordingly.
4891 (fold_builtin_sincos, fold_builtin_classify): Likewise.
4893 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4895 * tree-vect-patterns.c: Include case-cfn-macros.h.
4896 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
4898 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4900 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
4901 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
4902 (pass_cse_sincos::execute): Likewise.
4904 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4906 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
4907 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
4908 (decrement_power, acceptable_pow_call): Likewise.
4909 (attempt_builtin_copysign): Likewise.
4911 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4913 * tree-vrp.c: Include case-cfn-macros.h.
4914 (extract_range_basic): Switch on combined_fn rather than handling
4915 built-in functions and internal functions separately.
4917 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4919 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
4920 than a built_in_function.
4921 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4923 (integer_valued_real_call_p): Likewise.
4924 * fold-const.c: Include case-cfn-macros.h
4925 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
4926 (negate_expr_p): Update accordingly.
4927 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4929 (integer_valued_real_call_p): Likewise.
4930 (tree_invalid_nonnegative_warnv_p): Update accordingly.
4931 (integer_valued_real_p): Likewise.
4932 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
4933 to tree_call_nonnegative_warnv_p.
4934 (gimple_call_integer_valued_real_p): Likewise
4935 integer_valued_real_call_p.
4936 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
4937 (backprop::process_builtin_call_use): Extend to combined_fn.
4938 (strip_sign_op_1): Likewise.
4939 (backprop::process_use): Don't check for built-in calls here.
4940 (backprop::execute): Likewise.
4941 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
4943 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4945 * fold-const-call.h (fold_const_call): Replace built_in_function
4946 arguments with combined_fn arguments.
4947 * fold-const-call.c: Include case-cfn-macros.h.
4948 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
4949 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
4950 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
4951 built_in_function arguments with combined_fn arguments.
4952 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
4953 (fold_builtin_3): Update calls to fold_const_call.
4955 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4957 * Makefile.in (HASH_TABLE_H): Add GGC_H.
4958 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
4959 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
4960 (build/gencfn-macros$(build_exeext): New rules.
4961 (genprogerr): Add cfn-macros.
4962 * hash-set.h (hash_set): Use the traits value_type as the key.
4963 * gencfn-macros.c: New file.
4965 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4967 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
4968 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
4969 * builtins.c (associated_internal_fn): Handle them.
4971 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4973 * builtins.h (associated_internal_fn): Declare.
4974 (replacement_internal_fn): Likewise.
4975 * builtins.c: Include internal-fn.h
4976 (associated_internal_fn, replacement_internal_fn): New functions.
4977 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
4978 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
4979 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
4980 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
4981 (LDEXP): New functions.
4982 * internal-fn.c: Include recog.h.
4983 (unary_direct, binary_direct): New macros.
4984 (expand_direct_optab_fn): New function.
4985 (expand_unary_optab_fn): New macro.
4986 (expand_binary_optab_fn): Likewise.
4987 (direct_unary_optab_supported_p): Likewise.
4988 (direct_binary_optab_supported_p): Likewise.
4990 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4992 * coretypes.h (tree_pair): New type.
4993 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
4994 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
4995 * internal-fn.h (direct_internal_fn_info): New structure.
4996 (direct_internal_fn_array): Declare.
4997 (direct_internal_fn_p, direct_internal_fn): New functions.
4998 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
4999 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
5000 (mask_store_direct, store_lanes_direct): New macros.
5001 (direct_internal_fn_array) New array.
5002 (get_multi_vector_move): Return the optab handler without asserting
5003 that it is available.
5004 (expand_LOAD_LANES): Rename to...
5005 (expand_load_lanes_optab_fn): ...this and add an optab argument.
5006 (expand_STORE_LANES): Rename to...
5007 (expand_store_lanes_optab_fn): ...this and add an optab argument.
5008 (expand_MASK_LOAD): Rename to...
5009 (expand_mask_load_optab_fn): ...this and add an optab argument.
5010 (expand_MASK_STORE): Rename to...
5011 (expand_mask_store_optab_fn): ...this and add an optab argument.
5012 (direct_internal_fn_types, direct_optab_supported_p)
5013 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
5014 (direct_internal_fn_supported_p): New functions.
5015 (direct_mask_load_optab_supported_p): New macro.
5016 (direct_load_lanes_optab_supported_p): Likewise.
5017 (direct_mask_store_optab_supported_p): Likewise.
5018 (direct_store_lanes_optab_supported_p): Likewise.
5020 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5022 * tree-core.h (internal_fn): Move immediately after the definition
5023 of built_in_function.
5024 (combined_fn): New enum.
5025 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
5026 (internal_fn_p, as_internal_fn): New functions.
5027 (get_call_combined_fn, combined_fn_name): Declare.
5028 * tree.c (get_call_combined_fn): New function.
5029 (combined_fn_name): Likewise.
5030 * gimple.h (gimple_call_combined_fn): Declare.
5031 * gimple.c (gimple_call_combined_fn): New function.
5033 2015-11-17 Martin Sebor <msebor@redhat.com>
5036 * cp/init.c (build_new_1): Check for expression constness
5039 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
5042 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
5044 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
5045 discussion of the Microsoft structure layout details here from
5046 its former home in extend.texi.
5047 * doc/extend.texi (x86 Variable Attributes): Replace detailed
5048 discussion with pointer to its new location. Add cross-reference
5049 to corresponding type attributes.
5050 (x86 Type Attributes): Add cross-references to command-line options
5051 and variable attributes.
5053 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
5056 * targhooks.c (default_get_mask_mode): Filter out
5057 scalar modes returned by mode_for_vector.
5059 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5062 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
5063 offset from dstbase and use it appropriately in
5064 adjust_automodify_address.
5065 (arm_block_set_aligned_vect): Likewise.
5067 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
5069 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
5070 (MULTILIB_DIRNAMES): Adjust accordingly.
5072 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
5074 * config/aarch64/aarch64-cores.def (cortex-a35): New.
5075 * config/aarch64/aarch64.c (cortexa35_tunings): New.
5076 * config/aarch64/aarch64-tune.md: Regenerate.
5077 * doc/invoke.texi (-mcpu): Add Cortex-A35
5079 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
5082 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
5084 * config/i386/sse.md (*mov<mode>_internal): Always enable
5085 AVX and SSE unaligned moves for IAMCU.
5087 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
5089 * tree-if-conv.c: Include varasm.h
5090 (ref_DR_map): Define.
5091 (baseref_DR_map): Like wise
5092 (struct ifc_dr): Add new tree predicate field.
5093 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
5094 (memrefs_read_or_written_unconditionally): Remove.
5095 (write_memrefs_written_at_least_once): Remove.
5096 (ifcvt_memrefs_wont_trap): Use hash maps to query
5097 unconditional read/written information.
5098 (if_convertible_loop_p_1): Initialize hash maps and predicates
5099 before hashing data references and delete hashmaps at the end.
5101 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5104 * doc/invoke.texi (Optimize Options): Move @end table to the right
5107 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
5110 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
5113 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5115 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
5116 128-bit types, just types that fit in a single vector.
5117 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
5119 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
5121 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
5122 in the user documentation.
5123 (define_peephole2, define_split): Similarly.
5125 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
5127 * lto-streamer-out.c (write_global_references): Adjust integer type.
5128 (lto_output_decl_state_refs): Likewise.
5130 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5132 * config/arm/arm-cores.def (cortex-a35): New.
5133 * config/arm/arm.c (arm_cortex_a35_tune): New.
5134 * config/arm/arm-tables.opt: Regenerate.
5135 * config/arm/arm-tune.md: Regenerate.
5136 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
5137 * config/arm/t-aprofile: Likewise.
5138 * doc/invoke.texi (-mcpu): Likewise.
5140 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
5142 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
5143 and qdf24xx and xgene1 to match -march=armv8-a.
5145 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5147 PR rtl-optimization/68330
5148 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
5149 of LSHIFTRT by a non-zero constant integer.
5151 2015-11-16 Richard Biener <rguenther@suse.de>
5153 PR tree-optimization/68306
5154 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
5155 bogus copying from verify_data_ref_alignment and use continue
5158 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
5159 Kaz Kojima <kkojima@gcc.gnu.org>
5162 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
5164 (*addsi3): Add another insn_and_split variant for reload.
5166 2015-11-16 Richard Biener <rguenther@suse.de>
5169 * cfgexpand.c (pass_expand::execute): Destroy the edge
5170 redirection var map before setting RTL CFG hooks.
5172 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
5174 * config/i386/sse.md (reduc_splus_v8df): Rename to...
5175 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
5177 (reduc_splus_v4df): Rename to...
5178 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
5180 (reduc_splus_v2df): Rename to...
5181 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
5183 (reduc_splus_v16sf): Rename to...
5184 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
5186 (reduc_splus_v8sf): Rename to...
5187 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
5189 (reduc_splus_v4sf): Rename to...
5190 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
5192 (reduc_<code>_<mode>, all 3 variants): Rename each to...
5193 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
5195 (reduc_umin_v8hf): Rename to...
5196 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
5198 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
5200 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
5201 without additional conditions.
5202 * doc/extend.texi (@item simd): New.
5204 2015-11-16 Tom de Vries <tom@codesourcery.com>
5206 * passes.c (first_pass_instance): Remove variable.
5207 (execute_todo): Remove setting of first_pass_instance.
5208 * tree-pass.h (first_pass_instance): Remove declaration.
5210 2015-11-16 Tom de Vries <tom@codesourcery.com>
5212 * passes.def: Add arg to pass_ccp pass instantiation.
5213 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
5214 instead of first_pass_instance.
5215 (do_ssa_ccp): Add and handle param nonzero_p.
5216 (pass_ccp::pass_ccp): Initialize nonzero_p.
5217 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
5218 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
5219 (pass_ccp::nonzero_p): New private member.
5221 2015-11-16 Tom de Vries <tom@codesourcery.com>
5223 * passes.def: Add arg to pass_object_sizes pass instantiation.
5224 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
5226 (pass_object_sizes::set_pass_param): New member function. Set
5228 (pass_object_sizes::insert_min_max_p): New private member.
5229 (pass_object_sizes::execute): Use insert_min_max_p instead of
5230 first_pass_instance.
5232 2015-11-16 Tom de Vries <tom@codesourcery.com>
5234 * passes.def: Add arg to pass_dominator pass instantiation.
5235 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
5237 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
5238 may_peel_loop_headers_p.
5239 (pass_dominator::set_pass_param): New member function. Set
5240 may_peel_loop_headers_p.
5241 (pass_dominator::may_peel_loop_headers_p): New private member.
5242 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
5243 first_pass_instance.
5245 2015-11-16 Tom de Vries <tom@codesourcery.com>
5247 * passes.def: Add arg to pass_reassoc pass instantiation.
5248 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
5249 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
5250 of first_pass_instance.
5251 (execute_reassoc): Add and handle insert_powi_p parameter.
5252 (pass_reassoc::insert_powi_p): New private member.
5253 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
5254 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
5255 (pass_reassoc::execute): Call execute_reassoc with extra arg.
5257 2015-11-16 Tom de Vries <tom@codesourcery.com>
5259 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
5260 * gen-pass-instances.awk (handle_line): Same.
5261 * pass_manager.h (class pass_manager): Define and undefine
5263 * passes.c (opt_pass::set_pass_param): New function.
5264 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
5265 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
5266 * tree-pass.h (gimple_opt::set_pass_param): Declare.
5267 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
5268 warn_array_bounds_p parameter.
5269 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
5270 (pass_vrp::set_pass_param): New function.
5271 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
5272 (pass_vrp::warn_array_bounds_p): New private member.
5274 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5276 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
5277 (output_probe_stack_range): Rotate the loop and simplify.
5279 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5281 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
5282 (output_probe_stack_range): Rotate the loop and simplify.
5284 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5286 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
5287 an lea instruction when possible.
5288 (output_adjust_stack_and_probe): Rotate the loop and simplify.
5289 (ix86_emit_probe_stack_range): Adjust.
5290 (output_probe_stack_range): Rotate the loop and simplify.
5292 2015-11-16 Christian Bruel <christian.bruel@st.com>
5294 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
5295 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
5296 with appropriate pragma GCC target.
5298 2015-11-16 Christian Bruel <christian.bruel@st.com>
5301 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
5302 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
5304 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5306 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
5307 (cortexa57_tunings): Use it.
5309 2015-11-16 Christian Bruel <christian.bruel@st.com>
5312 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
5313 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
5314 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
5316 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
5317 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
5318 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
5319 * doc/extend.texi (-mfpu=): Describe attribute.
5321 2015-11-16 Christian Bruel <christian.bruel@st.com>
5324 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
5325 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
5326 arm_init_neon_builtins.
5327 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
5328 (arm_init_neon_builtins_internal)
5329 (arm_init_crypto_builtins_internal):
5330 Test and set neon_set_p, neon_crypto_set_p.
5331 (neon_set_p, neon_crypto_set_p): New static booleans.
5333 2015-11-16 Christian Bruel <christian.bruel@st.com>
5336 * config/arm/arm.c (arm_fpu_desc): Remove.
5337 (all_fpus): Make global.
5338 (arm_option_override): Use FPU TARGET accessors.
5339 (arm_declare_function_name): Likewise.
5340 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
5341 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
5342 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
5343 (TARGET_NEON): Likewise.
5344 (all_fpus): Declare extern.
5345 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
5346 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
5348 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5351 * sdbout.c: Include emit-rtl.h and function.h.
5353 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
5355 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
5356 Remove support for FreeBSD 5 and earlier.
5358 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5360 * configure: Regenerate.
5361 * configure.ac: Always define ENABLE_OFFLOADING.
5362 * cgraph.c (cgraph_node::create): Adjust.
5363 * gcc.c (process_command): Likewise.
5364 * omp-low.c (create_omp_child_function): Likewise.
5365 (expand_omp_target): Likewise.
5366 * varpool.c (varpool_node::get_create): Likewise.
5368 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5370 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
5371 * df-scan.c (df_get_exit_block_use_set): Adjust.
5372 * except.c (expand_eh_return): Likewise.
5374 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5376 * config/i386/i386.h (TARGET_PECOFF): Remove define.
5377 * defaults.h (TARGET_PECOFF): New default definition.
5378 * varasm.c (handle_vtv_comdat_section): Adjust.
5380 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5382 * defaults.h: New definition of SDB_DEBUGGING_INFO.
5383 * doc/tm.texi: Regenerate.
5384 * doc/tm.texi.in: Adjust.
5385 * final.c (rest_of_clean_state): Remove check if
5386 SDB_DEBUGGING_INFO is defined.
5387 * function.c (number_blocks): Likewise.
5388 * output.h: Likewise.
5389 * sdbout.c: Likewise.
5390 * toplev.c (process_options): Likewise.
5392 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5394 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
5395 (enum sdb_masks): Likewise.
5396 * sdbout.c (plain_type_1): Likewise.
5397 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
5399 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5401 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
5402 internal calls - 0 if ordered simd and 1 for ordered threads simd.
5403 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
5404 argument is 1, replace it with GOMP_ordered_* call instead of removing
5407 2015-11-13 Rich Felker <dalias@libc.org>
5409 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
5410 address loading hack for FDPIC targets.
5412 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
5413 Jeff Law <law@redhat.com>
5415 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
5416 * common.opt (-fsplit-paths): New flag controlling path splitting.
5417 * doc/invoke.texi (fsplit-paths): Document.
5418 * opts.c (default_options_table): Add -fsplit-paths to -O2.
5419 * passes.def: Add split_paths pass.
5420 * timevar.def (TV_SPLIT_PATHS): New timevar.
5421 * tracer.c: Include "tracer.h"
5422 (ignore_bb_p): No longer static.
5423 (transform_duplicate): New function, broken out of tail_duplicate.
5424 (tail_duplicate): Use transform_duplicate.
5425 * tracer.h (ignore_bb_p): Declare
5426 (transform_duplicate): Likewise.
5427 * tree-pass.h (make_pass_split_paths): Declare.
5428 * gimple-ssa-split-paths.c: New file.
5430 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
5431 Marek Polacek <polacek@redhat.com>
5432 Jason Merrill <jason@redhat.com>
5434 * convert.c (maybe_fold_build1_loc): New.
5435 (maybe_fold_build2_loc): New.
5436 (convert_to_pointer_1): Split out from convert_to_pointer.
5437 (convert_to_pointer_nofold): New.
5438 (convert_to_real_1): Split out from convert_to_real.
5439 (convert_to_real_nofold): New.
5440 (convert_to_integer_1): Split out from convert_to_integer.
5441 (convert_to_integer_nofold): New.
5442 (convert_to_complex_1): Split out from convert_to_complex.
5443 (convert_to_complex_nofold): New.
5444 * convert.h: Declare new functions.
5445 * tree-complex.c (create_one_component_var): Break up line to
5446 avoid sequence point issues.
5448 2015-11-13 Jason Merrill <jason@redhat.com>
5450 * fold-const.c (fold_convert_const): Fold changing cv-quals on
5453 * hash-map.h (hash_map::empty): New.
5455 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5457 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
5458 (oacc_loop_fixed_partitions): Correct return type to bool.
5459 (oacc_loop_auto_partitions): New.
5460 (oacc_loop_partition): Take mask argument, call
5461 oacc_loop_auto_partitions.
5462 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
5464 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5466 * config/rs6000/constraints.md (we constraint): New constraint for
5467 64-bit power9 vector support.
5468 (wL constraint): New constraint for the element in a vector that
5469 can be addressed by the MFVSRLD instruction.
5471 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
5473 (convert_int_to_float128): Likewise.
5474 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
5475 hardware support for IEEE 128-bit floating point.
5476 (rs6000_expand_float128_convert): Likewise.
5477 (convert_float128_to_int): Likewise.
5478 (convert_int_to_float128): Likewise.
5480 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
5481 ISA 3.0 hardware IEEE 128-bit floating point.
5482 (UNSPEC_IEEE128_MOVE): Likewise.
5483 (UNSPEC_IEEE128_CONVERT): Likewise.
5484 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
5485 (Ff): Add support for DImode.
5487 (any_fix code iterator): New and updated iterators for IEEE
5488 128-bit floating point hardware support.
5489 (any_float code iterator): Likewise.
5490 (s code attribute): Likewise.
5491 (su code attribute): Likewise.
5492 (az code attribute): Likewise.
5493 (uns code attribute): Likewise.
5494 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
5495 floating point hardware support.
5496 (abs<mode>2, FLOAT128 iterator): Likewise.
5497 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
5498 floating point hardware.
5499 (sub<mode>3, IEEE128 iterator): Likewise.
5500 (mul<mode>3, IEEE128 iterator): Likewise.
5501 (div<mode>3, IEEE128 iterator): Likewise.
5502 (copysign<mode>3, IEEE128 iterator): Likewise.
5503 (sqrt<mode>2, IEEE128 iterator): Likewise.
5504 (neg<mode>2, IEEE128 iterator): Likewise.
5505 (abs<mode>2, IEEE128 iterator): Likewise.
5506 (nabs<mode>2, IEEE128 iterator): Likewise.
5507 (fma<mode>4_hw, IEEE128 iterator): Likewise.
5508 (fms<mode>4_hw, IEEE128 iterator): Likewise.
5509 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
5510 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
5511 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
5512 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
5513 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
5514 (fix_fixuns code attribute): Likewise.
5515 (float_floatuns code attribute): Likewise.
5516 (fix<uns>_<mode>si2_hw): Likewise.
5517 (fix<uns>_<mode>di2_hw): Likewise.
5518 (float<uns>_<mode>si2_hw): Likewise.
5519 (float<uns>_<mode>di2_hw): Likewise.
5520 (xscvqp<su>wz_<mode>): Likewise.
5521 (xscvqp<su>dz_<mode>): Likewise.
5522 (xscv<su>dqp_<mode): Likewise.
5523 (ieee128_mfvsrd): Likewise.
5524 (ieee128_mfvsrwz): Likewise.
5525 (ieee128_mtvsrw): Likewise.
5526 (ieee128_mtvsrd): Likewise.
5527 (trunc<mode>df2_odd): Likewise.
5528 (cmp<mode>_h): Likewise.
5529 (128-bit GPR splitters): Don't split a 128-bit move that is a
5530 direct move between GPR and vector registers using ISA 3.0 direct
5532 (maddld4): Add support for the ISA 3.0 integer multiply-add
5535 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
5537 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
5538 constraint. Disable the VSX<->GPR direct move helpers if we have
5539 the MFVSRLD and MTVSRDD instructions.
5540 (rs6000_secondary_reload_simple_move): Add support for doing
5541 vector direct moves directly without additional scratch registers
5542 if we have ISA 3.0 instructions.
5543 (rs6000_secondary_reload_direct_move): Update comments.
5544 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
5547 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
5548 direct move instructions.
5549 (vsx_movti_64bit): Likewise.
5550 (vsx_extract_<mode>): Likewise.
5552 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
5553 macros for ISA 3.0 direct move instructions.
5554 (TARGET_DIRECT_MOVE_128): Likewise.
5555 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
5558 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
5559 constraints. Update wa documentation to say not to use %x<n> on
5560 instructions that only take Altivec registers.
5562 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5564 * Makefile.in (OBJS): Add gcc-rich-location.o.
5565 * diagnostic.c (diagnostic_append_note): Pass line_table to
5567 (emit_diagnostic): Likewise.
5569 (inform_n): Likewise.
5570 (warning): Likewise.
5571 (warning_at): Likewise.
5572 (warning_n): Likewise.
5573 (pedwarn): Likewise.
5574 (permerror): Likewise.
5576 (error_n): Likewise.
5577 (error_at): Likewise.
5579 (fatal_error): Likewise.
5580 (internal_error): Likewise.
5581 (internal_error_no_backtrace): Likewise.
5582 (source_range::debug): Likewise.
5583 * gcc-rich-location.c: New file.
5584 * gcc-rich-location.h: New file.
5585 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
5586 (warning_at): Likewise.
5587 * gimple.h (gimple_set_block): Use set_block function.
5588 * input.c (dump_line_table_statistics): Dump stats on how many
5589 ranges were optimized vs how many needed ad-hoc table.
5590 (write_digit_row): Add "map" param; use its range_bits
5591 to calculate the per-character offset.
5592 (dump_location_info): Print the range and column bits for each
5593 ordinary map. Use the range bits to calculate the per-character
5594 offset. Pass the map as a new param to the various calls to
5595 write_digit_row. Eliminate uses of
5596 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
5597 * print-tree.c (print_node): Print any source range information.
5598 * rtl-error.c (diagnostic_for_asm): Likewise.
5599 * toplev.c (general_init): Initialize line_table's
5601 * tree-cfg.c (move_block_to_fn): Likewise.
5602 (move_block_to_fn): Likewise.
5603 * tree-inline.c (copy_phis_for_bb): Likewise.
5604 * tree.c (tree_set_block): Likewise.
5605 (get_pure_location): New function.
5606 (set_source_range): New functions.
5607 (set_block): New function.
5608 (set_source_range): New functions.
5609 * tree.h (CAN_HAVE_RANGE_P): New.
5610 (EXPR_LOCATION_RANGE): New.
5611 (EXPR_HAS_RANGE): New.
5612 (get_expr_source_range): New inline function.
5613 (DECL_LOCATION_RANGE): New.
5614 (set_source_range): New decls.
5615 (get_decl_source_range): New inline function.
5617 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
5619 PR tree-optimization/67682
5620 * tree-vect-slp.c (vect_split_slp_store_group): New.
5621 (vect_analyze_slp_instance): During basic block SLP, recurse on
5622 subgroups if vect_build_slp_tree fails after 1st vector.
5624 2015-11-13 Christian Bruel <christian.bruel@st.com>
5627 * config/arm/arm.c (arm_option_override): Move NEON check...
5628 (arm_option_check_internal): here
5629 (arm_file_start): Move .fpu print...
5630 (arm_declare_function_name): here
5631 (arm_option_print): Dump current fpu name.
5632 * config/arm/arm.opt (arm_fpu_index): Mark Save.
5634 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
5635 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5637 * combine.c (subst): Don't substitute or simplify when
5638 handling register-wise widening multiply.
5639 (force_to_mode): Likewise.
5641 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
5643 PR tree-optimization/68264
5644 * tree-call-cdce.c (gen_one_condition): Update commentary.
5645 (gen_conditions_for_pow_int_base): Invert the sense of the tests
5646 passed to gen_one_condition.
5647 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
5648 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
5649 using EDGE_FALSE_VALUE for edges to the call block and
5650 EDGE_TRUE_VALUE for the others.
5652 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5654 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
5657 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5659 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
5661 2015-11-13 Tom de Vries <tom@codesourcery.com>
5663 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
5666 2015-11-13 Tom de Vries <tom@codesourcery.com>
5668 * gen-pass-instances.awk (handle_line): Add args_str variable.
5670 2015-11-13 Martin Liska <mliska@suse.cz>
5672 * graphite-poly.c (free_scop): Release scop->drs vector.
5673 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
5675 (try_generate_gimple_bb): Use vNULL as a default initialization
5678 2015-11-13 Martin Liska <mliska@suse.cz>
5681 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
5682 Replace array initialization (using a variable post-increment)
5683 that possible triggers multiple unsequenced modifications
5684 with a pair of pushes to a vector.
5686 2015-11-13 Richard Biener <rguenther@suse.de>
5688 PR tree-optimization/68306
5689 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
5690 loop related checks ...
5691 (vect_verify_datarefs_alignment): ... here.
5692 (vect_slp_analyze_and_verify_node_alignment): Compute and
5693 verify alignment of the single DR that it matters.
5694 * tree-vect-stmts.c (vectorizable_store): Add an assert.
5695 (vectorizable_load): Add a comment.
5696 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
5697 for determining load cost.
5699 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5701 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
5702 mix of boolean and integer vectors in a single statement.
5703 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
5704 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
5705 determine constant type.
5706 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
5707 for loop invariants.
5709 2015-11-13 Alan Hayward <alan.hayward@arm.com>
5711 PR tree-optimization/66558
5712 * tree-vect-loop.c (is_integer_induction):Add.
5713 (vectorizable_reduction): Add integer induction checks.
5715 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5717 Revert [ARM] Remove neon-testgen.ml and generated tests.
5719 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
5721 [ARM] Remove neon-testgen.ml and generated tests.
5723 * config/arm/neon-testgen.ml: Remove.
5725 2015-11-13 Richard Biener <rguenther@suse.de>
5727 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
5728 Signal fatal failure if early checks fail.
5729 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
5730 do not bother testing further vector sizes.
5732 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
5734 * config/i386/predicates.md (misaligned_operand): Return true if
5735 operand is aligned to less than its natural alignmnet.
5737 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5739 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
5740 (vec_cmpu@var{m}@var{n}): New item.
5741 (vcond@var{m}@var{n}): Specify comparison is signed.
5742 (vcondu@var{m}@var{n}): New item.
5743 (vcond_mask_@var{m}@var{n}): New item.
5744 (maskload@var{m}@var{n}): New item.
5745 (maskstore@var{m}@var{n}): New item.
5747 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
5749 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5750 types of stored value and storage are compatible.
5752 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
5754 * gcc.c (POST_LINK_SPEC): Define if not already defined.
5755 (LINK_COMMAND_SPEC): Use post_link.
5756 (post_link_spec): New, initialize to POST_LINK_SPEC.
5757 (post_link): Initialize new static spec.
5758 * doc/tm.texi.in (POST_LINK_SPEC): Document.
5759 * doc/tm.texi: Regenerated.
5761 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5764 * Makefile.in (GCC_OBJS): Add spellcheck.o.
5765 (OBJS): Add spellcheck-tree.o.
5766 * gcc.c: Include "spellcheck.h".
5767 (suggest_option): New function.
5768 (driver::handle_unrecognized_options): Call suggest_option to
5769 provide a hint about misspelled options.
5770 * spellcheck.c: Update file comment.
5771 (levenshtein_distance): Convert 4-param implementation from static
5772 to extern scope. Remove note about unit tests from leading
5773 comment for const char * implementation. Move tree
5774 implementation to...
5775 * spellcheck-tree.c: New file.
5776 * spellcheck.h (levenshtein_distance): Add 4-param decl.
5778 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5780 * Makefile.in (OBJS): Add spellcheck.o.
5781 * spellcheck.c: New file.
5782 * spellcheck.h: New file.
5784 2015-11-13 James Bowman <james.bowman@ftdichip.com>
5786 * config/ft32/ft32.md (*sne): New insn pattern.
5788 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
5790 * cprop.c (is_too_expensive): Remove.
5792 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
5794 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
5795 * gcse.c (is_too_expensive): Rename to ...
5796 (gcse_or_cprop_is_too_expensive): ... this.
5797 Expand warning to add required size of max-gcse-memory.
5798 (one_pre_gcse_pass): Use it.
5799 (one_code_hoisting_pass): Use it.
5800 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
5802 2015-11-12 James Norris <jnorris@codesourcery.com>
5803 Joseph Myers <joseph@codesourcery.com>
5805 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
5806 GF_OMP_TARGET_KIND_OACC_DECLARE.
5807 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
5808 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5809 * gimplify.c (oacc_declare_returns): New.
5810 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
5811 (device_resident_p): New function.
5812 (oacc_default_clause): Handle device_resident clause.
5813 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
5814 (gimplify_expr): Handle OACC_DECLARE.
5815 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
5816 * omp-low.c (expand_omp_target): Handle
5817 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
5818 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
5819 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
5820 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
5821 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5822 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
5823 GOMP_MAP_DEVICE_RESIDENT.
5825 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
5827 [ARM] Remove neon-testgen.ml and generated tests.
5829 * config/arm/neon-testgen.ml: Remove.
5831 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
5833 * config/aarch64/aarch64-cores.def (qdf24xx): New.
5834 * config/aarch64/aarch64-tune.md: Regenerated.
5835 * config/arm/arm-cores.def (qdf24xx): New.
5836 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
5837 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
5838 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
5839 (ARM Options/-mtune): Likewise.
5841 2015-11-12 Martin Liska <mliska@suse.cz>
5843 * config/i386/i386.c (ix86_valid_target_attribute_p):
5844 Finalize options at the of the function.
5845 * gcc.c (driver_get_configure_time_options): Call newly
5846 introduced init_opts_obstack.
5847 * lto-wrapper.c (main): Likewise.
5848 * opts.c (init_opts_obstack): New function.
5849 (init_options_struct): Call newly introduced init_opts_obstack.
5850 * opts.h (init_options_struct): Declare.
5852 2015-11-12 Martin Liska <mliska@suse.cz>
5855 * ipa-icf.c (void sem_item::set_hash): New function.
5856 (sem_function::get_hash): Use renamed m_hash member variable.
5857 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
5858 (sem_item::update_hash_by_local_refs): Likewise.
5859 (sem_variable::get_hash): Use renamed m_hash member variable.
5860 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
5861 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
5862 (sem_item_optimizer::build_graph): As the hash value of an item
5863 is lazy initialized, force the calculation.
5864 * ipa-icf.h (set_hash): Declare new function and rename hash member
5867 2015-11-12 Richard Biener <rguenther@suse.de>
5869 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
5870 Rename to vect_slp_analyze_instance_dependence.
5871 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5872 Remove WAR special-case.
5873 (vect_slp_analyze_node_dependences): Instead add more specific
5874 code here, not relying on other instances being vectorized.
5875 (vect_slp_analyze_instance_dependence): Adjust accordingly.
5876 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
5877 vertical space in dump files.
5878 (vect_print_slp_tree): Likewise.
5879 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
5880 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
5881 not vectorized stmts until after dependence analysis removed
5882 instances. Merge alignment and dependence checks.
5883 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
5886 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
5888 * config/aarch64/aarch64-protos.h (tune_params): Add new members
5889 "max_case_values" and "cache_line_size".
5890 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
5892 (aarch64_override_options_internal): Tune heuristics based on new
5893 members in "tune_params".
5894 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
5896 2015-11-12 Richard Biener <rguenther@suse.de>
5898 PR tree-optimization/68306
5899 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
5900 relevant and vectorizable checks here.
5901 (vect_verify_datarefs_alignment): Add relevant check here.
5903 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5905 * gimplify.c (oacc_default_clause): New.
5906 (omp_notice_variable): Call it.
5908 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5910 PR tree-optimization/68305
5911 * tree-vect-slp.c (vect_get_constant_vectors): Support
5912 COND_EXPR with SSA_NAME as a condition.
5914 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
5916 * config/visium/visium-protos.h (notice_update_cc): Delete.
5917 (print_operand): Likewise.
5918 (print_operand_address): Likewise.
5920 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5922 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
5923 FUNCTION_VALUE_REGNO_P): Remove.
5924 * config/alpha/alpha-protos.h (function_value): Remove.
5925 * config/alpha/alpha.c (function_value): Rename to...
5926 (alpha_function_value_1): ... this. Make static.
5927 (alpha_function_value, alpha_libcall_value,
5928 alpha_function_value_regno_p): New functions.
5929 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5930 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5932 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5934 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5935 * config/alpha/alpha.c (alpha_memory_latency): Make static.
5936 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
5937 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5939 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
5942 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
5943 assertion on the CFA register.
5945 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5947 * expr.c (do_store_flag): Expand vector comparison as
5948 VEC_COND_EXPR if vector comparison is not supported by target.
5950 2015-11-12 Renlin Li <renlin.li@arm.com>
5952 * config/arm/arm.md (addsi3_compare_op2): Make the order of
5953 assembly pattern consistent with constraint order.
5955 2015-11-12 Tom de Vries <tom@codesourcery.com>
5957 * gen-pass-instances.awk (handle_line): Simplify match regexp.
5959 2015-11-12 Tom de Vries <tom@codesourcery.com>
5961 * gen-pass-instances.awk (handle_line): Simplify init of
5964 2015-11-12 Tom de Vries <tom@codesourcery.com>
5966 * gen-pass-instances.awk (handle_line): Rename var where to
5969 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
5971 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
5972 do not expand to rtl.
5974 2015-11-12 Richard Biener <rguenther@suse.de>
5976 PR tree-optimization/58497
5977 * tree-vect-generic.c: Include gimplify.h.
5978 (tree_vec_extract): Lookup constant/constructor DEFs.
5979 (do_cond): Unshare cond.
5981 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5983 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
5984 combined insn if the alignment of vector mode memory operand
5985 is less than ssememalign.
5987 2015-11-12 Tom de Vries <tom@codesourcery.com>
5989 * gen-pass-instances.awk (handle_line): Print parentheses and
5990 pass_name explicitly.
5992 2015-11-12 Tom de Vries <tom@codesourcery.com>
5994 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
5997 2015-11-12 Tom de Vries <tom@codesourcery.com>
5999 * gen-pass-instances.awk (handle_line): Add comments.
6001 2015-11-12 Tom de Vries <tom@codesourcery.com>
6003 * gen-pass-instances.awk (handle_line): Rename len_of_end to
6006 2015-11-12 Tom de Vries <tom@codesourcery.com>
6008 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
6010 2015-11-12 Tom de Vries <tom@codesourcery.com>
6012 * gen-pass-instances.awk (handle_line): Restructure using early-out.
6014 2015-11-12 Tom de Vries <tom@codesourcery.com>
6016 * gen-pass-instances.awk (handle_line): Unify semicolon use.
6018 2015-11-12 Tom de Vries <tom@codesourcery.com>
6020 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
6022 2015-11-12 Tom de Vries <tom@codesourcery.com>
6024 * gen-pass-instances.awk: Add emacs indent setting.
6026 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6028 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
6030 Move Convert A/(B/C) to (A/B)*C to match.pd.
6031 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
6032 Move Optimize (X & (-A)) / A where A is a power of 2, to
6033 X >> log2(A) to match.pd.
6035 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
6036 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
6037 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
6039 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
6041 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
6043 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
6045 (neon_vst2_lane<mode>): Likewise.
6046 (neon_vld3_lane<mode>): Likewise.
6047 (neon_vst3_lane<mode>): Likewise.
6048 (neon_vld4_lane<mode>): Likewise.
6049 (neon_vst4_lane<mode>): Likewise.
6051 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
6052 Sebastian Pop <s.pop@samsung.com>
6054 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6055 New member codegen_error
6056 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
6058 (translate_isl_ast_node_user): Early return in case of error.
6059 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
6060 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
6061 (add_parameters_to_ivs_params): Remove macro.
6062 (graphite_regenerate_ast_isl): Add if_region pointer to region.
6063 * graphite-poly.c (new_poly_dr): Remove macro.
6065 (new_gimple_poly_bb): Same.
6066 (free_gimple_poly_bb): Same.
6067 (print_scop_params): Same.
6068 * graphite-poly.h (struct poly_dr): Same.
6069 (struct poly_bb): Add new_bb.
6070 (gbb_from_bb): Remove dead code.
6071 (pbb_from_bb): Same.
6072 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
6073 (parameter_index_in_region): Same.
6074 (find_scop_parameters): Same.
6075 (build_cross_bb_scalars_def): New.
6076 (build_cross_bb_scalars_use): New.
6077 (graphite_find_cross_bb_scalar_vars): New
6078 (try_generate_gimple_bb): Reads and Writes.
6079 (build_alias_set): Move.
6080 (gather_bbs::before_dom_children): Gather bbs visited.
6081 (build_scops): call build_alias_set.
6082 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
6083 (remove_simple_copy_phi): Delete.
6084 (remove_invariant_phi): Delete.
6085 (simple_copy_phi_p): Delete.
6086 (reduction_phi_p): Delete.
6087 (isl_id_for_dr): Remove unused param.
6088 (parameter_index_in_region_1): Remove macro usage.
6089 (set_scop_parameter_dim): Same.
6090 (add_param_constraints): Same.
6091 (add_conditions_to_constraints): Same
6092 (build_scop_iteration_domain): Same.
6093 (pdr_add_alias_set): Comment.
6094 (add_scalar_version_numbers): New.
6095 (build_poly_dr): ISL id.
6096 (build_scop_drs): Move.
6097 (build_poly_sr_1): Same.
6098 (insert_stmts): Remove.
6099 (build_poly_sr): New.
6100 (new_pbb_from_pbb): Delete.
6101 (insert_out_of_ssa_copy_on_edge): Delete.
6102 (create_zero_dim_array): Delete.
6103 (scalar_close_phi_node_p): Delete.
6104 (propagate_expr_outside_region): Delete.
6105 (rewrite_close_phi_out_of_ssa): Delete.
6106 (rewrite_phi_out_of_ssa): Delete.
6107 (rewrite_degenerate_phi): Delete.
6108 (rewrite_reductions_out_of_ssa): Delete.
6109 (rewrite_cross_bb_scalar_dependence): Delete.
6110 (handle_scalar_deps_crossing_scop_limits):
6111 (rewrite_cross_bb_scalar_deps): Delete.
6112 (build_poly_scop): Remove calls to out-of-ssa functions.
6113 * graphite.c (graphite_transform_loops): Early return in case of
6115 * sese.c (debug_rename_map_1): Delete.
6116 (debug_rename_map): Delete.
6117 (sese_record_loop): Remove macro.
6118 (build_sese_loop_nests): Same.
6119 (new_sese_info): Same.
6120 (free_sese_info): Same.
6121 (sese_insert_phis_for_liveouts):
6122 (is_loop_closed_ssa_use): New.
6123 (number_of_phi_nodes): New.
6124 (bb_contains_loop_close_phi_nodes): New.
6125 (bb_contains_loop_phi_nodes): New.
6126 (phi_uses_name): New.
6128 (get_rename): Add old_bb and loop_phi for more precise matching of
6130 (set_rename): Pass region.
6131 (later_of_the_two): New.
6132 (gsi_insert_earliest): New.
6133 (collect_all_ssa_names): New.
6134 (substitute_ssa_name): New.
6135 (rename_all_uses): New.
6136 (get_rename_from_scev): New.
6137 (rename_uses): Pass old_bb for more precise matching of exprs.
6138 (get_def_bb_for_const): New.
6139 (get_new_name): New.
6142 (copy_loop_phi_args): New.
6143 (copy_loop_phi_nodes): New.
6144 (get_loop_init_value): New.
6145 (find_init_value): New.
6146 (find_init_value_close_phi): New.
6147 (copy_loop_close_phi_args): New.
6148 (copy_loop_close_phi_nodes): New.
6149 (add_phi_arg_for_new_expr): New.
6150 (copy_cond_phi_args): New.
6151 (copy_cond_phi_nodes): New.
6152 (copy_phi_nodes): New.
6153 (should_copy_to_new_region): New.
6154 (set_rename_for_each_def): New.
6155 (graphite_copy_stmts_from_block): Early return in case of error.
6156 (copy_bb_and_scalar_dependences): Same.
6157 * sese.h (vec_find): New.
6158 (SESE_PARAMS): Delete.
6159 (SESE_LOOPS): Delete.
6160 (SESE_LOOP_NEST): Delete.
6161 (sese_contains_loop): Remove macro usage.
6162 (sese_nb_params): Same.
6163 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
6165 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6167 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
6168 isl_union_map_add_map on every pbb->schedule.
6170 2015-11-11 Tom de Vries <tom@codesourcery.com>
6172 * tree-parloops.c (create_parallel_loop): Return void.
6174 2015-11-11 Tom de Vries <tom@codesourcery.com>
6176 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
6177 block only when needed.
6179 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
6181 * config/alpha/alpha-protos.h (print_operand): Remove.
6182 (print_operand_address): Remove.
6183 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
6184 (PRINT_OPERAND_ADDRESS): Remove.
6185 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
6186 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
6187 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
6188 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
6189 (print_operand_address): Rename to...
6190 (alpha_print_operand_address): ...this and make static.
6191 (print_operand): Rename to...
6192 (alpha_print_operand): ...this and make static.
6193 (alpha_print_operand_punct_valid_p): New static function.
6195 2015-11-11 Richard Biener <rguenther@suse.de>
6197 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
6199 (vect_analyze_data_refs_alignment): Make loop vect specific.
6200 (vect_verify_datarefs_alignment): Likewise.
6201 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
6202 Add missing continue.
6203 (vect_compute_data_ref_alignment): Export.
6204 (vect_compute_data_refs_alignment): Merge into...
6205 (vect_analyze_data_refs_alignment): ... this.
6206 (verify_data_ref_alignment): Split out from ...
6207 (vect_verify_datarefs_alignment): ... here.
6208 (vect_slp_analyze_and_verify_node_alignment): New function.
6209 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
6210 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
6211 misplaced checks on alignment.
6212 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
6213 alignment analysis after SLP discovery and do it per instance.
6214 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
6215 bother to re-try using different vector sizes.
6217 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
6218 Cesar Philippidis <cesar@codesourcery.com>
6220 * gimplify.c (enum omp_region_type): Add ORT_ACC,
6221 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
6222 (gimple_add_tmp_var): Add ORT_ACC checks.
6223 (gimplify_var_or_parm_decl): Likewise.
6224 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
6225 (omp_add_variable): Look in outer contexts for openacc and allow
6226 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
6227 (omp_notice_variable, omp_is_private, omp_check_private): Add
6229 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
6230 Permit private openacc reductions.
6231 (gimplify_oacc_cache): Specify ORT_ACC.
6232 (gimplify_omp_workshare): Adjust OpenACC region types.
6233 (gimplify_omp_target_update): Likewise.
6234 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
6235 (lower-rec_input_clauses): Don't handle openacc firstprivate
6237 (lower_omp_target): Emit initializers for openacc firstprivate vars.
6239 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
6242 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
6243 frame pointer for stack checking if non-call exceptions aren't used.
6244 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
6246 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
6248 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
6251 2015-11-11 Martin Liska <mliska@suse.cz>
6252 Richard Biener <rguenther@suse.de>
6254 PR rtl-optimization/68287
6255 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
6258 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
6260 * config/mips/mips.c (mips_breakable_sequence_p): New function.
6261 (mips_break_sequence): New function.
6262 (mips_reorg_process_insns): Use them. Use compact branches in selected
6265 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
6267 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
6269 2015-11-11 Jiong Wang <jiong.wang@arm.com>
6270 Jim Wilson <wilson@gcc.gnu.org>
6273 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
6274 be true and eliminable registers mentioned.
6276 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
6278 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
6280 * config/arc/arc-opts.h: Add ARCv2 CPUs.
6281 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
6282 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
6283 situation, and store instructions with large offsets.
6284 (arc_secondary_reload_conv): New function.
6285 (arc_init): Add ARCv2 options.
6286 (arc_conditional_register_usage): Select the proper register usage
6287 for ARCv2 processors.
6288 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
6290 (arc_compute_function_type): Likewise.
6291 (arc_print_operand): Handle new ARCv2 punctuation characters.
6292 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
6293 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
6295 (arc_reorg, arc_hazard): Use it.
6296 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
6297 (ASM_SPEC): Add ARCv2 options.
6298 (TARGET_NORM): ARC HS has norm instructions by default.
6299 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
6300 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
6301 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
6302 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
6304 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
6305 (TARGET_LP_WR_INTERLOCK): Likewise.
6307 (commutative_binary_mult_comparison_result_used, movsicc_insn)
6308 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
6309 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
6310 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
6312 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
6313 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
6314 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
6315 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
6316 (extzvsi): New pattern.
6317 * config/arc/arc.opt: New ARCv2 options.
6318 * config/arc/arcEM.md: New file.
6319 * config/arc/arcHS.md: Likewise.
6320 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
6322 (Cm2): A signed 9-bit integer constant constraint.
6323 (C62): An unsigned 6-bit integer constant constraint.
6324 (C16): A signed 16-bit integer constant constraint.
6325 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
6326 (short_const_int_operand): New predicate.
6327 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
6328 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
6329 -mcode-density and -mdiv-rem.
6331 2015-11-11 Julia Koval <julia.koval@intel.com>
6333 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
6335 2015-11-11 Julia Koval <julia.koval@intel.com>
6337 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
6339 2015-11-11 Martin Liska <mliska@suse.cz>
6341 * gimple-ssa-strength-reduction.c (create_phi_basis):
6343 * passes.c (release_dump_file_name): New function.
6344 (pass_init_dump_file): Used from this function.
6345 (pass_fini_dump_file): Likewise.
6346 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
6347 * var-tracking.c (vt_initialize): Use pool_allocator.
6349 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
6350 Jiong Wang <jiong.wang@arm.com>
6352 PR tree-optimization/68234
6353 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
6354 node which estimiated to be VR_VARYING initially.
6356 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
6358 * regname.c (scan_rtx_reg): Check the matching number of consecutive
6359 registers when tying chains.
6360 (build_def_use): Move terminated_this_insn earlier in the function.
6362 2015-11-10 Mike Frysinger <vapier@gentoo.org>
6364 * configure.ac: Use = with test and not ==.
6365 * configure: Regenerated.
6367 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
6369 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
6370 machine asserts. Update defines for 64 bit.
6372 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6375 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
6377 (neon_vst1_lane<mode>): Likewise.
6378 (neon_vld2_lane<mode>): Likewise.
6379 (neon_vst2_lane<mode>): Likewise.
6380 (neon_vld3_lane<mode>): Likewise.
6381 (neon_vst3_lane<mode>): Likewise.
6382 (neon_vld4_lane<mode>): Likewise.
6383 (neon_vst4_lane<mode>): Likewise.
6385 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6388 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
6389 qualifier_struct_load_store_lane_index.
6390 (arm_storestruct_lane_qualifiers) Likewise.
6391 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
6393 (neon_vst1_lane<mode>) Likewise.
6394 (neon_vld2_lane<mode>) Likewise.
6395 (neon_vst2_lane<mode>) Likewise.
6396 (neon_vld3_lane<mode>) Likewise.
6397 (neon_vst3_lane<mode>) Likewise.
6398 (neon_vld4_lane<mode>) Likewise.
6399 (neon_vst4_lane<mode>) Likewise.
6401 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6404 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
6405 qualifier_struct_load_store_lane_index.
6406 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6407 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
6408 argument qualifiers.
6409 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
6410 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
6412 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
6414 * config/nvptx/nvptx.opt (moptimize): New flag.
6415 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
6417 (nvptx_optimize_inner): New.
6418 (nvptx_process_pars): Call it when optimizing.
6419 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
6421 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6423 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6424 Remove redundant code.
6426 2015-11-10 Jeff Law <law@redhat.com>
6428 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
6429 call to output_address.
6430 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
6431 Add unnamed machine_mode argument.
6433 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6435 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
6438 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6440 * config/i386/i386.md (*movabs<mode>_1): Add explicit
6441 size directives for -masm=intel.
6442 (*movabs<mode>_2): Ditto.
6444 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6446 * config/i386/i386.c (ix86_print_operand): Remove dead code that
6447 tried to avoid (%rip) for call operands.
6449 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6451 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
6452 argument. Do not use RIP relative addressing when no_rip is set.
6453 (ix86_print_operand): Update call to ix86_print_operand_address_as.
6454 (ix86_print_operand_address): Ditto.
6455 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
6456 absolute movabs operand 0. Add square braces for -masm=intel.
6457 (*movabs<mode>_2): Ditto for operand 1.
6459 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6461 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
6462 combine_vcvtf2i pattern.
6464 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6466 * config/arm/arm.c (neon_valid_immediate): Remove integer
6467 CONST_DOUBLE handling. It should never occur.
6469 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
6471 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
6472 (ATOMIC_LDOP): Likewise.
6473 (atomic_ldop): Likewise.
6474 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
6475 (ATOMIC_LDOP): Likewise.
6476 (atomic_ldop): Likewise.
6478 2015-11-10 Martin Liska <mliska@suse.cz>
6480 * alloc-pool.h (allocate_raw): New function.
6481 (operator new (size_t, object_allocator<T> &a)): Use the
6482 function instead of object_allocator::allocate).
6484 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6486 * config/i386/sse.md (HALFMASKMODE): New attribute.
6487 (DOUBLEMASKMODE): New attribute.
6488 (vec_pack_trunc_qi): New.
6489 (vec_pack_trunc_<mode>): New.
6490 (vec_unpacks_lo_hi): New.
6491 (vec_unpacks_lo_si): New.
6492 (vec_unpacks_lo_di): New.
6493 (vec_unpacks_hi_hi): New.
6494 (vec_unpacks_hi_<mode>): New.
6496 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6498 * optabs.c (expand_binop_directly): Allow scalar mode for
6499 vec_pack_trunc_optab.
6500 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
6501 boolean vector producers from pattern sequence when computing VF.
6502 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
6503 vect_recog_mask_conversion_pattern.
6504 (search_type_for_mask): Choose the smallest
6505 type if different size types are mixed.
6506 (build_mask_conversion): New.
6507 (vect_recog_mask_conversion_pattern): New.
6508 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
6509 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
6511 (vectorizable_conversion): Support boolean vectors.
6512 (free_stmt_vec_info): Allow patterns for statements with no lhs.
6513 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
6515 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6517 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
6518 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
6519 Cast mask to FP mode if required.
6520 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
6521 (vcond_mask_<mode><avx512fmaskmodelower>): New.
6522 (vcond_mask_<mode><sseintvecmodelower>): New.
6523 (vcond_mask_<mode><sseintvecmodelower>): New.
6524 (vcond_mask_v2div2di): New.
6525 (vcond_mask_<mode><sseintvecmodelower>): New.
6526 (vcond_mask_<mode><sseintvecmodelower>): New.
6528 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6530 * optabs-query.h (get_vcond_mask_icode): New.
6531 * optabs-tree.c (expand_vec_cond_expr_p): Use
6532 get_vcond_mask_icode for VEC_COND_EXPR with mask.
6533 * optabs.c (expand_vec_cond_mask_expr): New.
6534 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
6535 * optabs.def (vcond_mask_optab): New.
6536 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
6537 generate redundant comparison for COND_EXPR.
6538 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
6540 (vectorizable_condition): Likewise.
6541 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
6542 cond_exp with no embedded comparison.
6543 (vect_build_slp_tree_1): Likewise.
6545 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6547 * config/i386/sse.md (maskload<mode>): Rename to ...
6548 (maskload<mode><sseintvecmodelower>): ... this.
6549 (maskstore<mode>): Rename to ...
6550 (maskstore<mode><sseintvecmodelower>): ... this.
6551 (maskload<mode><avx512fmaskmodelower>): New.
6552 (maskstore<mode><avx512fmaskmodelower>): New.
6554 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6556 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
6557 (expand_MASK_STORE): Adjust to maskstore optab changes.
6558 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
6559 Adjust to maskload, maskstore optab changes.
6560 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
6561 * optabs.def (maskload_optab): Transform into convert optab.
6562 (maskstore_optab): Likewise.
6563 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
6564 can_vec_mask_load_store_p signature change.
6565 (predicate_mem_writes): Use boolean mask.
6566 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
6567 can_vec_mask_load_store_p signature change. Allow invariant masks.
6568 (vectorizable_operation): Ignore type precision for boolean vectors.
6570 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6572 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
6573 (const_vector_mask_from_tree): New.
6574 (const_vector_from_tree): Use const_vector_mask_from_tree
6575 for boolean vectors.
6576 * optabs-query.h (get_vec_cmp_icode): New.
6577 * optabs-tree.c (expand_vec_cmp_expr_p): New.
6578 * optabs-tree.h (expand_vec_cmp_expr_p): New.
6579 * optabs.c (vector_compare_rtx): Add OPNO arg.
6580 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
6581 (expand_vec_cmp_expr): New.
6582 * optabs.def (vec_cmp_optab): New.
6583 (vec_cmpu_optab): New.
6584 * optabs.h (expand_vec_cmp_expr): New.
6585 * tree-vect-generic.c (expand_vector_comparison): Add vector
6586 comparison optabs check.
6587 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
6588 operations for VF. Add mask type computation.
6589 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
6590 (vectorizable_comparison): New.
6591 (vect_analyze_stmt): Add vectorizable_comparison.
6592 (vect_transform_stmt): Likewise.
6593 (vect_init_vector): Support boolean vector invariants.
6594 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6595 (vectorizable_condition): Directly provide vectype for invariants
6597 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
6598 (enum vect_var_kind): Add vect_mask_var.
6599 (enum stmt_vec_info_type): Add comparison_vec_info_type.
6600 (vectorizable_comparison): New.
6601 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6602 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
6603 (vect_create_destination_var): Likewise.
6604 * tree-vect-patterns.c (check_bool_pattern): Check fails
6605 if we can vectorize comparison directly.
6606 (search_type_for_mask): New.
6607 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
6608 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
6609 comparison statements.
6610 (vect_get_constant_vectors): Support boolean vector constants.
6611 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
6612 (ix86_expand_int_vec_cmp): New.
6613 (ix86_expand_fp_vec_cmp): New.
6614 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
6615 op_true and op_false.
6616 (ix86_int_cmp_code_to_pcmp_immediate): New.
6617 (ix86_fp_cmp_code_to_pcmp_immediate): New.
6618 (ix86_cmp_code_to_pcmp_immediate): New.
6619 (ix86_expand_mask_vec_cmp): New.
6620 (ix86_expand_fp_vec_cmp): New.
6621 (ix86_expand_int_sse_cmp): New.
6622 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
6623 (ix86_expand_int_vec_cmp): New.
6624 (ix86_get_mask_mode): New.
6625 (TARGET_VECTORIZE_GET_MASK_MODE): New.
6626 * config/i386/sse.md (avx512fmaskmodelower): New.
6627 (vec_cmp<mode><avx512fmaskmodelower>): New.
6628 (vec_cmp<mode><sseintvecmodelower>): New.
6629 (vec_cmpv2div2di): New.
6630 (vec_cmpu<mode><avx512fmaskmodelower>): New.
6631 (vec_cmpu<mode><sseintvecmodelower>): New.
6632 (vec_cmpuv2div2di): New.
6634 2015-11-10 Richard Biener <rguenther@suse.de>
6636 PR tree-optimization/68240
6637 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
6639 (visit_phi): For PHIs with just a single executable edge
6640 take its value directly.
6641 (expressions_equal_p): Handle VN_TOP properly.
6643 2015-11-10 Richard Biener <rguenther@suse.de>
6645 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
6646 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
6649 2015-11-10 Richard Biener <rguenther@suse.de>
6651 PR tree-optimization/56118
6652 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
6653 cost favor vectorized version.
6655 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6657 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
6658 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
6659 (neg_not_op): New code attribute.
6661 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6663 * ifcvt.c (noce_try_inverse_constants): New function.
6664 (noce_process_if_block): Call it.
6665 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
6666 * optabs.def (negcc_optab, notcc_optab): Declare.
6667 * optabs.c (emit_conditional_neg_or_complement): New function.
6668 * doc/tm.texi (Standard Names): Document negcc, notcc names.
6670 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6672 PR rtl-optimization/68236
6673 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
6674 if insn_queue doesn't exist.
6675 (haifa_sched_finish): Reset insn_queue to NULL.
6677 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
6679 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
6680 (build_def_use): Initialize terminated_this_insn.
6681 (find_best_rename_reg): Pick and check register from the tied chain.
6682 (regrename_do_replace): Mark head as renamed.
6683 (struct du_head *terminated_this_insn). New static variable.
6684 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
6685 * regrename.h (struct du_head): Add tied_chain, renamed members.
6687 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6690 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
6693 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6696 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
6697 not promote the mode for aggregate types.
6699 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6701 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
6702 * omp-low.c (build_oacc_routine_dims): New.
6704 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6706 * config/rs6000/constraints.md (wF constraint): New constraints
6707 for power9/toc fusion.
6708 (wG constraint): Likewise.
6710 * config/rs6000/predicates.md (u6bit_cint_operand): New
6711 predicate, recognize 0..63.
6712 (upper16_cint_operand): New predicate for power9 and toc fusion.
6713 (fpr_reg_operand): Likewise.
6714 (toc_fusion_or_p9_reg_operand): Likewise.
6715 (toc_fusion_mem_raw): Likewise.
6716 (toc_fusion_mem_wrapped): Likewise.
6717 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
6719 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
6721 (fusion_addis_mem_combo_load): Add support for power9 fusion of
6722 floating point loads, floating point stores, and gpr stores.
6723 (fusion_addis_mem_combo_store): Likewise.
6724 (fusion_offsettable_mem_operand): Likewise.
6726 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
6727 (emit_fusion_load_store): Likewise.
6728 (fusion_p9_p): Likewise.
6729 (expand_fusion_p9_load): Likewise.
6730 (expand_fusion_p9_store): Likewise.
6731 (emit_fusion_p9_load): Likewise.
6732 (emit_fusion_p9_store): Likewise.
6733 (fusion_wrap_memory_address): Likewise.
6735 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
6736 elements for power9 fusion.
6737 (rs6000_debug_print_mode): Rework debug information to print more
6738 information about fusion.
6739 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
6740 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
6741 offsettable memory address.
6742 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
6743 (emit_fusion_gpr_load): Move most of the code from
6744 emit_fusion_gpr_load into emit_fusion-addis that handles both
6745 power8 and power9 fusion.
6746 (emit_fusion_addis): Likewise.
6747 (emit_fusion_load_store): Likewise.
6748 (fusion_wrap_memory_address): Add support for TOC fusion.
6749 (fusion_split_address): Likewise.
6750 (fusion_p9_p): Add support for power9 fusion.
6751 (expand_fusion_p9_load): Likewise.
6752 (expand_fusion_p9_store): Likewise.
6753 (emit_fusion_p9_load): Likewise.
6754 (emit_fusion_p9_store): Likewise.
6756 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
6757 new instructions in ISA 3.0.
6758 (TARGET_CTZ): Likewise.
6759 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
6760 (TARGET_TOC_FUSION_FP): Likewise.
6762 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
6764 (UNSPEC_FUSION_ADDIS): Likewise.
6765 (QHSI mode iterator): New iterator for power9 fusion.
6766 (GPR_FUSION): Likewise.
6767 (FPR_FUSION): Likewise.
6768 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
6769 (umod<mode>3): Likewise.
6770 (divmod peephole): Likewise.
6771 (udivmod peephole): Likewise.
6772 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
6774 (ctz<mode>2_h): Likewise.
6775 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
6776 (ashdi3_extswsli_dot): Likewise.
6777 (ashdi3_extswsli_dot2): Likewise.
6778 (power9 fusion splitter): New power9/toc fusion support.
6779 (toc_fusionload_<mode>): Likewise.
6780 (toc_fusionload_di): Likewise.
6781 (fusion_gpr_load_<mode>): Update predicate function.
6782 (power9 fusion peephole2s): New power9/toc fusion support.
6783 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
6784 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
6785 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
6786 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
6787 (fusion_p9_<mode>_constant): Likewise.
6789 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
6791 * optabs.c (prepare_libcall_arg): New function.
6792 (expand_fixed_convert): Add call to prepare_libcall_arg.
6794 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
6796 * sched-int.h (dump_rgn_dependencies_dot): Declare
6797 * sched-rgn.c (dump_rgn_dependencies_dot): New function
6798 * print-rtl.h (print_insn): Add prototype
6800 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
6801 * common.opt (-fsched-verbose): Set default value to 1.
6802 * invoke.texi (-fsched-verbose): Update the option's description.
6804 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6806 * config/visium/visium.h (PRINT_OPERAND): Delete.
6807 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6808 (PRINT_OPERAND_ADDRESS): Likewise.
6809 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
6811 (visium_print_operand_punct_valid_p): ...this. New function.
6812 (TARGET_PRINT_OPERAND): Define to...
6813 (print_operand): Rename to...
6814 (visium_print_operand): ...this.
6815 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
6816 (visium_output_address): Rename to...
6817 (visium_print_operand_address): ...this.
6818 (print_operand_address): Delete.
6820 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6823 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
6824 Check that the type of the first operand is an aggregate type.
6826 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6828 * omp-low.c: Fix some OpenACC comment typos.
6829 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
6830 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
6831 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
6833 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
6835 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
6837 2015-11-09 Jeff Law <law@redhat.com>
6839 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
6840 being in gimple/ssa form. Remove redundant check for SSA_NAME.
6843 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6844 Peter Bergner <bergner@vnet.ibm.com>
6846 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
6848 (-mpower9-vector): Likewise.
6849 (-mpower9-dform): Likewise.
6850 (-mpower9-minmax): Likewise.
6851 (-mtoc-fusion): Likewise.
6852 (-mmodulo): Likewise.
6853 (-mfloat128-hardware): Likewise.
6855 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
6856 mask for ISA 3.0 (power9).
6857 (POWERPC_MASKS): Add new ISA 3.0 switches.
6858 (power9 cpu): Add power9 cpu.
6860 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
6861 (ASM_CPU_SPEC): Likewise.
6862 (EXTRA_SPECS): Likewise.
6864 * config/rs6000/rs6000-opts.h (enum processor_type): Add
6867 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
6868 (rs6000_debug_reg_global): Add support for power9 fusion.
6869 (rs6000_setup_reg_addr_masks): Cache mode size.
6870 (rs6000_option_override_internal): Until real power9 tuning is
6871 added, use -mtune=power8 for -mcpu=power9.
6872 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
6873 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
6874 of Altivec registers.
6875 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
6876 (rs6000_loop_align): Add support for power9 cpu.
6877 (rs6000_file_start): Likewise.
6878 (rs6000_adjust_cost): Likewise.
6879 (rs6000_issue_rate): Likewise.
6880 (insn_must_be_first_in_group): Likewise.
6881 (insn_must_be_last_in_group): Likewise.
6882 (force_new_group): Likewise.
6883 (rs6000_register_move_cost): Likewise.
6884 (rs6000_opt_masks): Likewise.
6886 * config/rs6000/rs6000.md (cpu attribute): Add power9.
6887 * config/rs6000/rs6000-tables.opt: Regenerate.
6889 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6890 _ARCH_PWR9 if power9 support is available.
6892 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
6893 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
6895 * configure.ac: Determine if the assembler supports the ISA 3.0
6897 * config.in (HAVE_AS_POWER9): Likewise.
6898 * configure: Regenerate.
6900 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
6903 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6905 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
6906 Remove integer CONST_DOUBLE handling. It should never occur.
6908 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6911 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
6912 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
6913 Delete VOIDmode case. Assert that mode is not VOIDmode.
6914 * config/aarch64/predicates.md (const0_operand): Remove const_double
6917 2015-11-09 Martin Liska <mliska@suse.cz>
6919 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
6920 body_info release function.
6921 * ipa-prop.c (ipa_release_body_info): New function.
6922 (ipa_analyze_node): Call the function.
6923 (ipa_node_params::~ipa_node_params): Release known_csts.
6924 * ipa-prop.h (ipa_release_body_info): Declare.
6926 2015-11-09 Martin Liska <mliska@suse.cz>
6928 * gcc.c (record_temp_file): Release name string.
6929 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
6930 * lra-lives.c (free_live_range_list): Utilize
6931 lra_live_range_pool for allocation and deallocation.
6932 (create_live_range): Likewise.
6933 (copy_live_range): Likewise.
6934 (lra_merge_live_ranges): Likewise.
6935 (remove_some_program_points_and_update_live_ranges): Likewise.
6936 (lra_create_live_ranges_1): Release point_freq_vec that can
6937 be not freed from previous iteration of the function.
6938 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
6939 * tree-sra.c (sra_deinitialize): Release all vectors in
6941 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
6942 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6943 Release edge_info for a removed edge.
6944 (thread_through_all_blocks): Free region vector.
6945 * tree-ssa.h (free_dom_edge_info): Declare function extern.
6947 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
6949 * optabs.c (expand_vec_cond_expr): Always get sign from type.
6950 * tree.c (wide_int_to_tree): Support negative values for boolean.
6951 (build_nonstandard_boolean_type): Use signed type for booleans.
6953 2015-11-09 Richard Biener <rguenther@suse.de>
6955 PR tree-optimization/68248
6956 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
6958 2015-11-09 Richard Biener <rguenther@suse.de>
6960 PR tree-optimization/56118
6961 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
6962 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
6963 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
6965 (vect_slp_analyze_data_ref_dependences): Instead of computing
6966 all dependences of the region DRs just analyze the code motions
6967 SLP vectorization will perform. Remove SLP instances that
6968 cannot have their store/load motions applied.
6969 (vect_analyze_data_refs): Allow DRs without a vectype
6970 in BB vectorization.
6972 2015-11-09 Julian Brown <julian@codesourcery.com>
6974 * final.c (output_asm_insn): Pass VOIDmode to output_address.
6975 (output_address): Add MODE argument. Pass to print_operand_address
6977 * targhooks.c (default_print_operand_address): Add MODE argument.
6978 * targhooks.h (default_print_operand_address): Update prototype.
6979 * output.h (output_address): Update prototype.
6980 * target.def (print_operand_address): Add MODE argument.
6981 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
6983 (print_operand): Pass access mode to output_address.
6984 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
6986 (mcore_print_operand): Update calls to mcore_print_operand_address.
6987 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
6989 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
6991 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
6993 (tilegx_print_operand): Don't set above global. Update calls to
6995 (tilegx_print_operand_address): Add MODE argument. Use instead of
6996 output_memory_reference_mode global.
6997 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
6998 (frv_print_operand): Pass mode to frv_print_operand_address calls.
6999 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
7001 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
7002 (cris_print_operand): Pass mode to output_address calls.
7003 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
7004 * config/aarch64/aarch64.h (aarch64_print_operand)
7005 (aarch64_print_operand_address): Remove prototypes.
7006 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
7008 (aarch64_print_operand): Make static. Update calls to output_address.
7009 (aarch64_print_operand_address): Add MODE argument. Use instead of
7010 aarch64_memory_reference_mode global.
7011 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
7013 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7014 Delete macro definitions.
7015 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
7016 * config/xtensa/xtensa.c (print_operand): Pass mode in
7017 output_address calls.
7018 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
7020 (h83000_print_operand): Update calls to h8300_print_operand_address
7022 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
7023 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
7025 (tilepro_print_operand): Pass mode to output_address.
7026 (tilepro_print_operand_address): Add MODE argument. Use instead of
7027 output_memory_reference_mode.
7028 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
7029 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
7030 to output_address calls.
7031 (nvptx_print_operand_address): Add MODE argument.
7032 * config/alpha/alpha.c (print_operand): Pass mode argument in
7033 output_address calls.
7034 * config/m68k/m68k.c (print_operand): Pass mode argument in
7035 output_address call.
7036 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
7037 (avr_print_operand): Update calls to avr_print_operand_address.
7038 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
7039 argument. Update calls to output_address.
7040 (sparc_print_operand): Pass mode to output_address.
7041 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
7043 (iq2000_print_operand): Pass mode in output_address calls.
7044 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
7046 (xstormy16_print_operand): Pass mode to
7047 xstormy16_print_operand_address calls.
7048 * config/mips/mips.c (mips_print_operand): Update calls to
7050 (mips_print_operand_address): Add MODE argument.
7051 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
7053 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
7054 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
7056 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
7057 (rx_print_operand): Update calls to output_address,
7058 rx_print_operand_address.
7059 * config/nds32/nds32.c (nds32_print_operand): Update calls to
7061 (nds32_print_operand_address): Add MODE argument.
7062 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
7063 output_address calls.
7064 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
7065 output_address call.
7066 (c6x_print_address_operand): Update calls to output_address.
7067 (c6x_print_operand_address): Pass mode to above.
7068 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
7069 (v850_print_operand): Pass mode to v850_print_operand_address,
7071 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
7072 (mmix_print_operand): Pass mode in output_address calls.
7073 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
7074 (sh_print_operand): Pass mem mode to output_address,
7075 sh_print_operand_address.
7076 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
7077 (cr16_print_operand): Pass mode to output_address,
7078 cr16_print_operand_address.
7079 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
7081 * config/microblaze/microblaze.c (print_operand): Pass mode to
7083 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
7085 (nios2_print_operand_address): Add MODE argument. Update call to
7086 nios2_print_operand_address.
7087 * config/s390/s390.c (print_operand): Pass mode to output_address.
7088 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
7089 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
7091 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
7092 Use instead of output_memory_reference_mode.
7093 (output_memory_reference_mode): Delete global.
7094 (arm_print_operand): Pass mem mode to output_address.
7095 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
7096 (m32r_print_operand): Pass mode to output_address.
7097 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
7099 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
7100 * config/i386/i386.c (ix86_print_operand): Pass mode to
7101 output_address calls.
7102 (ix86_print_operand_address): Add MODE argument.
7104 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7107 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
7108 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
7109 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
7110 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7112 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7114 PR rtl-optimization/67749
7115 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
7116 case before emitting the two blocks. Instead modify the register
7117 in the corresponding final insn of the basic block.
7119 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7121 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
7124 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
7126 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
7127 HAVE_INITFINI_ARRAY_SUPPORT.
7128 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
7130 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
7131 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
7132 Don't check HAVE_AS_SPARC_NOBITS.
7133 Heed SECTION_NOTYPE.
7135 * configure: Regenerate.
7136 * config.in: Regenerate.
7138 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7141 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
7143 2015-11-09 Richard Henderson <rth@redhat.com>
7145 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
7146 __SEG_GS, __SEG_TLS.
7147 (ix86_register_pragmas): Register address spaces __seg_fs,
7148 __seg_gs, __seg_tls.
7149 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
7150 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
7151 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
7152 * config/i386/i386.c (ix86_decompose_address): Likewise.
7153 (ix86_legitimate_address_p): Likewise.
7154 (memory_address_length): Likewise. Check mem address space too.
7155 (ix86_print_operand): Use ix86_print_operand_address_as.
7156 (ix86_print_operand_address_as): Rename from
7157 ix86_print_operand_address, add new addr_space_t parameter.
7158 Validate that either the parameter or the ix86_address segment
7159 is default address space. Handle ADDR_SPACE_SEG_TLS.
7160 (ix86_print_operand_address): New.
7161 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
7162 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
7163 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
7164 (ix86_addr_space_zero_address_valid): New.
7165 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7166 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
7167 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
7168 * config/i386/predicates.md (address_no_seg_operand): Likewise.
7169 (vsib_address_operand): Likewise.
7170 (address_mpx_no_base_operand): Likewise.
7171 (address_mpx_no_index_operand): Likewise.
7172 * doc/extend.texi (x86 Named Address Spaces): New section.
7174 * config/i386/i386.c (ix86_check_no_addr_space): New.
7175 (decide_alg): Add have_as parameter.
7176 (alg_usable_p): Likewise; disable rep algorithms if set.
7177 (ix86_expand_set_or_movmem): Notice if either MEM has a
7178 non-default address space.
7179 (ix86_expand_strlen): Likewise.
7180 * config/i386/i386.md (strmov, strset): Likewise.
7181 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
7182 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
7183 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
7184 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
7185 *cmpstrnqi_1, *strlenqi_1): Likewise.
7187 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
7188 (*movabs<mode>_2): Likewise.
7190 * dwarf2out.c (modified_type_die): Pass the address space number
7191 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
7192 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
7193 * targhooks.c (default_addr_space_debug): New.
7194 * targhooks.h (default_addr_space_debug): Declare.
7195 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
7196 * doc/tm.texi: Rebuild.
7198 * gimple.c (check_loadstore): Return false when 0 is a valid address.
7199 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
7200 null when 0 is valid in the source address space.
7201 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7202 * targhooks.c (default_addr_space_zero_address_valid): New.
7203 * targhooks.h (default_addr_space_zero_address_valid): Declare.
7204 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
7205 * doc/tm.texi: Rebuild.
7207 * cselib.c (add_mem_for_addr): Compare address spaces when
7209 (cselib_lookup_mem): Likewise.
7210 * fold-const.c (operand_equal_p): Check address spaces of
7211 pointer types before checking integer constants.
7214 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
7215 the correct type for the base.
7217 2015-11-09 Jeff Law <law@redhat.com>
7219 * tree-into-ssa.c (names_to_release): No longer static.
7220 * tree-into-ssa.h (names_to_release): Declare.
7221 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
7222 (release_free_names_and_compact_live_names): New function extracted
7223 from pass_release_ssa_names::execute.
7224 (pass_release_ssa_names::execute): Use it.
7226 2015-11-09 Alan Modra <amodra@gmail.com>
7228 * gensupport.c (add_mnemonic_string): Make len param a size_t.
7229 (gen_mnemonic_setattr): Make "size" var a size_t. Use
7230 obstack_blank_fast to shrink obstack. Cast obstack_next_free
7233 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
7235 PR rtl-optimization/68182
7236 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
7237 branch with only one successor just like unconditional branches.
7239 2015-11-08 Jeff Law <law@redhat.com>
7241 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
7242 non-FSM path has no edges marked with EDGE_DFS_BACK.
7243 (ssa_redirect_edges): No longer call mark_loop_for_removal.
7244 (thread_single_edge, def_split_header_continue_p): Remove.
7245 (bb_ends_with_multiway_branch): Likewise.
7246 (thread_through_loop_header): Remove cases of threading from
7247 latch through the header. Simplify knowing we won't thread
7249 (thread_through_all_blocks): Simplify knowing that only the FSM
7250 threader needs to handle backedges.
7252 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
7254 * doc/extend.texi (type attributes): Document scalar_storage_order.
7255 (Structure-Packing Pragmas): Rename into...
7256 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
7257 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
7258 (Warnings): Document -Wno-scalar-storage-order.
7259 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
7260 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
7261 extract_bit_field and store_bit_field.
7262 (initialize_argument_information): Adjust call to store_expr.
7263 (load_register_parameters): Adjust call to extract_bit_field.
7264 * expmed.c (check_reverse_storage_order_support): New function.
7265 (check_reverse_float_storage_order_support): Likewise.
7266 (flip_storage_order): Likewise.
7267 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
7268 of the value if it is true. Pass REVERSE to recursive call after
7269 adjusting the target offset.
7270 Do not use extraction or movstrict instruction if REVERSE is true.
7271 Pass REVERSE to store_fixed_bit_field.
7272 (store_bit_field): Add REVERSE parameter and pass to it to above.
7273 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
7274 store_split_bit_field and store_fixed_bit_field_1.
7275 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7276 order of the value if it is true and adjust the target offset.
7277 (store_split_bit_field): Add REVERSE parameter and pass it to
7278 store_fixed_bit_field. Adjust the target offset if it is true.
7279 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
7280 of the value if it is true. Pass REVERSE to recursive call after
7281 adjusting the target offset.
7282 Do not use extraction or subreg instruction if REVERSE is true.
7283 Pass REVERSE to extract_fixed_bit_field.
7284 (extract_bit_field): Add REVERSE parameter and pass to it to above.
7285 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
7286 extract_split_bit_field and extract_fixed_bit_field_1.
7287 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7288 order of the value if it is true and adjust the target offset.
7289 (extract_split_bit_field): Add REVERSE parameter and pass it to
7290 extract_fixed_bit_field. Adjust the target offset if it is true.
7291 * expmed.h (flip_storage_order): Declare.
7292 (store_bit_field): Adjust prototype.
7293 (extract_bit_field): Likewise.
7294 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
7295 (emit_group_store): Adjust call to store_bit_field.
7296 (copy_blkmode_from_reg): Likewise.
7297 (copy_blkmode_to_reg): Likewise.
7298 (write_complex_part): Likewise.
7299 (read_complex_part): Likewise.
7300 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
7301 that it isn't true if the target is a register.
7302 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
7303 and flip the storage order of the value.
7304 <BIT_IOR_EXPR>: Flip the storage order of the value.
7305 (get_bit_range): Adjust call to get_inner_reference.
7306 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
7307 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
7308 with reverse storage order.
7309 (store_expr_with_bounds): Add REVERSE parameter and pass it to
7310 recursive calls and call to store_bit_field. Force the value into a
7311 register if it is true and then flip the storage order of the value.
7312 (store_expr): Add REVERSE parameter and pass it to above.
7313 (categorize_ctor_elements_1): Adjust call to
7314 initializer_constant_valid_p.
7315 (store_constructor_field): Add REVERSE parameter and pass it to
7316 recursive calls and call to store_field.
7317 (store_constructor): Add REVERSE parameter and pass it to calls to
7318 store_constructor_field and store_expr. Set it to true for an
7319 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
7320 (store_field): Add REVERSE parameter and pass it to recursive calls
7321 and calls to store_expr and store_bit_field. Temporarily flip the
7322 storage order of the value with record type and integral mode and
7323 adjust the shift if it is true.
7324 (get_inner_reference): Add PREVERSEP parameter and set it to true
7325 upon encoutering a reference with reverse storage order.
7326 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
7327 (expand_constructor): Adjust call to store_constructor.
7328 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
7329 of the union type to store_expr in the MEM case and assert that it
7330 isn't set in the REG case. Adjust call to store_field.
7331 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
7332 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
7333 get_inner_reference and extract_bit_field. Temporarily flip the
7334 storage order of the value with record type and integral mode and
7335 adjust the shift if it is true. Flip the storage order of the value
7336 at the end if it is true.
7337 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
7338 get_inner_reference. Do not fetch an inner reference if it is true.
7339 * expr.h (store_expr_with_bounds): Ajust prototype.
7340 (store_expr): Likewise.
7341 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
7342 REF_REVERSE_STORAGE_ORDER on the reference according to it.
7343 (optimize_bit_field_compare): Deal with reverse storage order.
7344 Adjust calls to get_inner_reference and make_bit_field_ref.
7345 (decode_field_reference): Add PREVERSEP parameter and adjust call to
7346 get_inner_reference.
7347 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
7348 to decode_field_reference and make_bit_field_ref.
7349 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
7350 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
7351 (fold_comparison): Adjust call to get_inner_reference.
7352 (split_address_to_core_and_offset): Adjust call to
7353 get_inner_reference.
7354 * gimple-expr.c (useless_type_conversion_p): Return false for array
7355 types with different TYPE_REVERSE_STORAGE_ORDER flag.
7356 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
7357 REF_REVERSE_STORAGE_ORDER flag.
7358 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
7359 * output.h (assemble_real): Adjust prototype.
7360 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
7361 * stor-layout.c (finish_record_layout): Propagate the
7362 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
7363 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
7364 (TYPE_SATURATING): Adjust.
7365 (REF_REVERSE_STORAGE_ORDER): Document.
7366 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
7367 set it to true upon encoutering a reference with reverse storage order.
7368 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
7369 * tree-inline.c (remap_gimple_op_r): Propagate the
7370 REF_REVERSE_STORAGE_ORDER flag.
7371 (copy_tree_body_r): Likewise.
7372 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
7374 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
7375 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
7376 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7377 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
7378 REF_REVERSE_STORAGE_ORDER flag.
7379 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
7380 (gimple_canonical_types_compatible_p): Likewise.
7381 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
7382 (TYPE_SATURATING): Adjust.
7383 (REF_REVERSE_STORAGE_ORDER): New flag.
7384 (reverse_storage_order_for_component_p): New inline predicate.
7385 (storage_order_barrier_p): Likewise.
7386 (get_inner_reference): Adjust prototype.
7387 * varasm.c: Include expmed.h.
7388 (assemble_variable_contents): Adjust call to output_constant.
7389 (assemble_real): Add REVERSE parameter. Flip the storage
7390 order of the value if REVERSE is true.
7391 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
7392 (assemble_constant_contents): Adjust call to output_constant.
7393 (output_constant_pool_2): Adjust call to assemble_real.
7394 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
7395 TYPE_REVERSE_STORAGE_ORDER.
7396 (initializer_constant_valid_p): Add REVERSE parameter.
7397 (output_constant): Add REVERSE parameter.
7398 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
7399 <REAL_TYPE>: Adjust call to assemble_real.
7400 <COMPLEX_TYPE>: Pass it to recursive calls.
7401 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
7402 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
7403 (struct oc_local_state): Add REVERSE field.
7404 (output_constructor_array_range): Adjust calls to output_constant.
7405 (output_constructor_regular_field): Likewise.
7406 (output_constructor_bitfield): Adjust call to output_constructor.
7407 Flip the storage order of the value if REVERSE is true.
7408 (output_constructor): Add REVERSE parameter. Set it to true for an
7409 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
7410 output_constructor_bitfield.
7411 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
7412 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
7413 * builtins.c (get_object_alignment_2): Likewise.
7414 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
7415 and get_ref_base_and_extent.
7416 * dbxout.c (dbxout_expand_expr): Likewise.
7417 * dwarf2out.c (add_var_loc_to_decl): Likewise.
7418 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
7419 (loc_list_from_tree): Likewise.
7420 (fortran_common): Likewise.
7421 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
7422 get_ref_base_and_extent.
7423 (get_base_constructor): Likewise.
7424 (fold_const_aggregate_ref_1): Likewise.
7425 * gimple-laddress.c (pass_laddress::execute): Adjust call to
7426 get_inner_reference.
7427 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
7428 get_inner_reference and bail out on reverse storage order.
7429 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
7430 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
7431 build_ref_for_offset.
7432 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
7433 get_ref_base_and_extent.
7434 (ipa_polymorphic_call_context): Likewise.
7435 (extr_type_from_vtbl_ptr_store): Likewise.
7436 (check_stmt_for_type_change): Likewise.
7437 (get_dynamic_type): Likewise.
7438 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
7439 get_ref_base_and_extent.
7440 (compute_complex_assign_jump_func): Likewise.
7441 (get_ancestor_addr_info): Likewise.
7442 (compute_known_type_jump_func): Likewise.
7443 (determine_known_aggregate_parts): Likewise.
7444 (ipa_get_adjustment_candidate): Likewise.
7445 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
7446 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
7447 (build_ref_for_offset): Adjust prototype.
7448 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
7449 get_inner_reference.
7450 * tree-affine.c (tree_to_aff_combination): Adjust call to
7451 get_inner_reference.
7452 (get_inner_reference_aff): Likewise.
7453 * tree-data-ref.c (split_constant_offset_1): Likewise.
7454 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
7455 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
7456 get_inner_reference.
7457 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
7458 (dump_access): Print new fields.
7459 (create_access): Adjust call to get_ref_base_and_extent and set the
7460 REVERSE flag according to the result.
7461 (completely_scalarize_record): Set the REVERSE flag.
7462 (scalarize_elem): Add REVERSE parameter.
7463 (build_access_from_expr_1): Preserve storage order barriers.
7464 (build_accesses_from_assign): Likewise.
7465 (build_ref_for_offset): Add REVERSE parameter and set the
7466 REF_REVERSE_STORAGE_ORDER flag accordingly.
7467 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
7468 the REF_REVERSE_STORAGE_ORDER flag if there are components.
7469 (analyze_access_subtree): Likewise.
7470 (create_artificial_child_access): Set the REVERSE flag.
7471 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
7472 (turn_representatives_into_adjustments): Propagate REVERSE flag.
7473 (ipa_sra_check_caller): Adjust call to get_inner_reference.
7474 * tree-ssa-alias.c (ao_ref_base): Adjust call to
7475 get_ref_base_and_extent.
7476 (aliasing_component_refs_p): Likewise.
7477 (stmt_kills_ref_p_1): Likewise.
7478 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7479 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
7480 Return true if reverse storage order.
7481 <BIT_FIELD_REF>: Likewise.
7482 <COMPONENT_REF>: Likewise.
7483 <ARRAY_REF>: Likewise.
7484 <ARRAY_RANGE_REF>: Likewise.
7485 (split_address_cost): Likewise. Bail out if reverse storage order.
7486 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
7487 get_inner_reference. Bail out if reverse storage order.
7488 (bswap_replace): Adjust call to get_inner_reference.
7489 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
7490 the REF_REVERSE_STORAGE_ORDER flag.
7491 <BIT_FIELD_REF>: Likewise.
7492 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
7494 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
7495 to the REF_REVERSE_STORAGE_ORDER flag.
7496 <BIT_FIELD_REF>: Likewise.
7497 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
7498 (contains_storage_order_barrier_p): New predicate.
7499 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
7500 Punt on storage order barriers if necessary.
7501 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
7502 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
7503 call to get_ref_base_and_extent.
7504 (do_structure_copy): Likewise.
7505 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
7506 get_inner_reference.
7507 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
7508 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
7509 * ubsan.c (instrument_bool_enum_load): Likewise.
7510 (instrument_object_size): Likewise.
7511 * var-tracking.c (track_expr_p): Adjust call to
7512 get_ref_base_and_extent.
7513 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
7514 get_inner_reference.
7515 * config/s390/s390.c (s390_expand_atomic): Adjust call to
7517 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
7519 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
7521 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
7523 * config/sparc/sparc.opt (mfix-at697f): Add final period.
7525 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
7527 PR rtl-optimization/67864
7528 * common/config/i386/i386-common.c (ix86_option_optimization_table)
7529 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
7532 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7534 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
7537 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7539 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
7540 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
7542 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7544 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
7545 * internal-fn.c: Don't undef it here.
7546 * tree-core.h: Likewise.
7548 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7550 * builtins.c (fold_builtin_nan): Delete.
7551 (fold_builtin_memcmp): Remove case where both arguments are constant.
7552 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
7553 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
7554 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
7555 * fold-const-call.c: Include fold-const.h.
7556 (host_size_t_cst_p): New function.
7557 (build_cmp_result, fold_const_builtin_nan): Likewise.
7558 (fold_const_call_1): New function, split out from...
7559 (fold_const_call): ...here (for all three interfaces). Handle
7560 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
7562 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7564 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
7565 (fold_builtin_1): Don't call them.
7566 * fold-const-call.c: Include tm.h.
7567 (fold_const_call_ss): New variant for integer-to-integer folds.
7568 (fold_const_call): Call it.
7570 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7572 * builtins.c (fold_builtin_classify): Move constant cases to...
7573 * fold-const-call.c (fold_const_call_ss): ...here.
7575 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7577 * builtins.h (c_getstr): Move to...
7578 * fold-const.h (c_getstr): ...here.
7579 * builtins.c (c_getstr): Move to...
7580 * fold-const.c (c_getstr): ...here.
7582 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7584 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
7585 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
7587 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7589 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
7590 the dominance info; free it if we can't.
7591 (pass_call_cdce::execute): Don't free the dominance info here.
7593 2015-11-06 Jeff Law <law@redhat.com>
7595 * tree-ssa-threadedge.c (dummy_simplify): Remove.
7596 (thread_around_empty_blocks): Remove backedge_seen_p argument.
7597 If we thread to a backedge, then return false. Update recursive
7598 call to eliminate backedge_seen_p argument.
7599 (thread_through_normal_block): Remove backedge_seen_p argument.
7600 Remove backedge_seen_p argument from calls to
7601 thread_around_empty_blocks. Remove checks on backedge_seen_p.
7602 If we thread to a backedge, then return 0.
7603 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
7604 pass it to thread_through_normal_block or thread_through_empty_blocks.
7605 For joiner handling, if we see a backedge, do not try normal
7608 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7610 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
7611 * graphite-poly.c (new_scop): Initialize original_schedule.
7612 (free_scop): Free original_schedule.
7613 * graphite-poly.h (struct scop): Add field original_schedule.
7614 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
7615 (build_poly_scop): Call build_scop_original_schedule.
7617 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7619 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7620 (build_pbb_minimal_scattering_polyhedrons): New.
7621 (build_scop_scattering): Remove.
7622 (build_scop_minimal_scattering): New.
7623 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
7624 (build_poly_scop): Call build_scop_minimal_scattering.
7626 2015-11-06 Jeff Law <law@redhat.com>
7628 * cfg-flags.def (IGNORE): New edge flag.
7629 * tree-vrp.c (identify_jump_threads): Mark and clear edges
7630 scheduled for removal with EDGE_IGNORE around call into
7631 jump threader. Do no thread across edges with EDGE_IGNORE,
7632 but do allow threading across those with EDGE_DFS_BACK.
7634 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
7636 * doc/md.texi (multi-alternative constraints): Don't document
7637 alternatives inherently tied to reload for the user documentation.
7639 2015-11-06 Michael Collison <michael.collison@linaro.org>
7640 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7643 2015-08-01 Michael Collison <michael.collison@linaro.org
7644 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7646 * config/arm/arm.md (*arm_smin_cmp): New pattern.
7647 (*arm_umin_cmp): Likewise.
7649 2015-11-06 Jakub Jelinek <jakub@redhat.com>
7651 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
7652 * omp-low.c (check_omp_nesting_restrictions): Update for the
7653 various new OpenMP 4.5 nesting restrictions, clarified
7654 nesting glossary, closely nested region relationship clarified
7655 to mean explicit or implicit parallel regions (target/teams),
7656 use %</%> or %qs where appropriate.
7658 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7659 Sebastian Pop <s.pop@samsung.com>
7661 * graphite-scop-detection.c (loop_is_valid_scop): Call
7662 optimize_loop_nest_for_speed_p.
7664 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7665 Sebastian Pop <s.pop@samsung.com>
7667 * graphite-optimize-isl.c (optimize_isl): Call
7668 isl_options_set_schedule_maximize_band_depth.
7670 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
7671 Sebastian Pop <s.pop@samsung.com>
7673 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
7674 and exit edges should not be a part of irreducible loop.
7675 (scop_detection::can_represent_loop_1): Loops should not be
7677 (scop_detection::harmful_stmt_in_region): All the basic block
7678 should belong to reducible loops.
7680 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
7682 * config/aarch64/aarch64-simd-builtins.def: Update builtins
7683 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
7684 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
7685 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
7686 (aarch64_tbx4v8qi): Rename to...
7687 aarch64_tbx4<mode>): ... this.
7688 (aarch64_qtbl3<mode>): New pattern.
7689 (aarch64_qtbx3<mode>): New pattern.
7690 (aarch64_qtbl4<mode>): New pattern.
7691 (aarch64_qtbx4<mode>): New pattern.
7692 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
7693 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
7694 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
7695 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
7696 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
7697 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
7698 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
7699 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
7702 2015-11-06 Mike Stump <mikestump@comcast.net>
7705 * dwarf2out.c (get_full_len): Return a value based upon the actual
7706 precision needed for the value.
7707 (add_const_value_attribute): Use a maximal wide-int for
7708 CONST_WIDE_INTs, not VOIDmode.
7709 (output_die): Don't ever output NULL with printf.
7711 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
7712 BLKmode nor VOIDmode values.
7714 2015-11-06 David Malcolm <dmalcolm@redhat.com>
7716 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
7718 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
7719 * diagnostic-core.h (warning_at_rich_loc): New declaration.
7720 (error_at_rich_loc): New declaration.
7721 (permerror_at_rich_loc): New declaration.
7722 (inform_at_rich_loc): New declaration.
7723 * diagnostic-show-locus.c (adjust_line): Delete.
7724 (struct point_state): New struct.
7725 (class colorizer): New class.
7726 (class layout_point): New class.
7727 (class layout_range): New class.
7728 (struct line_bounds): New.
7729 (class layout): New class.
7730 (colorizer::colorizer): New ctor.
7731 (colorizer::~colorizer): New dtor.
7732 (layout::layout): New ctor.
7733 (layout::print_source_line): New method.
7734 (layout::print_annotation_line): New method.
7735 (layout::get_state_at_point): New method.
7736 (layout::get_x_bound_for_row): New method.
7737 (diagnostic_show_locus): Reimplement in terms of class layout.
7738 (diagnostic_print_caret_line): Delete.
7739 * diagnostic.c (diagnostic_initialize): Replace
7740 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
7741 (diagnostic_set_info_translated): Convert param from location_t
7742 to rich_location *. Eliminate calls to set_location on the
7743 message in favor of storing the rich_location ptr there.
7744 (diagnostic_set_info): Convert param from location_t to
7746 (diagnostic_build_prefix): Break out array into...
7747 (diagnostic_kind_color): New variable.
7748 (diagnostic_get_color_for_kind): New function.
7749 (diagnostic_report_diagnostic): Colorize the option_text
7750 using the color for the severity.
7751 (diagnostic_append_note): Update for change in signature of
7752 diagnostic_set_info.
7753 (diagnostic_append_note_at_rich_loc): New function.
7754 (emit_diagnostic): Update for change in signature of
7755 diagnostic_set_info.
7757 (inform_at_rich_loc): New function.
7758 (inform_n): Update for change in signature of diagnostic_set_info.
7759 (warning): Likewise.
7760 (warning_at): Likewise.
7761 (warning_at_rich_loc): New function.
7762 (warning_n): Update for change in signature of diagnostic_set_info.
7763 (pedwarn): Likewise.
7764 (permerror): Likewise.
7765 (permerror_at_rich_loc): New function.
7766 (error): Update for change in signature of diagnostic_set_info.
7767 (error_n): Likewise.
7768 (error_at): Likewise.
7769 (error_at_rich_loc): New function.
7770 (sorry): Update for change in signature of diagnostic_set_info.
7771 (fatal_error): Likewise.
7772 (internal_error): Likewise.
7773 (internal_error_no_backtrace): Likewise.
7774 (source_range::debug): New function.
7775 * diagnostic.h (struct diagnostic_info): Eliminate field
7776 "override_column". Add field "richloc".
7777 (struct diagnostic_context): Add field "colorize_source_p".
7778 (diagnostic_override_column): Delete.
7779 (diagnostic_set_info): Convert param from location_t to
7781 (diagnostic_set_info_translated): Likewise.
7782 (diagnostic_append_note_at_rich_loc): New function.
7783 (diagnostic_num_locations): New function.
7784 (diagnostic_expand_location): Get the location from the
7786 (diagnostic_print_caret_line): Delete.
7787 (diagnostic_get_color_for_kind): New declaration.
7788 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
7789 (error_cb): Update for change in signature of "error" callback.
7790 (fatal_at): Likewise.
7791 (warning_at): Likewise.
7792 * input.c (linemap_client_expand_location_to_spelling_point): New.
7793 * pretty-print.c (text_info::set_range): New method.
7794 (text_info::get_location): New method.
7795 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
7796 (struct text_info): Eliminate "locations" array in favor of
7797 "m_richloc", a rich_location *.
7798 (textinfo::set_location): Add a "caret_p" param, and reimplement
7799 in terms of a call to set_range.
7800 (textinfo::get_location): Eliminate inline implementation in favor of
7801 an out-of-line reimplementation.
7802 (textinfo::set_range): New method.
7803 * rtl-error.c (diagnostic_for_asm): Update for change in signature
7804 of diagnostic_set_info.
7805 * tree-diagnostic.c (default_tree_printer): Update for new
7806 "caret_p" param for textinfo::set_location.
7807 * tree-pretty-print.c (percent_K_format): Likewise.
7809 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7812 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7813 * config/aarch64/aarch64.c
7814 (aarch64_can_use_per_function_literal_pools_p): New.
7815 (aarch64_use_blocks_for_constant_p): Adjust declaration
7816 and use aarch64_can_use_function_literal_pools_p.
7817 (aarch64_select_rtx_section): Update.
7819 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7821 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
7822 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
7823 (arm_output_multireg_pop): Likewise.
7824 (output_move_double): Likewise.
7825 (output_move_quad): Likewise.
7826 (output_return_instruction): Likewise.
7827 (arm_print_operand): Remove support for %( and %. print modifiers.
7828 (arm_output_shift): Make unified asm.
7829 (arm_declare_function_name): Likewise.
7830 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
7831 (ASM_APP_OFF): Adjust.
7832 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
7833 (ASM_OUTPUT_REG_POP): Likewise.
7834 * config/arm/arm.md: Adjust uses of %., %(, %)
7835 * config/arm/sync.md: Likewise.
7836 * config/arm/thumb2.md: Likewise.
7837 * config/arm/ldmstm.md: Regenerate.
7838 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
7839 * doc/invoke.texi (masm-unified-syntax): Update documentation.
7841 2015-11-06 David Malcolm <dmalcolm@redhat.com>
7843 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
7845 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
7847 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
7848 add OEP_MATCH_SIDE_EFFECTS.
7849 * fold-const.c (operand_equal_p): Update documentation; handle
7850 OEP_MATCH_SIDE_EFFECTS.
7851 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
7852 OEP_MATCH_SIDE_EFFECTS.
7854 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
7855 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
7857 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
7858 * config/aarch64/aarch64-protos.h: Declare.
7859 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
7861 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
7862 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
7863 code when applicable.
7864 * config/aarch64/aarch64.md: Added enum entries.
7865 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
7867 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
7871 * ipa-polymorphic-call.c
7872 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
7873 issue when offset is out of range.
7874 (contains_type_p): Fix out of range check, clear dynamic flag.
7876 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
7878 * config.gcc (e6500): Fix cpu_is_64bit typo.
7880 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
7882 * tree-sra.c (completely_scalarize): Properly handle negative array
7883 indices using offset_int.
7885 2015-11-06 Richard Biener <rguenther@suse.de>
7887 * alloc-pool.h (object_allocator::allocate): Default-initialize
7890 2015-11-06 Richard Biener <rguenther@suse.de>
7892 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
7893 * lra.c (init_reg_info): Truncate copy_vec instead of
7894 re-allocating a new one and leaking the old.
7895 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
7897 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
7898 * postreload-gcse.c (free_mem): Free modify_mem_list and
7899 canon_modify_mem_list.
7901 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
7903 PR tree-optimization/68145
7904 * tree-vect-stmts.c (vectorizable_operation): Fix
7905 determination for booleans.
7907 2015-11-06 Tom de Vries <tom@codesourcery.com>
7909 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
7910 cond_jump, instead of split after last nondebug insn before cond_jump.
7911 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
7914 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7917 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
7918 subregs from accumulator and make sure it's a register.
7920 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
7922 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
7924 (reduc_uplus_<mode>): Remove.
7925 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
7926 loongson_extract_lo_<mode>.
7927 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
7928 reduc_smax_<mode>, reduc_smax_<mode>, use vec
7929 loongson_extract_lo_<mode>.
7930 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
7932 2015-11-06 Richard Biener <rguenther@suse.de>
7934 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
7936 (vect_stmt_in_region_p): Declare.
7937 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
7938 (destroy_bb_vec_info): Likewise.
7939 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
7940 (vect_get_and_check_slp_defs): Likewise.
7941 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
7942 (vect_slp_bb): Likewise.
7943 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
7944 in terms of vect_stmt_in_region_p.
7945 (vect_pattern_recog): Iterate over the BB region.
7946 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
7947 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
7948 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
7949 * config/i386/i386.c: Include gimple-iterator.h.
7950 * config/aarch64/aarch64.c: Likewise.
7952 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
7954 PR rtl-optimization/67753
7955 PR rtl-optimization/64164
7956 * function.c (assign_parm_setup_block): Avoid allocating a
7957 stack slot if we don't have an ABI-reserved one. Emit the
7958 copy to target_reg in the conversion seq if the copy from
7959 entry_parm is in it too. Don't use the conversion seq to copy
7960 a PARALLEL to a REG or a CONCAT.
7962 2015-11-06 Richard Biener <rguenther@suse.de>
7964 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
7967 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
7968 Thomas Schwinge <thomas@codesourcery.com>
7969 James Norris <jnorris@codesourcery.com>
7972 * gimplify.c (gimplify_scan_omp_clauses): Add support for
7973 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
7974 (gimplify_adjust_omp_clauses): Likewise.
7975 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
7976 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
7977 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
7978 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
7979 (omp_clause_code_name): Likewise.
7980 (walk_tree_1): Handle OMP_CLAUSE_TILE.
7981 * tree.h (OMP_TILE_LIST): New macro.
7983 2015-11-05 Martin Sebor <msebor@redhat.com>
7986 * doc/invoke.texi (-Wplacement-new): Document new option.
7988 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
7990 PR tree-optimization/65963
7991 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
7992 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
7994 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
7996 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
7997 (noce_convert_multiple_sets): Likewise.
7998 (noce_process_if_block): Call them.
8000 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
8002 * gimple-fold.c: Include omp-low.h.
8003 (fold_internal_goacc_dim): New.
8004 (gimple_fold_call): Call it.
8006 2015-11-05 Jakub Jelinek <jakub@redhat.com>
8007 Ilya Verbin <ilya.verbin@intel.com>
8010 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
8011 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
8012 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8013 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
8014 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
8015 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
8016 (struct cgraph_simd_clone_arg): Adjust comment.
8017 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
8018 to GOMP_target_ext. Add num_teams and thread_limit arguments.
8019 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
8020 to GOMP_target_data_ext.
8021 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
8022 to GOMP_target_update_ext.
8023 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
8024 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
8025 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
8026 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
8027 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
8028 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
8029 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
8030 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
8031 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
8032 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
8033 * tree-core.h (enum omp_clause_schedule_kind): Add
8034 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
8035 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
8036 OMP_CLAUSE_SCHEDULE_LAST value.
8037 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
8038 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
8039 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
8040 OMP_FOR_CHECK. Remove comment.
8041 * tree-pretty-print.c (dump_omp_clause): Handle
8042 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
8043 Simplify. Print schedule clause modifiers.
8044 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
8045 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
8047 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
8048 (omp_default_clause): Tweak for
8049 private/firstprivate/is_device_ptr variables on target
8050 construct and use_device_ptr on target data.
8051 (omp_check_private): Likewise.
8052 (omp_notice_variable): For references check whether what it refers
8053 to has mappable type, rather than the reference itself.
8054 (omp_is_private): Diagnose linear iteration variables on non-simd
8056 (omp_no_lastprivate): Return true only for Fortran.
8057 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
8058 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
8059 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
8060 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
8061 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
8062 lastprivate and linear when combined with distribute. Gimplify
8063 variable low-bound for array reduction. Look through
8064 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
8066 (gimplify_adjust_omp_clauses_1): For implicit references to
8067 variables with reference type and when not ref to scalar or
8068 ref to pointer, map what they refer to using tofrom and
8069 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
8070 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
8071 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
8072 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
8073 Diagnose the same var on both firstprivate and lastprivate on
8074 distribute construct.
8075 (gimplify_omp_for): Fix up handling of predetermined
8076 lastprivate or linear iter vars when combined with distribute.
8077 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
8079 (gimplify_omp_workshare): Call optimize_target_teams.
8080 * omp-low.c (struct omp_region): Add sched_modifiers field.
8081 (struct omp_for_data): Likewise.
8082 (omp_any_child_fn_dumped): New variable.
8083 (extract_omp_for_data): Fill in sched_modifiers, and mask out
8084 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
8086 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
8087 bits of OMP_CLAUSE_SCHED_KIND.
8088 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
8089 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
8090 for array section reductions.
8091 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
8092 for distribute parallel for, if there are lastprivate clauses on the
8094 (lower_rec_input_clauses): Handle non-zero low-bound on array
8096 (lower_reduction_clauses): Likewise.
8097 (lower_send_clauses): Look through POINTER_PLUS_EXPR
8098 for array section reductions.
8099 (expand_parallel_call): Use nonmonotonic entrypoints for
8100 nonmonotonic: dynamic/guided.
8101 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
8102 child_fn if current_function_decl has assembler name set, but child_fn
8103 does not. Dump the header and IL of the child function when not in SSA
8105 (expand_omp_target): Likewise. Pass num_teams and thread_limit
8106 arguments to BUILT_IN_GOMP_TARGET.
8107 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8108 Initialize the extra _looptemp_ clause to fd->loop.n2.
8109 (expand_omp_for): Use nonmonotonic entrypoints for
8110 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
8111 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
8112 again if we have dumped any child functions.
8113 (lower_omp_for_lastprivate): Determine the right count variable
8114 for distribute simd, or distribute parallel for{, simd}.
8115 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
8116 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
8118 (simd_clone_clauses_extract): Handle variable step
8119 for references and arguments passed by reference.
8120 (simd_clone_mangle): Mangle ref/uval/val variable steps.
8121 (simd_clone_adjust_argument_types): Handle
8122 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
8123 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8124 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
8125 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8126 (simd_clone_linear_addend): New function.
8127 (simd_clone_adjust): Handle variable step like similarly
8128 to constant step, use simd_clone_linear_addend to determine
8129 the actual step at runtime.
8131 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
8133 * target.def (goacc.dim_limit): New hook.
8134 * targhooks.h (default_goacc_dim_limit): Declare.
8135 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
8136 * doc/tm.texi: Rebuilt.
8137 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
8138 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
8139 (default_goacc_dim_limit): New.
8140 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8141 (nvptx_goacc_dim_limit) New.
8142 (TARGET_GOACC_DIM_LIMIT): Override.
8143 * tree-vrp.c: Include omp-low.h, target.h.
8144 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
8147 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8149 * tree-vect-generic.c (do_compare): Use -1 for true
8150 result instead of 1.
8152 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8154 * config/aarch64/aarch64.c
8155 (aarch64_can_use_per_function_literal_pools_p): New.
8156 (aarch64_use_blocks_for_constant_p): Adjust declaration
8157 and use aarch64_can_use_function_literal_pools_p.
8158 (aarch64_select_rtx_section): Update.
8160 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8162 * targhooks.c (default_get_mask_mode): Use BLKmode in
8163 case target doesn't support required vector mode.
8164 * stor-layout.c (layout_type); Check for BLKmode.
8166 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8167 Sebastian Pop <s.pop@samsung.com>
8169 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8170 Remove use of parameter_rename_map.
8172 (copy_internal_parameters): Remove.
8173 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
8174 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
8175 (free_sese_info): Do not free parameter_rename_map.
8176 (set_rename): Do not use parameter_rename_map.
8177 (rename_uses): Update call to set_rename.
8178 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
8179 * sese.h (parameter_rename_map_t): Remove.
8180 (struct sese_info_t): Remove field parameter_rename_map.
8182 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8183 Sebastian Pop <s.pop@samsung.com>
8185 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
8186 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
8187 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
8188 anonymous namespace.
8189 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
8190 (isl_id_for_pbb): Use a buffer of size 10.
8191 (isl_id_for_ssa_name): Same.
8192 * sese.c (set_rename): Add more dumps.
8194 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8196 * omp-low.c (struct omp_context): Remove reduction_map field.
8197 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
8198 (new_omp_context, delete_omp_context, scan_omp_target): Remove
8199 reduction_map handling.
8200 (lower_omp_target): Remove obsolete openacc reduction handling.
8202 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8204 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
8206 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8207 Cesar Philippidis <cesar@codesourcery.com>
8209 * config/nvptx/nvptx.c: Include gimple headers.
8210 (worker_red_size, worker_red_align, worker_red_name,
8211 worker_red_sym): New.
8212 (nvptx_option_override): Initialize worker reduction buffer.
8213 (nvptx_file_end): Write out worker reduction buffer var.
8214 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
8215 nvptx_expand_cmp_swap): New builtin expanders.
8216 (enum nvptx_builtins): New.
8217 (nvptx_builtin_decls): New.
8218 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
8219 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8220 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
8221 nvptx_lockless_update): New helpers.
8222 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
8223 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
8224 (nvptx_goacc_reduction): New.
8225 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
8226 TARGET_BUILTIN_DECL): Override.
8227 (TARGET_GOACC_REDUCTION): Override.
8229 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8230 Cesar Philippidis <cesar@codesourcery.com>
8232 * internal-fn.def (GOACC_REDUCTION): New.
8233 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
8234 * internal-fn.c (expand_GOACC_REDUCTION): New.
8235 * target.def (goacc.reduction): New OpenACC hook.
8236 * targhooks.h (default_goacc_reduction): Declare.
8237 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
8238 * doc/tm.texi: Rebuilt.
8239 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
8240 scan_sharing_clauses): Remove oacc reduction handling here.
8241 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
8242 (oacc_lower_reduction_var_helper): Delete.
8243 (lower_oacc_reductions): New.
8244 (lower_reduction_clauses): Don't handle OpenACC reductions here.
8245 (lower_oacc_head_tail): Call lower_oacc_reductions.
8246 (oacc_gimple_assign, oacc_init_reduction_array,
8247 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
8248 oacc_process_reduction_data): Delete.
8249 (lower_omp_target): Remove old OpenACC reduction handling. Insert
8250 dummy OpenACC gang reduction for reductions at outer level.
8251 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
8252 (default_goacc_reduction): New.
8253 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
8255 2015-11-04 Martin Liska <mliska@suse.cz>
8257 * cgraphunit.c (cgraph_node::expand_thunk): Call
8258 allocate_struct_function before init_function_start.
8259 (cgraph_node::expand): Use push_cfun and pop_cfun.
8260 * config/i386/i386.c (ix86_code_end): Call
8261 allocate_struct_function before init_function_start.
8262 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
8263 * function.c (init_function_start): Move preamble to all
8265 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
8266 (execute_one_pass): Handle newly added TODO_discard_function.
8267 (execute_pass_list_1): Terminate if cfun equals to NULL.
8268 (execute_pass_list): Do not push and pop cfun, expect that
8270 * tree-pass.h (TODO_discard_function): Define.
8272 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
8274 * cfganal.c (inverted_post_order_compute): Remove conditional
8275 compilation, use flag_checking.
8276 * config.in: Regenerate.
8277 * configure: Regenerate.
8278 * configure.ac: Remove ENABLE_CHECKING.
8279 * genconditions.c: Do not #undef ENABLE_CHECKING.
8280 * sese.h (bb_in_region): Comment out broken check.
8281 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
8282 conditional compilation, use flag_checking.
8284 2015-11-04 Tom de Vries <tom@codesourcery.com>
8286 PR tree-optimization/67742
8287 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
8289 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
8290 (create_variable_info_for_1): Add and handle handle_param parameter.
8291 Add restrict handling.
8292 (create_variable_info_for): Call create_variable_info_for_1 with extra
8294 (make_param_constraints): Drop restrict_name parameter. Ignore
8295 vi->only_restrict_pointers.
8296 (intra_create_variable_infos): Call create_variable_info_for_1 with
8297 extra arg. Remove restrict handling. Call make_param_constraints with
8300 2015-11-04 Tom de Vries <tom@codesourcery.com>
8302 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
8305 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8307 * config/arm/coff.h: Remove.
8309 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
8311 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
8312 check for aggregate types and beef up comment for mode check.
8314 2015-11-03 Richard Biener <rguenther@suse.de>
8316 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
8317 data references here.
8318 * tree-vect-loop.c: Include cgraph.h.
8319 (vect_analyze_loop_2): Collect data references here.
8320 * tree-vect-slp.c (find_bb_location): Inline ...
8321 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
8322 Factor in vect_slp_transform_bb.
8323 (vect_slp_transform_bb): Removed.
8324 (vect_slp_analyze_bb_1): Collect data references here.
8325 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
8327 * tree-vectorizer.h (vect_slp_bb): Declare.
8328 (vect_slp_analyze_bb): Remove.
8329 (vect_slp_transform_bb): Remove.
8330 (find_bb_location): Remove.
8331 (vect_analyze_data_refs): Remove stmt count reference parameter.
8333 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
8335 * multiple_target.c (create_dispatcher_calls): Add target check
8337 (create_target_clone): Change assembler name for versioned declarations.
8339 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
8340 Chung-Lin Tang <cltang@codesourcery.com>
8342 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
8343 * omp-low.c (check_omp_nesting_restrictions): Allow
8344 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
8347 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
8349 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
8350 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
8351 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
8353 (vmulxq_f32): Likewise.
8355 (vmulxq_f64): Rewrite to call fmulx builtin.
8356 (vmulxs_f32): Likewise.
8357 (vmulxd_f64): Likewise.
8358 (vmulx_lane_f32): Remove.
8359 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
8361 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
8363 * config/aarch64/aarch64.md (*movhf_aarch64): Use
8364 aarch64_reg_or_fp_zero for second operand.
8366 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
8368 * gimple-expr.c: Include hash-set.h and rtl.h.
8369 (mark_addressable_queue): New var.
8370 (mark_addressable): Factor actual marking into...
8371 (mark_addressable_1): ... this. Queue it up during expand.
8372 (mark_addressable_2): New.
8373 (flush_mark_addressable_queue): New.
8374 * gimple-expr.h (flush_mark_addressable_queue): Declare.
8375 * cfgexpand.c: Include gimple-expr.h.
8376 (pass_expand::execute): Flush mark_addressable queue.
8378 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
8380 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
8381 bb_no_side_effects_p tests...
8382 (tree_ssa_ifcombine_bb): ... here.
8384 PR tree-optimization/68083
8385 * tree-ssa-ifcombine.c: Include tree-ssa.h.
8386 (bb_no_side_effects_p): Test for undefined uses too.
8387 * tree-ssa.c (gimple_uses_undefined_value_p): New.
8388 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
8390 2015-11-02 Jeff Law <law@redhat.com>
8392 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
8393 cases where the loop latch edge is in the middle of an FSM path.
8395 2015-11-03 Tom de Vries <tom@codesourcery.com>
8397 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
8398 (make_param_constraints): ... this. Add and handle restrict_name
8399 parameter. Handle is_full_var case.
8400 (intra_create_variable_infos): Use make_param_constraints.
8402 2015-11-03 Tom de Vries <tom@codesourcery.com>
8404 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
8405 make_copy_constraint call with make_constraint_from call.
8407 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
8409 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
8412 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
8414 * builtins.h (fold_fma): Move to fold-const-call.h.
8415 * builtins.c: Include fold-const-call.h.
8416 (mathfn_built_in_2): New function, split out from...
8417 (mathfn_built_in_1): ...here.
8418 (do_real_to_int_conversion, fold_const_builtin_pow)
8419 (fold_const_builtin_logb, fold_const_builtin_significand)
8420 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
8421 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
8422 (fold_builtin_sincos): Use fold_const_call to handle constants.
8423 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
8424 checks for ERROR_MARK. Use fold_const_call to handle constant
8425 folds for math functions.
8426 (fold_fma): Move to fold-const-call.c.
8427 * fold-const.c: Include fold-const-call.h.
8428 * Makefile.in (OBJS): Add fold-const-call.o.
8429 (PLUGIN_HEADERS): Add fold-const-call.h.
8430 * realmpfr.h (real_from_mpfr): Allow the format to be specified
8432 * realmpfr.c (real_from_mpfr): Likewise.
8433 * fold-const-call.h, fold-const-call.c: New files.
8435 2015-11-02 Julian Brown <julian@codesourcery.com>
8437 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
8438 brackets and semicolon.
8440 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
8443 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8445 PR tree-optimization/65963
8446 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8447 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8449 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
8452 * fold-const.c: Include "md5.h".
8454 2015-11-01 Jeff Law <law@redhat.com>
8456 * vmsdbgout.c: Revert unused header file reduction patch.
8458 * config/mcore/mcore.c: Include regs.h.
8460 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8462 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
8464 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8466 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
8467 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
8468 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
8470 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
8472 * ggc-common.c: Restore needed header for checking=release.
8474 2015-10-31 Tom de Vries <tom@codesourcery.com>
8476 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
8478 2015-10-31 Tom de Vries <tom@codesourcery.com>
8480 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
8481 existing varinfo for arguments.
8483 2015-10-31 Tom de Vries <tom@codesourcery.com>
8485 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
8486 create_function_info_for. Dump constraints generated during
8487 create_function_info_for. Move intra_create_variable_infos call and
8488 function-return-values-escape bit to ...
8489 (create_function_info_for): ... here, and merge
8490 intra_create_variable_infos call with argument loop. Add and handle
8491 nonlocal_p parameter.
8493 2015-10-31 Tom de Vries <tom@codesourcery.com>
8495 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
8496 updating is alap, and seperated from preceding code. Make sure
8497 insert_vi_for_tree is seperated from surrounding code.
8499 2015-10-31 Tom de Vries <tom@codesourcery.com>
8501 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
8503 2015-10-30 Jeff Law <law@redhat.com>
8504 Nathan Sidwell <nathan@acm.org>
8506 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
8508 (MOVE_MAX): Set to 8.
8510 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
8512 * cgraph.c: Include context.h for offloading.
8513 * varpool.c: Include context.h and omp-low.h.
8515 2015-10-30 Anatoly Sokolov <aesok@post.ru>
8517 * rtl.h (contains_symbol_ref_p): Declare.
8518 (SYMBOL_REF_P): Define.
8519 * rtlanal.c (contains_symbol_ref_p: New function.
8520 * lra-constraints.c (contains_symbol_ref_p): Remove.
8521 * var-tracking.c (contains_symbol_ref): Remove.
8522 (track_expr_p): Use contains_symbol_ref_p instead of
8523 contains_symbol_ref.
8525 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8527 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
8528 * fold-const.c (get_array_ctor_element_at_index): New.
8529 (fold): Remove binary-search through CONSTRUCTOR, call previous.
8531 * fold-const.h (get_array_ctor_element_at_index): New.
8533 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
8535 * Makefile.in (OBJS): Add multiple_target.o.
8536 * attrib.c (make_attribute): Moved from config/i386/i386.c
8537 * config/i386/i386.c (make_attribute): Deleted.
8538 * multiple_target.c (create_dispatcher_calls): New.
8539 (get_attr_len): Ditto.
8540 (get_attr_str): Ditto.
8541 (separate_attrs): Ditto.
8542 (is_valid_asm_symbol): Ditto.
8543 (create_new_asm_name): Ditto.
8544 (create_target_clone): Ditto.
8545 (expand_target_clones): Ditto.
8546 (ipa_target_clone): Ditto.
8547 (ipa_dispatcher_calls): Ditto.
8548 * passes.def (pass_target_clone): Two new ipa passes.
8549 * tree-pass.h (make_pass_target_clone): Ditto.
8550 * doc/extend.texi (target_clones): New attribute description.
8552 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
8554 PR rtl-optimization/68106
8555 * lra-remat.c (input_regno_present_p): Process hard regs
8556 explicitly present in machine description insns.
8557 (call_used_input_regno_present_p): Ditto.
8558 (calculate_gen_cands): Ditto.
8561 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
8563 * config/arm/neon-testgen.ml: Fix comment typo.
8565 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8567 * rtlanal.c (reg_set_p): Expand function comment.
8569 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
8571 * alias.c: Remove unused headers.
8573 * attribs.c: Likewise.
8574 * auto-inc-dec.c: Likewise.
8575 * auto-profile.c: Likewise.
8576 * bb-reorder.c: Likewise.
8577 * bitmap.c: Likewise.
8578 * bt-load.c: Likewise.
8579 * builtins.c: Likewise.
8580 * caller-save.c: Likewise.
8581 * calls.c: Likewise.
8584 * cfganal.c: Likewise.
8585 * cfgbuild.c: Likewise.
8586 * cfgcleanup.c: Likewise.
8587 * cfgexpand.c: Likewise.
8588 * cfghooks.c: Likewise.
8589 * cfgloop.c: Likewise.
8590 * cfgloopanal.c: Likewise.
8591 * cfgloopmanip.c: Likewise.
8592 * cfgrtl.c: Likewise.
8593 * cgraph.c: Likewise.
8594 * cgraphbuild.c: Likewise.
8595 * cgraphclones.c: Likewise.
8596 * cgraphunit.c: Likewise.
8597 * cilk-common.c: Likewise.
8598 * combine-stack-adj.c: Likewise.
8599 * combine.c: Likewise.
8600 * compare-elim.c: Likewise.
8601 * convert.c: Likewise.
8602 * coverage.c: Likewise.
8603 * cppbuiltin.c: Likewise.
8604 * cprop.c: Likewise.
8606 * cselib.c: Likewise.
8607 * data-streamer-in.c: Likewise.
8608 * data-streamer-out.c: Likewise.
8609 * data-streamer.c: Likewise.
8610 * dbxout.c: Likewise.
8613 * debug.c: Likewise.
8614 * df-core.c: Likewise.
8615 * df-problems.c: Likewise.
8616 * df-scan.c: Likewise.
8618 * dojump.c: Likewise.
8619 * dominance.c: Likewise.
8620 * domwalk.c: Likewise.
8621 * double-int.c: Likewise.
8623 * dumpfile.c: Likewise.
8624 * dwarf2asm.c: Likewise.
8625 * dwarf2cfi.c: Likewise.
8626 * dwarf2out.c: Likewise.
8627 * emit-rtl.c: Likewise.
8628 * except.c: Likewise.
8629 * explow.c: Likewise.
8630 * expmed.c: Likewise.
8632 * final.c: Likewise.
8633 * fixed-value.c: Likewise.
8634 * fold-const.c: Likewise.
8635 * function.c: Likewise.
8636 * fwprop.c: Likewise.
8638 * generic-match-head.c: Likewise.
8639 * ggc-common.c: Likewise.
8640 * gimple-builder.c: Likewise.
8641 * gimple-expr.c: Likewise.
8642 * gimple-fold.c: Likewise.
8643 * gimple-iterator.c: Likewise.
8644 * gimple-low.c: Likewise.
8645 * gimple-match-head.c: Likewise.
8646 * gimple-pretty-print.c: Likewise.
8647 * gimple-ssa-isolate-paths.c: Likewise.
8648 * gimple-ssa-strength-reduction.c: Likewise.
8649 * gimple-streamer-in.c: Likewise.
8650 * gimple-streamer-out.c: Likewise.
8651 * gimple-walk.c: Likewise.
8652 * gimple.c: Likewise.
8653 * gimplify-me.c: Likewise.
8654 * gimplify.c: Likewise.
8655 * godump.c: Likewise.
8656 * graph.c: Likewise.
8657 * graphds.c: Likewise.
8658 * haifa-sched.c: Likewise.
8659 * hw-doloop.c: Likewise.
8660 * ifcvt.c: Likewise.
8661 * init-regs.c: Likewise.
8662 * internal-fn.c: Likewise.
8663 * ipa-chkp.c: Likewise.
8664 * ipa-comdats.c: Likewise.
8665 * ipa-cp.c: Likewise.
8666 * ipa-devirt.c: Likewise.
8667 * ipa-icf-gimple.c: Likewise.
8668 * ipa-icf.c: Likewise.
8669 * ipa-inline-analysis.c: Likewise.
8670 * ipa-inline-transform.c: Likewise.
8671 * ipa-inline.c: Likewise.
8672 * ipa-polymorphic-call.c: Likewise.
8673 * ipa-profile.c: Likewise.
8674 * ipa-prop.c: Likewise.
8675 * ipa-pure-const.c: Likewise.
8676 * ipa-ref.c: Likewise.
8677 * ipa-reference.c: Likewise.
8678 * ipa-split.c: Likewise.
8679 * ipa-utils.c: Likewise.
8680 * ipa-visibility.c: Likewise.
8682 * ira-build.c: Likewise.
8683 * ira-color.c: Likewise.
8684 * ira-conflicts.c: Likewise.
8685 * ira-costs.c: Likewise.
8686 * ira-emit.c: Likewise.
8687 * ira-lives.c: Likewise.
8690 * langhooks.c: Likewise.
8692 * lists.c: Likewise.
8693 * loop-doloop.c: Likewise.
8694 * loop-init.c: Likewise.
8695 * loop-invariant.c: Likewise.
8696 * loop-iv.c: Likewise.
8697 * loop-unroll.c: Likewise.
8698 * lower-subreg.c: Likewise.
8699 * lra-assigns.c: Likewise.
8700 * lra-coalesce.c: Likewise.
8701 * lra-constraints.c: Likewise.
8702 * lra-eliminations.c: Likewise.
8703 * lra-lives.c: Likewise.
8704 * lra-remat.c: Likewise.
8705 * lra-spills.c: Likewise.
8707 * lto-cgraph.c: Likewise.
8708 * lto-compress.c: Likewise.
8709 * lto-opts.c: Likewise.
8710 * lto-section-in.c: Likewise.
8711 * lto-section-out.c: Likewise.
8712 * lto-streamer-in.c: Likewise.
8713 * lto-streamer-out.c: Likewise.
8714 * lto-streamer.c: Likewise.
8716 * mode-switching.c: Likewise.
8717 * modulo-sched.c: Likewise.
8718 * optabs.c: Likewise.
8719 * opts-global.c: Likewise.
8720 * passes.c: Likewise.
8721 * plugin.c: Likewise.
8722 * postreload-gcse.c: Likewise.
8723 * postreload.c: Likewise.
8724 * predict.c: Likewise.
8725 * print-tree.c: Likewise.
8726 * profile.c: Likewise.
8728 * realmpfr.c: Likewise.
8729 * recog.c: Likewise.
8731 * reg-stack.c: Likewise.
8732 * regcprop.c: Likewise.
8733 * reginfo.c: Likewise.
8734 * regrename.c: Likewise.
8735 * regstat.c: Likewise.
8736 * reload.c: Likewise.
8737 * reload1.c: Likewise.
8738 * reorg.c: Likewise.
8739 * resource.c: Likewise.
8740 * rtl-chkp.c: Likewise.
8741 * rtl-error.c: Likewise.
8742 * rtlanal.c: Likewise.
8743 * rtlhooks.c: Likewise.
8744 * sanopt.c: Likewise.
8745 * sched-deps.c: Likewise.
8746 * sched-ebb.c: Likewise.
8747 * sched-rgn.c: Likewise.
8748 * sdbout.c: Likewise.
8749 * sel-sched-dump.c: Likewise.
8750 * sel-sched-ir.c: Likewise.
8751 * sel-sched.c: Likewise.
8753 * shrink-wrap.c: Likewise.
8754 * simplify-rtx.c: Likewise.
8755 * stack-ptr-mod.c: Likewise.
8756 * statistics.c: Likewise.
8758 * stor-layout.c: Likewise.
8759 * store-motion.c: Likewise.
8760 * stringpool.c: Likewise.
8761 * symtab.c: Likewise.
8762 * target-globals.c: Likewise.
8763 * targhooks.c: Likewise.
8764 * toplev.c: Likewise.
8765 * tracer.c: Likewise.
8766 * trans-mem.c: Likewise.
8767 * tree-affine.c: Likewise.
8768 * tree-call-cdce.c: Likewise.
8769 * tree-cfg.c: Likewise.
8770 * tree-cfgcleanup.c: Likewise.
8771 * tree-chkp-opt.c: Likewise.
8772 * tree-chkp.c: Likewise.
8773 * tree-chrec.c: Likewise.
8774 * tree-complex.c: Likewise.
8775 * tree-data-ref.c: Likewise.
8776 * tree-dfa.c: Likewise.
8777 * tree-diagnostic.c: Likewise.
8778 * tree-dump.c: Likewise.
8779 * tree-eh.c: Likewise.
8780 * tree-emutls.c: Likewise.
8781 * tree-if-conv.c: Likewise.
8782 * tree-inline.c: Likewise.
8783 * tree-into-ssa.c: Likewise.
8784 * tree-iterator.c: Likewise.
8785 * tree-loop-distribution.c: Likewise.
8786 * tree-nested.c: Likewise.
8787 * tree-nrv.c: Likewise.
8788 * tree-object-size.c: Likewise.
8789 * tree-outof-ssa.c: Likewise.
8790 * tree-parloops.c: Likewise.
8791 * tree-phinodes.c: Likewise.
8792 * tree-predcom.c: Likewise.
8793 * tree-pretty-print.c: Likewise.
8794 * tree-profile.c: Likewise.
8795 * tree-scalar-evolution.c: Likewise.
8796 * tree-sra.c: Likewise.
8797 * tree-ssa-address.c: Likewise.
8798 * tree-ssa-alias.c: Likewise.
8799 * tree-ssa-ccp.c: Likewise.
8800 * tree-ssa-coalesce.c: Likewise.
8801 * tree-ssa-copy.c: Likewise.
8802 * tree-ssa-dce.c: Likewise.
8803 * tree-ssa-dse.c: Likewise.
8804 * tree-ssa-forwprop.c: Likewise.
8805 * tree-ssa-ifcombine.c: Likewise.
8806 * tree-ssa-live.c: Likewise.
8807 * tree-ssa-loop-ch.c: Likewise.
8808 * tree-ssa-loop-im.c: Likewise.
8809 * tree-ssa-loop-ivcanon.c: Likewise.
8810 * tree-ssa-loop-ivopts.c: Likewise.
8811 * tree-ssa-loop-manip.c: Likewise.
8812 * tree-ssa-loop-niter.c: Likewise.
8813 * tree-ssa-loop-prefetch.c: Likewise.
8814 * tree-ssa-loop-unswitch.c: Likewise.
8815 * tree-ssa-loop.c: Likewise.
8816 * tree-ssa-math-opts.c: Likewise.
8817 * tree-ssa-operands.c: Likewise.
8818 * tree-ssa-phiopt.c: Likewise.
8819 * tree-ssa-phiprop.c: Likewise.
8820 * tree-ssa-pre.c: Likewise.
8821 * tree-ssa-propagate.c: Likewise.
8822 * tree-ssa-reassoc.c: Likewise.
8823 * tree-ssa-scopedtables.c: Likewise.
8824 * tree-ssa-sink.c: Likewise.
8825 * tree-ssa-strlen.c: Likewise.
8826 * tree-ssa-structalias.c: Likewise.
8827 * tree-ssa-tail-merge.c: Likewise.
8828 * tree-ssa-ter.c: Likewise.
8829 * tree-ssa-threadupdate.c: Likewise.
8830 * tree-ssa-uncprop.c: Likewise.
8831 * tree-ssa-uninit.c: Likewise.
8832 * tree-ssa.c: Likewise.
8833 * tree-ssanames.c: Likewise.
8834 * tree-stdarg.c: Likewise.
8835 * tree-streamer-in.c: Likewise.
8836 * tree-streamer-out.c: Likewise.
8837 * tree-streamer.c: Likewise.
8838 * tree-switch-conversion.c: Likewise.
8839 * tree-tailcall.c: Likewise.
8840 * tree-vect-data-refs.c: Likewise.
8841 * tree-vect-generic.c: Likewise.
8842 * tree-vect-loop-manip.c: Likewise.
8843 * tree-vect-loop.c: Likewise.
8844 * tree-vect-patterns.c: Likewise.
8845 * tree-vect-slp.c: Likewise.
8846 * tree-vect-stmts.c: Likewise.
8847 * tree-vectorizer.c: Likewise.
8848 * tree-vrp.c: Likewise.
8851 * ubsan.c: Likewise.
8852 * value-prof.c: Likewise.
8853 * var-tracking.c: Likewise.
8854 * varasm.c: Likewise.
8855 * varpool.c: Likewise.
8856 * vmsdbgout.c: Likewise.
8857 * vtable-verify.c: Likewise.
8859 * wide-int-print.cc: Likewise.
8860 * wide-int.cc: Likewise.
8861 * xcoffout.c: Likewise.
8863 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
8865 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
8866 between pass numbering and execution order.
8868 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8870 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
8871 check for dependencies.
8873 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8875 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
8878 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8880 * real.h (format_helper): New.
8881 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
8882 (real_from_target, real_nan, real_2expN, real_value_truncate)
8883 (significand_size, real_from_string2, exact_real_inverse)
8884 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
8885 (real_round, real_isinteger, real_from_integer): Replace
8886 machine_mode arguments with format_helper arguments.
8887 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
8888 (real_from_integer, real_nan, real_2expN, real_convert)
8889 (real_value_truncate, exact_real_truncate, real_to_target)
8890 (real_from_target, significand_size, real_powi, real_trunc)
8891 (real_floor, real_ceil, real_round, real_isinteger): Replace
8892 machine_mode arguments with format_helper arguments.
8893 (real_to_target_fmt, real_from_target_fmt): Delete.
8894 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
8895 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
8896 argument with real_format.
8897 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
8899 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8901 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
8902 (fixed_to_decimal, fixed_convert_from_real)
8903 (real_convert_from_fixed): Fix mode arguments to real_2expN.
8905 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
8907 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
8908 SCALAR_FLOAT_MODE_P.
8910 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8912 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
8913 (completely_scalarize): Comment zero-length arrays.
8914 (get_access_replacement): Correct comment re. precondition.
8916 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8918 * config/i386/i386.c (get_builtin_code_for_version): Set priority
8919 for PROCESSOR_ZNVER1.
8920 (enum processor_model): Add M_AMDFAM17H_znver1.
8921 (struct arch_names_table): Likewise.
8922 * doc/extend.texi: ADD znver1.
8924 2015-10-30 Richard Biener <rguenther@suse.de>
8926 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
8927 fold () on single RHSs. Allow CONSTRUCTORS with trailing
8928 zeros to be folded to VECTOR_CSTs.
8929 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
8930 * fold-const.c (fold): Use build_vector_from_ctor.
8932 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
8934 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
8935 "mov %0.h[0], %1.h[0] to "neon_move".
8936 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
8937 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
8939 (*cmovsi_insn_uxtw): Likewise.
8941 2015-10-30 Tom de Vries <tom@codesourcery.com>
8943 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
8944 unsigned, and initialize, and use initial value instead of hardcoded
8945 constant. Add generic constraints dumping section. Don't dump global
8946 initializers constraints dumping section if empty. Don't update
8947 variable from if unused.
8949 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
8951 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
8952 flag_checking and/or CHECKING_P to eliminate conditional compilation
8954 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
8955 * config/bfin/bfin.c (hwloop_optimize): Likewise.
8956 * config/i386/i386.c (ix86_print_operand_address): Likewise.
8957 (output_387_binary_op): Likewise.
8958 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
8959 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
8960 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
8962 * config/rs6000/rs6000.h: Likewise.
8963 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8965 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
8967 * config/sh/sh.opt (mfdpic): Add missing period.
8969 2015-08-29 Anatoly Sokolov <aesok@post.ru>
8971 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8972 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
8973 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8974 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
8975 mcore_base_register_rtx_p, mcore_legitimate_index_p,
8976 mcore_legitimate_address_p): New functions.
8977 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8979 2015-10-29 Jeff Law <law@redhat.com>
8981 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
8983 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
8984 * tree-ssa-threadedge.c
8985 (record_temporary_equivalences_from_stmts_at_dest): Remove
8986 backedge_seen argument and associated code which invalidated
8987 equivalences based on the value of that argument.
8988 (thread_through_normal_block): Corresponding changes.
8990 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8992 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
8993 function earlier in the file.
8994 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
8995 df_regs_ever_live_p.
8997 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8999 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
9002 2015-10-29 Richard Henderson <rth@redhat.com>
9006 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
9007 sse check to the exact conditions of PR 67609.
9009 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9011 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
9012 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
9013 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
9014 of the traditional names that TFmode uses for handling IEEE
9015 extended double. If -mfloat128, add KFmode functions for all of
9016 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
9017 make TFmode use the same emulation functions as KFmode.
9018 (init_float128_ibm): Likewise.
9019 (init_float128_ieee): Likewise.
9020 (rs6000_generate_compare): For IEEE 128-bit floating point
9021 comparisons, call the unordered comparison function instead of the
9022 ordered comparison function.
9023 (rs6000_expand_float128_convert): Deal with operands that are
9024 memory operands. Restructure the code to use a switch statement on
9025 the mode. Add support for TFmode defaulting to either IBM extended
9026 double or IEEE 128-bit floating point. If the underlying types are
9027 the same, use a move instead of a conversion function.
9028 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
9029 use for IEEE 128-bit floating point constants with -mfloat128.
9030 (rs6000_c_mode_for_suffix): Likewise.
9031 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
9032 128-bit floating point with IBM extended double floating point.
9033 (rs6000_invalid_binary_op): Likewise.
9034 (rs6000_gen_le_vsx_permute): On little endian systems generate a
9035 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
9036 types that can go in vector registers.
9037 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
9038 point types that can go in vector registers on little endian
9040 (mark_swaps_for_removal): Likewise.
9041 (rs6000_analyze_swaps): Likewise.
9042 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
9044 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
9045 rework IEEE 128-bit floating point insns to deal with TFmode being
9046 either IBM extended double or IEEE 128-bit floating point.
9048 (IBM128): Update iterator to add condition that the mode is IBM
9050 (IEEE128): New iterator for IEEE 128-bit floating point.
9051 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
9052 (FLOAT128): Likewise.
9053 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
9055 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
9056 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
9057 instead of hard coding TFmode or KFmode.
9058 (negtf2_internal): Likewise.
9059 (neg<mode>2_internal): Likewise.
9060 (abs<mode>2): Likewise.
9061 (abstf2_internal): Likewise.
9062 (abs<mode>2_internal): Likewise.
9063 (ieee_128bit_neg<mode>2): Likewise.
9064 (ieee_128bit_neg<mode>2_internal): Likewise.
9065 (ieee_128bit_abs<mode>2): Likewise.
9066 (ieee_128bit_abs<mode>2_internal): Likewise.
9067 (ieee_128bit_nabs<mode>2): Likewise.
9068 (ieee_128bit_nabs<mode>2_internal): Likewise.
9069 (extendiftf2): Add explicit conversions between 128-bit floating
9070 point types. Drop the old conversions that had become unwieldy.
9071 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9072 (extendifkf2): Likewise.
9073 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9074 (extendtfkf2): Likewise.
9075 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9076 (trunciftf2): Likewise.
9077 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9078 (truncifkf2): Likewise.
9079 (float<SDI:mode><IFKF:mode>2): Likewise.
9080 (trunckftf2): Likewise.
9081 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9082 (trunctfif2): Likewise.
9083 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
9084 (extenddftf2): Rework 128-bit floating point conversions to
9085 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
9086 KFmode expanders into one function.
9087 (extenddf<mode>2): Likewise.
9088 (extenddftf2_fprs): Likewise.
9089 (extenddf<mode>2_fprs): Likewise.
9090 (extenddftf2_vsx): Likewise.
9091 (extenddf<mode>2_vsx): Likewise.
9092 (extendsftf2): Likewise.
9093 (extendsf<mode>2): Likewise.
9094 (trunctfdf2): Likewise.
9095 (trunc<mode>df2): Likewise.
9096 (trunctfdf2_internal1): Likewise.
9097 (trunc<mode>df2_internal1): Likewise.
9098 (trunctfdf2_internal2): Likewise.
9099 (trunc<mode>df2_internal2): Likewise.
9100 (trunctfsf2): Likewise.
9101 (trunc<mode>sf2): Likewise.
9102 (trunctfsf2_fprs): Likewise.
9103 (trunc<mode>sf2_fprs): Likewise.
9104 (floatsit2f): Likewise.
9105 (floatsi<mode>2): Likewise.
9106 (fix_trunc_helper): Likewise.
9107 (fix_trunc_helper<mode>): Likewise.
9108 (fix_trunctfsi2): Likewise.
9109 (fix_trunc<mode>si2): Likewise.
9110 (fix_trunctfsi2_fprs): Likewise.
9111 (fix_trunc<mode>si2_fprs): Likewise.
9112 (fix_trunctfsi2_internal): Likewise.
9113 (fix_trunc<mode>si2_internal): Likewise.
9114 (fix_trunctfdi2): Likewise.
9115 (fix_trunc<mode>di2): Likewise.
9116 (fixuns_trunctf<mode>2): Likewise.
9117 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9118 (floatditf2): Likewise.
9119 (floatdi<mode>2): Likewise.
9120 (floatuns<mode>tf2): Likewise.
9121 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
9122 (cmptf_internal1): Use a mode iterator to add support for both
9123 types (IFmode, TFmode) that support IBM extended double.
9124 (cmp<mode>_internal1): Likewise.
9125 (cmptf_internal2): Likewise.
9126 (cmp<mode>_internal2): Likewise.
9128 * doc/extend.texi (Floating Types): Document __ibm128 and
9129 __float128 on PowerPC.
9131 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9132 -mfloat128 and -mno-float128.
9134 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9136 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
9137 floating point modes that can go in vector registers.
9138 (MODES_TIEABLE_P): Move tests for vector modes before tests for
9139 scalar floating point, so that IEEE 128-bit floating point that
9140 can go in vector registers bind with vectors and not FP.
9141 (struct rs6000_args): Add libcall field.
9143 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
9144 and -mfloat128-software switches. Replace them with a binary
9146 (-mfloat128): Likewise.
9148 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
9149 128-bit floating point types in GPRs, even if the appropriate
9150 option enabling the type was not used.
9151 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
9153 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
9154 pre-decrement on IEEE 128-bit floating point values.
9155 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
9156 is IEEE 128-bit floating point.
9157 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
9158 128-bit floating point types that can go in vector registers.
9159 (rs6000_option_override_internal): Change -mfloat128-none and
9160 -mfloat128-software to -mfloat128, and move code to be near other
9161 VSX option handling.
9162 (rs6000_option_override_internal): Disable -mfloat128 if we don't
9163 have the Altivec ABI.
9164 (rs6000_init_builtins): Don't make TFmode use either IFmode or
9165 KFmode floating point nodes. Instead, have three separate nodes.
9166 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
9167 eventually moving the long double default to IEEE 128-bit floating
9169 (rs6000_opt_masks): Add -mfloat128.
9170 (struct rs6000_opt_var): Fix typo in comment.
9171 (init_cumulative_args): Initialize libcall field in
9173 (rs6000_function_arg): Treat library functions as if they had
9174 prototypes to prevent IEEE 128-bit support functions from passing
9175 arguments in both GPRs and vector registers.
9176 (rs6000_arg_partial_bytes): Likewise.
9178 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
9179 an option that can be turned on via -mcpu=<xxx>.
9181 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
9184 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9185 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
9186 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
9187 double is IBM extended double.
9189 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
9192 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
9194 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
9195 * genconditions.c: Define CHECKING_P in the generated code.
9196 * genextract.c: Use flag_checking in insn_extract.
9197 * gengtype.c (main): Remove conditional compilation.
9198 * gengtype.h: Likewise.
9200 2015-10-29 Jeff Law <law@redhat.com>
9202 PR tree-optimization/67892
9203 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
9205 (thread_through_normal_block): If we have seen a backedge, then
9206 do nothing. No longer call find_jump_threads_backwards here.
9207 (thread_across_edge): Use find_jump_threads_backwards to find
9208 jump threads if the old style threader was not successful.
9209 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
9210 gsi_last_nondebug_bb. Return NULL if the block does not end
9211 with a control statement.
9212 (find_jump_threads_backwards): Setup code moved here from
9213 tree-ssa-threadedge.c::thread_through_normal_block. Accept
9214 single edge argument instead of name & block.
9215 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
9218 2015-10-29 Tom de Vries <tom@codesourcery.com>
9220 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
9223 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9225 * omp-low.c (lower_omp_target): Remove unreachable code & merge
9228 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
9230 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
9232 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9234 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9235 guard_bb0 and use guard_bb throughout.
9237 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9239 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9242 2015-10-29 Richard Biener <rguenther@suse.de>
9245 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
9248 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
9250 * alias.c: Reorder #include statements and remove duplicates.
9252 * attribs.c: Likewise.
9253 * auto-inc-dec.c: Likewise.
9254 * auto-profile.c: Likewise.
9255 * bb-reorder.c: Likewise.
9256 * bt-load.c: Likewise.
9257 * builtins.c: Likewise.
9258 * caller-save.c: Likewise.
9259 * calls.c: Likewise.
9262 * cfganal.c: Likewise.
9263 * cfgbuild.c: Likewise.
9264 * cfgcleanup.c: Likewise.
9265 * cfgexpand.c: Likewise.
9266 * cfghooks.c: Likewise.
9267 * cfgloop.c: Likewise.
9268 * cfgloopanal.c: Likewise.
9269 * cfgloopmanip.c: Likewise.
9270 * cfgrtl.c: Likewise.
9271 * cgraph.c: Likewise.
9272 * cgraphbuild.c: Likewise.
9273 * cgraphclones.c: Likewise.
9274 * cgraphunit.c: Likewise.
9275 * cilk-common.c: Likewise.
9276 * combine-stack-adj.c: Likewise.
9277 * combine.c: Likewise.
9278 * compare-elim.c: Likewise.
9279 * convert.c: Likewise.
9280 * coverage.c: Likewise.
9281 * cppbuiltin.c: Likewise.
9282 * cprop.c: Likewise.
9284 * cselib.c: Likewise.
9285 * data-streamer-in.c: Likewise.
9286 * data-streamer-out.c: Likewise.
9287 * data-streamer.c: Likewise.
9288 * dbxout.c: Likewise.
9291 * debug.c: Likewise.
9292 * df-core.c: Likewise.
9293 * df-problems.c: Likewise.
9294 * df-scan.c: Likewise.
9296 * dojump.c: Likewise.
9297 * dominance.c: Likewise.
9298 * double-int.c: Likewise.
9300 * dumpfile.c: Likewise.
9301 * dwarf2asm.c: Likewise.
9302 * dwarf2cfi.c: Likewise.
9303 * dwarf2out.c: Likewise.
9304 * emit-rtl.c: Likewise.
9305 * except.c: Likewise.
9306 * explow.c: Likewise.
9307 * expmed.c: Likewise.
9309 * final.c: Likewise.
9310 * fixed-value.c: Likewise.
9311 * fold-const.c: Likewise.
9312 * function.c: Likewise.
9313 * fwprop.c: Likewise.
9315 * generic-match-head.c: Likewise.
9316 * ggc-common.c: Likewise.
9317 * gimple-builder.c: Likewise.
9318 * gimple-expr.c: Likewise.
9319 * gimple-fold.c: Likewise.
9320 * gimple-iterator.c: Likewise.
9321 * gimple-low.c: Likewise.
9322 * gimple-match-head.c: Likewise.
9323 * gimple-pretty-print.c: Likewise.
9324 * gimple-ssa-isolate-paths.c: Likewise.
9325 * gimple-ssa-strength-reduction.c: Likewise.
9326 * gimple-streamer-in.c: Likewise.
9327 * gimple-streamer-out.c: Likewise.
9328 * gimple-walk.c: Likewise.
9329 * gimple.c: Likewise.
9330 * gimplify-me.c: Likewise.
9331 * gimplify.c: Likewise.
9332 * godump.c: Likewise.
9333 * graph.c: Likewise.
9334 * graphite-poly.c: Likewise.
9335 * haifa-sched.c: Likewise.
9336 * hw-doloop.c: Likewise.
9337 * ifcvt.c: Likewise.
9338 * incpath.c: Likewise.
9339 * init-regs.c: Likewise.
9340 * internal-fn.c: Likewise.
9341 * ipa-chkp.c: Likewise.
9342 * ipa-comdats.c: Likewise.
9343 * ipa-cp.c: Likewise.
9344 * ipa-devirt.c: Likewise.
9345 * ipa-icf-gimple.c: Likewise.
9346 * ipa-icf.c: Likewise.
9347 * ipa-inline-analysis.c: Likewise.
9348 * ipa-inline-transform.c: Likewise.
9349 * ipa-inline.c: Likewise.
9350 * ipa-polymorphic-call.c: Likewise.
9351 * ipa-profile.c: Likewise.
9352 * ipa-prop.c: Likewise.
9353 * ipa-pure-const.c: Likewise.
9354 * ipa-ref.c: Likewise.
9355 * ipa-reference.c: Likewise.
9356 * ipa-split.c: Likewise.
9357 * ipa-utils.c: Likewise.
9358 * ipa-visibility.c: Likewise.
9360 * ira-build.c: Likewise.
9361 * ira-color.c: Likewise.
9362 * ira-conflicts.c: Likewise.
9363 * ira-costs.c: Likewise.
9364 * ira-emit.c: Likewise.
9365 * ira-lives.c: Likewise.
9368 * langhooks.c: Likewise.
9370 * lists.c: Likewise.
9371 * loop-doloop.c: Likewise.
9372 * loop-init.c: Likewise.
9373 * loop-invariant.c: Likewise.
9374 * loop-iv.c: Likewise.
9375 * loop-unroll.c: Likewise.
9376 * lower-subreg.c: Likewise.
9377 * lra-assigns.c: Likewise.
9378 * lra-coalesce.c: Likewise.
9379 * lra-constraints.c: Likewise.
9380 * lra-eliminations.c: Likewise.
9381 * lra-lives.c: Likewise.
9382 * lra-remat.c: Likewise.
9383 * lra-spills.c: Likewise.
9385 * lto-cgraph.c: Likewise.
9386 * lto-compress.c: Likewise.
9387 * lto-opts.c: Likewise.
9388 * lto-section-in.c: Likewise.
9389 * lto-section-out.c: Likewise.
9390 * lto-streamer-in.c: Likewise.
9391 * lto-streamer-out.c: Likewise.
9392 * lto-streamer.c: Likewise.
9393 * mode-switching.c: Likewise.
9394 * modulo-sched.c: Likewise.
9395 * omp-low.c: Likewise.
9396 * optabs.c: Likewise.
9397 * opts-global.c: Likewise.
9398 * passes.c: Likewise.
9399 * plugin.c: Likewise.
9400 * postreload-gcse.c: Likewise.
9401 * postreload.c: Likewise.
9402 * predict.c: Likewise.
9403 * print-tree.c: Likewise.
9404 * profile.c: Likewise.
9406 * realmpfr.c: Likewise.
9407 * recog.c: Likewise.
9409 * reg-stack.c: Likewise.
9410 * regcprop.c: Likewise.
9411 * reginfo.c: Likewise.
9412 * regrename.c: Likewise.
9413 * regstat.c: Likewise.
9414 * reload.c: Likewise.
9415 * reload1.c: Likewise.
9416 * reorg.c: Likewise.
9417 * resource.c: Likewise.
9418 * rtl-chkp.c: Likewise.
9419 * rtl-error.c: Likewise.
9420 * rtlanal.c: Likewise.
9421 * rtlhooks.c: Likewise.
9422 * sanopt.c: Likewise.
9423 * sched-deps.c: Likewise.
9424 * sched-ebb.c: Likewise.
9425 * sched-rgn.c: Likewise.
9427 * shrink-wrap.c: Likewise.
9428 * simplify-rtx.c: Likewise.
9429 * stack-ptr-mod.c: Likewise.
9430 * statistics.c: Likewise.
9432 * stor-layout.c: Likewise.
9433 * store-motion.c: Likewise.
9434 * stringpool.c: Likewise.
9435 * symtab.c: Likewise.
9436 * target-globals.c: Likewise.
9437 * targhooks.c: Likewise.
9438 * toplev.c: Likewise.
9439 * tracer.c: Likewise.
9440 * trans-mem.c: Likewise.
9441 * tree-affine.c: Likewise.
9442 * tree-call-cdce.c: Likewise.
9443 * tree-cfg.c: Likewise.
9444 * tree-cfgcleanup.c: Likewise.
9445 * tree-chkp-opt.c: Likewise.
9446 * tree-chkp.c: Likewise.
9447 * tree-chrec.c: Likewise.
9448 * tree-complex.c: Likewise.
9449 * tree-data-ref.c: Likewise.
9450 * tree-dfa.c: Likewise.
9451 * tree-diagnostic.c: Likewise.
9452 * tree-dump.c: Likewise.
9453 * tree-eh.c: Likewise.
9454 * tree-emutls.c: Likewise.
9455 * tree-if-conv.c: Likewise.
9456 * tree-inline.c: Likewise.
9457 * tree-into-ssa.c: Likewise.
9458 * tree-iterator.c: Likewise.
9459 * tree-loop-distribution.c: Likewise.
9460 * tree-nested.c: Likewise.
9461 * tree-nrv.c: Likewise.
9462 * tree-object-size.c: Likewise.
9463 * tree-outof-ssa.c: Likewise.
9464 * tree-parloops.c: Likewise.
9465 * tree-phinodes.c: Likewise.
9466 * tree-predcom.c: Likewise.
9467 * tree-pretty-print.c: Likewise.
9468 * tree-profile.c: Likewise.
9469 * tree-scalar-evolution.c: Likewise.
9470 * tree-sra.c: Likewise.
9471 * tree-ssa-address.c: Likewise.
9472 * tree-ssa-alias.c: Likewise.
9473 * tree-ssa-ccp.c: Likewise.
9474 * tree-ssa-coalesce.c: Likewise.
9475 * tree-ssa-copy.c: Likewise.
9476 * tree-ssa-dce.c: Likewise.
9477 * tree-ssa-dom.c: Likewise.
9478 * tree-ssa-dse.c: Likewise.
9479 * tree-ssa-forwprop.c: Likewise.
9480 * tree-ssa-ifcombine.c: Likewise.
9481 * tree-ssa-live.c: Likewise.
9482 * tree-ssa-loop-ch.c: Likewise.
9483 * tree-ssa-loop-im.c: Likewise.
9484 * tree-ssa-loop-ivcanon.c: Likewise.
9485 * tree-ssa-loop-ivopts.c: Likewise.
9486 * tree-ssa-loop-manip.c: Likewise.
9487 * tree-ssa-loop-niter.c: Likewise.
9488 * tree-ssa-loop-prefetch.c: Likewise.
9489 * tree-ssa-loop-unswitch.c: Likewise.
9490 * tree-ssa-loop.c: Likewise.
9491 * tree-ssa-math-opts.c: Likewise.
9492 * tree-ssa-operands.c: Likewise.
9493 * tree-ssa-phiopt.c: Likewise.
9494 * tree-ssa-phiprop.c: Likewise.
9495 * tree-ssa-pre.c: Likewise.
9496 * tree-ssa-propagate.c: Likewise.
9497 * tree-ssa-reassoc.c: Likewise.
9498 * tree-ssa-sccvn.c: Likewise.
9499 * tree-ssa-scopedtables.c: Likewise.
9500 * tree-ssa-sink.c: Likewise.
9501 * tree-ssa-strlen.c: Likewise.
9502 * tree-ssa-structalias.c: Likewise.
9503 * tree-ssa-tail-merge.c: Likewise.
9504 * tree-ssa-ter.c: Likewise.
9505 * tree-ssa-threadedge.c: Likewise.
9506 * tree-ssa-threadupdate.c: Likewise.
9507 * tree-ssa-uncprop.c: Likewise.
9508 * tree-ssa-uninit.c: Likewise.
9509 * tree-ssa.c: Likewise.
9510 * tree-ssanames.c: Likewise.
9511 * tree-stdarg.c: Likewise.
9512 * tree-streamer-in.c: Likewise.
9513 * tree-streamer-out.c: Likewise.
9514 * tree-streamer.c: Likewise.
9515 * tree-switch-conversion.c: Likewise.
9516 * tree-tailcall.c: Likewise.
9517 * tree-vect-data-refs.c: Likewise.
9518 * tree-vect-generic.c: Likewise.
9519 * tree-vect-loop-manip.c: Likewise.
9520 * tree-vect-loop.c: Likewise.
9521 * tree-vect-patterns.c: Likewise.
9522 * tree-vect-slp.c: Likewise.
9523 * tree-vect-stmts.c: Likewise.
9524 * tree-vectorizer.c: Likewise.
9525 * tree-vrp.c: Likewise.
9528 * ubsan.c: Likewise.
9529 * value-prof.c: Likewise.
9530 * var-tracking.c: Likewise.
9531 * varasm.c: Likewise.
9532 * varpool.c: Likewise.
9533 * vtable-verify.c: Likewise.
9535 * wide-int-print.cc: Likewise.
9536 * wide-int.cc: Likewise.
9537 * xcoffout.c: Likewise.
9539 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
9541 * Makefile.in (NO_PIE_CFLAGS): New.
9542 (NO_PIE_FLAG): Likewise.
9543 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9544 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9545 (BUILD_NO_PIE_CFLAGS): Likewise.
9546 (BUILD_NO_PIE_FLAG): Likewise.
9547 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
9548 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
9549 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
9550 $(BUILD_NO_PIE_CFLAGS).
9551 (BUILD_CXXFLAGS): Likewise.
9552 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
9553 $(BUILD_NO_PIE_FLAG).
9554 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
9555 (BUILD_NO_PIE_FLAG): Likewise.
9556 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9557 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9558 * configure: Regenerated.
9560 2015-10-29 Richard Biener <rguenther@suse.de>
9563 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
9564 unsigned conditonal negation to ABS_EXPR.
9566 2015-10-29 Richard Biener <rguenther@suse.de>
9568 * gimple-match-head.c (gimple_simplify): Remove premature checking
9569 of builtin_decl_implicit of function calls we simplify.
9571 2015-10-29 Bin Cheng <bin.cheng@arm.com>
9573 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
9574 (get_computation_cost_at): Ditto.
9575 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
9578 2015-10-28 Tom de Vries <tom@codesourcery.com>
9580 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
9583 2015-10-28 Jason Merrill <jason@redhat.com>
9585 * Makefile.in (TAGS): Include libcpp and libiberty.
9587 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9589 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
9590 (extract_omp_for_data): Remove OpenACC special handling of
9593 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
9594 (struct parallel): Update comment.
9595 (nvptx_reorg): Likewise.
9596 (nvptx_neuter): Cleanup whitespace.
9598 2015-10-28 Richard Henderson <rth@redhat.com>
9600 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
9602 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9605 * config/avr/predicates.md (low_io_address_operand): Don't
9606 consider MODE when computing upper bound.
9607 (io_address_operand): Likewise.
9609 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
9611 * fold-const.c (operand_equal_p): Do not verify that types are
9612 compatible for MEM_REFs.
9614 2015-10-28 Richard Biener <rguenther@suse.de>
9616 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
9617 in simplifying VEC_COND_EXPR conditions.
9619 2015-10-28 Tom de Vries <tom@codesourcery.com>
9621 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
9622 into vi_next of a full_var.
9624 2015-10-28 Tom de Vries <tom@codesourcery.com>
9626 * tree-ssa-structalias.c (new_var_info, make_heapvar)
9627 (make_constraint_from_restrict, make_constraint_from_global_restrict)
9628 (create_function_info_for, create_variable_info_for_1)
9629 (create_variable_info_for): Add and handle add_id parameter.
9630 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
9631 (init_base_vars): Add extra argument to calls to new_var_info.
9632 (get_vi_for_tree): Add extra argument to call to
9633 create_variable_info_for.
9634 (process_constraint, do_deref, process_all_all_constraints): Add extra
9635 argument to calls to new_scalar_tmp_constraint_exp.
9636 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
9637 argument to calls to make_heapvar.
9638 (make_restrict_var_constraints): Add extra argument to call to
9639 make_constraint_from_global_restrict.
9640 (intra_create_variable_infos): Add extra argument to call to
9641 create_variable_info_for_1.
9642 (ipa_pta_execute): Add extra argument to call to
9643 create_function_info_for.
9645 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9647 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
9648 (sibcall_value): Likewise.
9650 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9652 * config/nvptx/nvptx.h (struct machine_function): Add
9654 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
9655 nvptx_expand_oacc_join): Declare.
9656 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
9657 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
9658 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
9659 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
9660 UNSPECV_JOINING, UNSPECV_JOIN): New.
9661 (BITS, BITD): New mode iterators.
9662 (br_true_uni, br_false_uni): New.
9663 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
9664 (oacc_dim_size, oacc_dim_pos): New.
9665 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
9666 (oacc_fork, oacc_join): New.
9667 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
9668 (worker_load<mode>, worker_store<mode>): New.
9669 (nvptx_barsync): New.
9670 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
9671 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
9672 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
9673 worker_bcast_sym): New.
9674 (nvptx_option_override): Initialize worker broadcast buffer.
9675 (nvptx_emit_forking, nvptx_emit_joining): New.
9676 (nvptx_init_axis_predicate): New.
9677 (nvptx_declare_function_name): Init axis predicates.
9678 (nvptx_expand_call): Add fork/join markers around routine call.
9679 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
9680 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
9681 (nvptx_gen_vcast): New.
9682 (struct wcast_data_t): New.
9683 (enum propagate_mask): New.
9684 (nvptx_gen_wcast): New.
9685 (nvptx_print_operand): Add 'S' case.
9686 (struct parallel): New.
9687 (parallel::parallel, parallel::~parallel): New.
9688 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
9689 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
9690 nvptx_find_par, nvptx_discover_pars): New.
9691 (nvptx_propagate): New.
9692 (vprop_gen, nvptx_vpropagate): New.
9693 (wprop_gen, nvptx_wpropagate): New.
9695 (nvptx_single, nvptx_skip_par): New.
9696 (nvptx_process_pars, nvptx_neuter_pars): New.
9697 (ntptx_reorg): Split blocks, generate parallel structure, apply
9699 (nvptx_cannot_copy_insn_p): New.
9700 (nvptx_file_end): Emit worker broadcast decl.
9701 (nvptx_goacc_fork_join): New.
9702 (TARGET_CANNOT_COPY_INSN_P): Override.
9703 (TARGET_GOACC_FORK_JOIN): Override.
9705 2015-10-28 Richard Biener <rguenther@suse.de>
9707 * fold-const.c (negate_expr_p): Adjust the division case to
9708 properly avoid introducing undefined overflow.
9709 (fold_negate_expr): Likewise.
9711 2015-10-28 Richard Biener <rguenther@suse.de>
9713 PR tree-optimization/65962
9714 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9715 Avoid creating loop carried dependences also for outer loops
9716 of the loop a use to replace is in.
9718 2015-10-28 Richard Biener <rguenther@suse.de>
9720 * common.opt (fchecking): New flag controlling flag_checking.
9721 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
9722 * timevar.c (timer::print): Adjust output.
9723 * doc/invoke.texi (fchecking): Document.
9725 2015-10-28 Richard Biener <rguenther@suse.de>
9728 * fold-const.c (negate_expr_p): We cannot negate plus or minus
9729 if overflow is not wrapping. Likewise multiplication unless
9730 one operand is constant and not power of two.
9731 (fold_negate_expr): Adjust accordingly.
9733 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9735 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
9737 (is_oacc_parallel, is_oacc_kernels): New.
9738 (enclosing_target_ctx): May return NULL.
9739 (ctx_in_oacc_kernels_region): New.
9740 (check_oacc_kernel_gwv): New.
9741 (oacc_loop_or_target_p): Delete.
9742 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
9743 operands. Strip reductions fro kernels.
9744 (scan_omp_target): Don't calculate gwv mask.
9745 (lower_oacc_head_mark, lower_oacc_loop_marker,
9746 lower_oacc_head_tail): New.
9747 (struct oacc_collapse): New.
9748 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
9749 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
9750 Remove OpenACC handling.
9751 (expand_oacc_for): New.
9752 (expand_omp_for): Call expand_oacc_for.
9753 (lower_omp_for): Call lower_oacc_head_tail.
9755 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
9757 * attribs.c (check_attribute_tables): New function, broken out from...
9758 (init_attributes): Use it.
9759 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
9760 gcc_checking_assert and checking_* functions to eliminate
9761 ENABLE_CHECKING conditionals.
9762 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
9763 (pass_expand::execute): Likewise.
9764 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
9765 * cgraphunit.c (mark_functions_to_output): Likewise.
9766 (cgraph_node::expand_thunk): Likewise.
9767 (symbol_table::compile): Likewise.
9768 * ddg.c (add_cross_iteration_register_deps): Likewise.
9769 (create_ddg_all_sccs): Likewise.
9770 * df-core.c (df_finish_pass, df_analyze): Likewise.
9771 * diagnostic-core.h: Likewise.
9772 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
9773 * dominance.c (calculate_dominance_info): Likewise.
9774 * dwarf2out.c (add_AT_die_ref): Likewise.
9775 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
9776 (loc_list_from_tree, gen_lexical_block_die): Likewise.
9777 gen_type_die_with_usage, gen_type_die): Likewise.
9778 (dwarf2out_decl): Likewise.
9779 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
9780 * except.c (duplicate_eh_regions): Likewise.
9781 * fwprop.c (register_active_defs, update_df_init): Likewise.
9782 (fwprop_init, fwprop_done): Likewise.
9783 (update_uses): Likewise.
9784 * ggc-page.c (ggc_grow): Likewise.
9785 * gimplify.c (gimplify_body): Likewise.
9786 (gimplify_hasher::equal): Likewise.
9787 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
9788 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
9790 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
9791 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
9792 * hash-table.h (::find_empty_slot_for_expand): Likewise.
9793 * ifcvt.c (if_convert): Likewise.
9794 * ipa-cp.c (ipcp_propagate_stage): Likewise.
9795 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
9796 (odr_type_p, odr_types_equivalent_p): Likewise.
9797 (add_type_duplicate, get_odr_type): Likewise.
9798 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
9799 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
9800 (sem_item_optimizer::verify_classes): Likewise.
9801 (sem_item_optimizer::traverse_congruence_split): Likewise.
9802 (sem_item_optimizer::checking_verify_classes): New.
9803 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
9805 * cfgrtl.c (commit_edge_insertions): Likewise.
9806 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
9807 (rtl_flow_call_edges_add): Likewise.
9808 * cgraph.c (symbol_table::create_edge): Likewise.
9809 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
9810 * cgraph.h (symtab_node): Likewise.
9811 (symtab_node::checking_verify_symtab_nodes): Define.
9812 (cgraph_node::checking_verify_cgraph_nodes): Define.
9813 * cfghooks.h (checking_verify_flow_info): Define.
9814 * cfgloop.h (checking_verify_loop_structure): Define.
9815 * dominance.h (checking_verify_dominators): Define.
9816 * et-forest.c: Fix comment.
9817 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
9818 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9819 ENABLE_CHECKING conditionals.
9820 * ipa-inline-transform.c (save_inline_function_body): Likewise.
9821 * ipa-inline.c (inline_small_functions): Likewise.
9822 (early_inliner): Likewise.
9823 * ipa-inline.h (estimate_edge_growth): Likewise.
9824 * ipa-visibility.c (function_and_variable_visibility): Likewise.
9825 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
9826 (ipa_single_use): Likewise.
9827 * ira-int.h: Likewise.
9828 * ira.c (ira): Likewise.
9829 * loop-doloop.c (doloop_optimize_loops): Likewise.
9830 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
9831 * loop-invariant.c (move_loop_invariants): Likewise.
9832 * lra-assigns.c (lra_assign): Likewise.
9833 * lra-constraints.c (lra_constraints): Likewise.
9834 * lra-eliminations.c (lra_eliminate): Likewise.
9835 * lra-int.h (struct lra_reg): Likewise.
9836 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9837 (lra_create_live_ranges_1): Likewise.
9838 * lra-remat.c (create_remat_bb_data): Likewise.
9839 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
9841 (check_rtl): Always define. Remove incorrect guard around
9842 extract_constrain_insn call.
9843 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
9844 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9845 ENABLE_CHECKING conditionals.
9846 * lto-streamer-out.c (DFS::DFS): Likewise.
9847 (lto_output): Likewise.
9848 * lto-streamer.c (lto_streamer_init): Likewise.
9849 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
9850 expand_omp_target, execute_expand_omp): Likewise.
9851 (lower_omp_target): Likewise.
9852 * passes.c (execute_function_todo): Likewise.
9853 (execute_todo, execute_one_pass): Likewise.
9854 (verify_curr_properties): Always define.
9855 * predict.c (tree_estimate_probability: Use flag_checking,
9856 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9857 ENABLE_CHECKING conditionals.
9858 (propagate_freq): Likewise.
9859 * pretty-print.c (pp_format): Likewise.
9860 * real.c (real_to_decimal_for_mode): Likewise.
9861 * recog.c (split_all_insns): Likewise.
9862 * regcprop.c (kill_value_one_regno): Likewise.
9863 (copy_value): Likewise.
9864 (validate_value_data): Define unconditionally.
9865 * reload.c: Fix comment.
9866 * timevar.c: Include options.h
9867 * tree-ssa.h (checking_verify_ssa): Define.
9868 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
9869 * sched-deps.c (CHECK): Remove unused macro.
9870 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
9871 gcc_checking_assert and checking_* functions to eliminate
9872 ENABLE_CHECKING conditionals.
9873 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
9874 * sel-sched.c (struct moveop_static_params): Likewise.
9875 (find_best_reg_for_expr, move_cond_jump): Likewise.
9876 (move_op_orig_expr_not_found): Likewise.
9877 (code_motion_process_successors, move_op): Likewise.
9878 * ssa-iterators.h (first_readonly_imm_use): Likewise.
9879 (next_readonly_imm_use): Likewise.
9880 * store-motion.c (compute_store_table): Likewise.
9881 * symbol-summary.h (function_summary::function_summary): Likewise.
9882 * target.h (cumulative_args_t): Likewise.
9883 (get_cumulative_args, pack_cumulative_args): Likewise.
9884 * timevar.c: (timer::print): Likewise.
9885 * trans-mem.c (ipa_tm_execute): Likewise.
9886 * tree-cfg.c (move_stmt_op): Likewise.
9887 (move_sese_region_to_fn): Likewise.
9888 (gimple_flow_call_edges_add): Likewise.
9889 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9891 * tree-eh.c (remove_unreachable_handlers): Likewise.
9892 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
9893 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
9894 * tree-into-ssa.c (update_ssa): Likewise.
9895 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
9896 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
9897 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
9898 * tree-predcom.c (suitable_component_p): Likewise.
9899 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
9900 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
9901 * tree-ssa-live.c (verify_live_on_entry): Likewise.
9902 * tree-ssa-live.h (register_ssa_partition): Likewise.
9903 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
9904 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
9905 (tree_transform_and_unroll_loop): Likewise.
9906 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9907 * tree-ssa-operands.c (get_expr_operands): Likewise.
9908 * tree-ssa-propagate.c (replace_exp_1): Likewise.
9909 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9910 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
9911 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
9912 * tree-ssanames.c (release_ssa_name_fn): Likewise.
9913 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
9914 * tree-vect-loop-manip.c
9915 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
9916 (slpeel_checking_verify_cfg_after_peeling): Likewise.
9917 (vect_do_peeling_for_loop_bound): Likewise.
9918 (vect_do_peeling_for_alignment): Likewise.
9919 * tree-vrp.c (supports_overflow_infinity): Likewise.
9920 (set_value_range): Likewise.
9921 * tree.c (free_lang_data_in_cgraph): Likewise.
9922 * value-prof.c (gimple_remove_histogram_value): Likewise.
9923 (free_hist): Likewise.
9924 * var-tracking.c (canonicalize_values_star): Likewise.
9925 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
9927 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9929 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
9930 IFN_GOACC_LOOP): New.
9931 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
9932 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
9933 IFN_UNIQUE_OACC_TAIL_MARK.
9934 (enum ifn_goacc_loop_kind): New.
9935 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
9936 IFN_UNIQUE_OACC_JOIN cases.
9937 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
9938 (expand_GOACC_LOOP): New.
9939 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
9940 * omp-low.c: Include gimple-pretty-print.h.
9941 (struct oacc_loop): New.
9942 (enum oacc_loop_flags): New.
9943 (oacc_thread_numbers): New.
9944 (oacc_xform_loop): New.
9945 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
9946 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
9947 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
9948 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
9949 oacc_loop_discovery): New.
9950 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
9951 oacc_loop_process): New.
9952 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
9953 (execute_oacc_device_lower): Discover & process loops. Process
9955 * target.def (goacc.fork_join): Change sense of hook, clarify
9957 * doc/tm.texi: Regenerated.
9959 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9961 * target-insns.def (oacc_fork, oacc_join): Define.
9962 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
9963 (goacc.fork_join): New GOACC hook.
9964 * targhooks.h (default_goacc_fork_join): Declare.
9965 * omp-low.c (default_goacc_forkjoin): New.
9966 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
9967 * doc/tm.texi: Regenerate.
9969 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9971 * omp-low.c (oacc_init_rediction_array): New.
9972 (oacc_initialize_reduction_data): Initialize array.
9974 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9976 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
9978 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9980 * internal-fn.c (expand_UNIQUE): New.
9981 * internal-fn.h (enum ifn_unique_kind): New.
9982 * internal-fn.def (IFN_UNIQUE): New.
9983 * target-insns.def (unique): Define.
9984 * gimple.h (gimple_call_internal_unique_p): New.
9985 * gimple.c (gimple_call_same_target_p): Check internal fn
9987 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
9988 * tree-ssa-threadedge.c
9989 (record_temporary_equivalences_from_stmts): Likewise.
9990 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
9992 2015-10-27 Richard Henderson <rth@redhat.com>
9995 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
9996 narrowing subregs on SSE and MMX registers.
9997 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
9998 appear to be sub-words of multi-register pseudos must be rejected.
9999 * doc/tm.texi: Regenerate.
10001 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10004 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
10005 operands[0] is a reg before taking its REGNO in split condition.
10006 (*movdi_aarch64): Likewise.
10008 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10010 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
10011 Handle floating point inner modes properly.
10013 2015-10-27 Alan Hayward <alan.hayward@arm.com>
10015 * tree-vect-looop.c
10016 (vectorizable_live_operation): Change iterator.
10018 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
10019 Aditya Kumar <aditya.k7@samsung.com>
10021 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
10022 function to schedule based on isl_schedule_node.
10023 (get_schedule_map_st): New schedule optimizer based on
10025 (scop_get_domains): New. Return the isl_union_set containing the
10026 domains of all the pbbs.
10027 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
10029 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
10032 * calls.c (prepare_call_address): Don't handle -fno-plt here.
10033 * config/i386/i386.c (ix86_expand_call): Generate indirect call
10034 via GOT for -fno-plt. Support indirect call via GOT for x32.
10035 * config/i386/predicates.md (sibcall_memory_operand): Allow
10036 GOT memory operand.
10038 2015-10-27 Richard Biener <rguenther@suse.de>
10040 PR tree-optimization/68104
10041 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
10042 strided access check ...
10043 (vect_compute_data_refs_alignment): ... here.
10045 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
10046 Joseph Myers <joseph@codesourcery.com>
10047 Mark Shinwell <shinwell@codesourcery.com>
10048 Andrew Stubbs <ams@codesourcery.com>
10049 Rich Felker <dalias@libc.org>
10051 * config.gcc: Handle --enable-fdpic.
10052 * config/sh/constraints.md (Ccl): New constraint.
10053 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
10054 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
10056 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
10058 * config/sh/sh-protos.h (function_symbol_result): New struct.
10059 (function_symbol): Return function_symbol_result.
10060 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
10062 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
10064 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
10065 (sh_option_override): Force -fPIC if FDPIC is in effect.
10066 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
10067 UNSPEC_GOTOFFFUNCDESC cases.
10068 (prepare_move_operands): Use FDPIC initial GOT register for
10069 TLS-related GOT access; inhibit cross-section address offset constants
10071 (sh_assemble_integer): New function.
10072 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
10073 PC-relative call sites.
10074 (expand_ashiftrt): Adapt invocation of function_symbol.
10075 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
10076 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
10077 UNSPEC_GOTOFFFUNCDESC.
10078 (legitimize_pic_address): Resolve function symbols to function
10079 descriptors for FDPIC. Do not use GOT-relative addressing for local
10080 data that may be read-only on FDPIC.
10081 (sh_emit_storesi, sh_emit_storehi): New functions.
10082 (sh_trampoline_init): Generate FDPIC trampolines.
10083 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
10084 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
10085 (sh_output_mi_thunk): Generate FDPIC call.
10086 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
10087 FDPIC, generate call site labels to use PC-relative addressing rather
10088 than GOT-relative addressing.
10089 (sh_conditional_register_usage): Make PIC register fixed and call used
10090 when FDPIC is in effect.
10091 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
10092 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
10093 sh_get_fdpic_reg_initial_val): New functions.
10094 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
10096 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
10097 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
10098 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
10099 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
10101 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
10102 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
10103 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
10104 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
10106 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
10107 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
10108 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
10109 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
10110 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
10111 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
10112 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
10113 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
10114 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
10115 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
10116 block_move_real, block_lump_real, block_move_real_i4,
10117 block_lump_real_i4): Add support for FDPIC calls.
10118 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
10119 call_value_pop): Adjust for new function_symbol signature.
10120 * config/sh/sh.opt (-mfdpic): New option.
10121 * doc/install.texi (Options specification): Document --enable-fdpic.
10122 * doc/invoke.texi (SH Options): Document -mfdpic.
10125 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
10127 PR tree-optimization/65963
10128 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
10129 LSHIFT_EXPRs as equivalent MULT_EXPRs.
10131 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10134 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
10135 * config/arm/constraints.md (Dp): Update callsite.
10136 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
10138 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10140 * builtins.c (fold_builtin_load_exponent): Rename to...
10141 (fold_const_builtin_load_exponent): ...this and only handle
10142 constant arguments.
10143 (fold_builtin_2): Update accordingly.
10144 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
10146 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10148 * builtins.c (fold_builtin_logb): Rename to...
10149 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
10150 (fold_builtin_significand): Rename to...
10151 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
10152 (fold_builtin_1): Update accordingly.
10154 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10156 * builtins.c (fold_builtin_fmin_fmax): Delete.
10157 (fold_builtin_2): Handle constant fmin and fmax arguments here.
10158 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
10160 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
10162 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
10163 for register extension into sign and zero register extension.
10164 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
10165 for sign and zero register extension.
10166 (cortexa57_addrcost_table): Likewise.
10167 (xgene1_addrcost_table): Likewise.
10169 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10171 * fold-const.c (fold_minmax): Delete.
10172 (fold_binary_loc): Don't call it.
10173 * match.pd: Add rules previously handled by fold_minmax.
10175 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10177 * builtins.c (fold_builtin_fma): Remove constant handling.
10178 (fold_builtin_3): Handle constant fma arguments here.
10180 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10182 * builtins.c (fold_builtin_fabs): Remove constant handling.
10183 (fold_builtin_abs): Likewise.
10185 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10187 * builtins.c (fold_builtin_copysign): Delete.
10188 (fold_builtin_2): Handle constant copysign arguments here.
10189 * match.pd: Add rules previously handled by fold_builtin_copysign.
10191 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10193 * builtins.c (fold_builtin_signbit): Delete.
10194 (fold_builtin_2): Handle constant signbit arguments here.
10195 * match.pd: Add rules previously handled by fold_builtin_signbit.
10197 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10199 * match.pd: Handle sqrt(x) cmp 0 specially.
10201 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
10203 * tree-vect-generic.c (expand_vector_operations_1): Check
10204 optab type before using it.
10206 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10208 * config/aarch64/aarch64-protos.h
10209 (struct tune_params): Add autoprefetcher_model field.
10210 * config/aarch64/aarch64.c: Include params.h
10211 (generic_tunings): Specify autoprefetcher_model value.
10212 (cortexa53_tunings): Likewise.
10213 (cortexa57_tunings): Likewise.
10214 (cortexa72_tunings): Likewise.
10215 (thunderx_tunings): Likewise.
10216 (xgene1_tunings): Likewise.
10217 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
10218 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
10219 (aarch64_override_options_internal): Set
10220 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
10222 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10224 * builtins.c (fold_builtin_exponent): Delete.
10225 (fold_builtin_2): Handle constant expN arguments here.
10226 * match.pd: Fold expN(logN(x)) -> x.
10228 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10230 * builtins.c (fold_builtin_powi): Delete.
10231 (fold_builtin_2): Handle constant powi arguments here.
10232 * match.pd: Add rules previously handled by fold_builtin_powi.
10234 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10236 * builtins.c (fold_builtin_pow): Delete in favor of...
10237 (fold_const_builtin_pow): ...this new function. Only handle constant
10239 (fold_builtin_2): Update accordingly.
10240 * match.pd: Add rules previously handled by fold_builtin_pow.
10242 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10244 * builtins.c (fold_builtin_hypot): Delete.
10245 (fold_builtin_2): Handle constant hypot arguments here.
10246 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
10247 hypot(x, x) to fabs(x)*sqrt(2).
10249 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10251 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
10252 instead of make_ssa_name if not yet in SSA form.
10254 2015-10-27 Richard Biener <rguenther@suse.de>
10256 * cfg.c (free_edge): Add function argument and use it instead of cfun.
10257 (clear_edges): Likewise.
10258 * cfg.h (clear_edges): Adjust prototype.
10259 * cfgexpand.c (pass_expand::execute): Adjust.
10260 * cfgloop.c (release_recorded_exits): Add function argument and use
10261 it instead of cfun.
10262 * cfgloop.h (release_recorded_exits): Adjust prototype.
10263 (loops_state_satisfies_p): Add overload with function argument.
10264 (loops_state_set): Likewise.
10265 (loops_state_clear): Likewise.
10266 (struct loop_iterator): Add function argument to constructor
10267 and iterator and use it instead of cfun.
10268 (FOR_EACH_LOOP_FN): New macro.
10269 (loop_optimizer_finalize): Add overload with function argument.
10270 * loop-init.c (loop_optimizer_init): Adjust.
10271 (fix_loop_structure): Likewise.
10272 (loop_optimizer_finaliz): Add function argument and use it
10274 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
10275 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
10276 * cgraph.c (release_function_body): Do not push/pop cfun.
10277 * final.c (rest_of_clean_state): Adjust.
10278 * graphite.c (graphite_finalize): Likewise.
10279 * tree-ssa-copy.c (fini_copy_prop): Likewise.
10280 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10281 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
10282 (tree_unroll_loops_completely): Likewise.
10283 (pass_complete_unrolli::execute): Likewise.
10284 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
10285 Add function argument and use it instead of cfun.
10286 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
10288 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
10289 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
10291 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
10292 * tree-ssanames.c (fini_ssanames): Add function argument and use it
10294 * tree-ssanames.c (fini_ssanames): Adjust prototype.
10295 * tree-vrp.c (execute_vrp): Adjust.
10296 * value-prof.c (free_histograms): Add function argument and use it
10298 * value-prof.h (free_histograms): Adjust prototype.
10300 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
10302 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
10303 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
10304 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
10306 2015-10-27 Tom de Vries <tom@codesourcery.com>
10308 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
10311 2015-10-27 Bin Cheng <bin.cheng@arm.com>
10313 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
10314 (inv_can_prop_to_addr_use): New function.
10315 (record_use): Call can_prop_to_addr_uses, set the new field.
10316 (get_inv_cost): Count cost if inv can't be propagated into its
10319 2015-10-26 Doug Evans <dje@google.com>
10321 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
10323 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
10325 * match.pd (fold_widened_comparison): Apply simplifications to all
10328 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
10330 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
10331 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
10332 * doc/tm.texi: Regenerated.
10333 * reorg.c (dbr_schedule): Use new hook.
10334 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
10336 2015-10-26 Jeff Law <law@redhat.com>
10338 PR tree-optimization/68013
10339 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10340 Make sure the first block in the path is in VISITED_BBs.
10342 2015-10-26 Richard Biener <rguenther@suse.de>
10343 Dominik Vogt <vogt@linux.vnet.ibm.com>
10345 PR middle-end/67443
10346 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
10347 Properly prune ref->ref for accesses outside of ref.
10349 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10351 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
10352 new statements to be inserted if inplace. Allow calls to have
10353 nonempty sequences.
10355 2015-10-26 Richard Biener <rguenther@suse.de>
10357 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
10358 (do_valueize): New function.
10359 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
10361 * tree-ssa-threadedge.c: Remove builtins.h include, include
10363 (fold_assignment_stmt): Remove.
10364 (threadedge_valueize): New function.
10365 (record_temporary_equivalences_from_stmts): Use
10366 gimple_fold_stmt_to_constant_1, note additional cleanup
10369 2015-10-26 Richard Biener <rguenther@suse.de>
10371 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
10372 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
10374 2015-10-26 Alan Hayward <alan.hayward@arm.com>
10376 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
10377 VEC_COND_EXPR types.
10379 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10381 * auto-inc-dec.c (insert_move_insn_before): Delete.
10382 (attempt_change): Remember to cost the simple move in the
10383 FORM_PRE_ADD and FORM_POST_ADD cases.
10385 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
10388 * config/sh/sh.c (sh_vector_mode_supported_p): Use
10389 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
10391 2015-10-26 Tom de Vries <tom@codesourcery.com>
10393 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
10394 factored out of ...
10395 (intra_create_variable_infos): ... here.
10397 2015-10-26 Tom de Vries <tom@codesourcery.com>
10399 * tree-ssa-structalias.c (intra_create_variable_infos): Add
10400 restrict_pointer_p and recursive_restrict_p variables.
10402 2015-10-26 Tom de Vries <tom@codesourcery.com>
10404 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
10405 get_vi_for_tree call.
10407 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10409 PR middle-end/67989
10410 * optabs.c (expand_atomic_compare_and_swap): Handle case when
10411 ptarget_oval or ptarget_bool are const0_rtx.
10413 2015-10-26 Christian Bruel <christian.bruel@st.com>
10415 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
10416 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
10417 * cp/method.c (implicitly_declare_fn): Likewise.
10418 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
10419 * java/class.c (add_method_1): Likewise.
10421 2015-10-26 Richard Biener <rguenther@suse.de>
10423 * alloc-pool.h (base_pool_allocator): Use placement new.
10424 (base_pool_allocator::remove): Likewise. Compute size outside of
10427 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10429 * builtins.c (do_real_to_int_conversion): New function.
10430 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
10431 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
10433 * match.pd: Add rules previously handled by fold_fixed_mathfn
10434 and fold_builtin_int_roundingfn.
10436 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10438 * match.pd: Use macros to define built-in operator lists.
10440 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
10441 Richard Biener <rguenther@suse.de>
10443 * genmatch.c (dt_simplify::gen): Skip captures that are
10444 part of the result.
10445 (parser::parse_expr): Allow captures in results too.
10446 * builtins.c (fold_builtin_cexp): Delete.
10447 (fold_builtin_1): Handle constant cexp arguments here.
10448 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
10450 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
10452 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
10453 conditional compilation.
10454 (base_pool_allocator::remove): Use flag_checking.
10456 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
10458 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
10460 PR middle-end/68079
10461 * dojump.c (do_compare_and_jump): Canonicalize both function and
10464 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
10467 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
10470 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10473 * ipa-polymorphic-call.c
10474 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
10475 instance offset with offset of outer type.
10477 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10479 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
10481 2015-10-23 Caroline Tice <cmtice@google.com>
10483 (from Richard Biener
10484 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
10485 call to iterative_hash_host_wide_int.
10487 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10489 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
10492 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10494 * tree-vect-generic.c (expand_vector_operations_1): Check
10495 optab exists before use it.
10497 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10499 * tree-vect-generic.c (expand_vector_condition): Avoid
10500 uninitialized variable warning.
10502 2015-10-23 Jeff Law <law@redhat.com>
10504 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
10506 (execute_todo): Call it here.
10507 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
10509 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
10511 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10512 Szabolcs Nagy <szabolcs.nagy@arm.com>
10514 * config.gcc (enable_secureplt): Add *-linux*-musl*.
10516 2015-10-23 Jeff Law <law@redhat.com>
10518 PR tree-optimization/67830
10519 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10520 Explicitly verify the mask has no bits outside the type of
10521 the innermost operands.
10523 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10524 Szabolcs Nagy <szabolcs.nagy@arm.com>
10526 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10527 (MUSL_DYNAMIC_LINKER64): Define.
10528 (GNU_USER_DYNAMIC_LINKER32): Update.
10529 (GNU_USER_DYNAMIC_LINKER64): Update.
10530 (CHOOSE_DYNAMIC_LINKER): Update.
10532 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
10533 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
10534 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10535 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10536 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10537 (CHOOSE_DYNAMIC_LINKER): Update.
10538 (INCLUDE_DEFAULTS): Redefine.
10540 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
10542 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10544 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
10545 comparing addresses.
10547 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10549 * fold-const.c (operand_equal_p): Handle matching of vector
10552 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10554 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
10556 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
10557 Andrew Pinski <apinski@cavium.com>
10559 PR rtl-optimization/67736
10560 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
10563 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10565 PR middle-end/68066
10566 * tree.c (build_truth_vector_type): Support BLK mode
10567 returned for boolean vector.
10569 2015-10-23 Alan Hayward <alan.hayward@arm.com>
10571 PR tree-optimization/65947
10573 (vect_is_simple_reduction_1): Find condition reductions.
10574 (vect_model_reduction_cost): Add condition reduction costs.
10575 (get_initial_def_for_reduction): Add condition reduction initial var.
10576 (vect_create_epilog_for_reduction): Add condition reduction epilog.
10577 (vectorizable_reduction): Condition reduction support.
10578 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
10579 * doc/sourcebuild.texi (Vector-specific attributes): Document
10582 2015-10-23 Richard Biener <rguenther@suse.de>
10584 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
10587 2015-10-23 Richard Biener <rguenther@suse.de>
10588 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10590 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
10591 into (A ^ B) - B to match.pd
10592 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
10594 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
10596 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
10598 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
10600 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
10602 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
10603 INTEGER_CST@1)): New simplifier.
10605 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
10607 * builtins.c (integer_valued_real_p): Move to fold-const.c.
10608 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
10609 (fold_builtin_ceil, fold_builtin_round): Delete.
10610 (fold_builtin_1): Handle constant trunc, floor, ceil and round
10612 * convert.c (convert_to_real): Remove narrowing of rounding
10614 * fold-const.h (integer_valued_real_unary_p)
10615 (integer_valued_real_binary_p, integer_valued_real_call_p)
10616 (integer_valued_real_single_p, integer_valued_real_p): Declare.
10617 * fold-const.c (tree_single_nonnegative_warnv_p): Move
10618 name_registered_for_update_p check to SSA_NAME case statement.
10619 Don't call tree_simple_nonnegative_warnv_p for SSA names.
10620 (integer_valued_real_unary_p, integer_valued_real_binary_p)
10621 (integer_valued_real_call_p, integer_valued_real_single_p)
10622 (integer_valued_real_invalid_p): New functions.
10623 (integer_valued_real_p): Move from fold-const.c and rework
10624 to call the functions above. Handle SSA names.
10625 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
10626 * gimple-fold.c (gimple_assign_integer_valued_real_p)
10627 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
10628 (gimple_stmt_integer_valued_real_p): New functions.
10629 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
10630 Fold f(x)->x for the same f if x is known to be integer-valued.
10631 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
10632 the result. Canonicalize floor(x) as trunc(x) if x is
10635 2015-10-23 Tom de Vries <tom@codesourcery.com>
10637 * tree-ssa-structalias.c (intra_create_variable_infos): Use
10638 make_constraint_from.
10640 2015-10-23 Tom de Vries <tom@codesourcery.com>
10642 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
10643 setting of is_full_var in case of a single field.
10645 2015-10-22 Martin Sebor <msebor@redhat.com>
10648 * config/i386/i386.opt: Add missing periods to the ends of sentences.
10649 * config/msp430/msp430.opt: Same.
10651 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
10653 * doc/extend.exp (Global Register Variables): Rewrite.
10655 2015-10-22 Jeff Law <law@redhat.com>
10657 * genattrtab.c (main): If we do not have any annul-true or annul-false
10658 slots, then write out a dummy eligible_for_annul_true or
10659 eligible_for_annul_false as needed.
10661 2015-10-22 Nick Clifton <nickc@redhat.com>
10663 * config/msp430/msp430.opt: Add -msilicon-errata and
10664 -msilicon-errata-warn.
10665 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
10667 * doc/invoke.texi: Document new options.
10669 2015-10-22 Richard Biener <rguenther@suse.de>
10671 PR tree-optimization/58497
10672 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
10673 (expand_vector_operations_1): Use it. Lower operations on
10674 all uniform vectors to scalar operations if the HW supports it.
10676 2015-10-22 Richard Biener <rguenther@suse.de>
10678 PR tree-optimization/19049
10679 PR tree-optimization/65962
10680 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
10681 to strided accesses if single-element interleaving doesn't work.
10683 2015-10-22 Richard Biener <rguenther@suse.de>
10685 PR middle-end/68046
10686 PR middle-end/61893
10687 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
10688 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
10689 (expand_unop): Likewise.
10691 2015-10-22 Richard Biener <rguenther@suse.de>
10693 * fold-const.c (fold_addr_of_array_ref_difference): Properly
10694 convert operands before folding a MINUS_EXPR.
10695 (fold_binary_loc): Move simplification of MINUS_EXPR on
10696 converted POINTER_PLUS_EXPRs ...
10697 * match.pd: ... here.
10699 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
10701 * builtins.c (fold_builtin_tan): Delete.
10702 (fold_builtin_1): Handle constant tan arguments here.
10703 * match.pd: Simplify (tan (atan x)) to x.
10705 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
10707 * builtins.c (fold_builtin_cproj): Delete.
10708 (fold_builtin_1): Handle constant arguments here.
10709 (build_complex_cproj): Move and rename to...
10710 * tree.c: (build_complex_inf): ...this.
10711 * tree.h (build_complex_inf): Declare.
10712 * match.pd: Fold cproj(x)->x if x has no infinity.
10713 Use build_complex_inf for existing cproj rules.
10715 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10718 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
10719 already have a comparison result.
10721 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10724 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
10725 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
10726 (aarch64_classify_address): Likewise.
10727 (aarch64_secondary_reload): Likewise.
10728 (aarch64_override_options_after_change_1): Adjust.
10729 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10730 Use aarch64_nopcrelative_literal_loads.
10731 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10732 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
10735 2015-10-21 Martin Sebor <msebor@redhat.com>
10738 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
10739 (print_filtered_help): Reference aliased option's name and encourage
10740 readers to use it in preference to the alias if the former is not
10741 documented. Mention when using an option is diagnosed.
10742 * gcc.c (display_help): End each sentence with a period.
10744 * common.opt: End each sentence that describes an option with
10746 * config/aarch64/aarch64.opt: Same.
10747 * config/alpha/alpha.opt: Same.
10748 * config/arc/arc.opt: Same.
10749 * config/arm/arm.opt: Same.
10750 * config/avr/avr.opt: Same.
10751 * config/bfin/bfin.opt: Same.
10752 * config/c6x/c6x.opt: Same.
10753 * config/cr16/cr16.opt: Same.
10754 * config/cris/cris.opt: Same.
10755 * config/cris/linux.opt: Same.
10756 * config/darwin.opt: Same.
10757 * config/epiphany/epiphany.opt: Same.
10758 * config/fr30/fr30.opt: Same.
10759 * config/frv/frv.opt: Same.
10760 * config/ft32/ft32.opt: Same.
10761 * config/g.opt: Same.
10762 * config/h8300/h8300.opt: Same.
10763 * config/i386/cygming.opt: Same.
10764 * config/i386/djgpp.opt: Same.
10765 * config/i386/i386.opt: Same.
10766 * config/i386/interix.opt: Same.
10767 * config/i386/mingw-w64.opt: Same.
10768 * config/i386/mingw.opt: Same.
10769 * config/ia64/ia64.opt: Same.
10770 * config/ia64/ilp32.opt: Same.
10771 * config/iq2000/iq2000.opt: Same.
10772 * config/linux.opt: Same.
10773 * config/lm32/lm32.opt: Same.
10774 * config/lynx.opt: Same.
10775 * config/m32c/m32c.opt: Same.
10776 * config/m32r/m32r.opt: Same.
10777 * config/m68k/ieee.opt: Same.
10778 * config/m68k/m68k.opt: Same.
10779 * config/mcore/mcore.opt: Same.
10780 * config/mep/mep.opt: Same.
10781 * config/microblaze/microblaze.opt: Same.
10782 * config/mips/mips.opt: Same.
10783 * config/mmix/mmix.opt: Same.
10784 * config/mn10300/mn10300.opt: Same.
10785 * config/moxie/moxie.opt: Same.
10786 * config/msp430/msp430.opt: Same.
10787 * config/nios2/elf.opt: Same.
10788 * config/nios2/nios2.opt: Same.
10789 * config/nvptx/nvptx.opt: Same.
10790 * config/pa/pa-hpux.opt: Same.
10791 * config/pa/pa-hpux1010.opt: Same.
10792 * config/pa/pa-hpux1111.opt: Same.
10793 * config/pa/pa-hpux1131.opt: Same.
10794 * config/pa/pa.opt: Same.
10795 * config/pa/pa64-hpux.opt: Same.
10796 * config/pdp11/pdp11.opt: Same.
10797 * config/rl78/rl78.opt: Same.
10798 * config/rs6000/476.opt: Same.
10799 * config/rs6000/aix64.opt: Same.
10800 * config/rs6000/darwin.opt: Same.
10801 * config/rs6000/linux64.opt: Same.
10802 * config/rs6000/rs6000.opt: Same.
10803 * config/rs6000/sysv4.opt: Same.
10804 * config/s390/s390.opt: Same.
10805 * config/s390/tpf.opt: Same.
10806 * config/sh/sh.opt: Same.
10807 * config/sol2.opt: Same.
10808 * config/sparc/long-double-switch.opt: Same.
10809 * config/sparc/sparc.opt: Same.
10810 * config/spu/spu.opt: Same.
10811 * config/stormy16/stormy16.opt: Same.
10812 * config/tilegx/tilegx.opt: Same.
10813 * config/tilepro/tilepro.opt: Same.
10814 * config/v850/v850.opt: Same.
10815 * config/vax/vax.opt: Same.
10816 * config/visium/visium.opt: Same.
10817 * config/vms/vms.opt: Same.
10818 * config/vxworks.opt: Same.
10819 * config/xtensa/xtensa.opt: Same.
10821 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10822 Sebastian Pop <s.pop@samsung.com>
10824 * graphite-scop-detection.c (parameter_index_in_region): Update call to
10825 invariant_in_sese_p_rec.
10826 * graphite-sese-to-poly.c (extract_affine): Same.
10827 * sese.c (invariant_in_sese_p_rec): Pass in an extra
10828 parameter has_vdefs.
10829 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
10830 variable depends on virtual definitions in the current region.
10831 * sese.h (invariant_in_sese_p_rec): Update declaration.
10833 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10834 Sebastian Pop <s.pop@samsung.com>
10836 * graphite-scop-detection.c (build_scops): Do not handle scops
10837 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
10838 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
10840 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
10842 * config.in: Regenerate.
10843 * configure: Regenerate.
10844 * configure.ac (CHECKING_P): Define.
10845 * system.h: Use CHECKING_P.
10847 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10850 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
10851 is negative we don't know the type.
10852 (check_stmt_for_type_change): Skip constructors of non-polymorphic
10853 types as those won't help devirutalization.
10855 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10857 * fold-const.c (operand_equal_p): Add code matching empty constructors.
10859 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
10861 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
10863 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
10864 Add comments on sign of the result.
10865 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
10866 Recurse on operand #1 instead of operand #0.
10867 <CEIL_MOD_EXPR>: Do not recurse.
10868 <ROUND_MOD_EXPR>: Likewise.
10870 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10872 * cfgrtl.c (pass_free_cfg::execute): Adjust.
10873 * final.c (dbr_sequence_length): Always define.
10874 (shorten_branches): Adjust.
10875 * genattr-common.c (main): Always define DELAY_SLOTS.
10876 * genattr.c (main): Unconditionally declare functions and define
10877 macros related to delay slots.
10878 * genattrtab.c (write_eligible_delay): Adjust.
10879 (main): Always write out delay slot functions.
10880 * opts.c (default_options_table): Adjust.
10881 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
10882 (redirect_with_delay_list_safe_p): Likewise.
10883 (fill_simple_delay_slots): Likewise.
10884 (fill_slots_from_thread): Likewise.
10885 (make_return_insns): Likewise.
10886 (dbr_schedule): Likewise.
10887 (rest_of_handle_delay_slots): Likewise.
10888 (pass_delay_slots::gate): Likewise.
10889 * toplev.c (process_options): Likewise.
10891 2015-10-21 Richard Henderson <rth@redhat.com>
10893 * targhooks.c (default_addr_space_pointer_mode): Remove check
10894 for generic address space.
10895 (default_addr_space_address_mode): Likewise.
10896 (default_addr_space_valid_pointer_mode): Likewise.
10897 (default_addr_space_legitimate_address_p): Likewise.
10898 (default_addr_space_legitimize_address): Likewise.
10899 * target.def (addr_space.pointer_mode): Update documentation
10900 of default behavior.
10901 (addr_space.address_mode): Likewise.
10904 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
10907 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10909 * builtins.c (fold_builtin_cabs): Delete.
10910 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10911 * match.pd: Add rules previously handled by fold_builtin_cabs.
10913 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10915 * fold-const.h (fold_strip_sign_ops): Delete.
10916 * fold-const.c (fold_strip_sign_ops): Likewise.
10917 (fold_unary_loc, fold_binary_loc): Remove calls to it.
10918 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
10919 (fold_builtin_ccos): Delete.
10920 (fold_builtin_pow): Don't call fold_strip_sign_ops.
10921 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
10922 Remove fndecl argument.
10923 (fold_builtin_1): Update calls accordingly. Handle constant
10924 cos, cosh, ccos and ccosh here.
10926 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10928 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
10929 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
10930 * common.opt (fssa-backprop): New option.
10931 * fold-const.h (negate_mathfn_p): Declare.
10932 * fold-const.c (negate_mathfn_p): Make public.
10933 * timevar.def (TV_TREE_BACKPROP): New.
10934 * tree-pass.h (make_pass_backprop): Declare.
10935 * passes.def (pass_backprop): Add.
10936 * gimple-ssa-backprop.c: New file.
10938 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10939 Sebastian Pop <s.pop@samsung.com>
10941 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
10942 Do not call create_empty_if_region_on_edge when cond_expr is true.
10943 (translate_isl_ast_node_for): Check whether a guard has been generated.
10945 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10947 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
10948 (operator=): Removed.
10949 (dr_info): Make alias_set number the last argument with default
10950 value of invalid_alias_set.
10951 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
10953 (rewrite_reductions_out_of_ssa): Iterate only through the
10954 basic blocks which are inside region.
10955 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
10956 * sese.h (struct sese_l): Removed assignment operator.
10957 (split_region_for_bb): Removed dead code.
10959 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10961 * graphite-poly.h (struct dr_info): Removed conversion constructor.
10962 (struct scop): Renamed scop::region to scop::scop_info
10963 (scop_set_region): Same.
10964 (SCOP_REGION): Removed
10965 (SCOP_CONTEXT): Removed.
10966 (POLY_SCOP_P): Removed.
10967 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
10968 Rename scop->region to scop->scop_info.
10969 (add_parameters_to_ivs_params): Same.
10970 (graphite_regenerate_ast_isl): Same.
10971 * graphite-poly.c (new_scop): Same.
10973 (print_scop_params): Same.
10974 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
10975 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
10976 (dot_all_scops_1): Rename scop->region to scop->scop_info.
10977 (scop_detection::nb_pbbs_in_loops): Same.
10978 (find_scop_parameters): Same.
10979 (try_generate_gimple_bb): Same.
10980 (gather_bbs::before_dom_children): Same.
10981 (gather_bbs::after_dom_children): Same.
10982 (build_scops): Same.
10983 * graphite-sese-to-poly.c (build_scop_scattering): Same.
10984 (extract_affine_chrec): Same.
10985 (extract_affine): Same.
10986 (set_scop_parameter_dim): Same.
10987 (build_loop_iteration_domains): Same.
10988 (create_pw_aff_from_tree): Same.
10989 (add_param_constraints): Same.
10990 (build_scop_iteration_domain): Same.
10991 (build_scop_drs): Same.
10992 (analyze_drs_in_stmts): Same.
10993 (insert_out_of_ssa_copy_on_edge): Same.
10994 (rewrite_close_phi_out_of_ssa):Same.
10995 (rewrite_reductions_out_of_ssa):Same.
10996 (handle_scalar_deps_crossing_scop_limits):Same.
10997 (rewrite_cross_bb_scalar_deps):Same.
10998 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
10999 (build_poly_scop):Same.
11000 (build_alias_set): Use pointer to dr_info.
11001 * graphite.c (print_graphite_scop_statistics):
11002 (graphite_transform_loops):
11003 * sese.h (struct sese_l): Remove conversion constructor.
11005 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11007 PR middle-end/67966
11008 * tree.c (verify_type): Verify that TYPE_MODE match
11009 between TYPE_CANONICAL and type.
11010 * expr.c (store_expr_with_bounds): Revert my previous change.
11011 * expmed.c (store_bit_field_1): Revert prevoius change.
11012 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
11013 to match for all types.
11015 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
11017 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
11020 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11022 * doc/tm.texi: Regenerated.
11023 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
11024 * stor-layout.c (layout_type): Use mode to get vector mask size.
11025 * target.def (get_mask_mode): New.
11026 * targhooks.c (default_get_mask_mode): New.
11027 * targhooks.h (default_get_mask_mode): New.
11028 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
11029 for boolean vector.
11030 * tree.c (MAX_BOOL_CACHED_PREC): New.
11031 (nonstandard_boolean_type_cache): New.
11032 (build_nonstandard_boolean_type): New.
11033 (make_vector_type): Vector mask has no canonical type.
11034 (build_truth_vector_type): New.
11035 (build_same_sized_truth_vector_type): New.
11036 (truth_type_for): Support vector masks.
11037 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
11038 (build_truth_vector_type): New.
11039 (build_same_sized_truth_vector_type): New.
11040 (build_nonstandard_boolean_type): New.
11041 * tree-cfg.c (verify_gimple_comparison) Require boolean
11042 vector type for vector comparison.
11043 (verify_gimple_assign_ternary): Likewise.
11044 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
11046 * tree-vect-stmts.c (vectorizable_condition): Use boolean
11047 vector type for vector comparison.
11048 * tree-vect-generic.c (elem_op_func): Add new operand to hold
11050 (do_unop): Adjust to modified function type.
11051 (do_binop): Likewise.
11052 (do_plus_minus): Likewise.
11053 (do_negate); Likewise.
11054 (expand_vector_piecewise): Likewise.
11055 (do_cond): Likewise.
11056 (do_compare): Use comparison instead of condition.
11057 (expand_vector_divmod): Use boolean vector type for comparison.
11058 (expand_vector_operations_1): Skip scalar mask operations.
11060 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11062 * omp-low.c (simd_clone_create): Set in_other_partition
11063 for created clones.
11065 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
11067 * doc/extend.exp (Local Register Variables): Rewrite.
11069 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11071 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
11072 and x*x in cases where the operands are sign ops. Extend these
11073 rules to handle copysign as a sign op (including for cos, cosh
11074 and pow, which already treated negate and abs as sign ops).
11076 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
11079 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
11080 for 64-bit MS_ABI targets also when default incoming stack boundary
11083 2015-10-21 Richard Biener <rguenther@suse.de>
11085 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
11086 cond stmts, enhanced and split out from ...
11087 (vn_phi_eq): ... here.
11089 2015-10-21 Richard Biener <rguenther@suse.de>
11091 PR middle-end/68031
11092 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
11093 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
11094 (tree_single_nonnegative_warnv_p): ... here. For SSA names
11095 make sure they are not registered for update.
11097 2015-10-21 Richard Biener <rguenther@suse.de>
11099 PR tree-optimization/68026
11100 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
11101 unsigned VARYING values.
11103 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
11105 * asan.c (asan_emit_stack_protection): Don't pass local stack to
11106 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
11107 NULL and use local stack than.
11108 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
11109 in addition to __asan_init.
11110 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
11111 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
11112 * asan.h (asan_intercepted_p): Handle new string builtins.
11113 * ubsan.c (ubsan_use_new_style_p): New function.
11114 (ubsan_instrument_float_cast): If location is unknown, assign
11115 input_location to loc. Propagate loc to ubsan_create_data if
11116 ubsan_use_new_style_p returned true.
11118 2015-10-21 Jeff Law <law@redhat.com>
11120 * Makefile.in (OBJS): Remove sched-vis.c
11121 * sched-vis.c: Removed. Code moved into...
11122 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
11123 * rtl.h: Remove prototypes for functions now living in print-rtl.c
11124 * print-rtl.h Add prototypes for new functions in print-rtl.c.
11125 * auto-inc-dec.c: Include print-rtl.h
11126 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
11127 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
11129 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
11132 2015-10-21 Richard Biener <rguenther@suse.de>
11133 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11135 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
11137 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
11138 about signed left shift stronger and clarify the cases when they're
11140 Move (a * (1 << b)) is (a << b) to match.pd.
11141 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
11142 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
11143 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
11145 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
11147 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
11148 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
11149 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
11151 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
11153 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
11155 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
11156 Szabolcs Nagy <szabolcs.nagy@arm.com>
11157 Alan Modra <amodra@gmail.com>
11159 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
11160 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
11161 (LINK_SPEC): Add %(link_secure_plt).
11162 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
11163 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
11165 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
11166 Szabolcs Nagy <szabolcs.nagy@arm.com>
11168 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
11169 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
11171 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11173 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
11175 (fusion_load_store): Use it.
11176 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
11177 ldp and stp in VD modes.
11178 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
11179 (store_pair<mode>, VD): Likewise.
11181 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
11183 PR rtl-optimization/67609
11184 * lra-splill.c (lra_final_code_change): Don't remove all
11187 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11189 * simplify-rtx.c (simplify_binary_operation): If either operand was
11190 a constant pool reference use them if all other simplifications failed.
11192 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11194 * config/aarch64/aarch64.md
11195 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
11196 * config/aarch64/aarch64-simd.md
11197 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
11198 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
11199 (aarch64_fpconst_pow_of_2): New function.
11200 (aarch64_vec_fpconst_pow_of_2): Likewise.
11201 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
11203 (aarch64_vec_fpconst_pow_of_2): Likewise.
11204 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
11205 (aarch64_fp_vec_pow2): Likewise.
11207 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
11209 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
11210 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
11211 * config/alpha/alpha.c (alpha_function_arg_advance): Update
11212 ALPHA_ARG_SIZE usage.
11213 (alpha_arg_partial_bytes): Ditto.
11215 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11218 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
11219 error_mark_node decls.
11221 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11225 * common/config/i386/i386-common.c (ix86_handle_option): Remove
11226 OPT_miamcu handling.
11227 * config/i386/i386.c (PTA_NO_80387): New macro.
11228 (processor_alias_table): Add PTA_NO_80387 to lakemont.
11229 (ix86_option_override_internal): Update MASK_80387 from
11230 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
11231 SSE math only if 80387 is supported. Don't change
11232 MASK_FLOAT_RETURNS.
11233 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
11234 80387 is supported.
11235 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
11236 if TARGET_80387 is true and TARGET_IAMCU is false.
11237 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
11238 is true and TARGET_IAMCU_P is false.
11240 2015-10-20 Richard Biener <rguenther@suse.de>
11242 PR tree-optimization/68017
11243 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
11245 2015-10-20 Martin Liska <mliska@suse.cz>
11247 * cgraphclones.c (cgraph_node::create_virtual_clone):
11248 Verify cgraph_node.local.versionable instead of calling
11249 tree_versionable_function_p.
11250 * ipa-cp.c (determine_versionability): Save the information
11251 to ipa_node_params summary.
11252 (ipcp_versionable_function_p): Use it.
11253 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
11254 (ipcp_generate_summary): Do not compute cgraph_node
11256 * ipa-inline-analysis.c (inline_generate_summary): Compute
11257 versionability for all cgraph nodes.
11258 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
11259 ipa_node_params::versionability.
11260 * ipa-prop.h (struct ipa_node_params): Declare it.
11262 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11265 * varasm.c (assemble_variable): Move special vtv handling to..
11266 (handle_vtv_comdat_sections): .. here. New function.
11267 (output_object_block): Handle vtv sections.
11269 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
11272 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
11274 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
11276 * doc/extend.texi: Update documentation WRT inline functions.
11278 2015-10-20 Alan Modra <amodra@gmail.com>
11281 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
11282 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11283 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11285 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
11287 PR rtl-optimization/66790
11288 * df.h (DF_MIR): New macro.
11289 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
11290 (DF_MIR_INFO_BB): New macro.
11291 (DF_MIR_IN, DF_MIR_OUT): New macros.
11292 (struct df_mir_bb_info): New.
11293 (df_mir): New macro.
11294 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
11296 (df_mir_get_bb_info): New.
11297 * df-problems.c (struct df_mir_problem_data): New.
11298 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
11299 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
11300 df_mir_confluence_0, df_mir_confluence_n,
11301 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
11302 df_mir_bottom_dump, df_mir_verify_solution_start,
11303 df_mir_verify_solution_end): New.
11304 (problem_MIR): New.
11305 (df_mir_add_problem, df_mir_simulate_one_insn): New.
11306 * timevar.def (TV_DF_MIR): New.
11307 * ree.c: Include bitmap.h
11308 (add_removable_extension): Add an INIT_REGS parameter. Use it
11309 to skip zero-extensions that may get an uninitialized register.
11310 (find_removable_extensions): Compute must-initialized registers
11311 using the MIR dataflow problem. Update the call to
11312 add_removable_extension.
11313 (find_and_remove_re): Call df_mir_add_problem.
11315 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
11317 * common/config/mn10300/mn10300-common.c
11318 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
11319 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
11321 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
11323 * doc/extend.texi (Explicit Register Variables): Simplify and
11324 avoid unnecessary and confusion abbreviations. Update cross
11326 doc/implement-c.tex: Update cross reference.
11328 2015-10-19 Jeff Law <law@redhat.com>
11330 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
11331 that create irreducible loops unless the path elimiantes a multiway
11334 2015-10-19 Richard Biener <rguenther@suse.de>
11336 PR tree-optimization/67975
11337 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
11338 * tree-cfg.c (extract_true_false_controlled_edges): Split out
11339 core worker from ...
11340 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
11341 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
11342 instead of block number for PHIs with two or one args.
11343 (vn_phi_eq): Compare edge predicates of PHIs that are in different
11346 2015-10-19 Richard Biener <rguenther@suse.de>
11348 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
11349 (gimple_stmt_nonnegative_warnv_p): Use it.
11350 * match.pd (CPROJ): New operator list.
11351 (cproj (complex ...)): Move simplifications from ...
11352 * builtins.c (fold_builtin_cproj): ... here.
11354 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11356 * config/i386/i386.c (ix86_expand_vector_move): Use
11357 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
11360 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11362 * doc/invoke.texi: Replace @optindex with @opindex.
11364 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11367 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
11368 arch= is set, clear all bits in x_ix86_isa_flags, except for
11369 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
11371 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
11373 PR middle-end/68002
11374 * common.opt (fkeep-static-functions): New option.
11375 * doc/invoke.texi: Document it.
11376 * cgraphunit.c (cgraph_node::finalize_function): Use it.
11378 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11380 * sched-int.h (struct autopref_multipass_data_): Remove offset
11381 field. Add min_offset, max_offset, multi_mem_insn_p fields.
11382 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
11383 (autopref_multipass_init): Use it. Handle PARALLEL sets.
11384 (autopref_rank_data): New function.
11385 (autopref_rank_for_schedule): Use it.
11386 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
11388 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
11391 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
11393 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11395 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
11396 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
11397 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
11398 (STANDARD_STARTFILE_PREFIX_1): New.
11399 (STANDARD_STARTFILE_PREFIX_2): New.
11401 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11403 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
11404 (darwin_driver_init): Note a version-min when provided on the c/l.
11405 * config/darwin.h (%darwin_minversion): Remove.
11406 * config/i386/darwin.h: Likewise.
11407 * config/rs6000/darwin.h: Likewise.
11408 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
11409 rather than an arbitrary constant.
11411 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11413 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
11414 PPC, detect conflicts between -arch and multilib settings. Detect
11415 and warn about conflicts between multiple -arch definitions.
11417 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11419 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
11421 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11423 * lra-constraints.c (add_next_usage_insn): Change argument type
11424 from rtx to rtx_insn *.
11426 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
11428 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
11431 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
11433 * config/tilepro/gen-mul-tables.cc: Adjust include files.
11434 * config/tilegx/mul-tables.c: Regenerate.
11435 * config/tilepro/mul-tables.c: Regenerate.
11437 * config/tilegx/tilegx-c.c: Adjust include files.
11438 * config/tilegx/tilegx.c: Likewise.
11439 * config/tilepro/tilepro-c.c: Likewise.
11440 * config/tilepro/tilepro.c: Likewise.
11441 * config/aarch64/aarch64-builtins.c: Likewise.
11442 * config/aarch64/aarch64.c: Likewise.
11443 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11444 * config/alpha/alpha.c: Likewise.
11445 * config/arc/arc.c: Likewise.
11446 * config/arm/aarch-common.c: Likewise.
11447 * config/arm/arm-builtins.c: Likewise.
11448 * config/arm/arm-c.c: Likewise.
11449 * config/arm/arm.c: Likewise.
11450 * config/avr/avr-c.c: Likewise.
11451 * config/avr/avr-devices.c: Likewise.
11452 * config/avr/avr-log.c: Likewise.
11453 * config/avr/avr.c: Likewise.
11454 * config/bfin/bfin.c: Likewise.
11455 * config/c6x/c6x.c: Likewise.
11456 * config/cr16/cr16.c: Likewise.
11457 * config/cris/cris.c: Likewise.
11458 * config/darwin-c.c: Likewise.
11459 * config/darwin-driver.c: Likewise.
11460 * config/darwin.c: Likewise.
11461 * config/default-c.c: Likewise.
11462 * config/epiphany/epiphany.c: Likewise.
11463 * config/epiphany/mode-switch-use.c: Likewise.
11464 * config/epiphany/resolve-sw-modes.c: Likewise.
11465 * config/fr30/fr30.c: Likewise.
11466 * config/frv/frv.c: Likewise.
11467 * config/ft32/ft32.c: Likewise.
11468 * config/glibc-c.c: Likewise.
11469 * config/h8300/h8300.c: Likewise.
11470 * config/i386/host-cygwin.c: Likewise.
11471 * config/i386/host-mingw32.c: Likewise.
11472 * config/i386/i386-c.c: Likewise.
11473 * config/i386/i386.c: Likewise.
11474 * config/i386/msformat-c.c: Likewise.
11475 * config/i386/winnt-cxx.c: Likewise.
11476 * config/i386/winnt-stubs.c: Likewise.
11477 * config/i386/winnt.c: Likewise.
11478 * config/ia64/ia64-c.c: Likewise.
11479 * config/ia64/ia64.c: Likewise.
11480 * config/iq2000/iq2000.c: Likewise.
11481 * config/lm32/lm32.c: Likewise.
11482 * config/m32c/m32c-pragma.c: Likewise.
11483 * config/m32c/m32c.c: Likewise.
11484 * config/m32r/m32r.c: Likewise.
11485 * config/mcore/mcore.c: Likewise.
11486 * config/mep/mep-pragma.c: Likewise.
11487 * config/mep/mep.c: Likewise.
11488 * config/microblaze/microblaze-c.c: Likewise.
11489 * config/microblaze/microblaze.c: Likewise.
11490 * config/mips/mips-tables.opt
11491 * config/mips/mips.c: Likewise.
11492 * config/mmix/mmix.c: Likewise.
11493 * config/mn10300/mn10300.c: Likewise.
11494 * config/moxie/moxie.c: Likewise.
11495 * config/msp430/msp430-c.c: Likewise.
11496 * config/msp430/msp430.c: Likewise.
11497 * config/nds32/nds32-cost.c: Likewise.
11498 * config/nds32/nds32-fp-as-gp.c: Likewise.
11499 * config/nds32/nds32-intrinsic.c: Likewise.
11500 * config/nds32/nds32-isr.c: Likewise.
11501 * config/nds32/nds32-md-auxiliary.c: Likewise.
11502 * config/nds32/nds32-memory-manipulation.c: Likewise.
11503 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11504 * config/nds32/nds32-predicates.c: Likewise.
11505 * config/nds32/nds32.c: Likewise.
11506 * config/nios2/nios2.c: Likewise.
11507 * config/nvptx/mkoffload.c: Likewise.
11508 * config/nvptx/nvptx.c: Likewise.
11509 * config/pa/pa.c: Likewise.
11510 * config/pdp11/pdp11.c: Likewise.
11511 * config/rl78/rl78-c.c: Likewise.
11512 * config/rl78/rl78.c: Likewise.
11513 * config/rs6000/host-darwin.c: Likewise.
11514 * config/rs6000/rs6000-c.c: Likewise.
11515 * config/rs6000/rs6000-linux.c: Likewise.
11516 * config/rs6000/rs6000.c: Likewise.
11517 * config/rx/rx.c: Likewise.
11518 * config/s390/s390-c.c: Likewise.
11519 * config/s390/s390.c: Likewise.
11520 * config/sh/sh-c.c: Likewise.
11521 * config/sh/sh-mem.cc: Likewise.
11522 * config/sh/sh.c: Likewise.
11523 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11524 * config/sh/sh_treg_combine.cc: Likewise.
11525 * config/sol2-c.c: Likewise.
11526 * config/sol2-cxx.c: Likewise.
11527 * config/sol2-stubs.c: Likewise.
11528 * config/sol2.c: Likewise.
11529 * config/sparc/sparc-c.c: Likewise.
11530 * config/sparc/sparc.c: Likewise.
11531 * config/spu/spu-c.c: Likewise.
11532 * config/spu/spu.c: Likewise.
11533 * config/stormy16/stormy16.c: Likewise.
11534 * config/v850/v850-c.c: Likewise.
11535 * config/v850/v850.c: Likewise.
11536 * config/vax/vax.c: Likewise.
11537 * config/visium/visium.c: Likewise.
11538 * config/vms/vms-c.c: Likewise.
11539 * config/vms/vms.c: Likewise.
11540 * config/vxworks.c: Likewise.
11541 * config/winnt-c.c: Likewise.
11542 * config/xtensa/xtensa.c: Likewise.
11544 2015-10-16 Christian Bruel <christian.bruel@st.com>
11547 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
11548 (FUNCTION_BOUNDARY_P): New macro:
11549 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
11551 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
11552 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
11553 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
11554 * function.c (allocate_struct_function): Call
11555 relayout_function hook.
11556 * passes.c (rest_of_decl_compilation): Likewise.
11558 2015-10-16 Christian Bruel <christian.bruel@st.com>
11561 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
11562 * config/arm/arm.c (arm_option_override_internal): Call
11563 arm_override_options_after_change_1.
11564 (arm_override_options_after_change): New function.
11565 (arm_override_options_after_change_1): Likewise.
11566 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
11568 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11571 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11572 empty constructors.
11574 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
11576 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
11577 argument is an ADDR_EXPR.
11579 2015-10-16 Richard Biener <rguenther@suse.de>
11581 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
11582 and get rid of force_gimple_operand_gsi.
11583 (gimple_fold_builtin_memory_chk): Likewise.
11584 (gimple_fold_builtin_stxcpy_chk): Likewise.
11585 (rewrite_to_defined_overflow): Likewise.
11586 (gimple_convert_to_ptrofftype): New function.
11587 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
11589 2015-10-16 Richard Biener <rguenther@suse.de>
11591 * tree-nested.h (build_addr): Adjust prototype.
11592 * tree-nested.c (build_addr): Remove context argument and use
11594 (get_static_chain): Adjust calls to build_addr.
11595 (convert_nl_goto_reference): Likewise.
11596 (convert_tramp_reference_op): Likewise.
11597 (finalize_nesting_tree_1): Likewise.
11598 * value-prof.c (gimple_ic): Likewise.
11599 * gimple-low.c (lower_builtin_setjmp): Likewise.
11600 * tree-parloops.c (take_address_of): Likewise.
11601 (create_call_for_reduction_1): Likewise.
11602 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
11603 (gimple_gen_ic_func_profiler): Likewise.
11605 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11607 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11608 empty constructors.
11610 2015-10-16 Michael Collison <michael.collison@linaro.org>
11611 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11613 * match.pd ((x < y) && (x < z) -> x < min (y,z),
11614 (x > y) and (x > z) -> x > max (y,z))
11616 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
11617 Szabolcs Nagy <szabolcs.nagy@arm.com>
11619 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
11620 (DYNAMIC_LINKER): Renamed to ...
11621 (GLIBC_DYNAMIC_LINKER): This.
11622 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
11624 2015-10-15 Marek Polacek <polacek@redhat.com>
11626 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
11627 gimple_call_builtin instead of is_gimple_call.
11629 2015-10-15 Richard Biener <rguenther@suse.de>
11631 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
11633 2015-10-15 Richard Biener <rguenther@suse.de>
11635 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
11636 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
11637 * tree-vect-loop.c (get_initial_def_for_induction): Drop
11638 use of force_gimple_operand in favor of gimple_build.
11639 Use vect_get_new_ssa_name.
11640 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
11641 (vectorizable_mask_load_store): Likewise.
11642 (vectorizable_call): Likewise.
11643 (vectorizable_store): Likewise.
11644 (vectorizable_load): Likewise.
11645 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
11647 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
11649 PR tree-optimization/67945
11650 * tree-pass.h (PROP_gimple_opt_math): New property flag.
11651 * generic-match-head.c (canonicalize_math_p): New function.
11652 * gimple-match-head.c: Include tree-pass.h.
11653 (canonicalize_math_p): New function.
11654 * match.pd: Group math built-in rules into simplifications
11655 and canonicalizations. Guard the latter with canonicalize_math_p.
11656 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
11657 PROP_gimple_opt_math property.
11659 2015-10-15 Marek Polacek <polacek@redhat.com>
11661 PR tree-optimization/67953
11662 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
11664 2015-10-15 Jiong Wang <jiong.wang@arm.com>
11666 * config.gcc: Recognize "." in architecture base name for AArch64.
11668 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
11670 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
11672 * config/mips/mips.c (mips_setup_incoming_varargs): Use
11673 ROUND_DOWN to calculate off.
11674 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
11675 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
11678 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
11680 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
11682 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
11683 Torvald Riegel <triegel@redhat.com>
11686 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
11687 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11688 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
11689 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
11690 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
11691 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
11692 trechkpt, treclaim, tsr, ttest): New define_expands.
11693 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
11694 __TM_FENCE__ for htm.
11695 * doc/extend.texi: Update documentation for htm builtins.
11697 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
11700 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
11701 REG_CFA_EXPRESSION to aligned SSE stores.
11703 2015-10-14 Jeff Law <law@redhat.com>
11705 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
11706 num_threaded_edges for successful FSM threads too.
11708 2015-10-14 Richard Biener <rguenther@suse.de>
11710 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
11711 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
11712 (vect_get_vec_def_for_operand): Remove unused parameter.
11713 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
11714 (vect_create_epilog_for_reduction): Likewise.
11715 (vectorizable_reduction): Likewise.
11716 (vectorizable_live_operation): Likewise.
11717 * tree-vect-patterns.c (type_conversion_p): Likewise.
11718 (vect_recog_vector_vector_shift_pattern): Likewise.
11719 (check_bool_pattern): Likewise.
11720 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
11721 (vect_analyze_slp_cost_1): Likewise.
11722 * tree-vect-stmts.c (process_use): Likewise.
11723 (vect_get_vec_def_for_operand): Do not handle reductions.
11724 (vect_get_vec_defs): Adjust.
11725 (vectorizable_mask_load_store): Likewise.
11726 (vectorizable_call): Likewise.
11727 (vectorizable_simd_clone_call): Likewise.
11728 (vect_get_loop_based_defs): Likewise.
11729 (vectorizable_conversion): Likewise.
11730 (vectorizable_assignment): Likewise.
11731 (vectorizable_shift): Likewise.
11732 (vectorizable_operation): Likewise.
11733 (vectorizable_store): Likewise.
11734 (vectorizable_load): Likewise.
11735 (vect_is_simple_cond): Likewise.
11736 (vectorizable_condition): Likewise.
11737 (vect_is_simple_use): Remove unused parameters.
11738 (vect_is_simple_use_1): Adjust and rename.
11740 2015-10-14 Richard Biener <rguenther@suse.de>
11742 PR tree-optimization/67915
11743 * match.pd: Handle comparisons of addresses of STRING_CSTs.
11744 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
11745 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
11746 stmt folding in favor of GIMPLE one.
11748 2015-10-14 Marek Polacek <polacek@redhat.com>
11750 PR tree-optimization/67815
11751 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
11752 (reassociate_bb): Call it.
11754 2015-10-14 Richard Biener <rguenther@suse.de>
11756 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11757 Reset info at start.
11758 (vect_analyze_group_access_1): Add debug print.
11759 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
11760 (vect_compute_single_scalar_iteration_cost): ... to this.
11761 (vect_analyze_loop_2): Adjust.
11762 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
11763 * tree-vectorizer.h: ... here.
11764 (add_stmt_info_to_vec): Remove.
11765 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
11767 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
11769 * targhooks.c (default_target_option_pragma_parse): Do not warn if
11770 called on behalf of "#pragma GCC pop_options".
11772 2015-10-14 Tom de Vries <tom@codesourcery.com>
11774 * cfganal.c (verify_no_unreachable_blocks): New function.
11775 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
11776 verify_no_unreachable_blocks.
11777 cfganal.h (verify_no_unreachable_blocks): Declare.
11779 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
11781 * common.opt: Add flag_checking.
11782 * system.h (CHECKING_P): Define.
11784 2015-10-13 Jakub Jelinek <jakub@redhat.com>
11785 Aldy Hernandez <aldyh@redhat.com>
11786 Ilya Verbin <ilya.verbin@intel.com>
11788 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
11789 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
11790 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
11791 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
11792 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
11793 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
11794 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
11795 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
11796 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
11797 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
11798 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11799 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11800 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
11801 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
11802 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
11803 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
11804 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
11805 (struct cgraph_simd_clone_arg): Adjust comment.
11806 * coretypes.h (struct gomp_ordered): New forward decl.
11807 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
11808 set critical clauses to it.
11809 (gimple_build_omp_ordered): Return gomp_ordered * instead of
11810 gimple *. Add CLAUSES argument, set ordered clauses to it.
11811 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
11812 GIMPLE_OMP_ORDERED.
11813 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
11814 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
11815 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
11816 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
11817 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
11818 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
11819 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
11820 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
11822 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
11823 (gomp_critical): Add clauses field.
11824 (gomp_ordered): New struct.
11825 (is_a_helper <gomp_ordered *>::test): New inline.
11826 (gimple_build_omp_critical): Add CLAUSES argument.
11827 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
11828 instead of gimple *.
11829 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
11830 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
11831 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
11832 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
11834 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
11835 (dump_gimple_omp_target): Handle enter data and exit data.
11836 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
11837 (dump_gimple_omp_critical): Print clauses.
11838 (dump_gimple_omp_ordered): New function.
11839 (dump_gimple_omp_task): Handle taskloop.
11840 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
11841 GIMPLE_OMP_ORDERED.
11842 * gimple-walk.c (walk_gimple_op): Walk clauses on
11843 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
11844 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
11845 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
11846 (struct gimplify_omp_ctx): Add loop_iter_var,
11847 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
11848 and target_firstprivatize_array_bases fields.
11849 (delete_omp_context): Release loop_iter_var.
11850 (gimplify_bind_expr): Handle ORT_NONE.
11851 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
11852 ORT_COMBINED_TARGET.
11853 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
11854 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
11855 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
11856 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
11857 ctx->target_map_scalars_firstprivate.
11858 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
11859 data sharing clauses. For data sharing clause with VLA decl
11860 on omp target/target data don't add firstprivate for the pointer.
11861 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
11862 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
11863 the addition of ORT_COMBINED_TARGET.
11864 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
11865 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
11866 pointers as zero length array sections and
11867 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
11869 (omp_check_private): Handle omp_member_access_dummy_var vars.
11870 (find_decl_expr): New function.
11871 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
11872 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
11873 Handle OMP_CLAUSE_GANG separately. Handle
11874 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11875 clauses. Diagnose linear clause on combined
11876 distribute {, parallel for} simd construct, unless it is the loop
11877 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
11878 Handle map clauses with COMPONENT_REF. Initialize
11879 ctx->target_map_scalars_firstprivate,
11880 ctx->target_firstprivatize_array_bases and
11881 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
11882 linear clause even to target region if combined. Remove
11883 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
11884 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
11885 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
11886 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
11887 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
11888 For linear clause on worksharing loop combined with parallel add
11889 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
11890 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
11891 omp_member_access_dummy_var vars. Add lastprivate clause to outer
11892 taskloop if needed.
11893 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
11894 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
11895 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
11897 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
11898 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
11899 in target body. Handle removal of struct mapping if struct is not
11900 seen in target body. Remove GOMP_MAP_STRUCT map clause on
11901 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
11902 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
11903 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
11904 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
11905 clause appear together. Handle
11906 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
11907 clause if it has map-type-modifier always. Handle
11908 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11910 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
11911 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
11913 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
11914 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
11915 iterators in doacross loops.
11916 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
11917 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
11918 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
11919 for the addition of ORT_COMBINED_TARGET.
11920 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
11921 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
11922 and OMP_TARGET_EXIT_DATA.
11923 (gimplify_omp_ordered): New function.
11924 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
11925 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
11926 Gimplify clauses on OMP_CRITICAL.
11927 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
11928 expand_GOMP_SIMD_ORDERED_END): New functions.
11929 * internal-fn.def (GOMP_SIMD_ORDERED_START,
11930 GOMP_SIMD_ORDERED_END): New internal functions.
11931 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
11932 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
11933 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
11934 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
11935 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
11936 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
11937 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
11938 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
11939 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
11940 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
11941 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
11942 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
11943 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
11944 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
11946 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
11947 GOMP_target_data_41, adjust type.
11948 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
11949 GOMP_target_update_41, adjust type.
11950 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
11952 (struct omp_for_data): Add ordered and simd_schedule fields.
11953 (omp_member_access_dummy_var, unshare_and_remap_1,
11954 unshare_and_remap, is_taskloop_ctx): New functions.
11955 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
11956 (extract_omp_for_data): Handle taskloops and doacross loops
11957 and simd schedule modifier.
11958 (omp_adjust_chunk_size): New function.
11959 (get_ws_args_for): Use it.
11960 (lookup_sfield): Change first argument to splay_tree_key,
11961 add overload with first argument tree.
11962 (maybe_lookup_field): Likewise.
11963 (use_pointer_for_field): Handle omp_member_access_dummy_var.
11964 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
11965 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
11966 (build_outer_var_ref): Add LASTPRIVATE argument, handle
11967 taskloops and omp_member_access_dummy_var vars.
11968 (build_sender_ref): Change first argument to splay_tree_key,
11969 add overload with first argument tree.
11970 (install_var_field): For mask & 8 use &DECL_UID as key instead
11971 of the tree itself.
11972 (fixup_child_record_type): Const qualify *.omp_data_i.
11973 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
11974 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
11975 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
11976 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
11977 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
11978 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
11979 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
11981 (add_taskreg_looptemp_clauses): New function.
11982 (scan_omp_parallel): Use it.
11983 (scan_omp_task): Likewise.
11984 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11985 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
11986 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11987 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
11988 sandwiched taskloop constructs. Type check
11989 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
11990 region. Diagnose depend(source) or depend(sink:...) on
11991 target constructs or task/taskloop.
11992 (handle_simd_reference): Use get_name.
11993 (lower_rec_input_clauses): Likewise. Ignore all
11994 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
11995 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
11996 before passing it to omp_clause_{default,copy}_ctor. Handle
11997 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
11998 lastprivate_firstprivate flag for linear that needs copyin and
11999 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
12000 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
12001 on taskloop lookup decl in outer context. Pass true to
12002 build_outer_var_ref lastprivate argument. Handle
12003 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
12004 outside of outer taskloop for.
12005 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
12007 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
12008 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
12009 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
12010 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
12011 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
12012 abstract origin. Handle omp_member_access_dummy_var vars.
12013 (expand_parallel_call): Use expand_omp_build_assign.
12014 (expand_task_call): Handle taskloop construct expansion. Add
12015 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
12016 integers. Add priority argument to GOMP_task* calls. Or in
12017 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
12019 (expand_omp_build_assign): Add prototype. Add AFTER
12020 argument, if true emit statements after *GSI_P and continue linking.
12021 (expand_omp_taskreg): Adjust expand_task_call caller.
12022 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
12023 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
12024 zero_iter2_bb and first_zero_iter2 arguments, handle computation
12025 of counts even for ordered loops.
12026 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
12027 (expand_omp_ordered_source, expand_omp_ordered_sink,
12028 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
12030 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
12031 clauses on worksharing loop. Handle DOACROSS loop expansion.
12032 (expand_omp_for_static_nochunk): Handle linear clauses on
12033 worksharing loop. Adjust expand_omp_for_init_counts
12035 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
12036 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
12037 expand_omp_for_init_counts callers.
12038 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
12040 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
12041 Handle doacross loops.
12042 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12043 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
12044 GOMP_target_{41,update_41,enter_exit_data} libcalls.
12045 (expand_omp): Don't expand ordered depend constructs here, record
12046 ord_stmt instead for later expand_omp_for_generic.
12047 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12048 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12049 clause as stand-alone directive.
12050 (lower_omp_ordered_clauses): New function.
12051 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
12052 don't lower anything.
12053 (lower_omp_for_lastprivate): Use last _looptemp_ clause
12054 on taskloop for comparison.
12055 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
12056 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
12057 expansion for linear adjustments.
12058 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
12059 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
12060 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
12061 to tree * pointing to the stmt's clauses.
12062 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
12063 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
12064 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
12065 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
12066 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
12067 clauses. Always use short kind and 8-bit align shift.
12068 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
12069 (struct lower_omp_regimplify_operands_data): New type.
12070 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
12072 (lower_omp_1): Use lower_omp_regimplify_operands instead of
12073 gimple_regimplify_operands.
12074 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12075 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12076 clause as stand-alone directive.
12077 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
12078 (simd_clone_mangle): Mangle the various linear kinds
12080 (simd_clone_adjust_argument_types): Handle
12081 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
12082 (simd_clone_init_simd_arrays): Don't do anything for uval.
12083 (simd_clone_adjust): Handle
12084 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12085 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
12086 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
12087 * omp-low.h (omp_member_access_dummy_var): New prototype.
12088 * passes.def (pass_simduid_cleanup): Schedule another copy of the
12089 pass after all optimizations.
12090 * tree.c (omp_clause_code_name): Add entries for
12091 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12092 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12093 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
12094 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
12095 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
12096 OMP_CLAUSE_REDUCTION 5 arguments. Handle
12097 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12098 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
12100 * tree-core.h (enum omp_clause_linear_kind): New.
12101 (struct tree_omp_clause): Change type of map_kind
12102 from unsigned char to unsigned int. Add subcode.if_modifier
12103 and subcode.linear_kind fields.
12104 (enum omp_clause_code): Add
12105 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12106 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12107 (OMP_CLAUSE_REDUCTION): Document
12108 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12109 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
12110 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
12111 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
12113 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
12115 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
12117 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
12118 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
12120 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
12121 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
12122 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
12123 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
12124 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
12125 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
12126 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
12127 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
12128 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
12129 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
12130 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
12131 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
12132 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
12133 * tree-inline.c (remap_gimple_stmt): Handle clauses on
12134 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
12135 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
12136 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
12137 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12138 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12139 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12140 (convert_local_omp_clauses): Likewise.
12141 * tree-pretty-print.c (dump_omp_clause): Handle
12142 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12143 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12144 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
12145 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
12146 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
12147 GOMP_MAP_FORCE_DEALLOC. Handle
12148 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
12149 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
12150 and clauses on OMP_ORDERED and OMP_CRITICAL.
12151 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
12152 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
12153 (vectorize_loops): Adjust comments.
12154 (pass_simduid_cleanup::execute): Likewise.
12155 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12156 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
12157 * wide-int.h (wi::gcd): New.
12159 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12161 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
12162 (ix86_function_arg_advance): Ditto.
12163 (ix86_function_arg): Ditto.
12164 (ix86_gimplify_va_arg): Ditto.
12165 (ix86_class_max_nregs): Ditto.
12166 (inline_memory_move_cost): Ditto.
12167 (ix86_set_reg_reg_cost): Ditto.
12168 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
12170 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
12172 PR middle-end/67912
12173 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
12175 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12177 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
12178 ROUND_UP macro and UNITS_PER_WORD * 2.
12179 * config/sparc/sparc.c (sparc_compute_frame_size):
12180 Use ROUND_UP and ROUND_DOWN macros where applicable.
12181 (function_arg_record_value, function_arg_record_value_1)
12182 (function_arg_record_value_1): Ditto.
12183 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
12184 alignment to double-word.
12185 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
12186 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
12189 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
12191 * rtl.h (print_insn): Fix prototype.
12193 2015-10-13 Tom de Vries <tom@codesourcery.com>
12195 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
12196 -1. Add assert that returned entry matches phi argument.
12197 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
12198 free_stmt_vec_info_vec ...
12199 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
12202 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
12204 PR tree-optimization/67909, 67947
12205 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
12206 really skip the inner loop.
12208 2015-10-13 Jeff Law <law@redhat.com>
12210 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12211 Allow single block jump threading paths.
12213 2015-10-13 Tom de Vries <tom@codesourcery.com>
12215 PR tree-optimization/67476
12216 * doc/invoke.texi (@item parloops-schedule): New item.
12217 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
12218 * tree-parloops.c: Include params-enum.h.
12219 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
12221 2015-10-13 Tom de Vries <tom@codesourcery.com>
12223 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
12224 * params-enum.h: New file.
12225 * opts.c (handle_param): Handle case that param arg is a string.
12226 * params-list.h: Handle DEFPARAMENUM5 in params.def.
12227 * params.c (find_param): New function, factored out of ...
12228 (set_param_value): ... here.
12229 (param_string_value_p): New function.
12230 * params.h (struct param_info): Add value_names field.
12231 (find_param, param_string_value_p): Declare.
12233 2015-10-13 Tom de Vries <tom@codesourcery.com>
12235 PR tree-optimization/67476
12236 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
12238 2015-10-13 Richard Biener <rguenther@suse.de>
12240 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
12241 the data dependence vector.
12242 (vect_peeling_hash_insert): Get the peeling hash table as argument.
12243 (vect_peeling_hash_get_lowest_cost): Likewise.
12244 (vect_enhance_data_refs_alignment): Adjust.
12245 (struct _vect_peel_info, struct _vect_peel_extended_info,
12246 struct peel_info_hasher): Move from ...
12247 * tree-vectorizer.h: ... here.
12248 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
12249 (LOOP_VINFO_PEELING_HTAB): Likewise.
12250 (struct _loop_vec_info): Remove min_profitable_iters and
12251 peeling_htab members.
12252 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
12254 (destroy_loop_vec_info): Adjust.
12255 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
12256 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
12257 to estimate alias versioning cost.
12258 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
12260 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
12262 * real.h (real_isinteger): Declare.
12263 * real.c (real_isinteger): New function.
12264 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
12265 if y is an even integer.
12267 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12270 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12271 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12272 counts when these are more informative.
12274 2015-10-12 Jeff Law <law@redhat.com>
12276 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
12277 (fsm_find_control_stmt_paths): Change name of first argument to
12278 more accurately relfect what it really is. Handle simplification
12279 of GIMPLE_COND after finding a thread path for NAME.
12280 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
12281 nontrivial conditions to be handled by FSM threader.
12282 (thread_through_normal_block): Extract the name to looup via
12283 FSM threader from COND_EXPR.
12285 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
12286 restriction that traced SSA_NAME is a user variable.
12288 2015-10-12 Tom de Vries <tom@codesourcery.com>
12290 PR tree-optimization/67476
12291 * omp-low.c (expand_omp_for_generic): Add missing phis.
12293 2015-10-12 Tom de Vries <tom@codesourcery.com>
12295 PR tree-optimization/67476
12296 * omp-low.c (expand_omp_for_generic): Handle simple latch.
12298 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
12300 * config/aarch64/aarch64-simd-builtins.def: Update builtins
12301 tables: add tbl3 and tbx4.
12302 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
12303 (aarch64_tbx4v8qi): New.
12304 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
12305 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
12306 Rewrite using builtin functions.
12307 * config/aarch64/iterators.md (UNSPEC_TBX): New.
12309 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12311 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
12313 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12314 Use ROUND_UP and ROUND_DOWN macros where applicable.
12315 (rs6000_darwin64_record_arg_flush): Ditto.
12316 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
12317 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
12320 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12322 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
12323 (AARCH64_ROUND_DOWN): Ditto.
12324 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
12326 2015-10-12 Richard Biener <rguenther@suse.de>
12329 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
12330 code that analyzes IVs on each stmt but in a cheaper way avoiding
12331 quadratic behavior.
12333 2015-10-12 Nick Clifton <nickc@redhat.com>
12335 * config/msp430/msp430.c (msp430_mcu_names): Rename to
12336 msp430_mcu_data, add fields for ISA and hardware multiply
12337 support. Import latest data from the devices.csv file.
12338 (msp430_override_option): Use the data from the new array.
12339 (msp430_use_f5_series_hwmult): Likewise.
12340 (use_32bit_hwmult): Likewise.
12341 (msp430_no_hwmult): Likewise.
12342 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
12344 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
12345 not recognised then no hardware multiply support is assumed and
12346 that only the MSP430 ISA is allowed.
12348 2015-10-12 Richard Biener <rguenther@suse.de>
12350 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
12352 (vect_analyze_loop_2): ... here.
12354 2015-10-11 Jason Merrill <jason@redhat.com>
12357 * expr.c (store_field): Call store_constructor directly when
12358 storing a CONSTRUCTOR into a target smaller than its type.
12359 Guard against unsafe bitwise copy.
12361 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12363 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12364 counts when these are more informative.
12366 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12368 * tree-profile.c (tree_profiling): Do not clear
12369 pure/const when not instrumenting.
12370 (pass tree_profile): Add dump of symtab.
12372 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12374 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
12376 (fold_addr_of_array_ref_difference): Likewise.
12378 2015-10-11 Jeff Law <law@redhat.com>
12380 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
12381 tree-ssa-threadbackward.c.
12382 (fsm_find_control_statement_thread_paths): Likewise.
12383 (thread_through_normal_block): Break out FSM bits and move them
12384 into a new function in tree-ssa-threadbackward.c. Call new function
12386 Minimize header file usage.
12387 * tree-ssa-threadbackward.h: New file.
12388 * tree-ssa-threadbackward.c: Likewise.
12389 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
12391 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
12393 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
12395 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
12397 PR rtl-optimization/67864
12398 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
12399 fallthrough edges for conditional jumps. Don't sort candidate
12400 edges if not optimizing for speed.
12402 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12404 * defaults.h (REVERSE_CONDITION): New default definition.
12405 * jump.c (reversed_comparison_code_parts): Adjust.
12407 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12409 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
12410 check HARD_FRAME_POINTER_IS_ARG_POINTER.
12412 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12414 * defaults.h (FRAME_ADDR_RTX): New default definition.
12415 * builtins.c (expand_builtin_return_addr): Adjust.
12417 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12419 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
12420 * builtins.c (expand_builtin_return_addr): Adjust.
12422 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12424 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
12425 * builtins.c (expand_builtin_return_addr): Adjust.
12426 * doc/tm.texi: Likewise.
12427 * doc/tm.texi.in: Likewise.
12428 * except.c (expand_builtin_unwind_init): Likewise.
12430 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12432 * builtins.c (expand_builtin_return_addr): Adjust.
12433 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
12435 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12437 * tree.c (type_with_interoperable_signedness): New.
12438 (gimple_canonical_types_compatible_p): Use it.
12439 * tree.h (type_with_interoperable_signedness): Declare
12441 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12443 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
12444 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
12445 when OEP_ADDRESS_OF is se.
12447 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12448 Sebastian Pop <s.pop@samsung.com>
12450 * graphite-dependences.c (scop_get_dependences): Add dump of the
12451 data dependence graph.
12452 * graphite-poly.c (print_isl_union_map): New.
12453 (debug_isl_union_map): New.
12454 * graphite-poly.h (print_isl_union_map): Declare.
12455 (debug_isl_union_map): Declare.
12457 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12458 Sebastian Pop <s.pop@samsung.com>
12460 * graphite-poly.c (print_iteration_domain): Remove verbosity.
12461 Remove OpenScop formatting.
12462 (print_iteration_domains): Same.
12463 (debug_iteration_domain): Same.
12464 (debug_iteration_domains): Same.
12467 (dump_gbb_cases): Same.
12468 (dump_gbb_conditions): Same.
12469 (print_pdrs): Same.
12470 (debug_pdrs): Same.
12471 (print_pbb_body): Same.
12473 (print_scop_params): Same.
12474 (print_scop_context): Same.
12475 (print_scop): Same.
12476 (debug_pbb_domain): Same.
12478 (debug_scop_context): Same.
12479 (debug_scop): Same.
12480 (debug_scop_params): Same.
12481 * graphite-poly.h: Same.
12482 * graphite.c (graphite_transform_loops): Same.
12484 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12486 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
12487 call that isn't needed.
12489 2015-10-09 Jeff Law <law@redhat.com>
12491 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
12492 rather than moving each name to the freelist individually.
12494 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
12496 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
12497 * frame-header-opt.c: New file.
12498 * config/mips/mips-proto.h (mips_register_frame_header_opt):
12500 * config/mips/mips.c (mips_compute_frame_info): Check
12501 optimize_call_stack flag.
12502 (mips_option_override): Register new frame_header_opt pass.
12503 (mips_frame_info, mips_int_mask, mips_shadow_set,
12504 machine_function): Move these types to...
12505 * config/mips/mips.h: here.
12506 (machine_function): Add does_not_use_frame_header and
12507 optimize_call_stack fields.
12508 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
12509 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
12510 Document new flags.
12511 * config/mips/mips.opt (mframe-header-opt): Add new option.
12513 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
12515 * config/i386/i386.c
12516 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
12517 ROUND_DOWN where applicable.
12519 2015-10-09 Jeff Law <law@redhat.com>
12521 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
12524 2015-10-09 Renlin Li <renlin.li@arm.com>
12526 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
12527 operands[0] and operands[2].
12528 (neon_vtrn<mode>_insn): Likewise.
12529 (neon_vzip<mode>_insn): Likewise.
12531 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
12533 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
12534 ((X & C2) << C1): Expand to...
12535 (X {&,^,|} C2 << C1): ...This.
12536 ((X & C2) >> C1): Expand to...
12537 (X {&,^,|} C2 >> C1): ...This.
12539 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
12542 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
12543 Adjust embedded rounding/SAE specifier position.
12544 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
12545 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
12546 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
12547 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
12548 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
12550 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
12552 2015-10-09 Martin Jambor <mjambor@suse.cz>
12554 tree-optimization/67794
12555 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
12556 between types of state,ents but accept original definitions as a
12558 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
12559 iterate over definitions.
12561 2015-10-09 James Norris <jnorris@codesourcery.com>
12563 * config/rs6000/rs6000.c (rs6000_offload_options): New.
12564 (TARGET_OFFLOAD_OPTIONS): New.
12566 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
12568 PR middle-end/67891
12569 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
12571 PR middle-end/67766
12572 * function.c (expand_function_end): Move return value
12573 promotion past the handling of PARALLELs and CONCATs.
12575 PR rtl-optimization/67828
12576 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
12577 (tree_may_unswitch_on): Don't unswitch on expressions
12578 involving undefined values.
12580 2015-10-09 Richard Biener <rguenther@suse.de>
12582 * genmatch.c (print_operand): Fix formatting.
12583 (dt_node::append_simplify): Warn for multiple simplifiers
12584 that match the same pattern.
12585 * match.pd (log (exp @0)): Remove duplicates.
12587 2015-10-09 Richard Biener <rguenth@suse.de>
12590 * gimple-fold.c (optabs-query.h): Include
12591 (gimple_fold_builtin_memory_op): Allow unaligned stores
12592 when movmisalign_optabs are available.
12594 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12597 * config/arm/arm.md (movmisalign<mode>): New.
12598 * config/arm/iterators.md (HSI): New.
12600 2015-10-09 Richard Biener <rguenther@suse.de>
12602 PR tree-optimization/67891
12603 * gimple-match.h (gimple_simplified_result_is_gimple_val):
12605 (gimple_resimplify1): Declare.
12606 (gimple_resimplify2): Likewise.
12607 (gimple_resimplify3): Likewise.
12608 * gimple-match-head.c (gimple_resimplify1): Export.
12609 (gimple_resimplify2): Likewise.
12610 (gimple_resimplify3): Likewise.
12611 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
12612 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12613 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
12614 to avoid creating stmts without VN info.
12616 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
12618 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
12621 2015-10-08 Jeff Law <law@redhat.com>
12623 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
12624 and release_ssa_name in two places.
12625 (gimple_stringop_fixed_value): Similarly.
12627 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
12630 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
12631 unlink_stmt_vdef and release_ssa_name_fn.
12633 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
12636 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
12638 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
12639 SSE register save area to 16 bytes only if the incoming stack
12640 boundary is no less than 16 bytes.
12642 2015-10-08 Jeff Law <law@redhat.com>
12644 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
12645 release_ssa_name. Fix typo in comment.
12647 2015-10-08 Nathan Sidwell <nathan@acm.org>
12649 * config/nvptx/nvptx.h (struct machine_function): Add comment.
12650 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
12651 may return pointer as well as in memory.
12652 (nvptx_output_return): Likewise.
12654 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
12656 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
12657 (fold_builtin_1): Update accordingly. Handle constant arguments here.
12658 * match.pd: Add rules previously handled by fold_builtin_sqrt
12659 and fold_builtin_cbrt.
12661 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
12663 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
12664 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
12665 * fold-const.h (tree_unary_nonnegative_warnv_p)
12666 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12667 (tree_expr_nonnegative_warnv_p): Add depth parameters.
12668 * fold-const.c: Include gimple-fold.h and params.h.
12669 (tree_ssa_name_nonnegative_warnv_p): New function.
12670 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
12671 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
12672 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
12673 Add a depth parameter and increment it for recursive calls to
12674 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
12675 to handle SSA names.
12676 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
12677 (gimple_stmt_nonnegative_warnv_p): Declare.
12678 * tree-vrp.c (remove_range_assertions): Remove assert that condition
12679 cannot be proven false.
12680 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
12681 (gimple_stmt_nonnegative_warnv_p): Move to...
12682 * gimple-fold.c: ...here. Add depth parameters and pass them
12683 down to the tree routines. Accept statements that aren't
12684 assignments or calls but just return false for them.
12685 (gimple_val_nonnegative_real_p): Delete.
12686 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
12687 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
12688 Check HONOR_NANs first.
12690 2015-10-08 Martin Jambor <mjambor@suse.cz>
12692 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
12695 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12697 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
12698 in the tail of outer-loop.
12700 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
12702 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
12705 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
12707 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
12708 "cfghooks.h", add prototypes for introduced new functions.
12709 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
12710 checks on ability of loop unswitching to tree_unswitch_single_loop;
12711 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
12712 on innermost loop check.
12713 (tree_unswitch_single_loop): Add all required checks on ability of
12714 loop unswitching under zero recursive level guard.
12715 (tree_unswitch_outer_loop): New function.
12716 (find_loop_guard): Likewise.
12717 (empty_bb_without_guard_p): Likewise.
12718 (used_outside_loop_p): Likewise.
12719 (get_vop_from_header): Likewise.
12720 (hoist_guard): Likewise.
12721 (check_exit_phi): Likewise.
12723 2015-10-08 Marek Polacek <polacek@redhat.com>
12725 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
12728 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12731 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
12732 create_tmp_var_raw instead of create_tmp_var.
12734 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
12736 * expr.c (store_expr_with_bounds): Handle aggregate moves from
12738 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
12739 to define gimple type system; compare aggregates only by size.
12741 2015-10-07 Jeff Law <law@redhat.com>
12743 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
12744 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
12745 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
12748 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12749 Sebastian Pop <s.pop@samsung.com>
12751 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
12752 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
12753 (generate_isl_schedule): Same.
12754 * graphite-optimize-isl.c (scop_get_domains): Same.
12755 (apply_schedule_map_to_scop): Same.
12756 * graphite-poly.c (print_iteration_domains): Same.
12757 (remove_gbbs_in_scop): Same.
12760 (print_scop): Same.
12761 * graphite-poly.h (struct scop): Rename bbs to pbbs.
12762 (SCOP_BBS): Remove.
12763 * graphite-scop-detection.c (compare_bb_depths): Remove.
12764 (graphite_sort_dominated_info): Remove.
12765 (try_generate_gimple_bb): Move out of scop_detection.
12766 (all_non_dominated_preds_marked_p): Remove.
12767 (build_scop_bbs_1): Remove.
12768 (build_scop_bbs): Remove.
12769 (nb_pbbs_in_loops): Do not use SCOP_BBS.
12770 (find_scop_parameters): Same.
12771 (sese_dom_walker): Rename gather_bbs.
12772 (before_dom_children): Call try_generate_gimple_bb and collect gbb
12774 (build_scops): Call gather_bbs.
12775 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
12776 (add_conditions_to_constraints): Same.
12777 (build_scop_iteration_domain): Same.
12778 (build_scop_drs): Same.
12779 (new_pbb_from_pbb): Same.
12780 * sese.c (new_sese_info): Create bbs.
12781 * sese.h (struct sese_info_t): Add bbs.
12783 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
12785 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
12786 encoding in 64-bit mode.
12788 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
12791 * config/i386/i386.c (ix86_option_override_internal): Always use
12792 8-byte minimum stack boundary in 64-bit mode.
12793 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
12794 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
12795 Add a REG_CFA_EXPRESSION note if needed.
12796 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
12797 (ix86_handle_force_align_arg_pointer_attribute): New.
12798 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
12799 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
12800 with ix86_handle_force_align_arg_pointer_attribute.
12801 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
12803 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12804 Sebastian Pop <s.pop@samsung.com>
12806 * graphite-scop-detection.c (parameter_index_in_region): Remove
12807 use of SESE_ADD_PARAMS.
12808 (find_scop_parameters): Same.
12809 * sese.c (new_sese_info): Same.
12810 * sese.h (struct sese_info_t): Remove add_params.
12811 (SESE_ADD_PARAMS): Remove.
12813 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
12814 Sebastian Pop <s.pop@samsung.com>
12816 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
12819 (copy_internal_parameters): Same.
12820 (translate_isl_ast_to_gimple): Use an sese_l.
12821 (build_iv_mapping): Same.
12822 * graphite-poly.c (new_sese): Rename new_sese_info.
12823 (free_sese): Rename free_sese_info.
12824 * graphite-poly.h (struct scop): Use an sese_info_p.
12825 (scop_set_region): Same.
12826 * graphite-scop-detection.c (struct sese_l): Moved...
12827 (get_entry_bb): Moved...
12828 (get_exit_bb): Moved...
12829 (parameter_index_in_region_1): Use an sese_info_p.
12830 (parameter_index_in_region): Same.
12831 (scan_tree_for_params): Same.
12832 (find_params_in_bb): Same.
12833 (sese_dom_walker): Use an sese_l.
12834 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
12835 (reduction_phi_p): Same.
12836 (parameter_index_in_region_1): Use an sese_info_p.
12837 (propagate_expr_outside_region): Use an sese_l.
12838 * graphite.c: Replace uses of SCOP_REGION.
12839 * sese.c (sese_record_loop): Use an sese_info_p.
12840 (build_sese_loop_nests): Same.
12841 (sese_build_liveouts_use): Same.
12842 (sese_build_liveouts_bb): Same.
12843 (sese_build_liveouts_bb): Same.
12844 (sese_bad_liveouts_use): Same.
12845 (sese_reset_debug_liveouts_bb): Same.
12846 (sese_build_liveouts): Same.
12847 (new_sese): Renamed new_sese_info.
12848 (free_sese): Renamed free_sese_info.
12849 (set_rename): Use an sese_info_p.
12850 (graphite_copy_stmts_from_block): Same.
12851 (copy_bb_and_scalar_dependences): Same.
12852 (outermost_loop_in_sese_1): Use an sese_l.
12853 (outermost_loop_in_sese): Same.
12854 (if_region_set_false_region): Use an sese_info_p.
12855 (move_sese_in_condition): Same.
12856 (scalar_evolution_in_region): Use an sese_l.
12857 * sese.h (struct sese_l): ... here.
12858 (SESE_ENTRY): Remove.
12859 (SESE_ENTRY_BB): Remove.
12860 (SESE_EXIT): Remove.
12861 (SESE_EXIT_BB): Remove.
12862 (sese_contains_loop): Use an sese_info_p.
12863 (sese_nb_params): Same.
12864 (bb_in_sese_p): Use an sese_l.
12865 (stmt_in_sese_p): Same.
12866 (defined_in_sese_p): Same.
12867 (loop_in_sese_p): Same.
12868 (sese_loop_depth): Same.
12869 (struct ifsese_s): Use an sese_info_p.
12870 (gbb_loop_at_index): Use an sese_l.
12871 (nb_common_loops): Same.
12872 (scev_analyzable_p): Same.
12874 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12876 * config/i386/i386.c (ix86_conditional_register_usage): Use
12877 CALL_USED_REGISTERS_MASK.
12878 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
12880 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12883 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
12884 * configure: Regenerated.
12886 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
12889 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
12890 (ix86_set_current_function): This.
12891 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
12893 2015-10-07 Richard Biener <rguenther@suse.de>
12895 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
12896 (vinfo_for_stmt): Adjust.
12897 (set_vinfo_for_stmt): Likewise.
12898 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
12899 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
12900 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
12902 (vect_analyze_loop_1): Remove.
12903 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
12904 inner loop when vectorizing an outer loop by splitting out from ...
12905 (vect_analyze_loop_form): ... here.
12907 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12910 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
12911 Use create_tmp_var_raw instead of create_tmp_var.
12913 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
12915 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
12916 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
12917 * real.c (CACHED_FRACTION): New helper macro.
12918 (dconst_third_ptr): Use it.
12919 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
12920 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
12922 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
12924 2015-10-06 Jeff Law <law@redhat.com>
12926 PR tree-optimization/67816
12927 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
12928 from remove_jump_threads_starting_at. Accept an edge rather than
12930 * tree-ssa-threadupdate.c (removed_edges): New hash table.
12931 (remove_jump_threads_including): Note edges that get removed from
12932 the CFG for later pruning of jump threading paths including them.
12933 (thread_through_all_blocks): Remove paths which include edges that
12935 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
12936 on each outgoing edges when optimizing away a control statement.
12938 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12940 * reorg.c (emit_delay_sequence): Store list of delay slot insns
12941 in a vector instead of rtx_insn_list.
12942 (add_to_delay_list): Likewise.
12943 (delete_from_delay_slot): Likewise.
12944 (optimize_skip): Likewise.
12945 (redirect_with_delay_list_safe_p): Likewise.
12946 (check_annul_list_true_false): Likewise.
12947 (steal_delay_list_from_target): Likewise.
12948 (steal_delay_list_from_fallthrough): Likewise.
12949 (redundant_insn): Likewise.
12950 (fill_simple_delay_slots): Likewise.
12951 (fill_slots_from_thread): Likewise.
12952 (fill_eager_delay_slots): Likewise.
12953 (relax_delay_slots): Likewise.
12955 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
12957 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
12958 For -mgpopt=local, also exclude unintialized common symbols.
12959 * doc/invoke.texi (Nios II Options): Document the change.
12961 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12963 * config/aarch64/iterators.md (vwcore): Add missing cases for
12966 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12967 Sebastian Pop <s.pop@samsung.com>
12969 * graphite-poly.c (new_scop): Initialize drs.
12970 * graphite-poly.h (struct dr_info): New.
12971 (struct scop): Add drs.
12972 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
12973 (pdr_add_memory_accesses): Same.
12974 (build_poly_dr): Same.
12975 (build_alias_set): Same.
12976 (build_scop_drs): Same.
12977 (build_pbb_drs): Remove.
12978 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
12979 * tree-data-ref.h (data_reference): Remove alias_set.
12981 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12982 Sebastian Pop <s.pop@samsung.com>
12984 * graphite-poly.c (free_data_refs_aux): Remove.
12985 (free_gimple_poly_bb): Do not call free_data_refs_aux.
12986 * graphite-poly.h (struct base_alias_pair): Remove.
12987 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
12988 base_alias_pair and dr->aux.
12989 (build_alias_set): Same.
12990 * tree-data-ref.c (create_data_ref): Initialize alias_set.
12991 * tree-data-ref.h (data_reference): Add alias_set.
12993 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12994 Sebastian Pop <s.pop@samsung.com>
12996 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
12997 Do not set PDR_BASE_OBJECT_SET.
12998 * graphite-poly.h (poly_dr): Same.
12999 (PDR_BASE_OBJECT_SET): Remove.
13000 (new_poly_dr): Update decl.
13001 * graphite-sese-to-poly.c (build_poly_dr): Update call to
13003 (write_alias_graph_to_ascii_dimacs): Remove.
13004 (write_alias_graph_to_ascii_dot): Remove.
13005 (write_alias_graph_to_ascii_ecc): Remove.
13006 (dr_same_base_object_p): Remove.
13007 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
13009 (build_base_obj_set_for_drs): Remove.
13010 (dump_alias_graphs): Remove.
13011 (build_scop_drs): Remove dead code.
13013 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
13014 Peter Bergner <bergner@vnet.ibm.com>
13017 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
13018 allow registers, but provide insns for the combiner to create for
13019 loads from memory. Separate VSX code from non-VSX code. For
13020 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
13021 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
13022 so that registers come before memory operations. Drop support from
13023 converting DFmode to TFmode, if the DFmode value is in a GPR
13025 (extenddftf2_fprs): Likewise.
13026 (extenddftf2_internal): Likewise.
13027 (extenddftf2_vsx): Likewise.
13028 (extendsftf2): In the expander, only allow registers, but provide
13029 insns for the combiner to create for stores and loads.
13031 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13033 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
13034 from the decl parameter.
13036 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
13039 * gimple-fold.c (gimple_fold_builtin): Add break after
13040 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
13042 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
13044 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
13045 to scop->isl_context.
13047 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13049 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
13050 (output_probe_stack_range): Rotate the loop and simplify.
13051 (thumb1_expand_prologue): Tweak sorry message.
13052 * config/arm/arm.md (probe_stack): Use bare string.
13054 2015-10-06 Nick Clifton <nickc@redhat.com>
13056 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
13058 2015-10-06 Nick Clifton <nickc@redhat.com>
13060 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
13061 (ATTR_PERSIST): New constant.
13062 (msp430_data_attr): New function - verifies an attribute that only
13063 applies to variables.
13064 (msp430_attributes): Add noinit and persistent attributes.
13065 (noinit_section): New variable.
13066 (presis_section): New variable.
13067 (TARGET_ASM_INIT_SECTIONS): Define.
13068 (msp430_init_sections): New function - initialises the noinit and
13069 persist section variables.
13070 (msp430_select_section): Add support for noinit and persist
13072 (msp430_section_type_flags): Likewise.
13073 * doc/extend.texi: Document the reent, critical, wakeup, noinit
13074 and persistent attributes.
13076 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13077 Sebastian Pop <s.pop@samsung.com>
13079 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
13080 (no_violations): Remove.
13081 (subtract_commutative_associative_deps): Remove.
13082 (compute_deps): Do not call subtract_commutative_associative_deps.
13083 (transform_is_safe): Remove.
13084 (graphite_legal_transform): Remove.
13085 * graphite-poly.h (graphite_legal_transform): Remove.
13087 2015-10-05 Aditya Kumar <hiraditya@msn.com>
13089 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
13090 which are in this region are passed so gcc_assert and remove redundant
13092 * sese.c (sese_build_liveouts): Pass only those bbs which are not
13094 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
13095 gcc_assert on that and remove unnecessary computation.
13096 (sese_build_liveouts_use): Same.
13098 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13100 * graphite-dependences.c (scop_get_reads): Renamed scop->context
13101 to scop->param_context.
13102 (scop_get_must_writes): Same.
13103 (scop_get_may_writes): Same.
13104 (scop_get_original_schedule): Same.
13105 (scop_get_transformed_schedule): Same.
13106 (subtract_commutative_associative_deps): Same.
13107 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
13108 (generate_isl_context): Same.
13109 (generate_isl_schedule): Same.
13110 (scop_to_isl_ast): Same.
13111 (graphite_regenerate_ast_isl): Same.
13112 * graphite-optimize-isl.c (scop_get_domains): Same.
13113 (optimize_isl): Renamed scop->context to scop->param_context.
13114 * graphite-poly.c (new_poly_bb): Change the type of argument to
13116 (new_scop): Renamed scop->context to scop->param_context.
13118 (print_scop_context): Same.
13119 * graphite-poly.h (new_poly_dr): Change the type of argument from
13120 void* to data_reference_p.
13121 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
13122 (new_poly_bb): Change the type of argument from void* to
13124 (pbb_set_black_box): Same.
13125 (struct scop): Rename context to param_context, ctx to isl_context.
13126 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
13127 Move declarations closer to assignment.
13128 (find_params_in_bb): Same.
13129 (find_scop_parameters): Same.
13130 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
13131 Global to be used for statement IDs.
13132 (isl_id_for_pbb): Use ssa_name_version_typesize.
13133 (simple_copy_phi_p): Move declarations closer to assignment.
13134 (build_pbb_scattering_polyhedrons): Same.
13135 (build_scop_scattering): Same.
13136 (isl_id_for_ssa_name): Same.
13137 (extract_affine_name): Same.
13138 (extract_affine_int): Same.
13139 (extract_affine): Same.
13140 (set_scop_parameter_dim): Use renamed member.
13141 (build_loop_iteration_domains): Same.
13142 (add_param_constraints): Same.
13143 (build_scop_iteration_domain): Same.
13144 (pdr_add_data_dimensions): Same.
13145 (build_poly_dr): Same.
13146 (build_scop_drs): Move declarations closer to assignment.
13147 (analyze_drs_in_stmts): Same.
13148 (insert_out_of_ssa_copy): Same.
13149 (insert_out_of_ssa_copy_on_edge): Same.
13150 (propagate_expr_outside_region): Same.
13151 (rewrite_phi_out_of_ssa): Same.
13152 (rewrite_degenerate_phi): Same.
13153 (rewrite_reductions_out_of_ssa): Same.
13154 (rewrite_cross_bb_scalar_dependence): Same.
13155 (handle_scalar_deps_crossing_scop_limits): Same.
13156 (rewrite_cross_bb_scalar_deps): Same.
13157 * graphite.c (graphite_transform_loops): Use renamed member.
13159 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
13162 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
13163 create_tmp_var_raw instead of create_tmp_var.
13165 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13168 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
13169 Use create_tmp_var_raw instead of create_tmp_var.
13171 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
13174 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
13175 split for upper-bank registers when target does not support
13177 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
13178 split when target does not support AVX512VL.
13180 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
13183 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
13184 Adjust to use create_tmp_var_raw instead of create_tmp_var.
13186 2015-10-06 Nick Clifton <nickc@redhat.com>
13188 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
13191 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13193 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
13194 (case ${target}): Add znver1.
13195 * config/i386/cpuid.h(bit_CLZERO): Define.
13196 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
13197 -march=native recognize znver1 processors.
13198 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13199 znver1, clzero def_and_undef.
13200 * config/i386/i386.c (struct processor_costs znver1_cost): New.
13201 (m_znver1): New definition.
13202 (m_AMD_MULTIPLE): Includes m_znver1.
13203 (processor_target_table): Add znver1 entry.
13204 (ix86_target_string) : Add clzero entry.
13205 (static const char *const cpu_names): Add znver1 entry.
13206 (ix86_option_override_internal): Add znver1 instruction sets.
13207 (PTA_CLZERO) : New definition.
13208 (ix86_option_override_internal): Handle new clzerooption.
13209 (ix86_issue_rate): Add znver1.
13210 (ix86_adjust_cost): Add znver1.
13211 (ia32_multipass_dfa_lookahead): Add znver1.
13212 (has_dispatch): Add znver1.
13213 * config/i386/i386.h (TARGET_znver1): New definition.
13214 (TARGET_CLZERO): Define.
13215 (TARGET_CLZERO_P): Define.
13216 (struct ix86_size_cost): Add TARGET_ZNVER1.
13217 (enum processor_type): Add PROCESSOR_znver1.
13218 * config/i386/i386.md (define_attr "cpu"): Add znver1.
13219 (set_attr znver1_decode): New definitions for znver1.
13220 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
13222 * config/i386/mmx.md (set_attr znver1_decode): New definitions
13224 * config/i386/sse.md (set_attr znver1_decode): Likewise.
13225 * config/i386/x86-tune.def: Add znver1 tunings.
13226 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
13227 * doc/invoke.texi: Add details about znver1
13229 2015-10-06 Richard Biener <rguenther@suse.de>
13231 PR tree-optimization/67859
13232 * tree-ssa-pre.c (create_expression_by_pieces): Properly
13233 discard not inserted stmts.
13235 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
13237 * doc/extend.texi (Template Instantiation): Reorder options and
13238 de-emphasize -frepo.
13239 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
13240 example instead of -frepo.
13242 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13245 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
13246 use create_tmp_var_raw rather than create_tmp_var.
13248 2015-10-06 Richard Biener <rguenther@suse.de>
13250 * tree-vectorizer.h (vec_info): New base class for...
13251 (_loop_vec_info): ... this and ...
13252 (_bb_vec_info): ... this.
13253 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
13254 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
13255 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
13256 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
13257 vect_destroy_datarefs): Adjust interface to take a vec_info *
13258 rather than both a loop_vec_info and a bb_vec_info argument.
13259 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
13260 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
13261 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
13262 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
13264 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
13265 (destroy_loop_vec_info, vect_analyze_loop_2,
13266 vect_is_simple_reduction_1, get_initial_def_for_induction,
13267 vect_create_epilog_for_reduction, vectorizable_reduction,
13268 vectorizable_live_operation, vect_transform_loop): Adjust.
13269 * tree-vect-patterns.c (type_conversion_p,
13270 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
13271 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
13272 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
13273 check_bool_pattern, vect_recog_bool_pattern,
13274 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
13275 * tree-vect-slp.c (vect_get_and_check_slp_defs,
13276 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
13277 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
13278 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
13279 (new_bb_vec_info): Initialize base classs.
13280 * tree-vect-stmts.c (record_stmt_cost, process_use,
13281 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
13282 vectorizable_mask_load_store, vectorizable_call,
13283 vectorizable_simd_clone_call, vectorizable_conversion,
13284 vectorizable_assignment, vectorizable_shift,
13285 vectorizable_operation, vectorizable_store,
13286 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
13287 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
13288 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
13290 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
13293 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
13294 create_tmp_var_raw rather than create_tmp_var.
13296 2015-10-05 Marek Polacek <polacek@redhat.com>
13298 * tree-ssa-loop-im.c
13299 (move_computations_dom_walker::before_dom_children): Don't set
13300 SSA_NAME_ANTI_RANGE_P.
13301 * tree-ssa-phiopt.c (value_replacement): Likewise.
13303 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13304 Sebastian Pop <s.pop@samsung.com>
13306 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
13308 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13309 Sebastian Pop <s.pop@samsung.com>
13311 * graphite-poly.c (new_gimple_poly_bb): ... here.
13312 (free_data_refs_aux): ... here.
13313 (free_gimple_poly_bb): ... here.
13314 (remove_gbbs_in_scop): ... here.
13315 (new_scop): Call new_sese.
13316 (free_scop): Call remove_gbbs_in_scop and free_sese.
13317 * graphite-poly.h (base_alias_pair): ... here.
13318 (new_gimple_poly_bb): Declare.
13319 (free_gimple_poly_bb): Declare.
13320 * graphite-scop-detection.c (parameter_index_in_region_1):
13321 (parameter_index_in_region): ... here.
13322 (scan_tree_for_params): ... here.
13323 (find_params_in_bb): ... here.
13324 (find_scop_parameters): ... here.
13325 (build_scops): Call find_scop_parameters.
13326 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
13327 (free_scops): Move...
13328 (single_pred_cond_non_loop_exit): Move...
13329 (sese_dom_walker::before_dom_children): Move...
13330 (sese_dom_walker::after_dom_children): Move...
13331 (build_poly_scop): Move...
13332 * graphite-sese-to-poly.h (base_alias_pair): Move...
13333 * graphite.c (free_scops): ... here.
13335 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13336 Sebastian Pop <s.pop@samsung.com>
13338 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
13339 (trivially_empty_bb_p): Move...
13340 (same_close_phi_node): Move...
13341 (new_gimple_poly_bb): Move...
13342 (compare_bb_depths): Move...
13343 (graphite_sort_dominated_info): Move...
13344 (remove_duplicate_close_phi): Move...
13345 (make_close_phi_nodes_unique): Move...
13346 (canonicalize_loop_closed_ssa): Move...
13347 (canonicalize_loop_closed_ssa_form): Move...
13348 (loop_ivs_can_be_represented): Move...
13349 (single_pred_cond_non_loop_exit): Move...
13350 (graphite_can_represent_init): Move...
13351 (graphite_can_represent_scev): Move...
13352 (stmt_has_simple_data_refs_p): Move...
13353 (stmt_has_side_effects): Move...
13354 (graphite_can_represent_stmt): Move...
13355 (scop_detection): ... here.
13356 (sese_dom_walker): ... and here.
13357 (build_scops): Call all moved functions.
13358 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
13359 (all_non_dominated_preds_marked_p): Move...
13360 (build_scop_bbs_1): Move...
13361 (build_scop_bbs): Move...
13362 (set_scop_parameter_dim): Move...
13363 (nb_pbbs_in_loops): Move...
13364 (build_poly_scop): Do not call all the moved functions.
13366 2015-10-05 Martin Jambor <mjambor@suse.cz>
13367 Jan Hubicka <hubicka@ucw.cz>
13369 * ipa-cp.c (ipcp_alignment_lattice): New type.
13370 (ipcp_param_lattices): Use the above to represent alignment.
13371 (ipcp_alignment_lattice::print): New function.
13372 (print_all_lattices): Use it to print alignment information.
13373 (ipcp_alignment_lattice::top_p): New function.
13374 (ipcp_alignment_lattice::bottom_p): Likewise.
13375 (ipcp_alignment_lattice::set_to_bottom): Likewise.
13376 (ipcp_alignment_lattice::meet_with_1): Likewise.
13377 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
13378 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
13379 (initialize_node_lattices): Likewise.
13380 (propagate_alignment_accross_jump_function): Work with the new class
13381 for alignment lattices.
13382 (propagate_constants_accross_call): Pass only the alignment lattice to
13383 propagate_alignment_accross_jump_function.
13384 (ipcp_store_alignment_results): Work with the new class for alignment
13387 2015-10-05 Marek Polacek <polacek@redhat.com>
13389 PR tree-optimization/67821
13390 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
13392 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
13395 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
13397 (mkoffload_cleanup): ... this. Adjust all users.
13398 (maybe_unlink): Look at save_temps and verbose flags instead of
13400 (main): Parse "-save-temps" flag.
13401 (generate_target_descr_file, generate_target_offloadend_file)
13402 (generate_host_descr_file, prepare_target_image): Pass it on.
13403 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
13404 (mkoffload_cleanup): New function.
13405 (maybe_unlink): Look at save_temps and verbose flags instead of
13407 (main): Instead of calling utils_cleanup, register atexit handler
13408 for mkoffload_cleanup.
13409 (main): Parse "-save-temps" flag.
13410 (compile_native, main): Pass it on.
13411 * lto-wrapper.c (compile_offload_image): Likewise.
13413 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13415 * gimple.h (gimple_op_ptr): Require a non const gimple *.
13416 (gimple_assign_lhs_ptr): Likewise.
13417 (gimple_assign_rhs1_ptr): Likewise.
13418 (gimple_assign_rhs2_ptr): Likewise.
13419 (gimple_assign_rhs3_ptr): Likewise.
13420 (gimple_call_lhs_ptr): Likewise.
13421 (gimple_call_fn_ptr): Likewise.
13422 (gimple_call_chain_ptr): Likewise.
13423 (gimple_call_arg_ptr): Likewise.
13424 (gimple_cond_lhs_ptr): Likewise.
13425 (gimple_cond_rhs_ptr): Likewise.
13426 (gimple_switch_index_ptr): Likewise.
13427 (gimple_return_retval_ptr): Likewise.
13429 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13431 * gimple.h (gimple_asm_input_op_ptr): Remove.
13432 (gimple_asm_output_op_ptr): Likewise.
13434 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13436 * gimple.h (gimple_location_ptr): Remove.
13437 * tree-vrp.c (check_all_array_refs): Adjust.
13439 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13441 * tree-ssa-operands.c (build_uses): store tree * instead of
13443 (finalize_ssa_uses): Adjust.
13444 (append_use): Likewise.
13445 (verify_ssa_operands): Likewise.
13447 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13449 * real.h (build_real_truncate): Declare.
13450 * tree.c (build_real_truncate): New function.
13451 (strip_float_extensions): Use it.
13452 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
13453 (fold_builtin_hypot, fold_builtin_pow): Likewise.
13454 * match.pd: Likewise.
13456 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
13457 Jiong Wang <jiong.wang@arm.com>
13459 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
13461 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13463 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
13464 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
13465 (aarch64_print_operand, aarch64_float_const_representable_p)
13466 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
13467 instead of REAL_VALUE_FROM_CONST_DOUBLE.
13468 * config/arc/arc.c (arc_print_operand): Likewise.
13469 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
13470 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
13471 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
13473 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
13474 (consttable_16): Likewise.
13475 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
13476 * config/avr/avr.c (avr_print_operand): Likewise.
13477 * config/bfin/bfin.md: Likewise (in a define_split).
13478 * config/c6x/c6x.md: Likewise (in a define_split).
13479 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
13480 (cr16_print_operand): Likewise.
13481 * config/cris/cris.c (cris_print_operand): Likewise.
13482 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
13483 * config/fr30/fr30.c (fr30_print_operand): Likewise.
13484 (fr30_const_double_is_zero): Likewise.
13485 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
13486 * config/frv/frv.md: Likewise (in a define_split).
13487 * config/frv/predicates.md (int_2word_operand): Likewise.
13488 * config/h8300/h8300.c (h8300_print_operand): Likewise.
13489 * config/i386/i386.c (standard_80387_constant_p): Likewise.
13490 (ix86_print_operand, ix86_split_to_parts): Likewise.
13491 * config/i386/i386.md: Likewise (in a define_split).
13492 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
13493 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
13494 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
13495 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
13496 (print_operand): Likewise.
13497 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
13498 * config/mep/mep.md: Likewise (in define_split).
13499 * config/microblaze/microblaze.c (microblaze_const_double_ok)
13500 (print_operand): Likewise.
13501 * config/mips/mips.md (consttable_float): Likewise.
13502 * config/mmix/mmix.c (mmix_intval): Likewise.
13503 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
13504 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
13505 * config/pa/pa.c (pa_singlemove_string): Likewise.
13506 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
13507 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
13508 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
13509 (output_toc): Likewise.
13510 * config/rs6000/rs6000.md: Likewise (in define_splits).
13511 * config/rx/rx.c (rx_print_operand): Likewise.
13512 * config/s390/s390.c (s390_output_pool_entry): Likewise.
13513 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13514 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
13515 (and also in define_splits).
13516 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
13517 (fp_high_losum_p): Likewise.
13518 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
13519 (*movsf_high): Likewise.
13520 * config/spu/spu.c (const_double_to_hwint): Likewise.
13521 * config/v850/v850.c (const_double_split): Likewise.
13522 * config/vax/vax.c (vax_float_literal): Likewise.
13523 * config/visium/visium.c (visium_expand_copysign): Likewise.
13524 * config/visium/visium.md: Likewise (in define_split).
13525 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13526 * config/xtensa/xtensa.c (print_operand): Likewise.
13527 (xtensa_output_literal): Likewise.
13528 * cprop.c (implicit_set_cond_p): Likewise.
13529 * dwarf2out.c (insert_float): Likewise.
13530 * expmed.c (expand_mult, make_tree): Likewise.
13531 * expr.c (compress_float_constant): Likewise.
13532 * rtlanal.c (split_double): Likewise.
13533 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13534 (simplify_const_unary_operation, simplify_binary_operation_1)
13535 (simplify_const_binary_operation): Likewise.
13536 (simplify_const_relational_operation): Likewise.
13537 * varasm.c (output_constant_pool_2): Likewise.
13539 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13541 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
13542 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13543 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
13544 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
13545 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13546 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
13547 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
13548 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
13549 (ix86_emit_swsqrtsf): Likewise.
13550 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
13551 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
13552 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13553 * config/pa/pa.c (pa_expand_builtin): Likewise.
13554 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
13555 (rs6000_scale_v2df): Likewise.
13556 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
13557 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
13558 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
13559 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
13560 (vec_ctul): Likewise.
13561 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
13562 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
13563 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
13564 * cse.c (fold_rtx): Likewise.
13565 * emit-rtl.c (immed_double_const): Likewise (in comments).
13566 (init_emit_once): Likewise.
13567 * expr.c (compress_float_constant, expand_expr_real_1)
13568 (const_vector_from_tree): Likewise.
13569 * optabs.c (expand_float, expand_fix): Likewise.
13570 * reg-stack.c (reg_to_stack): Likewise.
13571 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13572 (simplify_const_unary_operation, simplify_binary_operation_1)
13573 (simplify_const_binary_operation, simplify_relational_operation)
13574 (simplify_immed_subreg): Likewise.
13576 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13578 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
13579 * doc/tm.texi: Regenerate.
13580 * real.h (REAL_ARITHMETIC): Delete.
13581 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
13582 (ix86_expand_round_sse4): Use real_arithmetic instead of
13584 * config/i386/sse.md (round<mode>2): Likewise.
13585 * rtl.h (rtx_to_tree_code): Likewise (in comment).
13586 * explow.c (rtx_to_tree_code): Likewise (in comment).
13587 * match.pd: Likewise.
13588 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13589 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13590 (expand_pow_as_sqrts): Likewise.
13591 * tree-pretty-print.c (dump_generic_node): Remove code that
13592 was conditional on REAL_ARITHMETIC being undefined.
13594 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13596 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
13597 * doc/tm.texi: Regenerate.
13598 * real.h (real_less): Declare.
13599 (REAL_VALUES_LESS): Delete.
13600 * real.c (real_less): New function.
13601 (real_compare): Use it.
13602 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
13603 of REAL_VALUES_LESS.
13604 * config/microblaze/microblaze.c (microblaze_const_double_ok):
13606 * fold-const.c (fold_convert_const_int_from_real): Likewise.
13607 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13608 (simplify_const_relational_operation): Likewise.
13609 * tree-call-cdce.c (check_pow): Likewise.
13610 (gen_conditions_for_pow_cst_base): Likewise.
13612 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13614 * real.h (REAL_VALUES_IDENTICAL): Delete.
13615 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
13616 instead of REAL_VALUES_IDENTICAL.
13617 * fold-const.c (operand_equal_p): Likewise.
13618 * ipa-icf.c (sem_variable::equals): Likewise.
13619 * tree-complex.c (some_nonzerop): Likewise.
13620 (expand_complex_multiplication): Likewise.
13621 * tree.c (simple_cst_equal): Likewise.
13622 * varasm.c (compare_constant): Likewise.
13624 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13626 * real.h (real_equal): Declare.
13627 (REAL_VALUES_EQUAL): Delete.
13628 * real.c (real_equal): New function.
13629 (real_compare): Use it.
13630 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
13631 * doc/tm.texi: Regenerate.
13632 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
13633 real_equal instead of REAL_VALUES_EQUAL.
13634 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
13635 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
13636 (fp_const_from_val): Likewise.
13637 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
13638 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
13639 (floating_exact_log2): Likewise.
13640 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13641 * config/vax/vax.c (vax_float_literal): Likewise.
13642 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13643 * cprop.c (implicit_set_cond_p): Likewise.
13644 * expmed.c (expand_mult): Likewise.
13645 * fold-const.c (const_binop): Likewise.
13646 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13647 (simplify_const_binary_operation): Likewise.
13648 (simplify_const_relational_operation): Likewise.
13649 * tree-call-cdce.c (check_pow): Likewise.
13650 (gen_conditions_for_pow_cst_base): Likewise.
13651 * tree-inline.c (estimate_num_insns): Likewise.
13652 * tree-ssa-dom.c (record_equality): Likewise.
13653 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13654 (gimple_expand_builtin_pow): Likewise.
13655 (pass_optimize_widening_mul::execute): Likewise.
13656 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
13657 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
13658 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
13660 2015-10-05 Richard Biener <rguenther@suse.de>
13663 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
13664 consider loop header PHI defs as IVs.
13666 2015-10-05 Richard Biener <rguenther@suse.de>
13668 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
13670 (create_expression_by_pieces): ... here and build GIMPLE
13671 calls directly. Use gimple_build API and avoid force_gimple_operand.
13672 (insert_into_preds_of_block): Simplify.
13673 (do_regular_insertion): Add comment.
13675 2015-10-04 Jason Merrill <jason@redhat.com>
13677 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
13679 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
13681 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
13682 check for general register.
13683 (ix86_emit_save_regs): Ditto.
13684 (ix86_emit_save_regs_using_mov): Ditto.
13685 (ix86_emit_restore_regs_using_pop): Ditto.
13686 (ix86_emit_restore_regs_using_mov): Ditto.
13688 2015-10-03 Marek Polacek <polacek@redhat.com>
13690 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
13691 (insn-dfatab.o): Likewise.
13693 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
13695 * config.gcc (xtensa*-*-uclinux*): New configuration.
13696 * config/xtensa/uclinux.h: New file.
13697 * config/xtensa/uclinux.opt: New file.
13699 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
13701 * doc/cpp.texi (Standard Predefined Macros): Document value of
13702 __cplusplus for C++14.
13704 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
13706 * gcc.c (process_command): Use spec_machine rather than
13707 spec_host_machine to build tooldir_prefix2.
13709 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13710 Bernd Schmidt <bernds@codesourcery.com>
13712 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
13713 (Token, Stmt): Remove structs.
13714 (decls, vars, fns): Remove variables.
13715 (alloc_comment, append_stmt, is_keyword): Remove macros.
13716 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
13717 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
13718 (parse_init, parse_file): Remove functions.
13719 (read_file): Accept a pointer to a length and store into it.
13720 (process): Don't try to parse the input file, just write it out as
13721 a string, but looking for maps. Also write out the length.
13722 (main): Don't use "-S" to compile PTX code.
13724 2015-10-02 Jeff Law <law@redhat.com>
13726 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
13729 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
13732 * config/nvptx/mkoffload.c (main): Scan the argument vector for
13733 -fopenmp, and skip generating an offloading image if specified.
13735 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
13737 * system.h (ROUND_UP): New macro definition.
13738 (ROUND_DOWN): Ditto.
13739 * ggc-page.c (ROUND_UP): Remove local macro definition.
13740 (PAGE_ALIGN): Implement using ROUND_UP macro.
13742 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
13743 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
13745 (ix86_compute_frame_layout): Ditto.
13746 (ix86_expand_prologue): Ditto.
13747 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
13748 to round down values.
13749 (expand_set_or_movmem_via_rep): Ditto.
13751 2015-10-02 Marek Polacek <polacek@redhat.com>
13753 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
13755 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
13757 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
13758 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
13759 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
13760 (free_gimple_bb): Renamed free_gimple_poly_bb.
13761 (try_generate_gimple_bb): Hoist loop invariant code.
13762 (analyze_drs_in_stmts): Same.
13763 (build_scop_drs): Call renamed functions.
13764 (new_pbb_from_pbb): Same.
13765 (scop_ivs_can_be_represented): Delete as functionality now moved to
13766 graphite-scop-detection.c
13767 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
13769 2015-10-02 Aditya Kumar <hiraditya@msn.com>
13771 * graphite-scop-detection.c (stmt_has_side_effects): New function
13772 outlined from stmt_simple_for_scop_p.
13773 (graphite_can_represent_stmt): Same.
13774 (stmt_simple_for_scop_p): Moved code out of this function for better
13777 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13779 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
13781 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
13783 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13785 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
13787 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
13789 PR rtl-optimization/67756
13790 * lra-constraints.c (match_reload): Add a new parameter. Use it
13791 for creating a pseudo with the same value.
13792 (curr_insn_transform): Pass a new argument to match_reload.
13794 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13796 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
13797 (expand_vec_perm_even_odd_1): Handle V64QImode.
13798 (ix86_expand_vec_perm_const_1): Try expansion with
13799 expand_vec_perm_even_odd_trunc as well.
13800 * config/i386/sse.md (VI124_AVX512F): Rename to ...
13801 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
13803 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
13804 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
13805 to V32HI and V16SI.
13806 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
13807 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
13808 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
13809 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
13810 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
13811 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
13813 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
13815 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
13816 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
13818 2015-10-02 Jason Merrill <jason@redhat.com>
13821 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
13822 (diagnose_tm_1_op): Also diagnose volatile accesses in
13823 transaction_safe function.
13825 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
13827 * system.h (malloc.h): Don't include obsolete header.
13829 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13831 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
13832 (TLS_SECTION_ASM_FLAG): Delete.
13834 2015-10-02 Marek Polacek <polacek@redhat.com>
13837 * doc/invoke.texi: Document -Wduplicated-cond.
13838 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
13839 (insn-dfatab.o): Likewise.
13840 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
13843 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
13845 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
13848 2015-10-02 Renlin Li <renlin.li@arm.com>
13850 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
13852 2015-10-02 Renlin Li <renlin.li@arm.com>
13855 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
13857 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13859 PR rtl-optimization/67786
13860 PR rtl-optimization/67787
13861 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
13862 it modifies a reg used in the condition calculation.
13864 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
13866 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
13867 alternatives for reads from memory and moves from general-purpose
13869 (*aarch64_combinez_be<mode>): Likewise.
13871 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
13874 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
13875 selectany within this function without need to keep attribute.
13876 (i386_pe_encode_section_info): Remove selectany-code.
13878 2015-10-02 Richard Biener <rguenther@suse.de>
13880 * tree-ssa-sccvn.c (has_VN_INFO): New function.
13881 (free_scc_vn): Use it.
13882 (visit_use): Remove dead code and refactor to use gassign
13883 and use less indentation.
13885 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13889 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
13890 (rs6000_cannot_copy_insn_p): New function.
13891 * config/rs6000/rs6000.md (cannot_copy): New attribute.
13892 (load_toc_v4_PIC_1_normal): Set cannot_copy.
13893 (load_toc_v4_PIC_1_476): Ditto.
13895 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
13897 * graphite-scop-detection.c (struct sese_l): New conversion constructor
13898 so that this type can be pushed into a vec.
13899 (class scop_builder): use sese_l to collect scops.
13900 (get_scops): New getter function.
13901 (remove_intersecting_scops): Use sese_l instead of scops_p.
13902 (intersects): Same.
13905 (remove_subscops): Same.
13906 (build_scops): Add scops to vec<scops_p> once all the scops have been
13909 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
13911 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13912 Renamed type from gimple_bb_p to gimple_poly_bb_p.
13913 (translate_isl_ast_node_user): Same.
13914 * graphite-poly.c (new_poly_bb): Same.
13915 * graphite-poly.h (gbb_from_bb): Same.
13917 * graphite-sese-to-poly.c (new_gimple_bb):
13918 gimple_bb_p -> gimple_poly_bb_p
13919 (build_scop_scattering): Same.
13920 (find_params_in_bb): Same.
13921 (add_conditions_to_domain): Same.
13922 (sese_dom_walker::before_dom_children): Same.
13923 (analyze_drs_in_stmts): Same.
13924 (new_pbb_from_pbb): Same.
13925 (free_data_refs_aux): New pointer to type base_alias_pair.
13926 * graphite-sese-to-poly.h: Same.
13927 * sese.c (if_region_set_false_region): Fixed Indentation.
13928 (move_sese_in_condition): Same.
13930 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13931 Aditya Kumar <aditya.k7@samsung.com>
13933 PR tree-optimization/66980
13934 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
13935 when data reference analysis has failed.
13937 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13938 Aditya Kumar <aditya.k7@samsung.com>
13940 PR tree-optimization/67754
13941 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
13942 scev analysis on the same loop nest as analyze_drs_in_stmts.
13943 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
13945 (try_generate_gimple_bb): Call outermost_loop_in_sese.
13946 (analyze_drs_in_stmts): Same.
13947 * sese.c (outermost_loop_in_sese): ...here.
13949 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13950 Aditya Kumar <aditya.k7@samsung.com>
13952 PR tree-optimization/67754
13953 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
13954 recursion on the inner loops.
13956 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13958 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
13959 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
13960 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
13961 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
13962 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
13964 2015-10-01 Marek Polacek <polacek@redhat.com>
13967 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
13968 create_tmp_var_raw rather than create_tmp_var.
13970 2015-10-01 Marek Polacek <polacek@redhat.com>
13972 PR tree-optimization/67769
13973 * tree-ssa-phiopt.c (conditional_replacement): Call
13974 reset_flow_sensitive_info_in_bb.
13975 (minmax_replacement): Likewise.
13976 (abs_replacement): Likewise.
13978 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
13980 * builtins.c: Don't include gomp-constants.h.
13981 (fold_builtin_1): Don't fold acc_on_device here.
13982 * gimple-fold.c: Include gomp-constants.h.
13983 (gimple_fold_builtin_acc_on_device): New.
13984 (gimple_fold_builtin): Call it.
13986 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
13988 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
13989 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
13991 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
13993 * config/arm/aarch-common-protos.h
13994 (aarch_accumulator_forwarding): New.
13995 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13996 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
13997 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13998 * config/arm/cortex-a53.md: Rewrite.
14000 2015-10-01 Richard Biener <rguenther@suse.de>
14002 * gimple-match.h (mprts_hook): Declare.
14003 * gimple-match.head.c (mprts_hook): Define.
14004 (maybe_push_res_to_seq): Use new hook.
14005 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
14006 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
14007 (vn_ssa_aux::has_constants): Remove.
14008 * tree-ssa-sccvn.c: Include gimple-match.h.
14009 (VN_INFO_GET): Assert we don't re-use SSA names.
14010 (vn_get_expr_for): Remove.
14011 (expr_has_constants): Likewise.
14012 (stmt_has_constants): Likewise.
14013 (simplify_binary_expression): Likewise.
14014 (simplify_unary_expression): Likewise.
14015 (vn_lookup_simplify_result): New hook.
14016 (visit_copy): Adjust.
14017 (visit_reference_op_call): Likewise.
14018 (visit_phi): Likewise.
14019 (visit_use): Likewise.
14020 (process_scc): Likewise.
14021 (init_scc_vn): Likewise.
14022 (visit_reference_op_load): Likewise. Use match-and-simplify and
14023 a gimple seq for inserted expressions.
14024 (try_to_simplify): Remove GENERIC stmt combining code.
14025 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
14026 * tree-ssa-pre.c (eliminate_insert): Adjust.
14027 (eliminate_dom_walker::before_dom_children): Likewise.
14029 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14031 * doc/invoke.texi (Optimization Options): Add
14032 -freorder-blocks-algorithm=.
14033 (Optimize Options) <-O>: Add -freorder-blocks.
14034 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
14035 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
14036 <-freorder-blocks>: Also enabled at levels -O and -Os.
14037 <-freorder-blocks-algorithm=>: Document new option.
14039 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14041 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
14042 with flag_reorder_blocks_algorithm.
14043 * common.opt (freorder-blocks-algorithm=): New flag.
14044 (reorder_blocks_algorithm): New enum.
14045 * flag-types.h (reorder_blocks_algorithm): New enum.
14046 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
14047 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
14049 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14051 * bb-reorder.c: Add intro comment.
14052 (reorder_basic_blocks_software_trace_cache): Print a header to
14054 (edge_order): New function.
14055 (reorder_basic_blocks_simple): New function.
14056 (reorder_basic_blocks): Choose between the STC and the simple
14057 algorithms (always choose the former).
14059 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14061 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
14062 function, factored out from ...
14063 (reorder_basic_blocks): ... here.
14065 2015-10-01 Tom de Vries <tom@codesourcery.com>
14067 * tree-cfg.c (dump_function_to_file): Dump function attributes using
14068 __attribute__(()) string. Move dumping of function attributes to before
14071 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
14074 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
14075 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
14076 based on gold linker version.
14077 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
14078 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
14079 * configure, config.in: Regenerate.
14081 2015-10-01 Alan Modra <amodra@gmail.com>
14083 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
14084 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
14085 (rs6000_output_mi_thunk): Likewise.
14087 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14089 * config/nvptx/mkoffload.c (process): Change offload data format.
14091 2015-09-30 Jeff Law <law@redhat.com>
14093 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
14094 with constant conditions.
14095 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
14096 (remove_ctrl_stmt_and_useless_edges): No longer static.
14097 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
14098 (remove_ctrl_stmt_and_useless_edges): Likewise.
14100 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14101 Cesar Philippidis <cesar@codesourcery.com>
14103 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
14104 (TARGET_GOACC_VALIDATE_DIMS): Override.
14105 * target.def (TARGET_GOACC): New target hook prefix.
14106 (validate_dims): New hook.
14107 * targhooks.h (default_goacc_validate_dims): New.
14108 * omp-low.c (oacc_validate_dims): New.
14109 (execute_oacc_device_lower): New.
14110 (default_goacc_validate_dims): New.
14111 (pass_data_oacc_device_lower): New.
14112 (pass_oacc_device_lower): New pass.
14113 (make_pass_oacc_device_lower): New.
14114 * tree-pass.h (make_pass_oacc_device_lower): Declare.
14115 * passes.def (pass_oacc_device_lower): Add it.
14116 * doc/tm.texi: Rebuilt.
14117 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
14118 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
14120 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14122 PR rtl-optimization/67037
14123 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
14125 2015-09-30 Bernd Schmidt <bernds@redhat.com>
14127 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
14128 * passes.c: Include tree-ssanames.h.
14129 (execute_function_todo): Flush the pending free SSA_NAMEs after
14130 eliminating unreachable basic blocks.
14131 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
14132 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
14133 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
14134 (flush_ssanames_freelist): New function.
14135 (release_ssaname_fn): Put released names on the queue.
14136 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
14137 * tree-ssanames.h (flush_ssanames_freelist): Declare.
14139 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14141 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
14142 (generate_target_descr_file, generate_target_offloadend_file)
14143 (generate_host_descr_file, prepare_target_image): Pass it on.
14144 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
14145 (compile_native, main): Pass it on.
14146 * lto-wrapper.c (compile_offload_image): Likewise.
14148 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14149 Ilya Verbin <ilya.verbin@intel.com>
14150 Andrey Turetskiy <andrey.turetskiy@intel.com>
14152 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
14153 (prepare_target_image, main): Refactor argv building to use
14156 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14158 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
14159 * config/spu/spu.c (spu_expand_atomic_op): New function.
14160 * config/spu/spu.md (AINT): New mode iterator.
14161 (ATOMIC): New code iterator.
14162 (atomic_name, atomic_pred): New code predicates.
14163 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
14164 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
14165 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
14166 "atomic_<atomic_name>_fetch<mode>"): Likewise.
14168 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
14170 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
14172 (scalar_chain::convert_reg): Likewise.
14174 2015-09-30 Richard Biener <rguenther@suse.de>
14176 * builtins.c: Add comment that no new simplifications should
14179 2015-09-30 Marek Polacek <polacek@redhat.com>
14181 PR tree-optimization/67690
14182 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
14183 reset_flow_sensitive_info_in_bb.
14184 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14185 * tree-ssanames.c: Include "gimple-iterator.h".
14186 (reset_flow_sensitive_info_in_bb): New function.
14187 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
14189 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14191 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
14192 variable, replacing it with...
14193 (offload_abi): ... this new variable. Adjust all users.
14194 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
14196 2015-09-30 Matthias Klose <doko@ubuntu.com>
14198 * configure.ac: Remove extraneous ;;.
14199 * configure: Regenerate.
14201 2015-09-29 James Bowman <james.bowman@ftdichip.com>
14203 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
14204 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
14205 predicate, disallow register for operand 2.
14207 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
14209 * graphite-dependences.c (scop_get_dependences): Moved in down
14210 in order to be visible to its caller.
14211 * graphite-poly.h: Removed compute_deps, and extend_schedule.
14213 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14214 Aditya Kumar <aditya.k7@samsung.com>
14216 PR tree-optimization/67754
14217 * graphite-optimize-isl.c (optimize_isl): Call
14218 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
14220 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14222 * builtins.c (expand_builtin_acc_on_device): Delete.
14223 (expand_builtin): Don't call it.
14224 (fold_builtin_1): Fold acc_on_device.
14226 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
14228 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
14229 (ix86_nsaved_sseregs): Likewise.
14231 2015-09-29 Jeff Law <law@redhat.com>
14233 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
14234 computation of unused value.
14236 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
14237 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
14238 inline macro expansion.
14240 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
14242 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
14243 (gen_shl_sext): Likewise.
14244 * config/sh/sh.md (divsi3): Likewise.
14245 (imm->ext_dest_operand splitter): Likewise.
14247 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14248 Aditya Kumar <aditya.k7@samsung.com>
14250 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
14251 (nb_data_writes_in_bb): Remove.
14252 (split_pbb): Remove.
14253 (split_reduction_stmt): Remove.
14254 (is_reduction_operation_p): Remove.
14255 (phi_contains_arg): Remove.
14256 (follow_ssa_with_commutative_ops): Remove.
14257 (detect_commutative_reduction_arg): Remove.
14258 (detect_commutative_reduction_assign): Remove.
14259 (follow_inital_value_to_phi): Remove.
14260 (edge_initial_value_for_loop_phi): Remove.
14261 (initial_value_for_loop_phi): Remove.
14262 (used_outside_reduction): Remove.
14263 (detect_commutative_reduction): Remove.
14264 (translate_scalar_reduction_to_array_for_stmt): Remove.
14265 (remove_phi): Remove.
14266 (dr_indices_valid_in_loop): Remove.
14267 (close_phi_written_to_memory): Remove.
14268 (translate_scalar_reduction_to_array): Remove.
14269 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
14270 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
14271 (rewrite_commutative_reductions_out_of_ssa): Remove.
14272 (build_poly_scop): Remove call to
14273 rewrite_commutative_reductions_out_of_ssa.
14275 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
14277 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
14278 Add new insn types for vector load and store pairs.
14279 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
14280 types "neon_ldp{,_q}".
14281 * config/arm/cortex-a57.md (neon_load_c): Add insn types
14283 (neon_store_complex): Add insn types "neon_stp{,_q}".
14284 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
14285 "neon_{ldp,stp}_q".
14287 2015-09-29 Jeff Law <law@redhat.com>
14289 * config/rx/constraints.md (Int08): Fix undefined left shift
14291 (Sint08, Sint16, Sint24): Likewise.
14292 * config/rx/rx.c (rx_get_stack_layout): Likewise.
14294 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
14297 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
14298 left shift behaviour.
14299 * config/msp430/constraints.md ('L' constraint): Similarly.
14300 ('Ys' constraint): Similarly.
14302 2015-09-29 Richard Biener <rguenther@suse.de>
14304 PR tree-optimization/67170
14305 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
14306 the translate function pointer parameter to get the
14307 bool whether to disambiguate only by reference.
14308 (walk_non_aliased_vuses): Likewise.
14309 * tree-ssa-alias.c (maybe_skip_until): Adjust.
14310 (get_continuation_for_phi_1): Likewise.
14311 (get_continuation_for_phi): Likewise.
14312 (walk_non_aliased_vuses): Likewise.
14313 * tree-ssa-sccvn.c (const_parms): New bitmap.
14314 (vn_reference_lookup_3): Adjust for interface change.
14315 Disambiguate parameters pointing to readonly memory.
14316 (free_scc_vn): Free const_parms.
14317 (run_scc_vn): Initialize const_parms from a fn spec attribute.
14319 2015-09-29 Richard Biener <rguenther@suse.de>
14321 PR tree-optimization/67741
14322 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
14323 builtin calls with correct signature.
14325 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
14328 * config/i386/i386.c: Include dbgcnt.h.
14329 (has_non_address_hard_reg): New.
14330 (convertible_comparison_p): New.
14331 (scalar_to_vector_candidate_p): New.
14332 (remove_non_convertible_regs): New.
14333 (scalar_chain): New.
14334 (scalar_chain::scalar_chain): New.
14335 (scalar_chain::~scalar_chain): New.
14336 (scalar_chain::add_to_queue): New.
14337 (scalar_chain::mark_dual_mode_def): New.
14338 (scalar_chain::analyze_register_chain): New.
14339 (scalar_chain::add_insn): New.
14340 (scalar_chain::build): New.
14341 (scalar_chain::compute_convert_gain): New.
14342 (scalar_chain::replace_with_subreg): New.
14343 (scalar_chain::replace_with_subreg_in_insn): New.
14344 (scalar_chain::emit_conversion_insns): New.
14345 (scalar_chain::make_vector_copies): New.
14346 (scalar_chain::convert_reg): New.
14347 (scalar_chain::convert_op): New.
14348 (scalar_chain::convert_insn): New.
14349 (scalar_chain::convert): New.
14350 (convert_scalars_to_vector): New.
14351 (pass_data_stv): New.
14353 (make_pass_stv): New.
14354 (ix86_option_override): Created and register stv pass.
14355 (flag_opts): Add -mstv.
14356 (ix86_option_override_internal): Likewise.
14357 * config/i386/i386.md (SWIM1248x): New.
14358 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
14359 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
14360 (*anddi3_doubleword): New.
14361 (*zext<mode>_doubleword): New.
14362 (*zextsi_doubleword): New.
14363 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
14364 (*<code>di3_doubleword): New.
14365 * config/i386/i386.opt (mstv): New.
14366 * dbgcnt.def (stv_conversion): New.
14368 2015-09-29 Tom de Vries <tom@codesourcery.com>
14370 * tree-cfg.c (dump_function_to_file): Dump function attributes.
14372 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
14375 * config/sh/sh.c (sh_override_options_after_change): New.
14376 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
14377 (sh_option_override): Move align_loops, align_jumps and
14378 align_functions handling into sh_override_options_after_change.
14380 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14382 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
14383 (nvptx_record_offload_symbol): Record function execution geometry.
14384 * config/nvptx/mkoffload.c (process): Include launch geometry in
14386 * omp-low.c (oacc_launch_pack): New.
14387 (replace_oacc_fn_attrib): New.
14388 (set_oacc_fn_attrib): New.
14389 (get_oacc_fn_attrib): New.
14390 (expand_omp_target): Create keyed varargs for GOACC_parallel call
14392 * omp-low.h (get_oacc_fn_attrib): Declare.
14393 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
14394 (DEF_FUNCTION_TYPE_VAR_11): Delete.
14395 * tree.h (OMP_CLAUSE_EXPR): New.
14396 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
14398 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14399 Sebastian Pop <s.pop@samsung.com>
14401 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
14403 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14404 Sebastian Pop <s.pop@samsung.com>
14406 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
14407 * graphite-scop-detection.c (struct sese_l): New type.
14408 (get_entry_bb): API for getting entry bb of SESE.
14409 (get_exit_bb): API for getting exit bb of SESE.
14410 (class debug_printer): New type. Simple printer in debug mode.
14411 (trivially_empty_bb_p): New. Return true when BB is empty or
14412 contains only debug instructions.
14413 (graphite_can_represent_expr): Call scalar_evoution_in_region
14414 instead of analyze_scalar_evolution. Pass in scop instead of only
14416 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
14418 (stmt_simple_for_scop_p): Same.
14419 (harmful_stmt_in_bb): Same.
14420 (graphite_can_represent_loop): Deleted.
14421 (struct scopdet_info): Deleted.
14422 (scopdet_basic_block_info): Deleted.
14423 (build_scops_1): Deleted.
14424 (bb_in_sd_region): Deleted.
14425 (find_single_entry_edge): Deleted.
14426 (find_single_exit_edge): Deleted.
14427 (create_single_entry_edge): Deleted.
14428 (sd_region_without_exit): Deleted.
14429 (create_single_exit_edge): Deleted.
14430 (unmark_exit_edges): Deleted.
14431 (mark_exit_edges): Deleted.
14432 (create_sese_edges): Deleted.
14433 (build_graphite_scops): Deleted.
14434 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
14435 (build_scops): Use the new scop_builder to build scops.
14436 (dot_all_scops_1): Use the new pretty printer. Print loop father
14438 (loop_body_is_valid_scop): New. Return true if loop body is a
14440 (class scop_builder): New. Builds SCoPs for polyhedral
14442 (scop_builder): New constructor.
14443 (static sese_l invalid_sese): sese_l with invalid edges.
14444 (get_sese): Get an sese (from a loop) if possible, invalid_sese
14446 (get_nearest_dom_with_single_entry): Get nearest dominator of a
14447 basic_block with single entry. Return NULL if we get to the
14448 beginning of a function.
14449 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
14450 a basic_block with single exit. Return NULL if we get to the
14451 beginning of a function.
14452 (print_sese): Pretty-print SESE.
14453 (merge_sese): Merge two SESEs if possible and return the new SESE.
14454 (build_scop_depth): Start building the SCoP within a loop nest.
14455 (build_scop_breadth): Start building the SCoP at a single loop
14456 depth. Merge adjacent SESEs if valid.
14457 (can_represent_loop_1): Returns true if Graphite can represent
14458 loop inside SCoP. Helper for can_represent_loop.
14459 (can_represent_loop): Returns true if Graphite can represent LOOP
14460 and all its nested loops in SCoP.
14461 (loop_is_valid_scop): Returns true if LOOP and all its nests
14462 constitute a valid SCoP.
14463 (region_has_one_loop): Returns true of a region has only one loop.
14464 (add_scop): Add SCoP to the list of valid scops. Removes an
14465 already existing scop if it intersects with or subsumed by this one.
14466 (harmful_stmt_in_region): Returns true if SCoP has any statment
14467 which cannot be represented by Graphite.
14468 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
14469 (remove_subscops): Remove any SCoP from the list of already found
14470 SCoPs, if subsumed by S1.
14471 (intersects): Return true if region bounded by SCoPs S1 and S2
14473 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
14474 * graphite.c (print_graphite_scop_statistics):
14475 (print_graphite_statistics): Print SCoP info while debugging.
14476 (graphite_initialize): Early exit in case number of loops in a
14477 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
14478 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14479 (graphite_finalize):
14480 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
14481 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
14482 (recompute_all_dominators): Recalculate POST_DOMINATORS.
14483 * tree-cfg.c (print_loops): Print the function name while printing
14486 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14487 Sebastian Pop <s.pop@samsung.com>
14489 PR tree-optimization/67700
14490 * graphite-sese-to-poly.c (parameter_index_in_region): Call
14491 invariant_in_sese_p_rec.
14492 (extract_affine): Same.
14493 (rewrite_cross_bb_scalar_deps): Call update_ssa.
14494 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
14495 * sese.h (invariant_in_sese_p_rec): Declare.
14497 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
14499 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
14501 2015-09-28 Jiong Wang <jiong.wang@arm.com>
14504 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14505 Jiong Wang <jiong.wang@arm.com>
14507 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14508 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14509 (REG_CLASS_NAMES): Likewise.
14510 (REG_CLASS_CONTENTS): Likewise.
14511 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14512 (aarch64_register_move_cost): Likewise.
14513 (aarch64_load_symref_appropriately): Invoke the new added pattern if
14515 * config/aarch64/constraints.md (Uc0): New constraint.
14517 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
14519 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
14521 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
14523 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
14524 SECTION_EXCLUDE in XO mapping class.
14526 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
14529 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
14530 and handle ne and eq codes.
14531 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
14532 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
14533 CONST_INT_P. Use reverse_condition.
14534 (sh_split_treg_set_expr): Likewise.
14536 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
14538 * config/arm/types.md (type): Add rotate_imm.
14539 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
14540 ROR immediate case.
14541 (*rorsi3_insn_uxtw): Likewise.
14542 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
14543 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
14544 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
14546 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14548 PR rtl-optimization/67481
14549 * ifcvt.c (contains_ccmode_rtx_p): New function.
14550 (insn_valid_noce_process_p): Use it.
14552 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14554 PR rtl-optimization/67456
14555 PR rtl-optimization/67464
14556 PR rtl-optimization/67465
14557 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
14558 move in the mode of x. Handle combination of complex and simple
14559 block pairs as well as the case when one is empty.
14561 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14563 * doc/gimple.texi: Update references to gimple_statement_base.
14564 * gdbhooks.py: Likewise.
14565 * gimple.h: Likewise.
14567 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14569 * config/sparc/driver-sparc.c: map LEON to leon3
14571 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14573 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
14574 and make it inverse to change default
14575 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
14577 * doc/invoke.texi: Document change of default
14579 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14581 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
14582 true on %f0 for a target without FPU.
14583 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
14585 (untyped_return): Do not load %f0 for a target without FPU.
14587 2015-09-28 Andrew Pinski <apinski@cavium.com>
14589 * config/aarch64/aarch64.md (prefetch):
14590 Change the predicate of operand 0 to register_operand.
14592 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
14594 * config/i386/predicates.md (register_sse4nonimm_operand): New
14596 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
14597 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
14598 Use register_sse4nonimm_operand as operand 0 predicate.
14599 (*vec_extractv8hi_sse2): Remove insn pattern.
14600 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
14601 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
14603 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
14604 Kaz Kojima <kkojima@gcc.gnu.org>
14607 * config/sh/sh-protos.h (sh_lra_p): Declare.
14608 * config/sh/sh.c (sh_lra_p): Make non-static.
14609 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
14610 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
14611 Expand into addsi3_scr if operands[2] if needed.
14612 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
14613 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
14614 (addsi3_scr, *addsi3): New insn_and_split patterns.
14616 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
14618 PR rtl-optimization/64164
14619 PR tree-optimization/67312
14620 PR middle-end/67340
14621 PR middle-end/67490
14623 * cfgexpand.c (parm_in_stack_slot_p): Remove.
14624 (ssa_default_def_partition): Remove.
14625 (get_rtl_for_parm_ssa_default_def): Remove.
14626 (set_rtl): Check that RTL assignments match expectations.
14627 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
14628 default def location for params and results. Record SSA names
14629 or types in REG and MEM attrs, respectively.
14630 (set_parm_rtl): New.
14631 (expand_one_ssa_partition): Drop logic that assigned MEMs with
14632 unassigned addresses.
14633 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
14634 deferred stack alloc vars.
14635 (expand_used_vars): Skip partitions holding parm default defs.
14636 Move adjust_one_expanded_partition_var loop...
14637 (pass_expand::execute): ... here. Drop redundant assert.
14638 Adjust comments before the final loop over all ssa names.
14639 Require assigned rtl of parms and results to match exactly.
14640 Reset its attributes to match them, not any other variables in
14641 the same partition.
14642 (expand_debug_expr): Use entry value for PARM's default defs
14643 only iff they have zero nondebug uses.
14644 * cfgexpand.h (parm_in_stack_slot_p): Remove.
14645 (get_rtl_for_parm_ssa_default_def): Remove.
14646 (set_parm_rtl): Declare.
14647 * doc/invoke.texi: Improve wording.
14648 * explow.c (promote_decl_mode): Fix promote_function_mode for
14649 result decls not by reference.
14650 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
14651 bypass TYPE_MODE to get the actual vector mode.
14652 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
14653 2015-08-19's changes as follows. Drop include of
14654 basic-block.h and df.h.
14655 (rtl_for_parm): Remove.
14656 (maybe_reset_rtl_for_parm): Remove.
14657 (parm_in_unassigned_mem_p): Remove.
14658 (use_register_for_decl): Add logic for RESULT_DECLs matching
14659 assign_parms' behavior.
14660 (split_complex_args): Revert.
14661 (assign_parms_augmented_arg_list): Revert. Add comment
14662 referencing the logic above.
14663 (assign_parm_adjust_stack_rtl): Revert.
14664 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
14665 of SET_DECL_RTL. Set up a REG if the parm demands so.
14666 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
14667 calls into a single set_parm_rtl. Set up a temporary RTL
14668 temporarily for expand_assignment.
14669 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
14670 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
14671 (assign_bounds): Revert.
14672 (assign_parms): Revert. Use set_parm_rtl.
14673 (allocate_struct_function): Relayout result and parms of
14674 non-abstruct functions.
14675 (expand_function_start): Revert. Use set_parm_rtl. If the
14676 result is not a hard reg, create a pseudo from the promoted
14677 mode of the default def. Promote static chain mode.
14678 * tree-outof-ssa.c (remove_ssa_form): Drop unused
14679 partition_has_default_def. Set up
14680 partitions_for_parm_default_defs.
14681 (finish_out_of_ssa): Remove partition_has_default_def.
14682 Release partitions_for_parm_default_defs.
14683 * tree-outof-ssa.h (struct ssaexpand): Remove
14684 partition_has_default_def. Add
14685 partitions_for_parm_default_defs.
14686 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
14688 (build_ssa_conflict_graph): Fix conflict-detection of default
14689 defs of even unused default defs of params and results.
14690 (for_all_parms): New.
14691 (create_default_def): New.
14692 (register_default_def): New.
14693 (coalesce_with_default): New.
14694 (create_outofssa_var_map): Create default defs for all parms
14695 and results, and register their partitions. Add GIMPLE_RETURN
14696 operands as coalesce candidates with results. Add default
14697 defs of each parm or result as coalesce candidates with its
14698 other defs. Mark each result def, and each default def of
14699 parms, as used_in_copy.
14700 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
14701 with the ssa names, even anonymous ones. Drop
14702 parm_in_stack_slot_p calls. Require same signedness and
14704 (coalesce_ssa_name): Add coalesce candidates for all defs of
14705 each parm and result, even unused ones.
14706 (parm_default_def_partition_arg): New type.
14707 (set_parm_default_def_partition): New.
14708 (get_parm_default_def_partitions): New.
14709 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
14710 * tree-ssa-live.c (partition_view_init): Regard unused defs of
14711 parms and results as used.
14712 (verify_live_on_entry): Don't error out just because they're
14715 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
14717 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14718 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
14719 (output_fde): Don't output length for debug_frame on AIX.
14720 (output_call_frame_info): Don't output length for debug_frame on AIX.
14721 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
14722 HAVE_XCOFF_DWARF_EXTRAS.
14723 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
14724 HAVE_XCOFF_DWARF_EXTRAS.
14725 (output_compilation_unit_header): Don't output length on AIX.
14726 (output_pubnames): Don't output length on AIX.
14727 (output_aranges): Delete argument. Compute length locally. Don't
14728 output length on AIX.
14729 (output_line_info): Don't output length on AIX.
14730 (dwarf2out_finish): Don't compute aranges_length.
14731 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
14732 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
14733 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
14734 symbol decoration for AIX.
14735 (rs6000_xcoff_debug_unwind_info): New.
14736 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
14738 (rs6000_xcoff_declare_function_name): Emit different
14739 .function pseudo-op when DWARF2_DEBUG. Don't call
14740 xcoffout_declare_function for DWARF2_DEBUG.
14741 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
14743 * config/rs6000/aix71.h: New.
14744 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
14746 * configure: Regenerate.
14747 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
14750 2015-09-26 Jeff Law <law@redhat.com>
14752 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
14754 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
14757 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
14760 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
14761 undefined behaviour.
14763 * config/cris/cris.md (asrandb): Fix left shift undefined
14765 (asrandw): Likewise.
14767 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
14770 * lra-constarints.c (match_reload): Check presence of the input pseudo
14771 in the output operand.
14773 2015-09-25 Tobias Burnus <burnus@net-b.de>
14775 * doc/invoke.texi (-fsanitize): Minor wording tweak.
14777 2015-09-25 Tobias Burnus <burnus@net-b.de>
14779 * doc/invoke.texi (-fsanitize): Update URLs.
14781 2015-09-25 Teresa Johnson <tejohnson@google.com>
14783 * opts.c (finish_options): Unset -freorder-blocks-and-partition
14784 if not using profile.
14786 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
14788 PR pretty-print/67567
14789 * pretty-print.c (pp_string): Add gcc_checking_assert.
14790 * pretty-print.h (output_buffer_append_r): Likewise.
14792 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
14795 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
14796 addr2 individually. Don't emit logical or insn if one is known to
14797 be aligned approriately.
14798 (sh_expand_cmpnstr): Likewise.
14800 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
14802 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
14803 __builtin_aarch64_fp[sc]r arguments into a register.
14805 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
14807 * config.gcc (x86_archs): Replace lakemount with lakemont.
14808 (with_cpu): Likewise.
14809 (with_arch): Likewise.
14810 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14811 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
14812 __tune_lakemount__ with __tune_lakemont__.
14813 * config/i386/i386.c (lakemount_cost): Renamed to ...
14814 (lakemont_cost): This.
14815 (m_LAKEMOUNT): Renamed to ...
14816 (m_LAKEMONT): This.
14817 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
14818 (processor_target_table): Replace "lakemount" with "lakemont".
14819 (processor_alias_table): Likewise.
14820 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
14821 PROCESSOR_LAKEMONT.
14822 (ix86_adjust_cost): Likewise.
14823 (ia32_multipass_dfa_lookahead): Likewise.
14824 * config/i386/i386.h (processor_type): Likewise.
14825 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
14826 * doc/invoke.texi: Replace lakemount with lakemont. Replace
14827 Lakemount with Lakemont.
14829 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
14831 * config.gcc (x86_archs): Replace iamcu with lakemount.
14832 (with_cpu): Likewise.
14833 (with_arch): Likewise.
14834 * doc/invoke.texi: Likewise.
14835 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14836 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
14837 __tune_iamcu__ with __tune_lakemount__.
14838 * config/i386/i386.c (iamcu_cost): Renamed to ...
14839 (lakemount_cost): This.
14840 (m_IAMCU): Renamed to ...
14841 (m_LAKEMOUNT): This.
14842 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
14843 (processor_target_table): Replace "iamcu" with "lakemount".
14844 (processor_alias_table): Likewise.
14845 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
14846 PROCESSOR_LAKEMOUNT.
14847 (ix86_adjust_cost): Likewise.
14848 (ia32_multipass_dfa_lookahead): Likewise.
14849 * config/i386/i386.h (processor_type): Likewise.
14850 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
14852 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
14854 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
14855 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
14857 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
14858 (pa_expand_compare_and_swap_loop): New.
14859 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
14860 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
14861 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
14862 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
14863 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
14866 2015-09-24 Michael Collison <michael.collison@linaro.org>
14869 * read-md.c (read_name): Allow mode iterators inside angle
14870 brackets in rtl expressions.
14872 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
14875 * ira-color.c (update_allocno_cost): Add parameter.
14876 (update_costs_from_allocno): Decrease conflict cost. Pass the new
14879 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14882 * opts-common.c (prune_options): Discard all -fdiagnostics-color
14883 but the last one, which is moved to the front to be processed
14885 * opts.c (enable_warning_as_error): Reject options that do not
14888 2015-09-24 Jiong Wang <jiong.wang@arm.com>
14890 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
14892 2015-09-24 Jiong Wang <jiong.wang@arm.com>
14894 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
14895 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
14896 (aarch64_cannot_force_const_mem): Likewise.
14897 (aarch64_classify_address): Likewise.
14898 (aarch64_classify_symbolic_expression): Likewise.
14899 (aarch64_print_operand): Likewise.
14900 (aarch64_classify_symbol): Likewise.
14901 (aarch64_mov_operand_p): Likewise.
14902 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
14903 (aarch64_mov_operand): Likewise.
14905 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
14907 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
14908 for info->spe_gp_size.
14910 2015-09-24 Richard Biener <rguenther@suse.de>
14913 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
14916 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
14918 * tree-object-size.c (plus_stmt_object_size)
14919 (cond_expr_object_size): Change the formal parameters from gimple
14921 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
14922 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
14923 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
14925 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14927 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
14928 Check for ld -type pie on Solaris 11.x and 12.
14929 * configure: Regenerate.
14930 * config.in: Regenerate.
14932 * gcc.c (LD_PIE_SPEC): Allow redefinition.
14934 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
14935 (STARTFILE_SPEC): Use it.
14936 (ENDFILE_CRTEND_SPEC): Define.
14937 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
14938 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
14939 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
14940 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
14941 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
14942 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
14943 (ENDFILE_ARCH_SPEC): Define.
14944 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
14946 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14948 * configure.ac (gcc_cv_solaris_crts): New test.
14949 * configure. Regenerate.
14950 * config.in: Regenerate.
14951 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
14952 HAVE_SOLARIS_CRTS variant.
14954 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14956 * tree-inline.h (count_insns_seq): Delete prototype.
14957 (estimate_num_insns_seq): Define prototype.
14958 * tree-inline.c (count_insns_seq): Delete.
14959 (estimate_num_insns_seq): Remove static qualifier.
14960 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
14961 with estimate_num_insns_seq.
14963 2015-09-24 Richard Biener <rguenther@suse.de>
14965 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
14967 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
14968 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
14970 (ao_ref_init_from_vn_reference): Record clique and base in the
14972 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
14974 2015-09-24 Richard Biener <rguenther@suse.de>
14976 PR tree-optimization/48885
14977 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
14978 as not including any restrict tags from other pointers.
14980 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14982 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
14983 character when appending to offload_targets.
14985 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
14986 offload targets by commas, not colons.
14987 * config.in: Regenerate.
14988 * configure: Likewise.
14989 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
14990 instead of setting up the default offload targets here...
14991 (process_command): ..., do it here.
14993 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
14994 targets are separated by commas.
14995 * config.h.in: Regenerate.
14997 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14998 Nathan Sidwell <nathan@codesourcery.com>
15000 * omp-low.h (omp_reduction_init_op): Declare.
15001 * omp-low.c (omp_reduction_init_op): New, broken out of ...
15002 (omp_reduction_init): ... here. Call it.
15003 * tree-parloops.c (initialize_reductions): Use
15004 omp_reduction_init_op.
15006 2015-09-23 Richard Biener <rguenther@suse.de>
15008 PR middle-end/67662
15009 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
15010 undefined overflow unless they will cancel out.
15012 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
15014 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
15017 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
15020 * opts.h (write_langs): Declare.
15021 * opts-global.c (write_langs): Make it extern.
15023 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
15026 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
15027 overlapping regs when matching the pattern.
15029 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
15031 * config/aarch64/aarch64-simd.md
15032 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
15033 (aarch64_float_truncate_hi_v4sf_le): New.
15034 (aarch64_float_truncate_hi_v4sf_be): Likewise.
15036 2015-09-23 Richard Biener <rguenther@suse.de>
15038 * tree-ssa-structalias.c (intra_create_variable_infos): Build
15039 representatives for all restrict qualified pointer destinations.
15041 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
15043 * config/i386/i386.md (define_code_attr mshift): New.
15044 (define_mode_iterator SWI1248_AVX512BW): Rename ...
15045 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
15047 (define_insn "*k<logic><mode>"): Use new iterator name.
15048 (define_insn "*<mshift><mode>3"): New.
15050 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
15052 PR middle-end/67649
15053 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
15054 mark the block as accessible.
15056 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
15058 * function.c (thread_prologue_and_epilogue_insns): Delete
15059 orig_entry_edge argument to try_shrink_wrapping.
15060 * shrink-wrap.c (can_get_prologue): New function.
15061 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
15062 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
15063 can_get_prologue where needed. Remove code that finds a single
15064 edge for the prologue. Remove code that tests if any reg clobbered
15065 by the prologue is live on the prologue edge. Remove code that finds
15066 the new prologue edge after duplicating blocks. Make a new prologue
15068 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
15070 2015-09-22 Jeff Law <law@redhat.com>
15072 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
15075 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
15077 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
15078 -Wtemplates, -Wnamespaces): Document.
15080 2015-09-22 Tom de Vries <tom@codesourcery.com>
15082 PR tree-optimization/67671
15083 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
15084 pointer references as restrict.
15086 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
15088 * config/nios2/nios2.c (nios2_legitimize_address): When handling
15089 'reg + reloc' cases, allow first operand to be non-REG, and use
15090 force_reg() to enforce address pattern.
15092 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
15095 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
15096 (define_mode_iterator VI12_AVX_AVX512F): New.
15097 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
15098 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
15099 (define_insn "*<code><mode>3"): ... Into new pattern using
15100 VI12_AVX_AVX512F iterators without masking.
15102 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15104 * config.gcc: Support "skylake-avx512".
15105 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15106 PROCESSOR_SKYLAKE_AVX512.
15107 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
15108 (processor_target_table): Add "skylake-avx512".
15109 (PTA_SKYLAKE_AVX512): Define.
15110 (ix86_option_override_internal): Add "skylake_avx512".
15111 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
15112 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
15113 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
15114 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
15115 * doc/invoke.texi (skylake-avx512): New.
15117 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15119 * config/i386/i386.md (define_insn "kunpckhi"): Fix
15120 operand in pattern.
15121 (define_insn "kunpcksi"): Ditto.
15122 (define_insn "kunpckdi"): Ditto.
15124 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15126 * config/i386/i386.md (define_split not/xor SWI1248x): Use
15127 iterator instead of fixed modes.
15129 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15131 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15132 Adjust declaration.
15133 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
15134 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
15135 out_result. Update to support update-fetch operations.
15136 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
15137 Adjust for change to aarch64_gen_atomic_ldop.
15138 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
15139 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
15140 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
15141 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
15142 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
15144 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15146 * config/aarch64/aarch64-protos.h
15147 (aarch64_atomic_ldop_supported_p): Declare.
15148 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
15149 (enum aarch64_atomic_load_op_code): New.
15150 (aarch64_emit_atomic_load_op): New.
15151 (aarch64_gen_atomic_ldop): Update to support load-operate
15153 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
15155 (aarch64_atomic_<atomic_optab><mode>): New.
15156 (aarch64_atomic_<atomic_optab><mode>_lse): New.
15157 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
15158 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
15159 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
15161 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15163 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
15164 (UNSPECV_ATOMIC_LDOP_OR): New.
15165 (UNSPECV_ATOMIC_LDOP_BIC): New.
15166 (UNSPECV_ATOMIC_LDOP_XOR): New.
15167 (UNSPECV_ATOMIC_LDOP_PLUS): New.
15168 (ATOMIC_LDOP): New.
15169 (atomic_ldop): New.
15170 (aarch64_atomic_load<atomic_ldop><mode>): New.
15172 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15174 * config/aarch64/aarch64.md
15175 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
15178 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15180 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15182 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
15183 (aarch64_gen_atomic_ldop): New.
15184 (aarch64_split_atomic_op): Fix whitespace and add a comment.
15185 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
15186 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
15187 (atomic_exchange<mode>): Replace with an expander.
15188 (aarch64_atomic_exchange<mode>): New.
15189 (aarch64_atomic_exchange<mode>_lse): New.
15190 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
15191 (aarch64_atomic_swp<mode>): New.
15193 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15195 * tree-inline.c (expand_call_inline): Use inform for extra note.
15196 Do not give a note with UNKNOWN_LOCATION.
15197 Replace input_location with gimple_location (stmt).
15198 Use true/false instead of TRUE/FALSE.
15200 2015-09-22 Tom de Vries <tom@codesourcery.com>
15202 PR tree-optimization/67666
15203 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
15204 with single field non-conservative.
15206 2015-09-21 David S. Miller <davem@davemloft.net>
15210 2015-09-11 David S. Miller <davem@davemloft.net>
15212 * config/sparc/constraints.md: Make "U" constraint a real register
15214 * config/sparc/sparc.c (TARGET_LRA_P): Define.
15215 (D_MODES, DF_MODES): Add missing cast.
15216 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15217 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15218 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15220 * config/sparc/sparc.h (PROMOTE_MODE): Define.
15221 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15222 provide these insn when flag_pic.
15224 2015-09-17 David S. Miller <davem@davemloft.net>
15226 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
15228 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
15230 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15231 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15232 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15233 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15234 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15235 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15236 provide when flag_pic.
15238 2015-09-21 Jeff Law <law@redhat.com>
15240 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
15243 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15245 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
15247 2015-09-21 Richard Biener <rguenther@suse.de>
15249 * passes.c (rest_of_decl_compilation): Do not call
15250 dwarf2out_early_global_decl for aliases.
15252 2015-09-21 Richard Biener <rguenther@suse.de>
15255 * dwarf2out.c (add_location_or_const_value_attribute): Remove
15256 attribute parameter. Early exit if either DW_AT_const_value
15257 or DW_AT_location are present already.
15258 (gen_variable_die): Adjust caller.
15259 (dwarf2out_late_global_decl): Likewise.
15261 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15264 * config/sh/sh.c (sh_remove_overlapping_post_inc,
15265 sh_peephole_emit_move_insn): Add new functions.
15266 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
15267 sh_peephole_emit_move_insn): Declere them.
15268 * config/sh/sh.md: Use them in various peephole2 patterns.
15270 2015-09-21 Richard Biener <rguenther@suse.de>
15272 PR middle-end/67651
15273 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
15274 address with -fno-delete-null-pointer-checks.
15276 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
15278 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
15279 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
15280 (reduc_uplus_v16qi): Remove.
15282 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
15283 (reduc_<VEC_reduc_name>_v2df): Remove.
15284 (reduc_<VEC_reduc_name>_v4sf): Remove.
15285 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
15287 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
15288 gen_ function by removing * prefix.
15289 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
15291 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
15293 PR middle-end/60832
15294 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
15295 Print i_bound without converting it to a tree.
15297 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
15299 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
15300 operands[4] operands[5] swap with std::swap, removed tmp variable.
15301 (arm_evpc_neon_vzip): Replaced in0/in1 and
15302 out0/out1 swaps with std::swap, removed x variable.
15303 (arm_evpc_neon_vtrn): Replaced in0/int1 and
15304 out0/out1 swaos with std::swap, removed x variable.
15305 (arm_expand_vec_perm_const_1): Replaced
15306 d->op0/d->op1 swap with std::swap, removed x variable.
15307 (arm_evpc_neon_vuzp): Replaced in0/in1 and
15308 out0/out1 swaps with std::swap, removed x variable.
15310 2015-09-21 Jonathan Yong <10walls@gmail.com>
15312 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
15313 sysroot/usr/lib/32api for additional win32 libraries,
15314 fixes failing Cygwin bootstrapping.
15316 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15318 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
15320 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15323 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
15324 (*mov_t_msb_neg): Rewrite negc pattern.
15326 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15328 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
15329 immediate generation code.
15331 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15333 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
15334 redundant immediate generation code.
15336 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15338 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
15339 (AARCH64_NUM_BITMASKS): Remove.
15340 (aarch64_bitmasks_cmp): Remove.
15341 (aarch64_build_bitmask_table): Remove.
15343 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15345 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
15346 slow immediate matching loops with a faster algorithm.
15348 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15350 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
15353 2015-09-20 Jeff Law <law@redhat.com>
15355 PR tree-optimization/47679
15356 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
15357 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
15358 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
15359 (thread_through_normal_block): Use record_temporary_equivalences.
15361 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
15363 * coretypes.h (gimple): Change typedef to be a forward declaration.
15364 * gimple.h (gimple_statement_base): rename to gimple.
15365 * (all functions and types using gimple): Adjust.
15366 * *.[ch]: Likewise.
15368 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
15369 David Edelsohn <dje.gcc@gmail.com>
15371 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
15372 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15373 (EH_FRAME_THROUGH_COLLECT2): Define.
15374 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15375 (ASM_OUTPUT_DWARF_PCREL): Define.
15376 (ASM_OUTPUT_DWARF_DATAREL): Define.
15378 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
15380 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
15383 2015-09-18 Jeff Law <law@redhat.com>
15385 PR tree-optimization/47679
15386 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
15388 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
15389 object. Update constructor.
15390 (pass_dominator::execute): Corresponding chagnes to declaration
15391 and initialization of avail_exprs_stack. Update constructor call
15392 for dom_opt_dom_walker object.
15393 (lookup_avail_expr, record_cond): Accept additional argument. Pass
15394 it down to children as needed.
15395 (record_equivalences_from_incoming_edge): Likewise.
15396 (eliminate_redundant_computations): Likewise.
15397 (record_equivalences_from_stmt): Likewise.
15398 (simplify_stmt_for_jump_threading): Likewise.
15399 (record_temporary_equivalences): Likewise.
15400 (optimize_stmt): Likewise.
15401 (dom_opt_dom_walker::thread_across_edge): Update access to
15402 avail_exprs_stack object and pass it to children as needed.
15403 (dom_opt_dom_walker::before_dom_children): Similarly.
15404 (dom_opt_dom_walker::after_dom_children): Similarly.
15405 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
15406 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
15407 Add avail_expr_stack argument. Pass it to children as needed.
15408 (dummy_simplify): Likewise.
15409 (simplify_control_stmt_condition): Likewise.
15410 (thread_around_empty_blocks): Likewise.
15411 (thread_through_normal_block): Likewise.
15412 (thread_across_edge): Likewise.
15413 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15414 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
15416 PR tree-optimization/47679
15417 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
15419 (dom_opt_dom_walker): New private member holding the const_and_copies
15420 object. Update constructor.
15421 (pass_dominator::execute): Corresponding changes to declaration
15422 and initialization of const_and_copies. Update constructor call
15423 for the dom_opt_dom_walker object.
15424 (record_temporary_equivalences): Accept const_and_copies argument
15425 pass it down to children as needed.
15426 (record_equality): Likewise.
15427 (record_equivalences_from_incoming_edge): Likewise.
15428 (cprop_into_successor_phis, optimize_stmt): Likewise.
15429 (eliminate_redundant_computations): Likewise.
15430 (dom_opt_dom_walker::thread_across_edge): Update access to
15431 const_and_copies object and pass it to children as needed.
15432 (dom_opt_dom_walker::before_dom_children): Similarly.
15433 (dom_opt_dom_walker::after_dom_children): Similarly.
15435 PR tree-optimization/47679
15436 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
15437 it into the avail_exprs_stack class.
15438 (pass_dominator::execute): Corresponding changes to declaration
15439 and initialization of avail_exprs. Pass avail_exprs to
15440 dump_dominator_optimization_stats.
15441 (record_cond): Extract avail_exprs from avail_exprs_stack.
15442 (lookup_avail_expr): Similarly.
15443 (htab_staticstics): Remove unnecessary prototype. Move to earlier
15445 (dump_dominator_optimization_stats): Make static and prototype.
15446 Add argument for the hash table to dump.
15447 (debug_dominator_optimization_stats): Remove.
15448 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
15450 (debug_dominator_optimization_stats): Similarly.
15451 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
15452 "void" in prototype for pop_to_marker method. Add accessor method
15453 for the underlying avail_exprs table.
15455 * tree-ssa-threadedge.c: Remove trailing whitespace.
15457 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
15459 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
15461 (pa_ldil_cint_p): Likewise.
15462 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
15463 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
15465 * config/pa/pa.md: Likewise.
15467 2015-09-18 David Malcolm <dmalcolm@redhat.com>
15469 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
15470 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
15471 (diagnostic_show_locus): Likewise.
15472 (diagnostic_print_caret_line): Likewise.
15473 * diagnostic-show-locus.c: New file.
15475 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
15477 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
15478 "back" parameter. Declare label in #if block.
15480 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
15482 PR middle-end/67619
15483 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
15484 the address to a register.
15486 2015-09-18 Jeff Law <law@redhat.com>
15488 PR tree-optimization/47679
15489 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
15490 * tree-ssa-dom.c: Remove unnecessary header includes.
15491 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
15492 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
15493 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
15494 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
15495 (pass_phi_only_cprop::execute): Likewise.
15496 (make_pass_phi_only_cprop): Likewise.
15497 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
15498 uses of file scoped statics by passing the required objects
15499 as parameters wherever needed.
15501 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
15502 David Edelsohn <dje.gcc@gmail.com>
15504 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
15505 EH_FRAME_THROUGH_COLLECT2.
15506 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
15508 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
15509 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
15510 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
15511 * except.c (switch_to_exception_section): Use a read-only section
15512 even if EH_FRAME_SECTION_NAME is undefined.
15513 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
15514 * collect2.c (write_c_file_stat): Provide dbase on AIX.
15515 (scan_prog_file): Don't export __dso_handle nor
15516 __gcc_unwind_dbase.
15517 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15518 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15519 (ASM_OUTPUT_DWARF_PCREL): Define.
15520 (ASM_OUTPUT_DWARF_DATAREL): Define.
15521 (EH_FRAME_THROUGH_COLLECT2): Define.
15522 (EH_FRAME_IN_DATA_SECTION): Delete.
15523 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
15524 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
15526 (rs6000_asm_output_dwarf_datarel): Declare.
15527 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
15528 (rs6000_aix_asm_output_dwarf_datarel): New.
15529 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
15530 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
15531 (EH_FRAME_THROUGH_COLLECT2): Define.
15532 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
15533 (EH_FRAME_THROUGH_COLLECT2): Define.
15534 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15535 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
15536 (EH_FRAME_THROUGH_COLLECT2): New.
15537 (ASM_OUTPUT_DWARF_DATAREL): New.
15538 * doc/tm.texi: Regenerate.
15540 2015-09-18 Richard Biener <rguenther@suse.de>
15542 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
15543 we're in early phase.
15544 (schedule_generic_params_dies_gen): Likewise.
15545 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
15546 work as possible, retaining unhandled cases.
15547 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
15548 clear out generic_type_instances at the end.
15549 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
15550 (dwarf2out_early_finish): ... here. Do most of
15551 gen_remaining_tmpl_value_param_die_attribute here.
15553 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
15555 PR tree-optimization/67283
15556 * tree-sra.c (type_consists_of_records_p): Rename to...
15557 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15558 (completely_scalarize_record): Rename to...
15559 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15560 (scalarize_elem): New.
15561 (analyze_all_variable_accesses): Follow renamings.
15563 2015-09-18 Richard Biener <rguenther@suse.de>
15565 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
15568 2015-09-18 Richard Biener <rguenther@suse.de>
15570 PR tree-optimization/66142
15571 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
15572 treat MEM[&x] and x the same.
15573 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
15574 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
15575 when we simplified sth.
15576 (vn_reference_maybe_forwprop_address): Likewise.
15577 (valueize_refs_1): When we simplified through
15578 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
15579 set valueized_anything to true.
15580 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
15581 one ref kills the other instead of just a offset-based test.
15582 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
15583 for the operand_equal_p test to compare bases and also compare
15586 2015-09-17 Christian Bruel <christian.bruel@st.com>
15588 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
15590 2015-09-17 Richard Henderson <rth@redhat.com>
15593 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
15594 pointers that encode the alignment of the object.
15596 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
15598 PR rtl-optimization/66790
15599 * df-problems.c (LIVE): Amend documentation.
15601 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
15603 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
15605 (GTFILES): Replace optabs.c with optabs-libfunc.c.
15606 * genopinit.c (main): Add an include guard to insn-opinit.h.
15607 Protect the rtx_code parts with NUM_RTX_CODE.
15608 * optabs.h: Split parts out to...
15609 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
15610 * optabs.c: Split parts out to...
15611 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
15612 * cilk-common.c: Include optabs-query.h rather than optabs.h.
15613 * fold-const.c: Likewise.
15614 * target-globals.c: Likewise.
15615 * tree-if-conv.c: Likewise.
15616 * tree-ssa-forwprop.c: Likewise.
15617 * tree-ssa-loop-prefetch.c: Likewise.
15618 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
15619 Remove unncessary include files.
15620 * tree-ssa-phiopt.c: Likewise.
15621 * tree-ssa-reassoc.c: Likewise.
15622 * tree-switch-conversion.c: Likewise.
15623 * tree-vect-data-refs.c: Likewise.
15624 * tree-vect-generic.c: Likewise.
15625 * tree-vect-loop.c: Likewise.
15626 * tree-vect-patterns.c: Likewise.
15627 * tree-vect-slp.c: Likewise.
15628 * tree-vect-stmts.c: Likewise.
15629 * tree-vrp.c: Likewise.
15630 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
15631 rather than optabs.h.
15632 * expr.c: Include optabs-tree.h.
15633 * function.c: Likewise.
15635 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
15637 PR middle-end/65958
15638 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
15639 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
15640 * config/arm/arm.c: Include common/common-target.h.
15641 (use_return_insn): Return 0 if the static chain register was saved
15642 above a non-APCS frame.
15643 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
15644 (struct scratch_reg): New.
15645 (get_scratch_register_on_entry): New function.
15646 (release_scratch_register_on_entry): Likewise.
15647 (arm_emit_probe_stack_range): Likewise.
15648 (output_probe_stack_range): Likewise.
15649 (arm_expand_prologue): Factor out code dealing with the IP register
15650 for nested function and adjust it for stack checking.
15651 Invoke arm_emit_probe_stack_range if static builtin stack checking
15653 (thumb1_expand_prologue): Sorry out if static builtin stack checking
15655 (arm_expand_epilogue): Add the saved static chain register, if any, to
15656 the amount of pre-pushed registers to pop.
15657 (arm_frame_pointer_required): Return true if static stack checking is
15658 enabled and we want to catch the exception with the EABI unwinder.
15659 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
15660 (UNSPEC_PROBE_STACK_RANGE): Likewise.
15661 * config/arm/arm.md (probe_stack): New insn.
15662 (probe_stack_range): Likewise.
15664 2015-09-17 Richard Biener <rguenther@suse.de>
15666 * genmatch.c (parser::parse_expr): Improve error message
15667 for mis-placed flags.
15669 2015-09-17 Richard Biener <rguenther@suse.de>
15671 * passes.c (rest_of_decl_compilation): Always call early_global_decl
15672 debug hook when we created a varpool node.
15673 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
15674 dwarf2out_early_global_decl, when not just add location or
15675 value attributes to existing DIEs.
15677 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
15679 * config/aarch64/aarch64.md (copysigndf3): New.
15680 (copysignsf3): Likewise.
15682 2015-09-17 David S. Miller <davem@davemloft.net>
15684 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
15685 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
15686 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15687 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15688 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15689 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15690 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15691 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15692 provide when flag_pic.
15694 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
15696 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
15697 object_allocator change.
15699 2015-09-17 Bin Cheng <bin.cheng@arm.com>
15701 PR tree-optimization/66388
15702 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
15703 (dump_iv): Dump no_overflow information.
15704 (alloc_iv): Initialize new field for struct iv.
15705 (mark_bivs): Count number of no_overflow bivs.
15706 (find_deriving_biv_for_expr, record_biv_for_address_use): New
15708 (idx_find_step): Call new functions above.
15709 (add_candidate_1, add_candidate): New paramter.
15710 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
15711 (get_computation_aff): Simplify convertion of cand for BIV.
15712 (get_computation_cost_at): Step cand's base if necessary.
15714 2015-09-17 Bin Cheng <bin.cheng@arm.com>
15716 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
15718 (tree_simplify_using_condition): Ditto.
15719 (simplify_using_initial_conditions): Ditto.
15720 (loop_exits_before_overflow): Pass new argument to function
15721 simplify_using_initial_conditions. Remove case for type conversions
15723 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
15725 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
15726 in iv base using loop initial conditions.
15728 2015-09-16 Jeff Law <law@redhat.com>
15730 PR tree-optimization/47679
15731 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
15732 (free_all_edge_infos): Use it.
15733 (allocate_edge_info): Free preexisting edge info data.
15734 (pass_dominator::execute): Set up initial edge info structures.
15735 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
15736 thread_across_edge.
15737 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
15738 If non-null, then push/pop markers appropriately.
15739 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15740 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
15741 thread-across_edge.
15743 2015-09-16 James Bowman <james.bowman@ftdichip.com>
15745 * config/ft32/ft32.c: Fix the memory address space predicate.
15747 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
15750 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
15751 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15753 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15755 * toplev.h (check_global_declaration): Remove declaration.
15756 * toplev.c (check_global_declaration): Move to ...
15757 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
15758 (analyze_functions): Update call.
15760 2015-09-16 David S. Miller <davem@davemloft.net>
15762 * lra-constraints.c (simplify_operand_subreg): Do not assume that
15763 lowpart of a SUBREG has offset zero.
15765 2015-09-16 Jeff Law <law@redhat.com>
15767 PR tree-optimization/47679
15768 * tree-ssa-dom.c (enum expr_kind): Moved from here to
15769 tree-ssa-scopedtables.h.
15770 (struct hashable_expr, class expr_hash_elt): Likewise.
15771 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
15772 Move associated methods into tree-ssa-scopedtables.c.
15773 (avail_expr_hash, initialize_expr_from_cond): Similarly.
15774 (hashable_expr_equal_p, add_expr_commutative): Likewise.
15775 (add_hashable_expr): Likewise.
15776 (record_cond): Delete element directly.
15777 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
15778 private copy ctor and assignment operator methods.
15779 (expr_elt_hasher): Inline trivial methods.
15780 (initialize_expr_from_cond): Prototype.
15781 * tree-ssa-scopedtables.c: Add necessary includes, functions and
15782 methods that were previously in tree-ssa-dom.c. Improve various
15785 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
15787 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
15789 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
15792 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15795 2015-09-16 Richard Biener <rguenther@suse.de>
15797 PR middle-end/67253
15798 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
15799 location of possibly shared trees.
15801 2015-09-16 Richard Biener <rguenther@suse.de>
15803 PR middle-end/67271
15804 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
15806 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
15808 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
15809 offset and size computations instead of HOST_WIDE_INT.
15811 2015-09-16 Richard Biener <rguenther@suse.de>
15813 PR middle-end/67442
15814 * fold-const.c (extract_muldiv_1): Properly extend multiplication
15815 result before builting a tree via wide_int_to_tree.
15817 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
15819 * Makefile.in: Add memory-block.cc
15820 (pool_allocator::initialize): Use fixed block size.
15821 (pool_allocator::release): Use memory_block_pool.
15822 (pool_allocator::allocate): Likewise.
15823 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
15825 * cfg.c (initialize_original_copy_tables): Likewise.
15826 * cselib.c (elt_list_pool, elt_loc_list_pool,
15827 cselib_val_pool): Likewise.
15828 * df-problems.c (df_chain_alloc): Likewise.
15829 * df-scan.c (df_scan_alloc): Likewise.
15830 * dse.c (cse_store_info_pool, rtx_store_info_pool,
15831 read_info_type_pool, insn_info_type_pool, bb_info_pool,
15832 group_info_pool, deferred_change_pool): Likewise.
15833 * et-forest.c (et_nodes, et_occurrences): Likewise.
15834 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
15835 ipcp_agg_lattice_pool): Likewise.
15836 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
15837 * ipa-profile.c (histogram_pool): Likewise.
15838 * ipa-prop.c (ipa_refdesc_pool): Likewise.
15839 * ira-build.c (live_range_pool, allocno_pool, object_pool,
15840 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
15841 * ira-color.c (update_cost_record_pool): Likewise.
15842 * lra-lives.c (lra_live_range_pool): Likewise.
15843 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
15844 * memory-block.cc: New file.
15845 * memory-block.h: New file.
15846 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
15847 * sched-deps.c (sched_deps_init): Likewise.
15848 * sel-sched-ir.c (sched_lists_pool): Likewise.
15849 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
15850 * tree-sra.c (access_pool): Likewise.
15851 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15852 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
15853 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
15854 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15855 * tree-ssa-strlen.c (strinfo_pool): Likewise.
15856 * tree-ssa-structalias.c (variable_info_pool): Likewise.
15857 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
15858 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
15860 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
15862 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
15864 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
15867 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
15869 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
15870 to pass TLS call argument, according to current ABI.
15871 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
15872 callx0 for TLS call, according to current ABI.
15874 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
15876 * tree-eh.c (lower_try_finally_dup_block): Clear location information
15877 on stack restore statements.
15878 (decide_copy_try_finally): Do not consider a stack restore statement as
15879 coming from sources.
15881 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
15883 * config/alpha/alpha.c (alpha_expand_block_clear): Use
15884 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
15886 2015-09-15 Jeff Law <law@redhat.com>
15888 PR tree-optimization/47679
15889 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
15890 methods and private members.
15891 (avail_exprs_stack): Similarly. Change type of global
15892 from a pair of expr_hash_elt_t to the new class.
15893 (expr_elt_hasher::hash): Corresponding changes.
15894 (expr_elt_hasher::equal): Similarly.
15895 (avail_expr_hash): Similarly.
15896 (pass_dominator::execute): Similarly.
15897 (dom_opt_dom_walker::thread_across_edge): Similarly.
15898 (record_cond): Similarly.
15899 (dom_opt_dom_walker::before_dom_children): Similarly.
15900 (dom_opt_dom_walker::after_dom_children): Similarly.
15901 (lookup_avail_expr): Likewise.
15902 (initialize_hash_element): Now a expr_hash_elt constructor.
15903 (initialize_hash_element_from_expr): Similarly.
15904 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
15905 (free_expr_hash_elt): Call dtor for the element.
15906 (remove_local_expressions_from_table): Now the "pop_to_marker"
15907 method in the available_exprs_stack class.
15908 (avail_expr_stack::record_expr): Method factored out.
15909 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
15911 (hashable_expr_equal_p): Fix formatting.
15913 2015-09-15 David Malcolm <dmalcolm@redhat.com>
15915 * input.h (location_get_source_line): Drop "expanded_location"
15916 param in favor of a file and line number.
15917 * input.c (location_get_source_line): Likewise.
15918 (dump_location_info): Update for change in signature of
15919 location_get_source_line.
15920 * diagnostic.c (diagnostic_print_caret_line): Likewise.
15922 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
15924 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
15925 Bump to 4KB for SJLJ exceptions.
15926 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
15927 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
15928 * doc/tm.texi: Regenerate.
15930 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15932 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
15933 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
15936 2015-09-15 Richard Biener <rguenther@suse.de>
15938 PR tree-optimization/67470
15939 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
15940 structure for PHI hoisting by inserting a forwarder block
15943 2015-09-15 Christian Bruel <christian.bruel@st.com>
15945 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
15946 (arm_option_print): New function.
15948 2015-09-15 Christian Bruel <christian.bruel@st.com>
15951 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
15952 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
15953 Remove flags parameter.
15954 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
15955 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
15956 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
15957 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
15958 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
15959 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
15960 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
15961 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
15963 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15965 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
15967 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
15968 AARCH64_VALID_SIMD_DREG_MODE.
15970 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15972 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
15973 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
15974 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
15975 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
15976 aarch64_ld4_lane<mode>): Combine together, making...
15977 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15978 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15979 aarch64_st4_lane<mode>): Combine together, making...
15980 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15981 * config/aarch64/iterators.md (nregs): Add comment.
15983 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15985 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
15986 Change operand mode from <V_TWO_ELEM> to BLK.
15987 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
15988 (aarch64_vec_store_lanesoi_lane<mode): Likewise
15989 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15990 (aarch64_ld2_lane<mode>): Likewise.
15991 (aarch64_st2_lane<VQ:mode>): Likewise.
15992 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
15994 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15996 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
15997 Change operand mode from <V_FOUR_ELEM> to BLK.
15998 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
15999 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
16000 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16001 (aarch64_ld4_lane<mode>): Likewise.
16002 (aarch64_st4_lane<mode>): Likewise.
16003 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
16005 2015-09-15 Richard Biener <rguenther@suse.de>
16007 PR middle-end/67563
16008 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
16009 transfer EH info from old to new stmt.
16010 (replace_call_with_value): Likewise.
16011 (replace_call_with_call_and_fold): Likewise.
16012 (gimple_fold_builtin_memory_op): Likewise.
16013 (gimple_fold_builtin_memset): Likewise.
16014 (gimple_fold_builtin_stpcpy): Likewise.
16015 (gimple_fold_call): Likewise.
16017 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16019 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
16021 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
16022 (aarch64_simd_intEI_type_node): Likewise.
16023 (aarch64_simd_builtin_std_type): Remove EImode case.
16024 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
16025 * config/aarch64/aarch64-modes.def: Remove EImode.
16027 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16029 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
16030 Change operand mode from <V_THREE_ELEM> to BLK.
16031 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
16032 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
16033 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16034 (aarch64_ld3_lane<mode>): Likewise.
16035 (aarch64_st3_lane<mode>): Likewise.
16036 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
16038 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16040 * config/aarch64/aarch64-simd.md
16041 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
16042 Change all TImode operands to BLKmode.
16043 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
16044 Change all EImode operands to BLKmode.
16045 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
16046 Change all OImode operands to BLKmode.
16048 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
16049 and call set_mem_size.
16050 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
16052 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
16054 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16056 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
16058 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
16060 (vec_store_lanesci_lane<mode>): Rename to...
16061 (aarch64_vec_store_lanesci_lane<mode>): ...this.
16063 (vec_store_lanesxi_lane<mode>): Rename to...
16064 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
16066 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
16067 aarch64_st4_lane<mode>): Follow renaming.
16069 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16071 * config/s390/s390.c (s390_const_operand_ok): Add missing
16074 2015-09-15 Richard Biener <rguenther@suse.de>
16077 * lto-streamer.h (lto_location_cache::current_sysp): Properly
16079 * lto-streamer-out.c (clear_line_info): Likewise.
16081 2015-09-15 Richard Biener <rguenther@suse.de>
16083 * doc/match-and-simplify.texi: Fix wording.
16085 2015-09-15 Bin Cheng <bin.cheng@arm.com>
16087 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
16088 unnecessary type conversion in op1.
16090 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
16092 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
16093 (dup_block_and_redirect): Delete function.
16094 (can_dup_for_shrink_wrapping): New function.
16095 (fix_fake_fallthrough_edge): New function.
16096 (try_shrink_wrapping): Rewrite function.
16097 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
16099 2015-09-14 Rich Felker <dalias@libc.org>
16101 * configure.ac: Change target pattern for sh TLS support
16102 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
16103 * configure: Regenerate.
16105 2015-09-14 Jeff Law <law@redhat.com>
16107 PR tree-optimization/47679
16108 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
16109 type rather than void *.
16111 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
16114 * diagnostic.c (diagnostic_initialize): Do not set
16115 some_warnings_are_errors.
16116 (diagnostic_finish): Use DK_WERROR count instead.
16117 (diagnostic_report_diagnostic): Do not set
16118 some_warnings_are_errors.
16119 * diagnostic.h (struct diagnostic_context): Remove
16120 some_warnings_are_errors.
16122 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
16124 * config/sparc/predicates.md (const_all_ones_operand): Use
16125 CONSTM1_RTX to simplify definition.
16127 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
16130 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
16133 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
16135 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
16136 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
16137 OPT_fshow_column to handled saved option cases.
16138 (append_compiler_options): Do not skip the above added options.
16140 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16143 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
16144 nopcrelative_literal_loads.
16145 (aarch64_classify_address): Likewise.
16146 (aarch64_constant_pool_reload_icode): Define.
16147 (aarch64_secondary_reload): Handle secondary reloads for
16149 (aarch64_override_options): Handle nopcrelative_literal_loads.
16150 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
16151 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
16153 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
16154 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
16155 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
16157 * doc/invoke.texi (mpc-relative-literal-loads): Document.
16159 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
16161 PR middle-end/67401
16162 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
16163 sync_compare_and_swap_optab libcall to target_oval.
16165 2015-09-14 Marek Polacek <polacek@redhat.com>
16167 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
16169 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
16171 2015-09-11 Mark Wielaard <mjw@redhat.com>
16174 * toplev.c (check_global_declaration): Check and use
16175 warn_unused_const_variable.
16176 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
16177 (-Wunused-variable): Remove non-constant. For C implies
16178 -Wunused-const-variable.
16179 (-Wunused-const-variable): New.
16181 2015-09-14 Richard Biener <rguenther@suse.de>
16183 * doc/match-and-simplify.texi: Update for changed syntax
16184 of inner ifs and the new switch expression.
16186 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16188 * config/i386/haswell.md: New file describing Haswell pipeline.
16189 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
16190 haswell-like processors.
16191 (ix86_reassociation_width): Increase reassociation width for 64-bit
16192 Haswell processor family.
16193 * config/i386/i386.md: Introduce haswell cpu and include new md file.
16195 2015-09-14 Richard Biener <rguenther@suse.de>
16197 * doc/match-and-simplify.texi: Fixup some formatting issues
16198 and document the 's' flag.
16200 2015-09-13 Olivier Hainque <hainque@adacore.com>
16201 Eric Botcazou <ebotcazou@adacore.com>
16203 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
16204 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
16205 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
16206 (TARGET_CPU_gr5): Likewise.
16207 (TARGET_CPU_gr6): Likewise.
16208 (MULTILIB_DEFAULTS): Likewise.
16209 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
16210 for mcpu=gr5 and mcpu=gr6.
16211 (MULTILIB_DIRNAMES): Adjust accordingly.
16213 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16215 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
16216 (mem_ref_p): Likewise.
16217 (outermost_indep_loop): Adjust.
16218 (mem_ref_in_stmt): Likewise.
16219 (determine_max_movement): Likewise.
16220 (mem_ref_alloc): Likewise.
16221 (record_mem_ref_loc): Likewise.
16222 (set_ref_stored_in_loop): Likewise.
16223 (mark_ref_stored): Likewise.
16224 (gather_mem_refs_stmt): Likewise.
16225 (mem_refs_may_alias_p): Likewise.
16226 (for_all_locs_in_loop): Likewise.
16227 (struct rewrite_mem_ref_loc): Likewise.
16228 (rewrite_mem_refs): Likewise.
16229 (struct first_mem_ref_loc_1): Likewise.
16230 (first_mem_ref_loc): Likewise.
16231 (struct sm_set_flag_if_changed): Likewise.
16232 (execute_sm_if_changed_flag_set): Likewise.
16233 (execute_sm): Likewise.
16234 (hoist_memory_references):
16235 (struct ref_always_accessed): Likewise.
16236 (ref_always_accessed_p): Likewise.
16237 (refs_independent_p): Likewise.
16238 (record_dep_loop): Likewise.
16239 (ref_indep_loop_p_1): Likewise.
16240 (ref_indep_loop_p_2): Likewise.
16241 (ref_indep_loop_p): Likewise.
16242 (can_sm_ref_p): Likewise.
16243 (find_refs_for_sm): Likewise.
16244 (tree_ssa_lim_finalize): Likewise.
16246 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16248 * dwarf2out.c (dw_attr_ref): Remove typedef.
16249 (dw_line_info_ref): Likewise.
16250 (pubname_ref): Likewise.
16251 (dw_ranges_ref): Likewise.
16252 (dw_ranges_by_label_ref): Likewise.
16253 (comdat_type_node_ref): Likewise.
16255 (get_AT_low_pc): Likewise.
16256 (get_AT_hi_pc): Likewise.
16257 (get_AT_string): Likewise.
16258 (get_AT_flag): Likewise.
16259 (get_AT_unsigned): Likewise.
16260 (get_AT_ref): Likewise.
16261 (get_AT_file): Likewise.
16262 (remove_AT): Likewise.
16263 (print_die): Likewise.
16264 (check_die): Likewise.
16265 (die_checksum): Likewise.
16266 (attr_checksum_ordered): Likewise.
16267 (struct checksum_attributes): Likewise.
16268 (collect_checksum_attributes): Likewise.
16269 (die_checksum_ordered): Likewise.
16270 (same_die_p): Likewise.
16271 (is_declaration_die): Likewise.
16272 (clone_die): Likewise.
16273 (clone_as_declaration): Likewise.
16274 (copy_declaration_context): Likewise.
16275 (break_out_comdat_types): Likewise.
16276 (copy_decls_walk): Likewise.
16277 (output_location_lists): Likewise.
16278 (external_ref_hasher::hash): Likewise.
16279 (optimize_external_refs_1): Likewise.
16280 (build_abbrev_table): Likewise.
16281 (size_of_die): Likewise.
16282 (unmark_all_dies): Likewise.
16283 (size_of_pubnames): Likewise.
16284 (output_die_abbrevs): Likewise.
16285 (output_die): Likewise.
16286 (output_pubnames): Likewise.
16287 (add_ranges_num): Likewise.
16288 (add_ranges_by_labels): Likewise.
16289 (add_high_low_attributes): Likewise.
16290 (gen_producer_string): Likewise.
16291 (dwarf2out_set_name): Likewise.
16292 (new_line_info_table): Likewise.
16293 (prune_unused_types_walk_attribs): Likewise.
16294 (prune_unused_types_update_strings): Likewise.
16295 (prune_unused_types): Likewise.
16296 (resolve_addr): Likewise.
16297 (optimize_location_lists_1): Likewise.
16298 (index_location_lists): Likewise.
16299 (dwarf2out_finish): Likewise.
16301 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16303 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
16305 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16307 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
16308 (dump_asserts_for): Adjust.
16309 (register_new_assert_for): Likewise.
16310 (process_assert_insertions): Likewise.
16311 (insert_range_assertions): Likewise.
16313 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16315 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
16316 and remove typedef.
16317 (new_temp_expr_table): Adjust.
16318 (free_temp_expr_table): Likewise.
16319 (version_to_be_replaced_p): Likewise.
16320 (make_dependent_on_partition): Likewise.
16321 (add_to_partition_kill_list): Likewise.
16322 (remove_from_partition_kill_list): Likewise.
16323 (add_dependence): Likewise.
16324 (finished_with_expr): Likewise.
16325 (process_replaceable): Likewise.
16326 (kill_expr): Likewise.
16327 (kill_virtual_exprs): Likewise.
16328 (mark_replaceable): Likewise.
16329 (find_replaceable_in_bb): Likewise.
16330 (find_replaceable_exprs): Likewise.
16331 (debug_ter): Likewise.
16333 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16335 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
16336 (struct btr_user): Rename from btr_user_s.
16337 (struct btr_def): Rename from btr_def_s.
16338 (find_btr_def_group): Adjust.
16339 (add_btr_def): Likewise.
16340 (new_btr_user): Likewise.
16341 (note_other_use_this_block): Likewise.
16342 (compute_defs_uses_and_gen): Likewise.
16343 (link_btr_uses): Likewise.
16344 (build_btr_def_use_webs): Likewise.
16345 (block_at_edge_of_live_range_p): Likewise.
16346 (btr_def_live_range): Likewise.
16347 (combine_btr_defs): Likewise.
16348 (move_btr_def): Likewise.
16349 (migrate_btr_def): Likewise.
16350 (migrate_btr_defs): Likewise.
16352 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16354 * var-tracking.c (shared_hash_def): Rename to shared_hash.
16355 (shared_hash): Remove typedef.
16356 (struct dataflow_set): Adjust.
16357 (shared_hash_unshare): Likewise.
16358 (dataflow_set_merge): Likewise.
16359 (vt_initialize): Likewise.
16360 (vt_finalize): Likewise.
16362 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16364 * var-tracking.c (struct location_chain): Rename from
16365 location_chain_def.
16366 (struct variable_part): Adjust.
16367 (variable_htab_free): Likewise.
16368 (unshare_variable): Likewise.
16369 (get_init_value): Likewise.
16370 (get_addr_from_local_cache): Likewise.
16371 (drop_overlapping_mem_locs): Likewise.
16372 (val_reset): Likewise.
16373 (struct variable_union_info): Likewise.
16374 (variable_union): Likewise.
16375 (find_loc_in_1pdv): Likewise.
16376 (insert_into_intersection): Likewise.
16377 (intersect_loc_chains): Likewise.
16378 (canonicalize_loc_order_check): Likewise.
16379 (canonicalize_values_mark): Likewise.
16380 (canonicalize_values_star): Likewise.
16381 (canonicalize_vars_star): Likewise.
16382 (variable_merge_over_cur): Likewise.
16383 (remove_duplicate_values): Likewise.
16384 (variable_post_merge_new_vals): Likewise.
16385 (variable_post_merge_perm_vals): Likewise.
16386 (find_mem_expr_in_1pdv): Likewise.
16387 (dataflow_set_preserve_mem_locs): Likewise.
16388 (dataflow_set_remove_mem_locs): Likewise.
16389 (variable_part_different_p): Likewise.
16390 (onepart_variable_different_p): Likewise.
16391 (find_src_set_src): Likewise.
16392 (dump_var): Likewise.
16393 (set_slot_part): Likewise.
16394 (clobber_slot_part): Likewise.
16395 (delete_slot_part): Likewise.
16396 (vt_expand_var_loc_chain): Likewise.
16397 (emit_note_insn_var_location): Likewise.
16398 (vt_finalize): Likewise.
16400 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16402 * dse.c (store_info_t): Remove typedef.
16403 (group_info_t): Likewise.
16404 (const_group_info_t): Likewise.
16405 (deferred_change_t): Likewise.
16406 (get_group_info): Adjust.
16407 (free_store_info): Likewise.
16408 (canon_address): Likewise.
16409 (clear_rhs_from_active_local_stores): Likewise.
16410 (record_store): Likewise.
16411 (replace_read): Likewise.
16412 (check_mem_read_rtx): Likewise.
16413 (scan_insn): Likewise.
16414 (remove_useless_values): Likewise.
16415 (dse_step1): Likewise.
16416 (dse_step2_init): Likewise.
16417 (dse_step2_nospill): Likewise.
16418 (scan_stores_nospill): Likewise.
16419 (scan_reads_nospill): Likewise.
16420 (dse_step3_exit_block_scan): Likewise.
16421 (dse_step3): Likewise.
16422 (dse_step5_nospill): Likewise.
16423 (dse_step6): Likewise.
16425 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16427 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
16428 (alias_set_entry): Remove typedef.
16429 (alias_set_subset_of): Adjust.
16430 (alias_sets_conflict_p): Likewise.
16431 (init_alias_set_entry): Likewise.
16432 (get_alias_set): Likewise.
16433 (new_alias_set): Likewise.
16434 (record_alias_subset): Likewise.
16436 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
16438 * doc/install.texi (Downloading the source): Mark up
16439 contrib/download_prerequisites properly and drop leading "./".
16441 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16443 * config/arc/arc.h: Remove define of STRUCT_VALUE.
16444 * config/lm32/lm32.h: Likewise.
16445 * config/mep/mep.h: Likewise.
16446 * config/visium/visium.h: Likewise.
16447 * system.h: Poison STRUCT_VALUE macro.
16449 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
16451 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
16452 CONSTANT_P operands.
16454 2015-09-11 David S. Miller <davem@davemloft.net>
16456 * config/sparc/constraints.md: Make "U" constraint a real register
16458 * config/sparc/sparc.c (TARGET_LRA_P): Define.
16459 (D_MODES, DF_MODES): Add missing cast.
16460 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
16461 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
16462 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
16464 * config/sparc/sparc.h (PROMOTE_MODE): Define.
16465 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
16466 provide these insn when flag_pic.
16468 2015-09-11 Jeff Law <law@redhat.com>
16470 PR tree-optimization/47679
16471 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
16472 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
16473 member with m_. Update inline member functions as necessary. Add
16475 * tree-ssa-scopedtables.c: Update const_and_copies's member
16476 functions to use m_ prefix to access the stack.
16478 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16480 * graphite-optimize-isl.c (disable_tiling): Remove.
16481 (get_schedule_for_band): Do not use disable_tiling.
16482 (get_prevector_map): Delete function.
16483 (enable_polly_vector): Remove.
16484 (get_schedule_for_band_list): Remove dead code.
16486 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16488 * graphite-optimize-isl.c (get_tile_map): Refactor.
16489 (get_schedule_for_band): Same.
16490 (getScheduleForBand): Same.
16491 (get_prevector_map): Same.
16492 (get_schedule_for_band_list): Same.
16493 (get_schedule_map): Same.
16494 (get_single_map): Same.
16495 (apply_schedule_map_to_scop): Same.
16496 (optimize_isl): Same.
16498 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16501 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
16503 * config/aarch64/iterators.md (GPF_TF_F16): New.
16506 2015-09-10 Nathan Sidwell <nathan@acm.org>
16508 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
16509 (nvptx_reorg): Adjust comments.
16511 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
16514 * configure.ac: Check if setenv and unsetenv are declared.
16515 * configure: Rebuild.
16516 * config.in: Rebuild.
16517 * system.h: Declare setenv and unsetenv if not declared.
16519 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16521 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
16522 commentary to simplify permute mask adjustment equation.
16523 (special_handling_values): Add SH_VPERM.
16524 (const_load_sequence_p): New function.
16525 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
16526 the mask loaded from the constant pool.
16527 (adjust_vperm): New function.
16528 (handle_special_swappables): Call adjust_vperm.
16529 (dump_swap_insn_table): Handle SH_VPERM.
16531 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
16533 * shrink-wrap.c (requires_stack_frame_p): Remove static.
16534 * shrink-wrap.h (requires_stack_frame_p): Put back.
16536 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
16538 * reload1.c (elimination_costs_in_insn): Locally turn
16539 -Wmaybe-uninitialized into a warning.
16541 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
16543 * shrink-wrap.c (requires_stack_frame_p): Make static.
16544 (prepare_shrink_wrap): Likewise.
16545 (dup_block_and_redirect): Likewise.
16546 * shrink-wrap.h: Remove declarations of those functions.
16548 2015-09-10 Mark Wielaard <mjw@redhat.com>
16550 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
16552 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
16555 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
16556 missing simplify_gen_subreg.
16558 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16560 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
16561 the vector element is bigger than 64 bit.
16563 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16565 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
16566 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
16568 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16570 * config/s390/s390.c: Add V1TImode to constant pool modes.
16572 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16575 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
16576 predicate. Set predicable_short_it attr to "no".
16578 2015-09-10 Jiong Wang <jiong.wang@arm.com>
16580 PR rtl-optimization/67421
16581 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
16582 left wide shift tranformation.
16584 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16586 * common/config/arc/arc-common.c: Remove references to A5.
16587 * config/arc/arc-opts.h: Likewise.
16588 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
16589 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
16590 * config/arc/t-arc-newlib: Likewise.
16592 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16594 * config/arc/arc.md (length): Fix attribute length for conditional
16595 executed instructions with long immediate.
16597 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16599 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
16600 type for second alternative.
16602 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
16604 * doc/invoke.texi (Downloading GCC): Mention
16605 contrib/download_prerequisites script.
16607 2015-09-10 Jakub Jelinek <jakub@redhat.com>
16610 * gimplify.c (gimplify_omp_for): If inner stmt is not found
16611 for combined loop, assert seen_error () and return GS_ERROR.
16613 PR middle-end/67521
16614 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
16615 if decl is already in outer->variables.
16617 PR middle-end/67517
16618 * gimplify.c (gimplify_scan_omp_clauses): Instead of
16619 asserting that decl is not specified in octx->variables,
16620 break out of the loop if it is.
16623 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
16624 iterator is not explicitly determined, but is defined inside
16625 of the combined workshare region, handle it like if it has
16626 DECL_EXPR in OMP_FOR_PRE_BODY.
16628 2015-09-09 Nathan Sidwell <nathan@acm.org>
16630 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
16631 (*cmp<mode>): Add assembler spacing.
16632 (setcc_int<mode>, set_cc_float<mode>): Likewise.
16633 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
16635 (write_func_decl_from_insn): Refactor argument loops & comma emission.
16636 (nvptx_expand_call): Likewise.
16637 (nvptx_output_call_insn): Likewise.
16638 (nvptx_reorg_subreg): Add spacing.
16640 2015-09-09 Marek Polacek <polacek@redhat.com>
16642 PR middle-end/67512
16643 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
16646 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
16649 * doc/invoke.texi ([Wsubobject-linkage]): Document.
16651 2015-09-09 Tom de Vries <tom@codesourcery.com>
16653 * params-list.h: Add missing copyright notice.
16655 2015-09-09 Nathan Sidwell <nathan@acm.org>
16657 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
16658 sel_truesi, not andsi.
16660 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16662 * config/arm/arm.md (*subsi3_compare0): Rename to...
16663 (subsi3_compare0): ... This.
16664 (modsi3): New define_expand.
16665 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
16666 when operand is power of 2.
16668 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16670 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
16671 (*neg<mode>2_compare0): Rename to...
16672 (neg<mode>2_compare0): ... This.
16673 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
16674 Move check for speed inside the if-then-elses. Reflect
16675 CSNEG sequence in MOD by power of 2 case.
16677 2015-09-09 Alan Modra <amodra@gmail.com>
16680 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
16681 reload replacement for PRE_MODIFY address reg.
16683 2015-09-09 Sebastian Pop <s.pop@samsung.com>
16685 PR tree-optimization/53852
16686 * config.in: Regenerate.
16687 * configure: Regenerate.
16688 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
16689 * graphite-optimize-isl.c (optimize_isl): Stop computation when
16690 PARAM_MAX_ISL_OPERATIONS is reached.
16691 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
16692 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
16693 result equal to isl_stat_ok as the status now can be isl_error_quota.
16694 (subtract_commutative_associative_deps): Same.
16695 (compute_deps): Same.
16697 2015-09-08 Aditya Kumar <hiraditya@msn.com>
16698 Sebastian Pop <s.pop@samsung.com>
16700 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
16701 Return the parameter if it was saved in corresponding
16702 parameter_rename_map of the region.
16703 (copy_def): Copy def from sese region to the newly created region.
16704 (copy_internal_parameters): Copy all the internal parameters defined
16705 within a region to the newly created region.
16706 (graphite_regenerate_ast_isl): Copy parameters to the new region before
16707 translating isl to gimple.
16708 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
16709 the loop-nest does not have any data-references.
16710 (build_graphite_scops): Create a scop only when there is at least one
16712 (contains_only_close_phi_nodes): Deleted.
16713 (print_graphite_scop_statistics): Deleted
16714 (print_graphite_statistics): Deleted
16715 (limit_scops): Deleted.
16716 (build_scops): Removed call to limit_scops.
16717 * sese.c (new_sese): Construct.
16718 (free_sese): Destruct.
16719 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
16721 (set_rename): Pass sese region so that parameters inside the region can
16722 be added to its parameter_rename_map.
16723 (rename_uses): Pass sese region.
16724 (graphite_copy_stmts_from_block): Do not copy parameters that have been
16725 generated in the header of the scop. For each SSA_NAME in the
16726 parameter_rename_map rename its usage.
16727 (invariant_in_sese_p_rec): Return false if tree t is defined outside
16729 (scalar_evolution_in_region): If the tree t is invariant just return t.
16730 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
16731 struct sese to keep track of all the parameters which need renaming.
16732 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
16734 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
16736 2015-09-08 Tom de Vries <tom@codesourcery.com>
16738 * Makefile.in (generated_files): Add params.list.
16739 (params.list, s-params.list): Add rule.
16740 * params.h (enum compiler_param): Include params-list.h. Move define
16741 DEFPARAM, include params.def and undef DEFPARAM ...
16742 * params-list.h: ... here. New file.
16744 2015-09-08 David Malcolm <dmalcolm@redhat.com>
16746 * pretty-print.h (printer_fn): Fix typo in comment.
16748 2015-09-07 Jeff Law <law@redhat.com>
16750 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
16752 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16754 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
16755 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
16756 (arm_neon_fp16_hw): New.
16758 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16760 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
16761 UNITS_PER_WORD >= 4.
16763 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16765 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
16766 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
16767 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
16768 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
16769 (aarch64_float_extend_lo_v2df): Rename to...
16770 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
16772 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
16773 (float_extend_lo): Add v4sf.
16775 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
16776 * config/aarch64/iterators.md (VQ_HSF): New iterator.
16777 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
16778 (Vwide): New mode_attr.
16780 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16782 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
16783 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
16784 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
16785 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
16786 V4HF and V8HF variants to iterator.
16788 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
16790 * config/aarch64/iterators.md (VDQF_F16): New.
16791 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
16793 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16795 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
16796 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16797 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
16798 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
16799 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
16800 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16801 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
16802 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
16803 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
16804 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
16805 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
16806 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16807 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
16808 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
16809 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
16810 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
16811 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
16812 vld1q_dup_f16): New.
16814 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16816 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
16817 Reparameterize to...
16818 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
16819 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
16820 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
16822 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
16824 (float_truncate_lo_): Use BUILTIN_VDF iterator.
16826 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
16828 * config/aarch64/iterators.md (VDF, Vdtype): New.
16829 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
16831 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16833 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
16834 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
16835 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
16836 Add __builtin_aarch64_simd_hf.
16837 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
16838 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
16839 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
16840 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
16841 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
16842 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
16843 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
16844 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
16845 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
16847 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
16848 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
16849 (VDC, Vdbl): Add V4HF.
16851 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16853 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
16854 V4HFmode and V8HFmode.
16855 (aarch64_split_simd_move): Add case for V8HFmode.
16856 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
16857 (aarch64_simd_builtin_std_type): Handle HFmode.
16858 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
16860 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
16861 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
16862 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
16864 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
16867 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
16868 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
16870 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
16871 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
16872 vst1q_lane_f16): New.
16873 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
16874 (VALLDI_F16, VALL_F16): New.
16875 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
16876 Add cases for V4HF and V8HF.
16877 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
16879 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16881 * config/arm/arm-builtins.c (VAR11, VAR12): New.
16882 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
16883 vld4_dup): Add v4hf variant.
16884 (vget_high, vget_low): Add v8hf variant.
16885 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
16886 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
16887 v4hf and v8hf variants.
16889 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
16891 (V_DOUBLE): Add case for V4HF.
16893 (V_HALF): Add case for V8HF.
16894 (VDQX): Add V4HF, V8HF.
16895 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
16896 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
16898 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
16899 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
16900 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
16901 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
16902 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
16903 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
16904 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
16905 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
16906 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
16908 (neon_vcreate, neon_vreinterpretv8qi<mode>,
16909 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16910 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
16911 Change VDX to VD_RE.
16913 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
16914 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
16915 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
16917 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
16918 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
16919 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
16920 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
16921 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
16922 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
16923 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
16924 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
16925 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
16927 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16929 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
16930 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
16931 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
16932 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
16933 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16934 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
16935 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
16936 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
16937 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
16938 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
16941 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16943 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
16945 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
16947 * config/arm/arm-builtins.c (v8hf_UP): New.
16948 (arm_init_simd_builtin_types): Initialise Float16x8_t.
16950 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
16952 * config/arm/arm_neon.h (float16x8_t): New typedef.
16954 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16956 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
16957 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
16958 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
16959 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
16960 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16961 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
16962 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
16963 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
16964 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16965 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
16967 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
16969 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
16970 non-alphanumeric characters in the symbol name.
16972 2015-09-07 Marek Polacek <polacek@redhat.com>
16974 PR inline-asm/67448
16975 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
16978 2015-09-07 Marek Polacek <polacek@redhat.com>
16980 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16982 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
16984 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
16987 2015-09-04 Jakub Jelinek <jakub@redhat.com>
16989 PR middle-end/67452
16990 * tree-ssa-live.c: Include cfgloop.h.
16991 (remove_unused_locals): Clear loop->simduid if simduid is about
16992 to be removed from cfun->local_decls.
16994 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16997 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
17000 2015-09-04 Tom de Vries <tom@codesourcery.com>
17002 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
17004 2015-09-04 Jeff Law <law@redhat.com>
17006 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
17007 unnecessary constructor. It's now trivial and implemented inside...
17008 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
17009 constructor. Add comments to various methods. Remove unused
17011 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
17012 * tree-vrp.c (identify_jump_threads): Likewise.
17013 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
17014 indentation issues.
17015 (thread_across_edge): Similarly.
17016 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
17017 arguments in constructor call.
17019 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
17021 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
17022 temp path contains a '-'.
17024 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
17025 Petr Murzin <petr.murzin@intel.com>
17026 Kirill Yukhin <kirill.yukhin@intel.com>
17028 * config/i386/i386-builtin-types.def
17029 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
17030 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
17031 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
17032 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
17033 * config/i386/i386.c
17034 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
17035 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17036 IX86_BUILTIN_SCATTERALTDIV16SI.
17037 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
17038 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
17039 __builtin_ia32_scatteraltdiv8si.
17040 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
17041 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17042 IX86_BUILTIN_SCATTERALTDIV16SI.
17043 (ix86_vectorize_builtin_scatter): New.
17044 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
17045 ix86_vectorize_builtin_scatter.
17047 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
17048 Petr Murzin <petr.murzin@intel.com>
17049 Kirill Yukhin <kirill.yukhin@intel.com>
17051 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
17052 * doc/tm.texi: Regenerate.
17053 * target.def: Add scatter builtin.
17054 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
17055 for loads/stores in case of gather/scatter accordingly.
17056 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17057 STMT_VINFO_GATHER_P(S).
17058 (vect_check_gather): Rename to ...
17059 (vect_check_gather_scatter): this.
17060 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
17061 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
17062 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17063 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
17064 variable and new checkings for it accordingly.
17065 * tree-vect-stmts.c
17066 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17067 STMT_VINFO_GATHER_P(S).
17068 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17069 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
17071 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17073 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
17075 (mulv16qi3): New define_expand.
17077 2015-09-03 Martin Sebor <msebor@redhat.com>
17080 * doc/extend.texi (Other Builtins): Document when the address
17081 of a built-in function can be taken.
17083 2015-09-03 Richard Biener <rguenther@suse.de>
17085 * dwarf2out.c (flush_limbo_die_list): Split out from ...
17086 (dwarf2out_early_finish): ... here.
17087 (dwarf2out_finish): Do not call dwarf2out_early_finish but
17088 flush_limbo_die_list. Assert we have no deferred asm names.
17090 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17092 * optabs.c (expand_binop): Don't create a broadcast vector with a
17093 source element wider than the inner mode.
17095 2015-09-03 Richard Biener <rguenther@suse.de>
17097 * varasm.c (output_constant): Use fold_convert instead of
17100 2015-09-03 Tom de Vries <tom@codesourcery.com>
17102 PR tree-optimization/65637
17103 * omp-low.c (expand_omp_for_static_chunk): Handle case that
17104 fin_bb has 2 predecessors.
17106 2015-09-03 Tom de Vries <tom@codesourcery.com>
17108 PR tree-optimization/65637
17109 * omp-low.c (find_phi_with_arg_on_edge): New function.
17110 (expand_omp_for_static_chunk): Fix inner loop phi.
17112 2015-09-03 Tom de Vries <tom@codesourcery.com>
17114 PR tree-optimization/65637
17115 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
17118 2015-09-03 Tom de Vries <tom@codesourcery.com>
17120 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
17122 2015-09-03 Tom de Vries <tom@codesourcery.com>
17124 * doc/invoke.texi (parloops-chunk-size): Add item.
17125 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
17126 * tree-parloops.c: Include params.h.
17127 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
17128 param parloops-chunk-size is used.
17130 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17132 PR middle-end/67351
17133 * fold-const.c (fold_binary_loc) : Move
17134 Transform (x >> c) << c into x & (-1<<c) or
17135 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
17136 types using simplify and match.
17137 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
17138 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
17140 2015-09-03 Richard Biener <rguenther@suse.de>
17143 * tree-ssa-structalias.c (ctor_for_analysis): New function.
17144 (create_variable_info_for_1): Use ctor_for_analysis instead
17145 of get_constructor.
17146 (create_variable_info_for): Likewise.
17148 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
17151 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
17152 in new callgraph edge.
17154 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
17159 * config/aarch64/aarch64-simd.md
17160 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
17161 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
17162 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
17163 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
17165 2015-09-02 Alan Modra <amodra@gmail.com>
17167 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
17168 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
17169 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
17171 2015-09-02 Alan Modra <amodra@gmail.com>
17174 * config/rs6000/predicates.md (current_file_function_operand): Don't
17175 return true for weak symbols.
17176 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
17178 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
17179 Andrew Bennett <andrew.bennett@imgtec.com>
17181 * config/mips/mips-opts.h (mips_cb_setting): New enum.
17182 * config/mips/mips-protos.h: Add definitions for
17183 mips_output_jump and mips_output_equal_conditional_branch
17184 * config/mips/mips.c (MIPS_JR): Change to support the
17186 (mips_emit_compare): Add support for the MIPS R6 conditional
17188 (mips_process_sync_loop): Likewise.
17189 (mips_output_order_conditional_branch): Likewise.
17190 (mips16_build_call_stub): Change MIPS_CALL to
17192 (mips_print_operand_punctuation): Update 's' case to only
17193 apply to micromips r2.
17194 (mips_adjust_insn_length): Add support for forbidden slot
17196 (mips_avoid_hazard): Likewise.
17197 (mips_reorg_process_insns): Likewise.
17198 (mips_output_jump): New function.
17199 (mips_output_equal_conditional_branch): Likewise.
17200 (mips_output_conditional_branch): Use jrc/bc if compact
17201 branch support is enabled. Ensure the forbidden slots
17202 between the two branch instructions is filled with a nop.
17203 (mips_option_override): Add support to process the compact
17204 branch option and set the correct defaults. Prevent
17205 non-explict relocs being using for MIPS R6.
17206 (mips_trampoline_init): Add compact branch support.
17207 (mips_mult_zero_zero_cost): Allow zero initialisation of
17208 accumulators with TARGET_DSP.
17209 * config/mips/mips.h (TARGET_CB_NEVER): New define.
17210 (TARGET_CB_MAYBE): New define.
17211 (TARGET_CB_ALWAYS): New define.
17212 (ISA_HAS_DELAY_SLOTS): New define.
17213 (ISA_HAS_COMPACT_BRANCHES): New define.
17214 (ISA_HAS_JRC): New define.
17215 (MIPS_BRANCH_C): New define.
17216 (MIPS_CALL): Removed.
17217 (MICROMIPS_J): Removed.
17218 * config/mips/mips.md (compact_form): New attr.
17219 (hazard): Add support for forbidden slots.
17220 (define_delay): Add support for compact branches.
17221 (*branch_order<mode>): Likewise.
17222 (*branch_order<mode>_inverted): Likewise.
17223 (*branch_equality<mode>): Likewise.
17224 (*branch_equality<mode>_inverted): Likewise.
17225 (*jump_absolute): Likewise.
17226 (*jump_pic): Likewise.
17227 (indirect_jump): Use mips_output_jump to produce assembly output.
17228 (tablejump_<mode>"): Likewise.
17229 (*<optab>"): Likewise.
17230 (<optab>_internal): Likewise.
17231 (sibcall_internal): Likewise.
17232 (sibcall_value_internal): Likewise.
17233 (sibcall_value_multiple_internal): Likewise.
17234 (call_internal): Likewise.
17235 (call_split): Likewise.
17236 (call_internal_direct): Likewise.
17237 (call_direct_split): Likewise.
17238 (call_value_internal): Likewise.
17239 (call_value_split): Likewise.
17240 (call_value_internal_direct): Likewise.
17241 (call_value_direct_split): Likewise.
17242 (call_value_multiple_internal): Likewise.
17243 (call_value_multiple_split): Likewise.
17244 (mips_get_fcsr_mips16_<mode>): Likewise.
17245 (mips_set_fcsr_mips16_<mode>): Likewise.
17246 (tls_get_tp_mips16_<mode>): Likewise.
17247 * config/mips/mips.opt: Add -mcompact-branches option.
17248 * config/mips/predicates.md (order_operator): Ensure the
17249 conditional compact branches are only used if the ISA them.
17250 * doc/invoke.texi: Document -mcompact-branches option.
17252 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
17255 * lra-lives.c (process_bb_lives): Process move pseudos with the
17256 same value for copies and preferences
17257 * lra-constraints.c (match_reload): Create match reload pseudo
17258 with the same value from single dying input pseudo.
17260 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
17263 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
17265 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
17267 * trans-mem.c: Add contributed-by.
17268 * trans-mem.h: Same.
17270 2015-09-01 Richard Biener <rguenther@suse.de>
17272 * expr.c (expand_expr_real_1): For expanding TERed defs
17273 set the current location to that of the def if not UNKNOWN.
17275 2015-09-01 David Sherwood <david.sherwood@arm.com>
17277 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
17279 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17281 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
17282 then_cost, else_cost fields. Change branch_cost field to unsigned int.
17283 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
17284 Include rtl-iter.h.
17285 (noce_simple_bbs): New function.
17286 (noce_try_move): Bail if basic blocks are not simple.
17287 (noce_try_store_flag): Likewise.
17288 (noce_try_store_flag_constants): Likewise.
17289 (noce_try_addcc): Likewise.
17290 (noce_try_store_flag_mask): Likewise.
17291 (noce_try_cmove): Likewise.
17292 (noce_try_minmax): Likewise.
17293 (noce_try_abs): Likewise.
17294 (noce_try_sign_mask): Likewise.
17295 (noce_try_bitop): Likewise.
17296 (bbs_ok_for_cmove_arith): New function.
17297 (noce_emit_all_but_last): Likewise.
17298 (noce_emit_insn): Likewise.
17299 (noce_emit_bb): Likewise.
17300 (noce_try_cmove_arith): Handle non-simple basic blocks.
17301 (insn_valid_noce_process_p): New function.
17302 (contains_mem_rtx_p): Likewise.
17303 (bb_valid_for_noce_process_p): Likewise.
17304 (noce_process_if_block): Allow non-simple basic blocks
17307 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
17309 * tree-ssa-dom.c (record_equivalences_from_phis,
17310 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
17311 (lookup_avail_expr): Likewise, and remove comment and unused temp.
17313 2015-09-01 Nick Clifton <nickc@redhat.com>
17315 * config/msp430/msp430.opt (mcpu): Fix typo.
17317 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17319 * config/aarch64/aarch64.c (aarch64_set_current_function):
17320 Re-layout any vector parameters have non-simd layout.
17321 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
17323 (aarch64_simd_expand_args): Delete call to the above.
17325 2015-08-31 Mike Frysinger <vapier@gentoo.org>
17327 * doc/invoke.texi (asan-stack): Add space before option.
17329 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17331 * tree.h (zerop): New function.
17332 * tree.c (zerop): Likewise.
17333 (element_precision): Handle expressions.
17334 * match.pd (define_predicates): Add zerop.
17335 (x <= +Inf): Fix comment.
17336 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
17337 * fold-const.c (fold_binary_loc): ... here. Remove.
17339 2015-08-31 Richard Biener <rguenther@suse.de>
17341 PR middle-end/67381
17342 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
17344 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17346 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
17347 (CEXPI): New operator list.
17348 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
17349 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
17351 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
17353 2015-08-31 Tom de Vries <tom@codesourcery.com>
17355 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
17356 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
17358 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
17359 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
17360 (rewrite_into_loop_closed_ssa): ... here.
17361 (replace_uses_in_dominated_bbs): Remove function.
17362 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
17363 rewrite_into_loop_closed_ssa_1.
17365 2015-08-31 Michael Matz <matz@suse.de>
17367 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
17368 enter entry and exit blocks for reverse post order.
17370 2015-08-31 Richard Biener <rguenther@suse.de>
17372 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
17373 (lto_location_cache::current_sysp): Likewise.
17374 (output_block::current_sysp): Likewise.
17375 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
17376 (lto_location_cache::apply_location_cache): Properly record
17377 system header locations.
17378 (lto_location_cache::input_location): Input whether a file
17379 is a system header.
17380 * lto-streamer-out.c (lto_output_location): Stream whether a file
17381 is a system header.
17383 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17386 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
17388 2015-08-31 Tom de Vries <tom@codesourcery.com>
17390 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
17391 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
17392 Improve function header comments.
17394 2015-08-30 Michael Collison <michael.collison@linaro.org>
17397 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
17400 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17402 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
17403 special_handling bitfield.
17404 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
17405 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
17406 that represents a general xxpermdi.
17407 (insn_is_swappable_p): Add handling for vec_concat of two
17408 doublewords, which maps to a specific xxpermdi.
17409 (adjust_xxpermdi): New function.
17410 (adjust_concat): Likewise.
17411 (handle_special_swappables): Call adjust_xxpermdi and
17413 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
17415 2015-08-30 Rich Felker <dalias@libc.org>
17417 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
17418 case instead of sh[123456ble]-*-*.
17420 2015-08-29 Anatoly Sokolov <aesok@post.ru>
17422 * ira.c (print_unform_and_important_classes,
17423 print_translated_classes): Remove reg_class_names static array.
17424 (print_unform_and_important_classes): Rename to ...
17425 (print_uniform_and_important_classes): ... this.
17426 (ira_debug_allocno_classes): Update accordingly.
17428 2015-08-29 Tom de Vries <tom@codesourcery.com>
17430 PR tree-optimization/46193
17431 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
17434 2015-08-28 Jeff Law <law@redhat.com>
17437 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17438 unable to find X NE 0 in the tables, return X as the simplified
17440 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17441 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17443 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17444 after removing the control flow statement and unnecessary edges.
17446 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
17449 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17451 PR tree-optimization/67283
17452 * tree-sra.c (type_consists_of_records_p): Rename to...
17453 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17455 (completely_scalarize_record): Rename to...
17456 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
17458 (scalarize_elem): New.
17460 2015-08-28 Jiong Wang <jiong.wang@arm.com>
17462 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
17463 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
17464 (aarch64_symbol_type): Likewise.
17465 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17467 (aarch64_expand_mov_immediate): Likewise.
17468 (aarch64_print_operand): Likewise.
17469 (aarch64_classify_tls_symbol): Likewise.
17471 2015-08-28 Richard Biener <rguenther@suse.de>
17473 * cgraphunit.c (symbol_table::compile): Move early debug generation
17475 (symbol_table::finalize_compilation_unit): ... back here and
17476 add a !seen_error () guard.
17478 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17480 * toplev.c (process_options): Do not use flag_loop_block,
17481 flag_loop_interchange, and flag_loop_strip_mine. Add check for
17482 flag_loop_optimize_isl.
17484 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17486 * Makefile.in (OBJS): Remove graphite-blocking.o and
17487 graphite-interchange.o.
17488 * common.opt (floop-strip-mine, floop-interchange, floop-block):
17489 Alias of floop-nest-optimize.
17490 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
17491 Document as alias of -floop-nest-optimize.
17492 * graphite-blocking.c: Remove.
17493 * graphite-interchange.c: Remove.
17494 * graphite-optimize-isl.c: Include dumpfile.h.
17495 (getScheduleForBand): Add dump for tiled loops. Use
17496 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
17497 * graphite-poly.c (scop_max_loop_depth): Remove.
17498 (print_scattering_function_1): Remove.
17499 (print_scattering_function): Remove.
17500 (print_scattering_functions): Remove.
17501 (debug_scattering_function): Remove.
17502 (debug_scattering_functions): Remove.
17503 (apply_poly_transforms): Remove use of flag_loop_block,
17504 flag_loop_strip_mine, and flag_loop_interchange.
17505 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
17507 (print_pdr_access_layout): Remove.
17508 (print_pdr): Print ISL representation.
17509 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
17510 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
17512 (openscop_print_pbb_domain): Remove.
17513 (print_pbb): Remove call to print_scattering_function.
17514 (openscop_print_scop_context): Remove.
17515 (print_scop_context): Do not print matrices anymore.
17516 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
17517 SCOP_TRANSFORMED_SCHEDULE.
17518 (print_isl_set): Add printing of a new line.
17519 (print_isl_map): Same.
17520 (print_isl_aff): Same.
17521 (print_isl_constraint): Same.
17522 (loop_to_lst): Remove.
17523 (scop_to_lst): Remove.
17524 (lst_indent_to): Remove.
17525 (print_lst): Remove.
17526 (debug_lst): Remove.
17527 (dot_lst_1): Remove.
17529 (reverse_loop_at_level): Remove.
17530 (reverse_loop_for_pbbs): Remove.
17531 * graphite-poly.h (pdr_dim_iter_domain): Remove.
17532 (pdr_nb_params): Remove.
17533 (pdr_alias_set_dim): Remove.
17534 (pdr_subscript_dim): Remove.
17535 (pdr_iterator_dim): Remove.
17536 (pdr_parameter_dim): Remove.
17537 (same_pdr_p): Remove.
17538 (struct poly_scattering): Remove.
17539 (struct poly_bb): Remove _original, _transformed, _saved.
17540 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
17541 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
17542 (PBB_NB_LOCAL_VARIABLES): Remove.
17543 (PBB_NB_SCATTERING_TRANSFORM): Remove.
17544 (schedule_to_scattering): Remove.
17545 (number_of_write_pdrs): Remove.
17546 (pbb_dim_iter_domain): Remove.
17547 (pbb_nb_params): Remove.
17548 (pbb_nb_scattering_orig): Remove.
17549 (pbb_nb_scattering_transform): Remove.
17550 (pbb_nb_dynamic_scattering_transform): Remove.
17551 (pbb_nb_local_vars): Remove.
17552 (pbb_iterator_dim): Remove.
17553 (pbb_parameter_dim): Remove.
17554 (psco_scattering_dim): Remove.
17555 (psct_scattering_dim): Remove.
17556 (psct_local_var_dim): Remove.
17557 (psco_iterator_dim): Remove.
17558 (psct_iterator_dim): Remove.
17559 (psco_parameter_dim): Remove.
17560 (psct_parameter_dim): Remove.
17561 (psct_dynamic_dim): Remove.
17562 (psct_static_dim): Remove.
17563 (psct_add_local_variable): Remove.
17564 (new_lst_loop): Remove.
17565 (new_lst_stmt): Remove.
17566 (free_lst): Remove.
17567 (copy_lst): Remove.
17568 (lst_add_loop_under_loop): Remove.
17569 (lst_depth): Remove.
17570 (lst_dewey_number): Remove.
17571 (lst_dewey_number_at_depth): Remove.
17572 (lst_pred): Remove.
17573 (lst_succ): Remove.
17574 (lst_find_pbb): Remove.
17575 (find_lst_loop): Remove.
17576 (lst_find_first_pbb): Remove.
17577 (lst_empty_p): Remove.
17578 (lst_find_last_pbb): Remove.
17579 (lst_contains_p): Remove.
17580 (lst_contains_pbb): Remove.
17581 (lst_create_nest): Remove.
17582 (lst_remove_from_sequence): Remove.
17583 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
17584 (lst_niter_for_loop): Remove.
17585 (pbb_update_scattering): Remove.
17586 (lst_update_scattering_under): Remove.
17587 (lst_update_scattering): Remove.
17588 (lst_insert_in_sequence): Remove.
17589 (lst_replace): Remove.
17590 (lst_substitute_3): Remove.
17591 (lst_distribute_lst): Remove.
17592 (lst_remove_all_before_including_pbb): Remove.
17593 (lst_remove_all_before_excluding_pbb): Remove.
17594 (struct scop): Remove original_schedule, transformed_schedule, and
17596 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
17597 (SCOP_SAVED_SCHEDULE): Remove.
17598 (poly_scattering_new): Remove.
17599 (poly_scattering_free): Remove.
17600 (poly_scattering_copy): Remove.
17601 (store_scattering_pbb): Remove.
17602 (store_lst_schedule): Remove.
17603 (restore_lst_schedule): Remove.
17604 (store_scattering): Remove.
17605 (restore_scattering_pbb): Remove.
17606 (restore_scattering): Remove.
17607 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
17608 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
17609 compute the scattering polyhedron dimension from the dimension of
17611 (build_scop_scattering): Update call to
17612 build_pbb_scattering_polyhedrons.
17613 (build_poly_scop): Remove call to scop_to_lst.
17614 * graphite.c (graphite_transform_loops): Add call to print_scop.
17615 (gate_graphite_transforms): Remove use of flag_loop_block,
17616 flag_loop_interchange, and flag_loop_strip_mine.
17618 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17620 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
17621 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
17622 -floop-nest-optimize.
17623 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
17624 (generate_luj_sepclass): Remove.
17625 (generate_luj_options): Remove.
17626 (set_options): Remove opt_luj.
17627 (scop_to_isl_ast): Remove opt_luj.
17628 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
17629 flag_loop_unroll_jam.
17630 (getPrevectorMap_full): Remove.
17631 (getScheduleForBandList): Remove map_sepcl.
17632 (getScheduleMap): Same.
17633 (apply_schedule_map_to_scop): Remove sepcl.
17634 (optimize_isl): Same.
17635 * graphite-poly.c (apply_poly_transforms): Remove check for
17636 flag_loop_unroll_jam.
17637 (new_poly_bb): Remove map_sepclass.
17638 * graphite-poly.h (struct poly_bb): Same.
17639 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
17640 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
17641 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
17642 * toplev.c (process_options): Remove flag_loop_unroll_jam.
17644 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
17647 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
17648 (addqi3_cc): Ditto.
17649 (UNSPEC_ADD_CARRY): Remove.
17650 (addqi3_cconly_overflow): New expander.
17651 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
17652 Adjust for changed add<mode>3_carry.
17653 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
17654 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
17655 (<plusminus_insn><mode>3_carry): Remove expander.
17656 (*<plusminus_insn><mode>3_carry): Split insn pattern to
17657 add<mode>3_carry and sub<mode>3_carry.
17658 (plusminus_carry_mnemonic): Remove code attribute.
17659 (add<mode>3_carry): Canonicalize insn pattern.
17660 (*addsi3_carry_zext): Ditto.
17661 (sub<mode>3_carry): Ditto.
17662 (*subsi3_carry_zext): Ditto.
17663 (adcx<mode>3): Remove insn pattern.
17664 (addcarry<mode>): New insn pattern.
17665 (subborrow<mode>): Ditto.
17666 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
17667 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
17668 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
17669 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
17670 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
17671 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
17672 Rewrite expander to not clobber carry flag chains.
17674 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
17676 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
17677 instead of a rotate.
17679 2015-08-27 Marek Polacek <polacek@redhat.com>
17681 PR middle-end/67005
17682 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
17683 an entry into an irreducible region.
17685 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17687 * configure: Regenerate.
17689 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17691 PR tree-optimization/67283
17692 * tree-sra.c (type_consists_of_records_p): Rename to...
17693 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17695 (completely_scalarize_record): Rename to...
17696 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
17697 (scalarize_elem): New.
17699 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17701 * tree-sra.c (completely_scalarize_var): Rename to...
17702 (create_total_scalarization_access): ... Here. Drop call to
17703 completely_scalarize_record.
17705 (analyze_all_variable_accesses): Replace completely_scalarize_var
17706 with create_total_scalarization_access and completely_scalarize_record.
17708 2015-08-27 Alan Modra <amodra@gmail.com>
17711 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
17714 2015-08-27 Richard Biener <rguenther@suse.de>
17716 * passes.c (rest_of_decl_compilation): Guard early_global_decl
17717 call with !seen_error ().
17718 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
17719 early debug generation and finish...
17720 (symbol_table::compile): ... here to put it after a !seen_error ()
17723 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17725 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
17728 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17729 Andre Vieira <andre.simoesdiasvieira@arm.com>
17731 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
17732 (*cb<optab><mode>1): Likewise.
17733 (*tb<optab><mode>1): Likewise.
17734 (*cb<optab><mode>1): Likewise.
17735 * config/aarch64/iterators.md (inv_cb): New code attribute.
17736 (inv_tb): Likewise.
17737 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
17738 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
17740 2015-08-27 Richard Biener <rguenther@suse.de>
17742 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
17744 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
17746 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
17749 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
17751 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
17754 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
17756 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
17757 floating point in VSX registers.
17758 (rs6000_output_move_128bit): Always print out the set insn if we
17759 can't generate an appropriate 128-bit move.
17760 (rs6000_generate_compare): Add support for IEEE 128-bit floating
17761 point in VSX registers comparisons.
17762 (rs6000_expand_float128_convert): Likewise.
17764 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
17765 predicate for only GPR hard registers.
17767 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
17768 modes to iterators. Add new iterators for moving 128-bit values in
17769 scalar FPR registers and VSX registers.
17770 (FMOVE128): Likewise.
17771 (FMOVE128_FPR): Likewise.
17772 (FMOVE128_GPR): Likewise.
17773 (FMOVE128_VSX): Likewise.
17774 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
17777 (IBM128): Likewise.
17778 (TFIFKF): Likewise.
17779 (RELOAD): Add IEEE 128-bit floating point modes.
17780 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
17781 floating point in VSX registers modes.
17782 (signbit<mode>2, IBM128 iterator): Likewise.
17783 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
17784 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
17785 (negtf2): Likewise.
17786 (neg<mode>2, TFIFKF iterator): Likewise.
17787 (negtf2_internal): Likewise.
17788 (abstf2): Likewise.
17789 (abs<mode>2, TFIFKF iterator): Likewise.
17790 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
17791 VSX insn support for negate, absolute value, and negative absolute
17793 (ieee_128bit_vsx_neg<mode>2): Likewise.
17794 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
17795 (ieee_128bit_vsx_abs<mode>2): Likewise.
17796 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17797 (ieee_128bit_vsx_nabs<mode>2): Likewise.
17798 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17799 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
17800 floating point in VSX registers.
17801 (unpack<mode>_dm): Likewise.
17802 (unpack<mode>_nodm): Likewise.
17803 (pack<mode>): Likewise.
17804 (unpackv1ti): Likewise.
17805 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
17806 (packv1ti): Likewise.
17807 (pack<mode>, FMOVE128_VSX iterator): Likewise.
17808 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
17810 (extenddftf2_internal): Likewise.
17811 (trunctfdf2): Likewise.
17812 (trunctfdf2_internal2): Likewise.
17813 (fix_trunc_helper): Likewise.
17814 (fix_trunctfdi2"): Likewise.
17815 (floatditf2): Likewise.
17816 (floatuns<mode>tf2): Likewise.
17817 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
17818 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
17819 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
17820 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
17821 (float<SDI:mode><IFKF:mode>2): Likewise.
17822 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
17824 2015-08-26 Renlin Li <renlin.li@arm.com>
17826 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
17828 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
17829 Jiong Wang <jiong.wang@arm.com>
17831 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
17832 (tlsie_tiny_<mode>): New define_insn.
17833 (tlsie_tiny_sidi): Likewise.
17834 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
17836 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
17837 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17839 (aarch64_expand_mov_immediate): Likewise.
17840 (aarch64_print_operand): Likewise.
17841 (arch64_classify_tls_symbol): Likewise.
17843 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17845 * config/arm/arm-arches.def: Replace single value flags with
17846 an initializer built from ARM_FSET_MAKE_CPU1.
17847 * config/arm/arm-cores.def: Likewise.
17848 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
17849 derivation from the ARM_CORE macro definition, use the given value
17851 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
17852 ARM_ARCH macro definition, use the given value instead.
17854 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17856 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
17858 (struct builtin_description): Replace field mask with field
17860 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
17861 (IWMMXT2_BUILTIN): Likewise.
17862 (IWMMXT2_BUILTIN2): Likewise.
17863 (FP_BUILTIN): Likewise.
17864 (CRC32_BUILTIN): Likewise.
17865 (CRYPTO_BUILTIN): Likewise.
17866 (iwmmx_mbuiltin): Likewise.
17867 (iwmmx2_mbuiltin): Likewise.
17868 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
17869 struct builtin_description.
17871 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17873 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
17874 (struct builtin_description): Change type of mask to unsigned
17876 * config/arm/arm-protos.h (insn_flags): Declare as type
17878 (tune_flags): Likewise.
17879 * config/arm/arm.c (feature_count): New.
17880 (insn_flags): Define as type arm_feature_set.
17881 (tune_flags): Likewise.
17882 (struct processors): Define field flags as type arm_feature_set.
17883 (all_cores): Update for change to struct processors.
17884 (all_architectures): Likewise.
17885 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
17887 (arm_option_override_internal): Likewise.
17888 (arm_option_override): Likewise.
17890 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
17891 Jiong Wang <jiong.wang@arm.com>
17893 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
17894 tls size for tiny, small, large memory model.
17895 (aarch64_load_symref_appropriately): Support new symbol types.
17896 (aarch64_expand_mov_immediate): Likewise.
17897 (aarch64_print_operand): Likewise.
17898 (aarch64_classify_tls_symbol): Likewise.
17899 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
17900 (aarch64_symbol_type): Likewise.
17901 * config/aarch64/aarch64.md (tlsle): Deleted.
17902 (tlsle12_<mode>): New define_insn.
17903 (tlsle24_<mode>): Likewise.
17904 (tlsle32_<mode>): Likewise.
17905 (tlsle48_<mode>): Likewise.
17906 * doc/sourcebuild.texi (AArch64-specific attributes): Document
17909 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17911 * config/arm/arm-protos.h (FL_NONE): New.
17913 (arm_feature_set): New.
17914 (ARM_FSET_MAKE): New.
17915 (ARM_FSET_MAKE_CPU1): New.
17916 (ARM_FSET_MAKE_CPU2): New.
17917 (ARM_FSET_CPU1): New.
17918 (ARM_FSET_CPU2): New.
17919 (ARM_FSET_EMPTY): New.
17920 (ARM_FSET_ANY): New.
17921 (ARM_FSET_HAS_CPU1): New.
17922 (ARM_FSET_HAS_CPU2): New.
17923 (ARM_FSET_HAS_CPU): New.
17924 (ARM_FSET_ADD_CPU1): New.
17925 (ARM_FSET_ADD_CPU2): New.
17926 (ARM_FSET_DEL_CPU1): New.
17927 (ARM_FSET_DEL_CPU2): New.
17928 (ARM_FSET_UNION): New.
17929 (ARM_FSET_INTER): New.
17930 (ARM_FSET_XOR): New.
17931 (ARM_FSET_EXCLUDE): New.
17932 (AFM_FSET_IS_EMPTY): New.
17933 (ARM_FSET_CPU_SUBSET): New.
17935 2015-08-26 Jiong Wang <jiong.wang@arm.com>
17937 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17938 SYMBOL_TLSLE to SYMBOL_TLSLE24.
17939 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17941 (aarch64_expand_mov_immediate): Likewise.
17942 (aarch64_print_operand): Likewise.
17943 (aarch64_classify_symbol): Likewise.
17945 2015-08-26 Jiong Wang <jiong.wang@arm.com>
17947 * config/aarch64/aarch64.opt (mtls-size): New entry.
17948 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
17949 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
17950 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
17952 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17954 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
17955 ARM_CORE entry. Fix some white-space.
17956 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
17957 ARM_CORE definition.
17959 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17961 * fold-const.c (fold_binary_loc) : Move Optimize
17962 root(x)*root(y) as root(x*y) to match.pd.
17963 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
17964 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
17965 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
17966 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
17967 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
17968 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
17969 (mult (exps:s @0) (exps:s @1)) : New simplifier.
17970 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
17971 (rdiv @0 (exps:s @1)) : New simplifier.
17973 2015-08-25 Joseph Myers <joseph@codesourcery.com>
17975 * gcc.c (driver::finalize): Only assign to extra_specs if
17978 2015-08-25 Marek Polacek <polacek@redhat.com>
17980 PR middle-end/67330
17981 * varasm.c (declare_weak): Return after giving an error.
17983 2015-08-25 David Malcolm <dmalcolm@redhat.com>
17985 * gcc-main.c (main): Add params to driver ctor.
17986 * gcc.c (class env_manager): New.
17988 (env_manager::init): New.
17989 (env_manager::get): New.
17990 (env_manager::xput): New.
17991 (env_manager::restore): New.
17992 Poison getenv and putenv.
17993 (DEFAULT_TARGET_SYSTEM_ROOT): New.
17994 (target_system_root): Update initialization to use
17995 DEFAULT_TARGET_SYSTEM_ROOT.
17996 (struct spec_list): Add field "default_ptr".
17997 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
17998 (init_spec): Likewise.
17999 (set_spec): Clear field "default_ptr".
18000 (read_specs): Free "spec" and "buffer".
18001 (xputenv): Reimplement in terms of env_manager.
18002 (process_command): Replace ::getenv calls with calls to the
18003 env_manager singleton.
18004 (process_brace_body): Free string in three places.
18005 (driver::driver): New.
18006 (driver::~driver): New.
18007 (used_arg): Convert from a function to...
18008 (class used_arg_t): ...this class, and...
18009 (used_arg): ...this new global instance.
18010 (used_arg_t::finalize): New function.
18011 (getenv_spec_function): Add "const" to local "value". Replace
18012 ::getenv call with call to the env_manager singleton.
18013 (path_prefix_reset): New function.
18014 (driver::finalize): New function.
18015 * gcc.h (driver::driver): New.
18016 (driver::~driver): New.
18017 (driver::finalize): New.
18019 2015-08-25 Nathan Sidwell <nathan@acm.org>
18021 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
18022 target doesn't have one.
18024 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
18027 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
18029 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
18032 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
18033 a define_insn, remove second alternative.
18035 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
18036 Joseph Myers <joseph@codesourcery.com>
18038 * gcc.c (struct switchstr): Expand comment.
18040 2015-08-25 Nathan Sidwell <nathan@acm.org>
18042 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
18043 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
18045 2015-08-25 Richard Biener <rguenther@suse.de>
18047 PR middle-end/67306
18048 * genmatch.c (expr::gen_transform): Verify the result of
18049 builtin_decl_implicit.
18050 (dt_simplify::gen_1): Likewise.
18052 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
18054 * config/arm/constraints.md: Also list Cs and US ARM-specific
18055 constraints as used.
18057 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
18060 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
18062 (nonpic_symbol_mentioned_p): Likewise.
18063 (sh_delegitimize_address): Likewise.
18064 (sh_function_ok_for_sibcall): Take into account weak symbols.
18065 (sh_expand_sym_label2reg): New.
18066 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
18067 * config/sh/sh.md (UNSPEC_PCREL): New enum.
18068 (call_pcrel): Use sh_expand_sym_label2reg.
18069 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
18070 (symPCREL_label2reg) New expand.
18072 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18074 * graphite-poly.c: Change type of region from void* to sese.
18075 * graphite-poly.h (struct scop): Changing the type of scop::region
18076 from void* to sese. Change accessor macro accordingly.
18077 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
18079 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18081 * graphite-scop-detection.c (stmt_simple_for_scop_p):
18082 Constrain only on INTEGER_TYPE.
18084 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18087 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
18088 -mefficient-unaligned-vsx on ISA 2.7.
18090 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
18091 option to a masked option.
18093 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
18094 logic for -mefficient-unaligned-vsx so that it is set via an arch
18095 ISA option, instead of being set if -mtune=power8 is set. Move
18096 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
18097 near other default option handling.
18099 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18101 * genflags.c (gen_macro): Delete.
18102 (gen_proto): Don't create GEN.*CALL.* macros.
18103 * gensupport.h (get_file_location): Declare.
18104 * gensupport.c (rtx_locs): New variable.
18105 (read_md_rtx): Record rtx locations.
18106 (get_file_location): New function.
18107 * target-insns.def (call, call_pop, call_value, call_value_pop)
18108 (sibcall, sibcall_value): New patterns.
18109 * gentarget-def.c (parse_argument): New function.
18110 (def_target_insn): Use it. Handle optional operands. Raise an
18111 error if an .md pattern has the wrong number of operands for the
18112 pattern name. Remove the names of unused operands from the prototype.
18113 * builtins.c (expand_builtin_apply): Use targetm functions
18114 instead of HAVE_call_value and GEN_CALL_VALUE.
18115 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
18116 and sibcall_value_pop.
18117 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
18119 * config/alpha/alpha.md (untyped_call): Likewise.
18120 * config/iq2000/iq2000.md (untyped_call): Likewise.
18121 * config/m68k/m68k.md (untyped_call): Likewise.
18122 * config/mips/mips.md (untyped_call): Likewise.
18123 * config/pa/pa.md (untyped_call): Likewise.
18124 * config/rs6000/rs6000.md (untyped_call): Likewise.
18125 * config/sparc/sparc.md (untyped_call): Likewise.
18126 * config/tilegx/tilegx.md (untyped_call): Likewise.
18127 * config/tilepro/tilepro.md (untyped_call): Likewise.
18128 * config/visium/visium.md (untyped_call): Likewise.
18129 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
18130 gen_call_value instead of GEN_CALL_VALUE.
18131 * config/arm/arm.md (untyped_call): Likewise.
18132 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
18135 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18137 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
18138 (have_cbranchcc4): New variable.
18139 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
18140 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
18141 (if_convert): Initialize have_cbranchcc4.
18143 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18145 * builtins.c (expand_cmpstrn): Rename to...
18146 (expand_cmpstrn_or_cmpmem): ...this.
18147 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
18148 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
18149 Remove mode argument.
18150 (expand_builtin): Update accordingly.
18152 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18154 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
18155 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
18156 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
18157 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
18158 Add predicates for operands 0 and 3.
18159 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
18161 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
18162 immediate_operand to nonmemory_operand.
18164 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18166 * df-scan.c (df_insn_info_init_fields): New function, split out
18168 (df_insn_create_insn_record): ...here.
18169 (df_insn_info_free_fields): New function, split out from...
18170 (df_insn_info_delete): ...here.
18171 (df_insn_rescan): Use the new functions instead of freeing and
18172 reallocating the df_insn_info.
18174 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18176 * doc/install.texi (Binaries): Remove links no longer valid.
18178 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
18180 * config/nvptx/mkoffload.c (process): Replace
18181 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
18183 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
18186 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
18188 2015-08-24 Renlin Li <renlin.li@arm.com>
18190 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
18191 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
18192 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
18193 * config/arm/constraints.md ("j"): Add check for high code.
18195 2015-08-24 Tom de Vries <tom@codesourcery.com>
18197 PR tree-optimization/65468
18198 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
18201 2015-08-24 Nathan Sidwell <nathan@acm.org>
18203 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
18204 change to nvptx_type_from_mode call. Use arg_promotion for both
18205 split and non-split args.
18207 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18209 * target-insns.def (movstr): New pattern.
18210 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
18211 (expand_movstr): Use targetm rather than HAVE_movstr/
18214 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18216 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
18219 2015-08-24 Andrew Pinski <apinski@cavium.com>
18221 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
18222 AARCH64_EXTRA_TUNING_OPTION.
18223 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
18225 (aarch64_extra_tuning_flags): Base the shifted value on the index
18226 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
18227 * config/aarch64/aarch64.c: Remove the last argument to
18228 AARCH64_EXTRA_TUNING_OPTION.
18230 2015-08-23 Nathan Sidwell <nathan@acm.org>
18232 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
18234 (nvptx_declare_function_name): Insert formatting tabs for
18237 2015-08-23 Tom de Vries <tom@codesourcery.com>
18239 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
18240 parm_decl, rather than generating a dummy default def in cfun.
18241 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
18242 ssa_name from cfun and child_fn do not share a stmt as def stmt.
18243 (move_stmt_op): Handle PARM_DECl.
18244 (gather_ssa_name_hash_map_from): New function.
18245 (move_sese_region_to_fn): Add default defs for function params, and add
18246 them to vars_map. Release copied ssa names.
18247 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
18249 2015-08-23 Tom de Vries <tom@codesourcery.com>
18251 * doc/sourcebuild.texi: Rename vect_no_int_max with
18252 vect_no_int_min_max. Update description.
18254 2015-08-22 Andrew Pinski <apinski@cavium.com>
18256 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
18257 * config/aarch64/aarch64-protos.h
18258 (aarch64_fusion_pairs_index): New enum.
18259 (aarch64_fusion_pairs): Base the shifted value on the index instead
18260 Rewrite AARCH64_FUSE_ALL to be based on the end index.
18261 of the argument to AARCH64_FUSION_PAIR.
18262 * config/aarch64/aarch64.c: Remove the last argument to
18263 AARCH64_FUSION_PAIR.
18265 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
18267 * dominance.c (new_zero_array): Define.
18268 (dom_info): Redefine as class with proper encapsulation.
18269 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
18271 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
18272 allocations/deallocations. Pass function as parameter (instead of
18274 (dom_info::get_idom): Define accessor method.
18275 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
18276 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
18277 (calculate_dominance_info): Adjust to use dom_info class.
18278 (verify_dominators): Likewise.
18280 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
18282 * print-rtl.c (print_rtx): Check the correct range for
18283 flag_dump_unnumbered_links to behave as documented.
18285 PR rtl-optimization/67227
18286 PR rtl-optimization/64164
18287 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
18288 (nonoverlapping_memrefs_p): Test offsets and sizes when given
18289 identical gimple_reg exprs.
18291 2015-08-21 Nathan Sidwell <nathan@acm.org>
18293 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
18295 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
18296 crtl->stack_alignment_needed to determine alignment.
18297 (nvptx_get_drap_rtx): New.
18298 (TARGET_GET_DRAP_RTX): Override.
18299 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
18301 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18303 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
18305 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18307 * configure.ac: Remove uwin* cases.
18308 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
18309 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
18310 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
18311 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
18312 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
18313 i[34567]86-*-uwin*, powerpc-*-beos*.
18315 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
18317 * gencodes.c (gencodes): Print the comma for the preceding
18318 enum value rather than the current one. Use aliased enum values
18319 rather than #defines for compiled-out patterns.
18320 (main): Update accordingly. Replace LAST_INSN_CODE with
18322 * lra.c (insn_code_data): Update accordingly.
18323 (finish_insn_code_data_once, get_static_insn_data): Likewise.
18324 * recog.h (target_recog): Likewise.
18325 (preprocess_insn_constraints): Change parameter to unsigned int.
18326 * recog.c (preprocess_insn_constraints): Likewise.
18327 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
18328 * tree-vect-stmts.c (vectorizable_operation): Simplify.
18330 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
18332 PR rtl-optimization/61657
18333 * loop-iv.c (iv_number_of_iterations): Declare up and down as
18334 unsigned. Remove superflous uint64_t cast.
18336 2014-08-21 Felix Yang <felix.yang@huawei.com>
18337 Jiji Jiang <jiangjiji@huawei.com>
18339 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
18340 argument and get builtin function code directly from CALL.
18341 (gimple_stringop_fixed_value): Modified accordingly.
18342 (gimple_stringops_transform, gimple_stringops_values_to_profile):
18343 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
18345 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
18347 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
18349 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18351 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
18353 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
18354 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
18355 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
18356 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
18357 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
18358 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
18359 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
18360 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
18361 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
18362 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
18364 * match.pd (SIN ) : New Operator.
18365 (TAN) : New Operator.
18366 (mult (SQRT@1 @0) @1) : New simplifier.
18367 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
18368 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18369 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18370 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
18371 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
18372 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
18373 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
18374 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
18375 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
18376 (rdiv @0 (POW:s @1 @2)) : New simplifier.
18378 2015-08-21 Bin Cheng <bin.cheng@arm.com>
18380 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
18381 loop if EXPR is simplified to const value.
18383 2015-08-21 Yury Gribov <y.gribov@samsung.com>
18385 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18386 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
18388 2015-08-21 Richard Biener <rguenther@suse.de>
18390 PR middle-end/67285
18391 * gimple-fold.c (replace_stmt_with_simplification): Assert
18392 seq is empty when replacing a call with itself but different
18394 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
18395 a call require that it is const.
18397 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18399 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
18400 * builtins.c (get_object_alignment_2): Adjust.
18401 * varasm.c (align_variable): Likewise.
18402 (get_variable_align): Likewise.
18403 (build_constant_desc): Likewise.
18404 (force_const_mem): Likewise.
18405 * doc/tm.texi.in: Likewise.
18406 * doc/tm.texi: Regenerate.
18408 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18410 * genconfig.c (main): Always define HAVE_cc0.
18411 * recog.c (rest_of_handle_peephole2): Adjust.
18413 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18415 * reorg.c (relax_delay_slots): Don't use #if to check value of
18418 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18420 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
18421 * targhooks.c (default_have_conditional_execution): Adjust.
18423 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18425 * rtl.h (rtvec_all_equal_p): Declare.
18426 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
18427 * rtl.c (rtvec_all_equal_p): New function.
18428 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
18429 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
18430 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
18431 * config/arm/arm.c (neon_vdup_constant): Likewise.
18432 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
18433 * config/tilegx/constraints.md (W, Y): Likewise.
18434 * config/tilepro/constraints.md (W, Y): Likewise.
18435 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
18436 (classify_immediate): Use unwrap_const_vec_duplicate.
18437 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
18438 (reg_or_v2s8bit_operand): Likewise.
18439 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
18440 (reg_or_v4s8bit_operand): Likewise.
18442 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18444 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
18445 (vec_shasigma_be): New #define.
18446 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
18447 (VPMSUMH): Likewise.
18448 (VPMSUMW): Likewise.
18449 (VPMSUMD): Likewise.
18450 (VPMSUM): New BU_P8V_OVERLOAD_2.
18451 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
18452 entries for VEC_MADD and VEC_VPMSUM.
18454 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
18456 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
18457 Multiply argument avr_n_flash by 64 to match unit of "KiB".
18458 (avr_pgm_check_var_decl): Same.
18460 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
18462 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
18463 initialization of HFmode scalar type (float16_t) to...
18464 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
18467 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
18469 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
18470 having an -mfp16-format.
18472 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18474 * config/i386/predicates.md (vector_all_ones_operand): Use
18475 CONSTM1_RTX to simplify definition.
18477 2015-08-20 Richard Biener <rguenther@suse.de>
18479 * toplev.c (compile_file): Remove loop calling late_global_decl
18481 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
18482 on decls we assembled.
18484 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
18486 * common/config/aarch64/aarch64-common.c
18487 (AARCH64_CPU_NAME_LENGTH): Delete.
18488 (aarch64_option_extension): New.
18489 (all_extensions): Likewise.
18490 (processor_name_to_arch): Likewise.
18491 (arch_to_arch_name): Likewise.
18493 (all_architectures): Likewise.
18494 (aarch64_get_extension_string_for_isa_flags): Likewise.
18495 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
18496 architecture names.
18497 * config/aarch64/aarch64-protos.h
18498 (aarch64_get_extension_string_for_isa_flags): New.
18499 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
18500 (aarch64_option_print): Get the string to print from
18501 aarch64_get_extension_string_for_isa_flags.
18502 (aarch64_declare_function_name): Likewise.
18503 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
18504 (MCPU_TO_MARCH_SPEC): This.
18505 (ASM_CPU_SPEC): Use it.
18506 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
18507 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
18508 (EXTRA_SPEC_FUNCTIONS): Use it.
18510 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
18512 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
18513 expansion when !ISA_HAS_LWL_LWR.
18514 (mips_block_move_straight): Update the size of elements copied to
18515 account for alignment when !ISA_HAS_LWL_LWR.
18516 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
18518 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18520 * expr.c (expand_expr_real_2): Check gimple statement during
18521 LSHIFT_EXPR expand.
18523 2015-08-19 Magnus Granberg <zorry@gentoo.org>
18525 * common.opt (fstack-protector): Initialize to -1.
18526 (fstack-protector-all): Likewise.
18527 (fstack-protector-strong): Likewise.
18528 (fstack-protector-explicit): Likewise.
18529 * configure.ac: Add --enable-default-ssp.
18530 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
18531 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
18533 * doc/install.texi: Document --enable-default-ssp.
18534 * config.in: Regenerated.
18535 * configure: Likewise.
18537 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
18539 PR rtl-optimization/64164
18540 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
18541 (parm_in_stack_slot_p): ... this. Disregard mode, what
18542 matters is whether the parm will live in a pseudo or a stack
18544 (expand_one_ssa_partition): Deal with params without a default
18545 def. Disregard mode.
18546 * cfgexpand.h: Renamed function declaration.
18547 * tree-ssa-coalesce.c: Adjust.
18548 * function.c (split_complex_args): Allocate stack slot for
18549 unassigned parms before splitting.
18550 (parm_in_unassigned_mem_p): New. Use it instead of
18551 parm_maybe_byref_p throughout this file.
18552 (assign_parm_setup_block): Use it. Accept pseudos in the
18553 expand-assigned rtl.
18554 (assign_parm_setup_reg): Drop BLKmode requirement.
18555 (assign_parm_setup_stack): Allocate and fill in the address of
18556 unassigned MEM parms.
18558 2015-08-19 David Sherwood <david.sherwood@arm.com>
18560 * genmodes.c (emit_mode_unit_size_inline): New function.
18561 (emit_mode_unit_precision_inline): New function.
18562 (emit_insn_modes_h): Emit new #define. Emit new functions.
18563 (emit_mode_unit_size): New function.
18564 (emit_mode_unit_precision): New function.
18565 (emit_mode_adjustments): Add mode_unit_size adjustments.
18566 (emit_insn_modes_c): Emit new arrays.
18567 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
18568 use new inline methods.
18570 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18572 * config/aarch64/aarch64.c (bit_count): Delete prototype
18574 (aarch64_print_operand): Use popcount_hwi instead of the above.
18576 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18578 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
18581 2015-08-19 Marek Polacek <polacek@redhat.com>
18583 PR middle-end/67133
18584 * gimple-ssa-isolate-paths.c
18585 (insert_trap_and_remove_trailing_statements): Rename to ...
18586 (insert_trap): ... this. Don't remove trailing statements; split
18588 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
18590 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
18593 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
18594 conditionalize the whole on __GNUC__. Add fallback code
18595 depending neither on undefined nor implementation-defined behaviour.
18597 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18599 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
18600 whitespaces with tab.
18602 2015-08-19 Florian Weimer <fweimer@redhat.com>
18604 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
18605 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
18606 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
18607 Move Name_Ids instantiation to the Prj.Proc package, to avoid
18610 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18612 * config/arm/arm.c (bounds_check): Use %wd print format
18613 for HOST_WIDE_INT arguments.
18615 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
18617 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
18618 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
18619 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
18620 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
18621 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
18622 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
18623 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
18624 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
18625 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
18628 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
18630 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
18631 function.c, graphite-scop-detection.c, haifa-sched.c,
18632 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
18633 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
18634 varasm.c: Remove typedefs of structs.
18636 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
18638 * config/rs6000/altivec.h (vec_adde): New define.
18639 (vec_addec): Likewise.
18640 (vec_double): Likewise.
18641 (vec_bperm): Likewise.
18642 (vec_gb): Likewise.
18643 * config/rs6000/rs6000-builtin.def (ADDE): New
18644 BU_ALTIVEC_OVERLOAD_3.
18646 (DOUBLE): New BU_VSX_OVERLOAD_1.
18647 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
18648 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
18649 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
18650 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
18651 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
18652 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
18653 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
18654 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
18655 and P8V_BUILTIN_VEC_VBPERMQ.
18657 2015-08-18 Jason Merrill <jason@redhat.com>
18659 * print-tree.c (print_node): Handle TREE_BINFO.
18661 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18663 PR middle-end/36757
18664 * builtins.c (expand_builtin_signbit): Add asserts to make sure
18665 we can expand BUILT_IN_SIGNBIT inline.
18666 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
18667 * doc/extend.texi: Document the type-generic __builtin_signbit.
18669 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
18671 PR rtl-optimization/67218
18672 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
18673 (simplify_unary_operation_1): Use it.
18675 2015-08-18 Marek Polacek <polacek@redhat.com>
18677 PR middle-end/67222
18678 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
18679 if the call isn't valid.
18680 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
18681 gimple_call_builtin_p.
18682 (call_may_clobber_ref_p_1): Likewise.
18683 (stmt_kills_ref_p): Likewise.
18685 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
18687 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
18688 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
18689 (mips_hard_regno_scratch_ok): Likewise.
18690 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
18691 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
18693 2015-08-18 Bin Cheng <bin.cheng@arm.com>
18695 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
18696 (determine_value_range): Call refine_value_range_using_guard for
18697 each loop initial condition to improve value range.
18699 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
18701 * config/i386/i386.c: Remove include of fibheap.h.
18703 2015-08-17 Richard Biener <rguenther@suse.de>
18705 PR tree-optimization/67221
18706 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
18707 (sccvn_dom_walker::before_dom_children): Mark backedges of
18708 non-executable blocks as not executable.
18710 2015-08-17 David Sherwood <david.sherwood@arm.com>
18712 * config/arm/arm.c (neon_element_bits): Replace call to
18713 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
18714 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
18715 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
18716 (neon_vdup_lane<mode>): Likewise.
18717 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
18718 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
18719 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
18720 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
18721 * config/spu/spu.c (arith_immediate_p): Likewise.
18722 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
18723 * expr.c (expand_expr_real_2): Likewise.
18724 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
18725 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18726 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
18727 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
18729 * fold-const.c (fold_binary_loc): Replace call to
18730 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
18731 GET_MODE_UNIT_PRECISION (m).
18733 2015-08-17 Mike Stump <mikestump@comcast.net>
18735 * config/arm/arm.c (arm_block_move_unaligned_straight):
18736 Emit normal move instead of unaligned load when source or destination
18737 are appropriately aligned.
18739 2015-08-17 Richard Biener <rguenther@suse.de>
18740 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18742 PR middle-end/16107
18743 * match.pd (div (coss (op @0) : New simplifier.
18745 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
18747 PR rtl-optimization/64164
18749 PR middle-end/66983
18750 PR rtl-optimization/67000
18751 PR middle-end/67034
18752 PR middle-end/67035
18753 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
18754 * tree-ssa-copyrename.c: Removed.
18755 * opts.c (default_options_table): Drop -ftree-copyrename. Add
18756 -ftree-coalesce-vars.
18757 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
18758 * common.opt (ftree-copyrename): Ignore.
18759 (ftree-coalesce-inlined-vars): Likewise.
18760 * doc/invoke.texi: Remove the ignored options above.
18761 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
18762 * tree-ssa-coalesce.h: ... here.
18763 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
18764 headers required by it.
18765 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
18766 across variables when flag_tree_coalesce_vars. Check register
18767 use and promoted modes to allow coalescing. Do not coalesce
18768 maybe-byref parms with SSA_NAMEs of other variables, or
18769 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
18770 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
18771 with its member functions to tree-ssa-coalesce.c.
18772 (var_map_base_init): Likewise. Renamed to
18773 compute_samebase_partition_bases.
18774 (partition_view_normal): Drop want_bases parameter.
18775 (partition_view_bitmap): Likewise.
18776 * tree-ssa-live.h: Adjust declarations.
18777 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
18778 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
18779 default defs at the entry point.
18780 (dump_part_var_map): New.
18781 (compute_optimized_partition_bases): New, called by...
18782 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
18783 of compute_samebase_partition_bases. Adjust.
18784 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
18785 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
18786 (ssa_default_def_partition): New.
18787 (get_rtl_for_parm_ssa_default_def): New.
18788 (align_local_variable, add_stack_var): Support anonymous SSA
18790 (defer_stack_allocation): Likewise. Declare earlier.
18791 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
18792 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
18793 Do no record deferred-allocation marker in
18794 SA.partition_to_pseudo.
18795 (expand_stack_vars): Adjust check for the marker in it.
18796 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
18797 redundant MEM attr setting.
18798 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
18800 (expand_one_stack_var): ... this. New wrapper to check and
18801 skip already expanded SSA partitions.
18802 (record_alignment_for_reg_var): New, factored out of...
18803 (expand_one_var): ... this.
18804 (expand_one_ssa_partition): New.
18805 (adjust_one_expanded_partition_var): New.
18806 (expand_one_register_var): Check and skip already expanded SSA
18808 (expand_used_vars): Don't create DECLs for anonymous SSA
18809 names. Expand all SSA partitions, then adjust all SSA names.
18810 (pass::execute): Replace the loops that set
18811 SA.partition_to_pseudo from partition leaders and cleared
18812 DECL_RTL for multi-location variables, and that which used to
18813 rename vars and set attrs, with one that clears DECL_RTL and
18814 checks that PARMs and RESULTs default_defs match DECL_RTL.
18815 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18816 * emit-rtl.c: Include stor-layout.h.
18817 (set_reg_attrs_for_parm): Handle NULL decl.
18818 (set_reg_attrs_for_decl_rtl): Take mode from expression if
18820 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
18821 rather than its possibly-NULL DECL.
18822 * explow.c (promote_ssa_mode): New.
18823 * explow.h (promote_ssa_mode): Declare.
18824 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18825 (read_complex_part): Export.
18826 * expr.h (read_complex_part): Declare.
18827 * cfgexpand.h (parm_maybe_byref_p): Declare.
18828 * function.c: Include cfgexpand.h.
18829 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18830 (use_register_for_parm_decl): Wrapper for the above to
18831 special-case the result_ptr.
18832 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18833 (split_complex_args): Take assign_parm_data_all argument.
18834 Pass it to rtl_for_parm. Set up rtl and context for split
18835 args. Reset complex parm before fetching its default decl
18837 (assign_parms_unsplit_complex): Use the default-def complex
18838 parm rtl if it matches the components.
18839 (assign_parms_augmented_arg_list): Adjust.
18840 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18841 multiple locations. Recognize split complex args.
18842 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18843 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
18844 (assign_parm_setup_block): Prefer SSA-assigned location, and
18845 fill in its address if the memory location of a maybe-byref
18846 parm was not assigned by cfgexpand.
18847 (assign_parm_setup_reg): Likewise. Adjust its mode as
18848 needed. Use entry_parm for equiv if stack_parm is NULL. Make
18849 sure passed_pointer parms don't need conversion. Copy address
18850 or value as needed.
18851 (assign_parm_setup_stack): Prefer SSA-assigned location.
18852 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
18853 rtl before testing for pointer bounds. Special-case result_ptr.
18854 (expand_function_start): Maybe reset DECL_RTL of result.
18855 Prefer SSA-assigned location for result and static chain.
18856 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
18857 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
18858 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18859 anonymous SSA names. Use promote_ssa_mode.
18860 (get_temp_reg): Likewise.
18861 (remove_ssa_form): Adjust.
18862 * stor-layout.c (layout_decl): Don't set mem attributes of
18864 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18865 and get its reg_usage for reg invalidation.
18866 (compute_bb_dataflow): Pass it insn.
18867 (emit_notes_in_bb): Likewise.
18869 2015-08-14 Marek Polacek <polacek@redhat.com>
18871 * tree-core.h (tree_base): Fix typo.
18873 2015-08-14 Marek Polacek <polacek@redhat.com>
18875 PR middle-end/67133
18876 * gimple.c (infer_nonnull_range_by_attribute): Check that the
18877 nonnull argument position is not outside function arguments.
18879 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
18882 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
18883 'lconst_atomic' with 'const_atomic'.
18884 (atomic_fetch_<optab><mode>): Likewise.
18885 (atomic_<optab>_fetch<mode>): Likewise.
18886 * config/aarch64/iterators.md (lconst-atomic): Move below
18888 (const_atomic): New.
18890 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
18891 Bernd Schmidt <bernds@codesourcery.com>
18893 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
18895 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
18896 (DWARF2_DEBUGGING_INFO): Don't define.
18897 * debug.h (dwarf2_lineno_debug_hooks): Declare.
18898 * toplev.c (process_options): Add a case for it.
18899 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
18900 (dwarf2out_init): Skip most initializations if
18901 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
18903 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
18904 DWARF2_LINENO_DEBUGGING_INFO.
18905 * opts.c (set_debug_level): Likewise.
18907 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
18909 * config/arm/types.md (is_neon_type): Add missing types.
18911 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
18913 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
18915 * config/i386/i386.c (PTA_SKYLAKE): New macros.
18916 (processor_alias_table): Add skylake description.
18917 (enum processor_model): Add skylake processor.
18918 (arch_names_table): Add skylake record.
18919 * doc/invoke.texi: Add skylake item.
18921 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
18923 * ira-int.h: Include recog.h.
18924 * ira-build.c: Don't include recog.h.
18925 * ira-color.c: Likewise.
18926 * ira-conflicts.c: Likewise.
18927 * ira-costs.c: Likewise.
18928 * ira-emit.c: Likewise.
18929 * ira-lives.c: Likewise.
18931 * sched-deps.c: Likewise.
18932 * sel-sched.c: Likewise.
18933 * target-globals.c: Likewise.
18935 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
18938 * reload1.c (elimination_costs_in_insn): Make it obvious to the
18939 compiler that the n_dups and n_operands loop bounds are invariant.
18941 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18943 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
18944 expressions in A and B.
18946 2015-08-13 Richard Biener <rguenther@suse.de>
18948 * tree.c (nonnull_arg_p): Move from ...
18949 * tree-vrp.c (nonnull_arg_p): ... here.
18950 * tree.h (nonnull_arg_p): Declare.
18951 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
18952 here, register ptr != 0 for nonnull_arg_p pointer arguments.
18953 Properly initialize static chain and by-reference result pointer.
18954 (run_scc_vn): Adjust.
18956 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18958 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
18961 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18963 * config/aarch64/aarch64-protos.h
18964 (aarch64_gen_atomic_cas): Declare.
18965 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
18966 Choose appropriate instruction pattern for the target.
18967 (aarch64_gen_atomic_cas): New.
18968 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
18969 (atomic_compare_and_swap<mode>_1): Rename to
18970 aarch64_compare_and_swap<mode>. Fix some indentation.
18971 (aarch64_compare_and_swap<mode>_lse): New.
18972 (aarch64_atomic_cas<mode>): New.
18974 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18976 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
18979 2015-08-13 Richard Biener <rguenther@suse.de>
18981 PR tree-optimization/67191
18982 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
18983 assert we value-numbered last stmts operand because it can validly
18984 trigger for unreachable code.
18986 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18988 PR rtl-optimization/67103
18989 * ifcvt.c (noce_try_store_flag_constants): Move
18990 x = (-(test != 0) & (b - a)) + a transformation to...
18991 (noce_try_cmove): ... Here. Try it if normal conditional
18994 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18996 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
18998 * config/mips/mips.md (processor): Remove w32 and w64.
19000 2015-08-13 Richard Biener <rguenther@suse.de>
19002 PR tree-optimization/66502
19003 PR tree-optimization/67167
19004 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
19005 backedge arguments.
19006 (vn_phi_lookup): Adjust.
19007 (vn_phi_insert): Likewise.
19008 (visit_phi): Prefer to value-number to another PHI node
19009 over value-numbering to a PHI argument.
19010 (init_scc_vn): Mark DFS back edges.
19012 2015-08-13 Richard Biener <rguenther@suse.de>
19014 * gimple.h (gcall::code_): New constant static member.
19015 (gcond::code_): Likewise.
19016 * gimple.c (gcall::code_): Define.
19017 (gcond::code_): Likewise.
19018 (is_a_helper <const gcond *>): Add.
19019 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
19020 and forward to a new gcall overload with less checking and a
19021 cheaper way to access the operand.
19022 (gimple_call_lhs_ptr): Likewise.
19023 (gimple_call_set_lhs): Likewise.
19024 (gimple_call_internal_p): Likewise.
19025 (gimple_call_with_bounds_p): Likewise.
19026 (gimple_call_set_with_bounds): Likewise.
19027 (gimple_call_internal_fn): Likewise.
19028 (gimple_call_set_ctrl_altering): Likewise.
19029 (gimple_call_ctrl_altering_p): Likewise.
19030 (gimple_call_fntype): Likewise.
19031 (gimple_call_fn): Likewise.
19032 (gimple_call_fn_ptr): Likewise.
19033 (gimple_call_set_fndecl): Likewise.
19034 (gimple_call_fndecl): Likewise.
19035 (gimple_call_chain): Likewise.
19036 (gimple_call_num_args): Likewise.
19037 (gimple_call_arg): Likewise.
19038 (gimple_call_arg_ptr): Likewise.
19039 (gimple_call_set_arg): Likewise.
19040 (gimple_call_noreturn_p): Likewise.
19041 (gimple_cond_code): Likewise.
19042 (gimple_cond_lhs): Likewise.
19043 (gimple_cond_rhs): Likewise.
19044 (gimple_has_lhs): Reduce checking.
19046 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19048 PR middle-end/25529
19049 * match.pd (div (mult @0 @1) @1) : New simplifier.
19051 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19054 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
19055 predicate to allow construction of vector constants using the
19056 VSLDOI vector shift instruction.
19058 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
19061 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
19062 the number of bytes to be shifted left and filled in with either
19063 all zero or all one bits.
19064 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
19066 (output_vec_const_move): On power8, generate XXLORC to generate
19067 a vector constant with all 1's. Do a split if we need to use a
19068 VSLDOI instruction.
19070 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
19071 properly test for the MSB.
19073 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
19074 vector constants that can be created with VSLDOI.
19076 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19079 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19080 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19081 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19082 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19083 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19084 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19085 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19086 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19087 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19089 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
19091 * config/xtensa/constraints.md (define_constraint "Y"): New
19093 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
19094 * config/xtensa/linux.h (ASM_SPEC): Likewise.
19095 * config/xtensa/predicates.md (move_operand): Match constants
19096 and symbols in the presence of TARGET_AUTO_LITPOOLS.
19097 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
19098 immediate references to TLS data.
19099 (xtensa_emit_move_sequence): Don't force constants to memory in
19100 the presence of TARGET_AUTO_LITPOOLS.
19101 (print_operand): Add 'y' format, same as default, but capable of
19102 printing SF mode constants as well.
19103 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
19104 (movsf_internal): Add movi pattern that loads literal.
19105 (movsf, movdf): Don't force constants to memory in the presence
19106 of TARGET_AUTO_LITPOOLS.
19107 (movdf_internal): Add 'Y' constraint.
19108 * config/xtensa/xtensa.opt (mauto-litpools): New option.
19109 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
19111 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19113 * config/arm/arm-fpus.def: Replace booleans with feature flags.
19115 * config/arm/arm.c (ARM_FPU): Update macro.
19116 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
19117 (TARGET_FP16): Likewise.
19118 (TARGET_CRYPTO): Likewise.
19119 (TARGET_NEON): Likewise.
19120 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
19123 2015-08-12 Tom de Vries <tom@codesourcery.com>
19127 * doc/install.texi: Remove --with_host_libstdcxx item. Update
19128 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
19129 accordingly. Mention default for --with-stage1-ldflags.
19131 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19133 * config/arm/arm.h (arm_fpu_feature_set): New.
19134 (ARM_FPU_FSET_HAS): New.
19135 (FPU_FL_NONE): New.
19136 (FPU_FL_NEON): New.
19137 (FPU_FL_FP16): New.
19138 (FPU_FL_CRYPTO): New.
19140 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19142 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
19143 after -mcmodel=large -fPIC sorry.
19145 2015-08-12 Richard Biener <rguenther@suse.de>
19147 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
19148 comparison operand order and commutative ternary op operand order.
19149 (sccvn_dom_walker::cond_stack): New state to track temporary
19151 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
19153 (sccvn_dom_walker::record_cond): Add a single temporary conditional
19155 (sccvn_dom_walker::record_conds): Add a temporary conditional
19156 expressions and all related expressions also true/false.
19157 (sccvn_dom_walker::before_dom_children): Record temporary
19158 expressions based on the controlling condition of a single
19159 predecessor. When trying to simplify a conditional statement
19160 lookup expressions we might have inserted earlier.
19162 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
19165 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
19166 to ARM core registers.
19168 2015-08-12 Nathan Sidwell <nathan@acm.org>
19170 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
19171 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
19173 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
19175 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
19176 line with comments.
19177 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
19179 2015-08-12 Richard Biener <rguenther@suse.de>
19181 * gimple.h (remove_pointer): New trait.
19182 (GIMPLE_CHECK2): New inline template function.
19183 (gassign::code_): New constant static member.
19184 (is_a_helper<const gassign *>): Add.
19185 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
19186 and forward to a new gassign overload with less checking and a
19187 cheaper way to access the operand.
19188 (gimple_assign_lhs_ptr): Likewise.
19189 (gimple_assign_set_lhs): Likewise.
19190 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
19192 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
19194 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
19196 (gimple_assign_rhs_code): Likewise.
19197 * gimple.c (gassign::code_): Define.
19199 2015-08-12 Richard Biener <rguenther@suse.de>
19201 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19202 Eliminate edges marked as not executable by SCCVN.
19203 * tree-ssa-sccvn.c: Include gimple-iterator.h.
19204 (cond_dom_walker): Rename to sccvn_dom_walker.
19205 (sccvn_dom_walker::before_dom_children): Value-number defs
19207 (run_scc_vn): Remove loop value-numbering all SSA names.
19208 Drop not visited SSA names to varying.
19210 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19212 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19213 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19214 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19215 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19216 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19217 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19218 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19219 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19220 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19222 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
19225 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
19226 to enum feature_priority and feature_list.
19227 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
19228 and isa_names_table.
19230 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
19232 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
19233 vect_induction_def.
19235 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19239 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
19240 account when deciding what was the command-line status.
19242 2015-08-11 Nathan Sidwell <nathan@acm.org>
19244 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
19246 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
19247 we're not the only contributor to target phi.
19249 2015-08-11 Jiong Wang <jiong.wang@arm.com>
19251 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
19254 2015-08-11 Tom de Vries <tom@codesourcery.com>
19256 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
19258 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
19260 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
19262 * config/i386/i386.md (cpu): Remove knl.
19264 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19267 PR middle-end/66332
19268 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
19269 open-coded sequence.
19270 * omp-low.c (oacc_process_reduction_data): Remove handline of
19271 GOMP_DEVICE_HOST_NONSHM.
19273 * lto-streamer-in.c (lto_input_mode_table): Adjust to
19274 GET_MODE_INNER changes.
19276 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19277 Ilya Verbin <ilya.verbin@intel.com>
19279 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
19281 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
19283 * doc/options.texi (EnabledBy): Document that the argument must be
19285 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
19286 Not enabled by -Wall.
19287 * optc-gen.awk: Give nicer error messages. Detect if the argument
19288 of EnabledBy is not a Common option.
19289 * common.opt (Wnull-dereference): Not enabled by -Wall.
19290 * opt-functions.awk (lang_enabled_by): Nicer error messages.
19292 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
19294 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
19295 model == 0x4f as Broadwell.
19297 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
19299 PR rtl-optimization/67028
19300 * combine.c (simplify_comparison): Fix comment. Rearrange code.
19301 Add test to see if a const_int fits in the new mode.
19303 2015-08-07 DJ Delorie <dj@redhat.com>
19305 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
19307 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
19309 PR rtl-optimization/67029
19310 * ira-color.c: Include "recog.h" before including "ira-int.h".
19311 * target-globals.c: Likewise.
19312 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
19313 adds an alternative_mask argument and use it instead of
19314 preferred_alternatives.
19315 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
19316 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
19317 * sched-deps.c: Include "ira-int.h" after including "ira.h".
19318 (sched_analyze_insn): Update call to
19319 ira_implicitly_set_insn_hard_regs.
19320 * sel-sched.c: Include "ira-int.h" after including "ira.h".
19321 (implicit_clobber_conflict_p): Update call to
19322 ira_implicitly_set_insn_hard_regs.
19324 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19326 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
19328 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
19331 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
19332 currently_expanding_to_rtl is set.
19334 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
19336 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
19337 * configure: Regenerate.
19339 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19340 Jiong Wang <jiong.wang@arm.com>
19342 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
19343 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
19344 (REG_CLASS_NAMES): Likewise.
19345 (REG_CLASS_CONTENTS): Likewise.
19346 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
19347 (aarch64_register_move_cost): Likewise.
19348 (aarch64_load_symref_appropriately): Invoke the new added pattern if
19350 * config/aarch64/constraints.md (Uc0): New constraint.
19352 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19354 * config/aarch64/constraints.md (Usf): Add the test of
19355 aarch64_is_noplt_call_p.
19357 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19359 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
19361 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
19362 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
19363 (call_symbol): Likewise.
19365 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
19367 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
19368 for vectorizing multiplication patterns.
19369 * tree-vectorizer.h: Adjust the number of patterns.
19371 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19373 * config/i386/sse.md (*vec_concatv2df): Declare added
19374 alternatives as sselog type.
19376 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19378 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
19381 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19383 * config/s390/s390.c (s390_expand_tbegin): Expand either
19384 tbegin_1_z13 or tbegin_1 depending on VX flag.
19385 * config/s390/s390.md ("tbegin_1_z13"): New expander.
19387 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19389 * config/s390/s390.opt: Clarify description for -mzvector
19390 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
19393 2015-08-06 Richard Biener <rguenther@suse.de>
19395 * gimple.h (gimple_call_set_fn): Access op member directly.
19396 (gimple_call_chain_ptr): Likewise.
19397 (gimple_call_set_chain): Likewise.
19398 (gimple_cond_lhs_ptr): Likewise.
19399 (gimple_cond_set_lhs): Likewise.
19400 (gimple_cond_rhs_ptr): Likewise.
19401 (gimple_cond_set_rhs): Likewise.
19402 (gimple_cond_true_label): Likewise.
19403 (gimple_cond_set_true_label): Likewise.
19404 (gimple_cond_set_false_label): Likewise.
19405 (gimple_cond_false_label): Likewise.
19406 (gimple_label_label): Likewise.
19407 (gimple_label_set_label): Likewise.
19408 (gimple_goto_set_dest): Likewise.
19409 (gimple_asm_input_op): Likewise.
19410 (gimple_asm_input_op_ptr): Likewise.
19411 (gimple_asm_set_input_op): Likewise.
19412 (gimple_asm_output_op): Likewise.
19413 (gimple_asm_output_op_ptr): Likewise.
19414 (gimple_asm_set_output_op): Likewise.
19415 (gimple_asm_clobber_op): Likewise.
19416 (gimple_asm_set_clobber_op): Likewise.
19417 (gimple_asm_label_op): Likewise.
19418 (gimple_asm_set_label_op): Likewise.
19419 (gimple_switch_index): Likewise.
19420 (gimple_switch_index_ptr): Likewise.
19421 (gimple_return_retval_ptr): Likewise.
19422 (gimple_return_retval): Likewise.
19423 (gimple_return_set_retval): Likewise.
19424 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
19425 (gimple_switch_label): Likewise.
19426 (gimple_switch_set_label): Likewise.
19428 2015-08-06 Richard Biener <rguenther@suse.de>
19430 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
19431 bool comparison canonicalization and restrict to integers.
19433 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
19435 * coretypes.h (enum symbol_visibility): Relocate here.
19436 * flag-types.h (enum symbol_visibility): Remove.
19437 * tree-core.h (enum symbol_visibility): Remove.
19439 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
19442 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
19443 for no_split_stack function attribute along with
19445 (rs6000_expand_split_stack_prologue): Likewise.
19447 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
19448 Jeff Law <law@redhat.com>
19451 * doc/invoke.texi (Wnull-dereference): New.
19452 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
19453 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
19454 Warn for potential NULL dereferences.
19455 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
19456 * ubsan.c (instrument_nonnull_arg): Call
19457 infer_nonnull_range_by_attribute.
19458 (instrument_nonnull_return): Likewise.
19459 * common.opt (Wnull-dereference); New.
19460 * gimple.c (infer_nonnull_range): Remove bool arguments.
19461 (infer_nonnull_range_by_dereference): New.
19462 (infer_nonnull_range_by_attribute): New.
19463 * gimple.h: Update declarations.
19465 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19467 * gensupport.c (sequence_num): Replace with...
19468 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
19469 ...these new variables.
19470 (init_rtx_reader_args_cb): Update accordingly.
19471 (get_num_code_insns): Likewise.
19472 (read_md_rtx): Rework to use a while loop and get_c_test.
19473 Use the new counters. Remove redundant DEFINE_SUBST case.
19474 * genoutput.c (gen_split): Delete.
19475 (main): Don't call it.
19477 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19479 * gensupport.h (get_c_test): Declare.
19480 * gensupport.c (get_c_test): New function.
19481 * genconditions.c (main): Use it.
19482 * genrecog.c (validate_pattern): Likewise.
19483 (match_pattern_1): Likewise. Remove c_test argument.
19484 (match_pattern): Update accordingly and remove c_test argument.
19485 (main): Update accordingly.
19487 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19489 * gensupport.h (get_num_insn_codes): Declare.
19490 * gensupport.c (get_num_insn_codes): New function.
19491 * genattrtab.c (optimize_attrs): Rename max_insn_code to
19493 (main): Likewise. Use get_num_insn_codes.
19494 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
19496 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19498 PR middle-end/66311
19499 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
19500 is zero- rather than sign-extended.
19502 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19504 * target-insns.def (can_extend): Delete.
19506 2015-08-05 Richard Biener <rguenther@suse.de>
19508 PR tree-optimization/67121
19509 * tree-if-conv.c (combine_blocks): Clear range-info produced
19510 by stmts no longer executed conditionally.
19512 2015-08-05 Nick Clifton <nickc@redhat.com>
19514 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
19515 to allow identical far pointers to remain.
19517 2015-08-05 Richard Biener <rguenther@suse.de>
19519 PR middle-end/67120
19520 * match.pd: Compare address bases with == if they are decls
19521 or SSA names, not operand_equal_p. Otherwise fail.
19523 2015-08-05 Richard Biener <rguenther@suse.de>
19525 PR tree-optimization/67055
19526 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
19529 * g++.dg/torture/pr67055.C: New testcase.
19531 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19533 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
19535 (define_attr "enabled"): Handle avx521vl and noavx512vl.
19536 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
19537 AVX-512 alternative out of SSE.
19538 (define_insn "*vec_concatv2df"): Ditto.
19540 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19542 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
19543 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
19544 CODE_FOR_avx_ptestv4di.
19545 * config/i386/sse.md (define_mode_iterator V_AVX): New.
19546 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
19547 (define_insn "avx_ptest256"): Merge this ...
19548 (define_insn "sse4_1_ptest"): And this ...
19549 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
19551 2015-08-05 Richard Biener <rguenther@suse.de>
19553 PR tree-optimization/67109
19554 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
19555 against too big groups. Print whether this is a load or store
19556 group. Rename from ...
19557 (vect_analyze_group_access): ... this which is now a wrapper
19558 dissolving an invalid group.
19559 (vect_analyze_data_ref_accesses): Print whether this is a load
19562 2015-08-05 Richard Biener <rguenther@suse.de>
19564 PR middle-end/67107
19565 * match.pd: Guard const_binop result checking against NULL_TREE
19568 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
19570 * cse.c (cse_insn): Restoring old behaviour for src_eqv
19571 when dest and value in the REG_EQUAL are same and dest
19572 is STRICT_LOW_PART.
19574 2015-08-04 Anatoly Sokolov <aesok@post.ru>
19576 * config/moxie/moxie.h (PRINT_OPERAND,
19577 PRINT_OPERAND_ADDRESS): Remove macros.
19578 * config/moxie/moxie-protos.h (moxie_print_operand,
19579 moxie_print_operand_address): Remove declaration.
19580 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
19581 TARGET_PRINT_OPERAND_ADDRESS): Define.
19582 (moxie_print_operand, moxie_print_operand_address): Make static.
19584 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
19587 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
19588 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
19590 2015-08-04 Richard Biener <rguenther@suse.de>
19592 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
19594 (dt_operand::gen_gimple_expr): Adjust.
19596 2015-08-04 Richard Biener <rguenther@suse.de>
19598 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
19599 bool compares on RHS.
19600 * match.pd: Add X ==/!= !X is false/true pattern.
19602 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
19604 * config/aarch64/aarch64.c: Change inner loop statement cost
19605 to be consistent with other targets.
19607 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
19609 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
19612 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
19614 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
19615 (machine_function): Remove pseudos field.
19617 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19619 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19620 Exit early and use target_option_current_node if processing current
19623 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19625 * doc/extend.texi (AArch64 Function Attributes): New node.
19626 (AArch64 Pragmas): Likewise.
19628 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19630 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
19631 Initialize simd builtins if TARGET_SIMD.
19632 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
19633 Make sure that the builtins are initialized only once no matter how
19634 many times the function is called.
19635 (aarch64_init_builtins): Unconditionally initialize crc builtins.
19636 (aarch64_relayout_simd_param): New function.
19637 (aarch64_simd_expand_args): Use above during argument expansion.
19638 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
19639 simd builtins if TARGET_SIMD.
19640 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
19642 (aarch64_relayout_simd_types): Likewise.
19644 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19646 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
19647 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
19648 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
19649 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19651 (aarch64_reset_previous_fndecl): New function.
19652 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
19654 * config/aarch64/aarch64-c.c: New file.
19655 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
19656 Push and pop options at beginning and end. Remove ifdef
19657 __ARM_FEATURE_CRC32.
19658 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
19659 Add pragma +nothing+simd and +nothing+crypto where appropriate.
19660 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
19661 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
19663 (aarch64_register_pragmas): Likewise.
19664 (aarch64_reset_previous_fndecl): Likewise.
19665 (aarch64_process_target_attr): Likewise.
19666 (aarch64_override_options_internal): Likewise.
19668 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19670 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
19672 (aarch64_can_inline_p): Likewise.
19673 (TARGET_CAN_INLINE_P): Define.
19675 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19677 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
19678 Remove static. Handle OPT_mgeneral_regs_only,
19679 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
19680 OPT_momit_leaf_frame_pointer.
19681 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
19682 (aarch64_attr_opt_type): New enum.
19683 (aarch64_attribute_info): New struct.
19684 (aarch64_handle_attr_arch): New function.
19685 (aarch64_handle_attr_cpu): Likewise.
19686 (aarch64_handle_attr_tune): Likewise.
19687 (aarch64_handle_attr_isa_flags): Likewise.
19688 (aarch64_attributes): New table.
19689 (aarch64_process_one_target_attr): New function.
19690 (num_occurences_in_str): Likewise.
19691 (aarch64_process_target_attr): Likewise.
19692 (aarch64_option_valid_attribute_p): Likewise.
19693 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19694 * config/aarch64/aarch64-protos.h: Include input.h
19695 (aarch64_handle_option): Declare prototype.
19697 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19699 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
19700 * config/aarch64/aarch64.c: Include target-globals.h
19701 (aarch64_previous_fndecl): New variable.
19702 (aarch64_set_current_function): New function.
19703 (TARGET_SET_CURRENT_FUNCTION): Define.
19705 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19707 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
19708 (explicit_arch): Likewise.
19709 (x_aarch64_isa_flags): Likewise.
19710 (mgeneral-regs-only): Mark as Save.
19711 (mfix-cortex-a53-835769): Likewise.
19712 (mcmodel=): Likewise.
19713 (mstrict-align): Likewise.
19714 (momit-leaf-frame-pointer): Likewise.
19715 (mtls-dialect): Likewise.
19716 (master=): Likewise.
19717 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
19718 (aarch64_isa_flags): Remove extern declaration.
19719 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
19720 to indicate success or failure.
19721 (aarch64_validate_march): Likewise.
19722 (aarch64_validate_mtune): Likewise.
19723 (aarch64_isa_flags): Delete.
19724 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
19725 instead of aarch64_isa_flags.
19726 (aarch64_get_tune_cpu): New function.
19727 (aarch64_get_arch): Likewise.
19728 (aarch64_override_options): Use above and set up explicit_tune_core
19730 (aarch64_print_extension): Move earlier in file. Add isa_flags
19731 argument and use that instead of the global aarch64_isa_flags.
19732 (aarch64_option_save): New function.
19733 (aarch64_option_restore): Likewise.
19734 (aarch64_option_print): Likewise.
19735 (aarch64_declare_function_name): Likewise.
19736 (aarch64_start_file): Delete.
19737 (TARGET_ASM_FILE_START): Do not define.
19738 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
19739 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
19742 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19744 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
19745 flag_omit_leaf_frame_pointer to 2.
19747 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19749 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
19751 (TARGET_FIX_ERR_A53_835769): New macro.
19752 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
19753 handling of opts->x_aarch64_fix_a53_err835769.
19754 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
19755 than aarch64_fix_a53_err835769.
19756 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
19757 * config/aarch64/aarch64-linux.h: Likewise.
19759 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
19761 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
19762 ix86_expand_int_movcc as boolean.
19764 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19766 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
19767 (aarch64_cpu_string): Likewise.
19768 (aarch64_tune_string): Likewise.
19769 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
19770 (aarch64_parse_extension): Return aarch64_parse_opt_result.
19771 Add extra argument to put result into.
19772 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
19773 (aarch64_parse_cpu): Add arguments to put results into. Return
19774 aarch64_parse_opt_result.
19775 (aarch64_parse_tune): Likewise.
19776 (aarch64_override_options_after_change_1): New function.
19777 (aarch64_override_options_internal): New function.
19778 (aarch64_validate_mcpu): Likewise.
19779 (aarch64_validate_march): Likewise.
19780 (aarch64_validate_mtune): Likewise.
19781 (aarch64_override_options): Update to reflect above changes.
19782 Move some logic into aarch64_override_options_internal.
19783 Initialize target_option_default_node and target_option_current_node.
19784 (aarch64_override_options_after_change): Move logic into
19785 aarch64_override_options_after_change_1 and call it with global_options.
19786 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
19787 flag values from that.
19789 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19791 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19792 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
19793 * config/aarch64/aarch64.c (struct processor): Add arch field.
19794 (all_architectures): Handle above, move above all_cores.
19795 (all_cores): Handle above.
19796 (aarch64_parse_arch): Handle above changes.
19797 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
19798 above. Update comments.
19799 (armv8.1-a): Likewise.
19800 * config/aarch64/aarch64-cores.def: Update according to above.
19801 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
19802 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
19803 aarch64_arch_driver_info.
19805 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19807 * config/aarch64/aarch64.c (struct processor): Add ident field.
19808 Rename core sched_core.
19809 (all_cores): Handle above changes.
19810 (all_architectures): Likewise.
19811 (aarch64_parse_arch): Likewise.
19812 (aarch64_override_options): Likewise.
19814 2015-08-04 Richard Biener <rguenther@suse.de>
19816 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19817 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
19818 comparisons embedded in [VEC_]COND_EXPRs.
19820 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
19822 * tree-if-conv.c: Fix various typos in comments.
19823 * tree-vect-stmts.c: Likewise.
19825 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19827 PR tree-optimization/67043
19828 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
19829 preheader after hoisting invariant in it.
19830 (find_defs): Force recomputation of all luids.
19832 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
19834 * config/rs6000/htm.md (tabort.): Restrict the source operand to
19835 using a base register.
19837 2015-08-03 David Malcolm <dmalcolm@redhat.com>
19839 * main.c (main): Pass in NULL for toplev's external_timer.
19840 * timevar.c: Include coretypes.h.
19841 (class timer::named_items): New.
19842 (timer::named_items::named_items): New.
19843 (timer::named_items::~named_items): New.
19844 (timer::named_items::push): New.
19845 (timer::named_items::pop): New.
19846 (timer::named_items::print): New.
19847 (timer::timer): Initialize field "m_jit_client_items".
19848 (timer::~timer): New.
19849 (timer::push): Move bulk of implementation to...
19850 (timer::push_internal): ...here. New function.
19851 (timer::pop): Move bulk of implementation to...
19852 (timer::pop_internal): ...here. New function.
19853 (timer::push_client_item): New.
19854 (timer::pop_client_item): New.
19855 (timer::print_row): New function, taken from timer::print.
19856 (timer::print): Print "GCC items" header if we also have client
19857 items. Move row-printing to timer::print_row. Print any client
19859 (timer::get_topmost_item_name): New method.
19860 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
19861 (TV_JIT_CLIENT_CODE): New.
19862 * timevar.h (timer::push_client_item): New declaration.
19863 (timer::pop_client_item): New declaration.
19864 (timer::get_topmost_item_name): New method.
19865 (timer::push_internal): New declaration.
19866 (timer::pop_internal): New declaration.
19867 (timer::print_row): New declaration.
19868 (timer::named_items): New declaration.
19869 (timer::m_jit_client_items): New field.
19870 (timer): Add friend class named_items.
19871 (auto_timevar::auto_timevar): Add timer param.
19872 (auto_timevar::~auto_timevar): Use field "m_timer".
19873 (auto_timevar::m_timer): New field.
19874 * toplev.c (initialize_rtl): Add g_timer as param when
19875 constructing auto_timevar instance.
19876 (toplev::toplev): Add "external_timer" param, and use it to
19877 initialize the "g_timer" global if non-NULL.
19878 (toplev::~toplev): If this created "g_timer", delete it.
19879 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
19880 with "external_timer" timer *.
19882 2015-08-03 Alexander Basov <coohpt@gmail.com>
19884 PR middle-end/64744
19885 PR middle-end/48470
19886 PR middle-end/43404
19887 * cfgexpand.c (expand_one_var): Add check if stack is going to
19888 be used in naked function.
19889 * expr.c (expand_expr_addr_expr_1): Remove excess checking
19890 whether expression should not reside in MEM.
19891 * function.c (use_register_for_decl): Do not use registers for
19892 non-register things (volatile, float, BLKMode) in naked functions.
19894 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
19897 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
19898 Adjust splits to match new pattern.
19900 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19902 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
19905 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
19906 point in VSX registers.
19908 * config/rs6000/constraints.md (wb constraint): Document unused
19910 (we constraint): Likewise.
19911 (wo constraint): Likewise.
19912 (wp constraint): New constraint for IEEE 128-bit floating point in
19914 (wq constraint): Likewise.
19916 * config/rs6000/predicates.md (easy_fp_constant): Add support for
19917 IEEE 128-bit floating point in VSX registers.
19918 (easy_scalar_constant): Likewise.
19920 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
19921 constraints (wp, wq) for IEEE 128-bit floating point in VSX
19923 (rs6000_init_hard_regno_mode_ok): Likewise.
19925 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
19926 floating point in VSX registers.
19929 (VSX_M2): Likewise.
19935 (vsx_le_permute_<mode>): Add support to properly swap bytes for
19936 IEEE 128-bit floating point in VSX registers on little endian.
19937 (vsx_le_undo_permute_<mode>): Likewise.
19938 (vsx_le_perm_load_<mode>): Likewise.
19939 (vsx_le_perm_store_<mode>): Likewise.
19940 (splitters for IEEE 128-bit fp moves): Likewise.
19942 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
19945 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
19946 floating point in VSX registers.
19949 * doc/md.text (Machine Constraints): Document wp and wq
19950 constraints on PowerPC.
19952 2015-08-03 Jeff Law <law@redhat.com>
19954 PR middle-end/66314
19955 PR gcov-profile/66899
19956 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
19957 iterate over the jump threading paths when an element in the
19958 jump threading paths array is eliminated.
19960 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
19962 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
19964 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
19966 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
19967 is_use_properly_guarded the variable def_preds. Free its
19968 contents before returning.
19969 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
19970 (is_use_properly_guarded): Replace local variable def_preds with
19971 a parameter. Adjust accordingly. Only update *def_preds if it's
19974 2015-08-03 Richard Biener <rguenther@suse.de>
19976 * genmatch.c (simplify::for_subst_vec): New member.
19977 (binary_ok): New helper for for lowering.
19978 (lower_for): Delay substituting operators into result expressions
19979 if we can merge the results eventually again.
19980 (capture_info::walk_result): Adjust for user_id appearing as
19981 result expression operator.
19982 (expr::gen_transform): Likewise.
19983 (dt_simplify::gen_1): Likewise.
19984 (dt_simplify::gen): Pass not substituted operators to tail
19985 functions or initialize local variable with it.
19986 (decision_tree::gen): Adjust function signature.
19987 * match.pd: Fix tests against global code and add default
19988 cases to switch stmts.
19990 2015-08-03 Richard Biener <rguenther@suse.de>
19992 * genmatch.c (dt_simplify::gen): Create captures array
19993 with an initializer.
19995 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19997 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
19998 the host compiler is affected by placement new aliasing bug.
19999 * configure: Regenerate.
20000 * Makefile.in (ALIASING_FLAGS): New variable.
20001 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
20003 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20006 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
20007 (negmulsf3_vfp): Likewise.
20008 (muldf3negdf_vfp): Disable for -frounding-math.
20009 (mulsf3negsf_vfp): Likewise.
20010 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
20011 fix MULT cost with -frounding-math.
20013 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20015 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
20016 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
20017 explicit. Prefer to add the flag whenever possible.
20018 (noce_process_if_block): Try noce_try_store_flag_constants before
20021 2015-08-03 Richard Biener <rguenther@suse.de>
20023 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
20024 New hash-map to record equivalent transforms.
20025 (dt_node::analyze): Populate the equivalent transforms hash-map.
20026 (dt_simplify::info): Add reference to hash-map entry.
20027 (dt_simplify::gen): If we have split out a function for the
20028 transform, generate a call to it.
20029 (sinfo_hashmap_traits::hash): New function.
20030 (compare_op): New helper function for ...
20031 (sinfo_hashmap_traits::equal_keys): ... this new function.
20032 (decision_tree::gen): Split out common equivalent transforms
20035 2015-08-03 Richard Biener <rguenther@suse.de>
20037 * gimple-fold.c (fold_gimple_assign): Remove folding of
20038 the comparison in COND_EXPRs.
20040 2015-08-03 Richard Biener <rguenther@suse.de>
20042 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
20043 on the rhs of assignments first simplify the embedded
20046 2015-08-03 Richard Biener <rguenther@suse.de>
20048 PR tree-optimization/66917
20049 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
20051 (DR_VECT_AUX): New macro.
20052 (set_dr_misalignment): Adjust.
20053 (dr_misalignment): Likewise.
20054 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20055 Compute whether the base is at least element aligned.
20056 * tree-vect-stmts.c (ensure_base_align): Adjust.
20057 (vectorizable_store): If the base is not element aligned
20058 preserve alignment of the original access if misalignment is unknown.
20059 (vectorizable_load): Likewise.
20061 2015-08-02 Martin Sebor <msebor@redhat.com>
20063 * doc/invoke.texi (Wframe-address): Document it.
20064 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
20065 Clarify possible effects of calling the functions with non-zero
20066 arguments and mention -Wframe-address.
20067 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
20069 2015-08-01 Michael Collison <michael.collison@linaro.org
20070 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20072 * config/arm/arm.md (*arm_smin_cmp): New pattern.
20073 (*arm_umin_cmp): Likewise.
20075 2015-08-01 Caroline Tice <cmtice@google.com>
20078 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
20080 (vtbl_find_mangled_name): New function.
20081 (vtbl_register_mangled_name): New function.
20082 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
20083 mangled name in mangled name vectors.
20084 (find_or_create_vtbl_map_node): Ditto.
20085 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
20086 update recursion_depth on function entry; pass it to every recursive
20087 call; automatically exit if depth > 25 (give up looking at that point).
20088 (verify_bb_vtables): Initialize recursion_depth and pass it to
20089 var_is_used_for_virtual_call_p.
20090 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
20091 global variable decls.
20092 (vtbl_register_mangled_name): New extern function decl.
20094 2015-08-01 Tom de Vries <tom@codesourcery.com>
20096 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
20098 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
20100 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
20101 operation_no_trapping_overflow. Allow non-overflow operations.
20102 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
20105 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
20108 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
20110 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20112 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
20113 Enable for TARGET_32BIT.
20114 (*if_move_neg): Likewise.
20116 2015-07-31 Nick Clifton <nickc@redhat.com>
20118 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
20119 Returns true for __model__.
20120 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20122 2015-07-31 Alan Modra <amodra@gmail.com>
20125 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
20126 (rs6000_emit_prologue): Set it.
20127 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
20129 2015-07-31 Richard Biener <rguenther@suse.de>
20131 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
20132 -> X == (C1 ^ C2) which is already implemented in match.pd.
20133 Remove redundant dispatching to fold_relational_const.
20134 Move unordered self and NaN compares ...
20135 * match.pd: ... as patterns here. Remove some stray captures
20138 2015-07-31 Petr Murzin <petr.murzin@intel.com>
20140 * config/i386/i386.c
20141 (bdesc_special_args): Convert mask type from signed to unsigned for
20143 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
20144 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
20145 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
20146 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
20147 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
20148 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
20149 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
20150 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
20151 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
20152 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
20153 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
20154 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
20155 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
20156 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
20157 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
20158 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
20159 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
20160 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
20161 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
20162 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
20163 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
20164 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
20165 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
20166 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
20167 * config/i386/i386-builtin-types.def
20168 (V16QI_FTYPE_V16SI): Remove.
20169 (V8DF_FTYPE_V8SI): Ditto.
20170 (V8HI_FTYPE_V8DI): Ditto.
20171 (V8SI_FTYPE_V8DI): Ditto.
20172 (V8SF_FTYPE_V8DF): Ditto.
20173 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
20174 (V16HI_FTYPE_V16SI): Ditto.
20175 (V16SF_FTYPE_V16HI): Ditto.
20176 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
20177 (V16SF_FTYPE_V16SI): Ditto.
20178 (V4DI_FTYPE_V4DI): Ditto.
20179 (V16SI_FTYPE_V16SF): Ditto.
20180 (V16SF_FTYPE_FLOAT): Ditto.
20181 (V8DF_FTYPE_DOUBLE): Ditto.
20182 (V8DI_FTYPE_INT64): Ditto.
20183 (V8DI_FTYPE_V4DI): Ditto.
20184 (V16QI_FTYPE_V8DI): Ditto.
20185 (UINT_FTYPE_V4SF): Ditto.
20186 (UINT64_FTYPE_V4SF): Ditto.
20187 (UINT_FTYPE_V2DF): Ditto.
20188 (UINT64_FTYPE_V2DF): Ditto.
20189 (V16SI_FTYPE_V16SI): Ditto.
20190 (V8DI_FTYPE_V8DI): Ditto.
20191 (V16SI_FTYPE_PV4SI): Ditto.
20192 (V16SF_FTYPE_PV4SF): Ditto.
20193 (V8DI_FTYPE_PV2DI): Ditto.
20194 (V8DF_FTYPE_PV2DF): Ditto.
20195 (V4DI_FTYPE_PV2DI): Ditto.
20196 (V4DF_FTYPE_PV2DF): Ditto.
20197 (V16SI_FTYPE_PV2SI): Ditto.
20198 (V16SF_FTYPE_PV2SF): Ditto.
20199 (V8DI_FTYPE_PV4DI): Ditto.
20200 (V8DF_FTYPE_PV4DF): Ditto.
20201 (V8SF_FTYPE_FLOAT): Ditto.
20202 (V4SF_FTYPE_FLOAT): Ditto.
20203 (V4DF_FTYPE_DOUBLE): Ditto.
20204 (V8SF_FTYPE_PV4SF): Ditto.
20205 (V8SI_FTYPE_PV4SI): Ditto.
20206 (V4SI_FTYPE_PV2SI): Ditto.
20207 (V8SF_FTYPE_PV2SF): Ditto.
20208 (V8SI_FTYPE_PV2SI): Ditto.
20209 (V16SF_FTYPE_PV8SF): Ditto.
20210 (V16SI_FTYPE_PV8SI): Ditto.
20211 (V8DI_FTYPE_V8SF): Ditto.
20212 (V4DI_FTYPE_V4SF): Ditto.
20213 (V2DI_FTYPE_V4SF): Ditto.
20214 (V64QI_FTYPE_QI): Ditto.
20215 (V32HI_FTYPE_HI): Ditto.
20216 (V8UHI_FTYPE_V8UHI): Ditto.
20217 (V16UHI_FTYPE_V16UHI): Ditto.
20218 (V32UHI_FTYPE_V32UHI): Ditto.
20219 (V2UDI_FTYPE_V2UDI): Ditto.
20220 (V4UDI_FTYPE_V4UDI): Ditto.
20221 (V8UDI_FTYPE_V8UDI): Ditto.
20222 (V4USI_FTYPE_V4USI): Ditto.
20223 (V8USI_FTYPE_V8USI): Ditto.
20224 (V16USI_FTYPE_V16USI): Ditto.
20225 (V2DF_FTYPE_V2DF_UINT64): Ditto.
20226 (V2DI_FTYPE_V2DF_V2DF): Ditto.
20227 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
20228 (V8DF_FTYPE_V8DF_V8DI): Ditto.
20229 (V4SF_FTYPE_V4SF_UINT64): Ditto.
20230 (V4SI_FTYPE_V4SF_V4SF): Ditto.
20231 (V16SF_FTYPE_V16SF_V16SI): Ditto.
20232 (V64QI_FTYPE_V32HI_V32HI): Ditto.
20233 (V32HI_FTYPE_V16SI_V16SI): Ditto.
20234 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
20235 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
20236 (V32HI_FTYPE_V64QI_V64QI): Ditto.
20237 (V32HI_FTYPE_V32HI_V32HI): Ditto.
20238 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
20239 (V16SI_FTYPE_V16SI_V4SI): Ditto.
20240 (V16SI_FTYPE_V16SI_V16SI): Ditto.
20241 (V16SI_FTYPE_V32HI_V32HI): Ditto.
20242 (V16SI_FTYPE_V16SI_SI): Ditto.
20243 (V8DI_FTYPE_V8DI_V8DI): Ditto.
20244 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
20245 (V8DI_FTYPE_V16SI_V16SI): Ditto.
20246 (V8DI_FTYPE_V8DI_V2DI): Ditto.
20247 (QI_FTYPE_QI): Ditto.
20248 (SI_FTYPE_SI): Ditto.
20249 (DI_FTYPE_DI): Ditto.
20250 (QI_FTYPE_QI_QI): Ditto.
20251 (QI_FTYPE_QI_INT): Ditto.
20252 (HI_FTYPE_HI_INT): Ditto.
20253 (SI_FTYPE_SI_INT): Ditto.
20254 (DI_FTYPE_DI_INT): Ditto.
20255 (HI_FTYPE_V16QI_V16QI): Ditto.
20256 (SI_FTYPE_V32QI_V32QI): Ditto.
20257 (DI_FTYPE_V64QI_V64QI): Ditto.
20258 (QI_FTYPE_V8HI_V8HI): Ditto.
20259 (HI_FTYPE_V16HI_V16HI): Ditto.
20260 (SI_FTYPE_V32HI_V32HI): Ditto.
20261 (QI_FTYPE_V4SI_V4SI): Ditto.
20262 (QI_FTYPE_V8SI_V8SI): Ditto.
20263 (QI_FTYPE_V2DI_V2DI): Ditto.
20264 (QI_FTYPE_V4DI_V4DI): Ditto.
20265 (QI_FTYPE_V8DI_V8DI): Ditto.
20266 (HI_FTYPE_V16SI_V16SI): Ditto.
20267 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
20268 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
20269 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
20270 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
20271 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
20272 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
20273 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
20274 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
20275 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
20276 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
20277 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
20278 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
20279 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
20280 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
20281 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
20282 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
20283 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
20284 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
20285 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
20286 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
20287 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
20288 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
20289 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
20290 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
20291 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
20292 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
20293 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
20294 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
20295 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
20296 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
20297 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
20298 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
20299 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
20300 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
20301 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
20302 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
20303 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
20304 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
20305 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
20306 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
20307 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
20308 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
20309 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
20310 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
20311 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
20312 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
20313 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
20314 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
20315 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
20316 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
20317 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
20318 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
20319 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
20320 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
20321 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
20322 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
20323 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
20324 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
20325 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
20326 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
20327 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
20328 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
20329 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
20330 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
20331 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
20332 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
20333 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
20334 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
20335 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
20336 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
20337 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
20338 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
20339 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
20340 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
20341 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
20342 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
20343 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
20344 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
20345 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
20346 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
20347 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
20348 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
20349 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
20350 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
20351 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
20352 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
20353 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
20354 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
20355 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
20356 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
20357 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
20358 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
20359 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
20360 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
20361 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
20362 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
20363 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
20364 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
20365 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
20366 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
20367 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
20368 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
20369 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
20370 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
20371 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
20372 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
20373 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
20374 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
20375 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
20376 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
20377 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
20378 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
20379 (HI_FTYPE_HI): Ditto.
20380 (HI_FTYPE_V16QI): Ditto.
20381 (SI_FTYPE_V32QI): Ditto.
20382 (DI_FTYPE_V64QI): Ditto.
20383 (QI_FTYPE_V8HI): Ditto.
20384 (HI_FTYPE_V16HI): Ditto.
20385 (SI_FTYPE_V32HI): Ditto.
20386 (QI_FTYPE_V4SI): Ditto.
20387 (QI_FTYPE_V8SI): Ditto.
20388 (HI_FTYPE_V16SI): Ditto.
20389 (QI_FTYPE_V2DI): Ditto.
20390 (QI_FTYPE_V4DI): Ditto.
20391 (QI_FTYPE_V8DI): Ditto.
20392 (V16QI_FTYPE_HI): Ditto.
20393 (V32QI_FTYPE_SI): Ditto.
20394 (V64QI_FTYPE_DI): Ditto.
20395 (V8HI_FTYPE_QI): Ditto.
20396 (V16HI_FTYPE_HI): Ditto.
20397 (V32HI_FTYPE_SI): Ditto.
20398 (V4SI_FTYPE_QI): Ditto.
20399 (V4SI_FTYPE_HI): Ditto.
20400 (V8SI_FTYPE_QI): Ditto.
20401 (V8SI_FTYPE_HI): Ditto.
20402 (V2DI_FTYPE_QI): Ditto.
20403 (V4DI_FTYPE_QI): Ditto.
20404 (HI_FTYPE_HI_HI): Ditto.
20405 (SI_FTYPE_SI_SI): Ditto.
20406 (DI_FTYPE_DI_DI): Ditto.
20407 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
20408 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
20409 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
20410 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
20411 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
20412 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
20413 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
20414 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
20415 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
20416 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
20417 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
20418 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
20419 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
20420 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
20421 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
20422 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
20423 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
20424 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
20425 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
20426 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
20427 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
20428 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
20429 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
20430 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
20431 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
20432 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
20433 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
20434 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
20435 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
20436 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
20437 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
20438 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
20439 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
20440 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
20441 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
20442 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
20443 (V16SI_FTYPE_HI): Ditto.
20444 (V8DI_FTYPE_QI): Ditto.
20445 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
20446 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
20447 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
20448 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
20449 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
20450 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
20451 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
20452 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
20453 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
20454 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
20455 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
20456 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
20457 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
20458 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
20459 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
20460 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
20461 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
20462 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
20463 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
20464 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
20465 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
20466 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
20467 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
20468 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
20469 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
20470 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
20471 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
20472 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
20473 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
20474 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
20475 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
20476 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
20477 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
20478 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
20479 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
20480 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
20481 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
20482 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
20483 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
20484 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
20485 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
20486 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
20487 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
20488 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
20489 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
20490 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
20491 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
20492 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
20493 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
20494 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
20495 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
20496 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
20497 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
20498 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
20499 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
20500 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
20501 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
20502 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
20503 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
20504 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
20505 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
20506 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
20507 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
20508 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
20509 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
20510 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
20511 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
20512 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
20513 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
20514 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
20515 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
20516 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
20517 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
20518 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
20519 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
20520 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
20521 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
20522 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
20523 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
20524 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
20525 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
20526 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
20527 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
20528 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
20529 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
20530 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
20531 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
20532 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
20533 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
20534 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
20535 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
20536 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
20537 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
20538 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
20539 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
20540 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
20541 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
20542 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
20543 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
20544 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
20545 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
20546 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
20547 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
20548 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
20549 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
20550 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
20551 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
20552 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
20553 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
20554 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
20555 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
20556 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
20557 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
20558 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
20559 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
20560 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
20561 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
20562 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
20563 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
20564 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
20565 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
20566 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
20567 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
20568 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
20569 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
20570 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
20571 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
20572 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
20573 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
20574 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
20575 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
20576 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
20577 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
20578 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
20579 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
20580 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
20581 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
20582 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
20583 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
20584 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
20585 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
20586 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
20587 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
20588 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
20589 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
20590 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
20591 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
20592 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
20593 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
20594 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
20595 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
20596 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
20597 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
20598 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
20599 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
20600 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
20601 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
20602 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
20603 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
20604 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
20605 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
20606 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
20607 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
20608 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
20609 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
20610 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
20611 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
20612 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
20613 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
20614 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
20615 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
20616 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
20617 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
20618 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
20619 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
20620 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
20621 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
20622 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
20623 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
20624 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
20625 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
20626 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
20627 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
20628 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
20629 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
20630 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
20631 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
20632 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
20633 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
20634 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
20635 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
20636 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
20637 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
20638 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
20639 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
20640 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
20641 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
20642 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
20643 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
20644 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
20645 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
20646 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
20647 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
20648 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
20649 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
20650 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
20651 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
20652 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
20653 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
20654 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
20655 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
20656 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
20657 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
20658 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
20659 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
20660 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
20661 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
20662 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
20663 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
20664 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
20665 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
20666 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
20667 (QI_FTYPE_V8DF_INT_QI): Ditto.
20668 (QI_FTYPE_V4DF_INT_QI): Ditto.
20669 (QI_FTYPE_V2DF_INT_QI): Ditto.
20670 (HI_FTYPE_V16SF_INT_HI): Ditto.
20671 (QI_FTYPE_V8SF_INT_QI): Ditto.
20672 (QI_FTYPE_V4SF_INT_QI): Ditto.
20673 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
20675 2015-07-31 Richard Biener <rguenther@suse.de>
20677 * gimple-fold.c (fold_gimple_assign): Remove folding of
20680 2015-07-31 Tom de Vries <tom@codesourcery.com>
20682 PR tree-optimization/66846
20683 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
20684 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
20685 (expand_omp_target) [ENABLE_CHECKING]: Same.
20686 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
20687 cfun if !LOOPS_NEED_FIXUP.
20688 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
20689 that omp_for already has its own loop struct.
20690 * tree-parloops.c (create_phi_for_local_result)
20691 (create_call_for_reduction): Handle simple latch bb.
20692 (create_parallel_loop): Add simple latch bb to preserve
20693 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
20694 (gen_parallel_loop): Remove call to cancel_loop_tree.
20695 (parallelize_loops): Skip loops that are inner loops of parallelized
20697 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
20698 verify_loop_structure.
20700 2015-07-30 Anatoly Sokolov <aesok@post.ru>
20702 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
20703 * config/v850/v850.md (RV_REGNUM): New constants.
20704 * config/v850/v850.c (v850_libcall_value): New functions.
20705 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
20706 (TARGET_LIBCALL_VALUE): Define.
20708 2015-07-30 Anatoly Sokolov <aesok@post.ru>
20710 * rtl.h (lowpart_subreg): Move in file.
20711 * loop-iv.c (lowpart_subreg): Move to...
20712 * simplify-rtx.c (lowpart_subreg): ...here.
20713 (simplify_binary_operation_1): Use lowpart_subreg instead of
20714 simplify_gen_subreg.
20715 * expr.c (expand_expr_real_2): Ditto.
20716 * emit-rtl.c (gen_lowpart_common): Ditto.
20717 * combine.c (gen_lowpart_for_combine): Ditto.
20718 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
20719 expand_debug_source_expr): Ditto.
20721 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
20723 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
20724 (expand_builtin_atomic_clear): Remove support for atomic_clear
20727 2015-07-30 Richard Biener <rguenther@suse.de>
20729 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
20730 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
20731 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
20732 redundant operand canonicalization.
20734 2015-07-30 David Sherwood <david.sherwood@arm.com>
20736 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
20737 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
20738 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
20739 * config/arm/arm.c (neon_valid_immediate): Likewise.
20740 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
20741 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
20742 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
20743 (expand_vec_perm_vpshufb2_vpermq): Likewise.
20744 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
20745 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
20746 * config/i386/sse.md
20747 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
20748 (*ssse3_palignr<mode>_perm): Likewise.
20749 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
20750 * config/spu/spu.c (arith_immediate_p): Likewise.
20751 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
20752 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
20754 2015-07-30 Richard Biener <rguenther@suse.de>
20756 * genmatch.c (decision_tree::gen_gimple): Merge with ...
20757 (decision_tree::gen_generic): ... this into ...
20758 (decision_tree::gen): ... this.
20759 (main): Adjust callers.
20761 2015-07-30 Richard Biener <rguenther@suse.de>
20763 * genmatch.c (verbose): New global.
20764 (warning_at): Add overload with source_location.
20765 (capture_info::capture_info): Add bool whether generating gimple
20766 or generic. Add gimple member.
20767 (capture_info::cinfo): Add capture member.
20768 (capture_info::walk_match): Record capture. Warn on
20769 non-captured leafs.
20770 (capture_info::walk_c_expr): Add more fragments captures cannot
20771 escape through. Warn on escaped captures.
20772 (dt_simplify::gen_1): Warn on operands we force to have no
20774 (main): Initialize verbose.
20775 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
20777 2015-07-30 Richard Biener <rguenther@suse.de>
20779 PR middle-end/67053
20780 * match.pd: Allow both operands to independently have conversion
20781 when simplifying compares of addresses.
20783 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
20787 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
20788 around those cases that need one.
20790 2015-07-29 Aditya Kumar <hiraditya@msn.com>
20792 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
20794 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
20796 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
20797 New. Copied from config/i386/gnu-user.h.
20798 (ASM_COMMENT_START): Likewise.
20799 (DBX_REGISTER_NUMBER): Likewise.
20801 2015-07-29 Richard Biener <rguenther@suse.de>
20803 * gimple-fold.c (fold_gimple_cond): Remove.
20804 (fold_stmt_1): Do not call it.
20806 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
20808 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
20809 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
20811 * config/aarch64/aarch64-modes.def: Add HFmode.
20813 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20814 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
20816 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
20817 aarch64_promoted_type): New.
20819 (aarch64_float_const_representable_p): Disable HFmode.
20820 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
20821 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
20822 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
20824 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
20825 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
20827 * config/aarch64/iterators.md (GPF_F16): New.
20829 2015-07-29 Richard Biener <rguenther@suse.de>
20831 * match.pd: Merge address comparison patterns and make them
20832 handle some more cases.
20834 2015-07-29 Richard Biener <rguenther@suse.de>
20836 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
20837 (parser::parse_capture): Add bool argument on whether to reject
20839 (parser::parse_expr): Adjust.
20840 (parser::parse_op): Likewise.
20841 (parser::parse_pattern): Likewise.
20843 2015-07-29 Richard Biener <rguenther@suse.de>
20845 * gimple-fold.c (has_use_on_stmt): New function.
20846 (replace_stmt_with_simplification): Use it to allow
20847 abnormals originally referenced in the stmt.
20848 (fold_stmt_1): Canonicalize operand order.
20850 2015-07-28 David Sherwood <david.sherwood@arm.com>
20852 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
20853 GET_MODE_INNER unconditionally.
20854 * config/spu/spu.c (arith_immediate_p): Likewise.
20855 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
20856 * expmed.c (synth_mult): Remove check for VOIDmode result from
20858 (expand_mult_const): Likewise.
20859 * fold-const.c (fold_binary_loc): Replace call to element_precision
20860 with call to GET_MODE_PRECISION.
20861 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
20863 (emit_mode_inner): Likewise.
20864 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
20866 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
20867 (GET_MODE_UNIT_PRECISION): Likewise.
20868 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
20869 * simplify-rtx.c (simplify_immed_subreg): Likewise.
20870 * stor-layout.c (bitwise_type_for_mode): Update assert.
20871 (element_precision): Remove.
20873 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20875 * target-insns.def (reload_load_address): New targetm instruction
20877 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
20879 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20881 * target-insns.def (atomic_test_and_set): New targetm instruction
20883 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
20884 HAVE_*/gen_* interface.
20886 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20888 * target-insns.def (can_extend, ptr_extend): New targetm instruction
20890 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
20891 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
20892 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
20893 * rtlanal.c (nonzero_bits1): Likewise.
20894 (num_sign_bit_copies1): Likewise.
20896 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20898 * target-insns.def (eh_return): New targetm instruction pattern.
20899 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
20901 * function.c (thread_prologue_and_epilogue_insns): Remove
20902 preprocessor condition.
20904 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20906 * target-insns.def (indirect_jump): New targetm instruction pattern.
20907 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
20910 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
20912 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
20913 instead of nonimmediate_operand. Remove C condiition.
20915 2015-07-28 Richard Biener <rguenther@suse.de>
20917 * match.pd: Add more simplification of address comparisons.
20919 2015-07-28 Richard Biener <rguenther@suse.de>
20921 * match.pd: Re-order two cases in comparison with max/min
20922 value simplification to make it apply for bools.
20924 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20926 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
20927 Handle simple SIGN_EXTEND or ZERO_EXTEND.
20928 (aarch64_rtx_costs): Properly strip extend or extract before
20929 passing down to rtx costs again.
20931 2015-07-28 Nick Clifton <nickc@redhat.com>
20933 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
20934 Optimizes the case where -mes0 is active and a constant symbolic
20936 * config/rl78/rl78-protos.h: Prototype the new function.
20937 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
20939 2015-07-28 Tom de Vries <tom@codesourcery.com>
20941 * tree-parloops.c (reduc_stmt_res): New function.
20942 (initialize_reductions, add_field_for_reduction)
20943 (create_phi_for_local_result, create_loads_for_reductions)
20944 (create_stores_for_reduction, build_new_reduction): Handle case that
20945 reduc_stmt is a phi.
20946 (gather_scalar_reductions): Allow double_reduc reductions.
20948 2015-07-28 Richard Biener <rguenther@suse.de>
20950 * fold-const.c (fold_comparison): Remove equality folding
20951 of decl addresses ...
20952 * match.pd: ... here and merge with existing pattern.
20954 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20956 PR tree-optimization/66828
20957 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
20958 from int64_t to uint64_t.
20960 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
20962 * opts-common.c (read_cmdline_option): List DriverOnly enum values
20963 as valid only in the error message of the driver, not in the
20964 messages of the language compilers.
20966 2015-07-27 Tom de Vries <tom@codesourcery.com>
20968 * tree-parloops.c (gather_scalar_reductions): Simplify function
20971 2015-07-27 Marek Polacek <polacek@redhat.com>
20973 * ipa-devirt.c (types_same_for_odr): Fix typo.
20975 2015-07-27 Jason Merrill <jason@redhat.com>
20978 * dwarf2out.c (gen_inlined_subroutine_die): Check
20979 cgraph_function_possibly_inlined_p.
20981 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
20983 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
20984 Place integer variant first.
20985 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20987 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
20990 * config/arm/arm-builtins.c (enum arm_builtins):
20991 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
20992 (ARM_BUILTIN_NEON_BASE): Rename macro to....
20993 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
20994 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
20995 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
20997 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
21000 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
21001 Add qualifier_lane_index.
21002 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
21003 (arm_getlane_qualifiers): Use qualifier_lane_index.
21004 (arm_lanemac_qualifiers): Rename to...
21005 (arm_mac_n_qualifiers): ...this.
21006 (LANEMAC_QUALIFIERS): Rename to...
21007 (MAC_N_QUALIFIERS): ...this.
21008 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
21009 (arm_setlane_qualifiers): Use qualifier_lane_index.
21010 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
21011 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
21012 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
21013 (arm_expand_neon_builtin): Handle qualifier_lane_index.
21015 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
21016 * config/arm/arm.c (bounds_check): Likewise, improve error message.
21017 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
21018 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
21019 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
21020 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
21021 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
21022 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
21023 qualifiers to TERNOP_IMM.
21024 (vdup_lane): Change qualifiers to GETLANE.
21025 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
21026 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
21027 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
21028 vqdmlsl_n): Change qualifiers to MAC_N.
21030 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
21031 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
21032 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
21033 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
21034 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
21035 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
21036 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
21037 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
21038 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
21039 Remove call to neon_lane_bounds.
21041 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
21043 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
21044 Place integer variant first.
21046 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
21048 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
21049 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
21050 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
21051 for armv6kz targets.
21052 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
21053 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
21054 (FL_FOR_ARCH6ZK): Remove.
21055 (FL_FOR_ARCH6KZ): New.
21056 (arm_arch6zk): New declaration.
21057 * config/arm/arm-tables.opt: Regenerate.
21058 * config/arm/arm.c (arm_arch6kz): New.
21059 (arm_option_override): Set arm_arch6kz.
21060 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
21061 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
21062 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
21064 2015-07-27 Marek Polacek <polacek@redhat.com>
21068 * doc/invoke.texi: Document -Wtautological-compare.
21070 2015-07-27 Richard Biener <rguenther@suse.de>
21072 * genmatch.c (decision_tree::gen_gimple): Split out large
21073 subtrees into separate functions.
21074 (decision_tree::gen_generic): Likewise.
21076 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
21078 * config/alpha/alpha.c: Use SUBREG_P predicate.
21079 * config/alpha/predicates.md: Ditto.
21081 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21083 * config.host (s390*-*-*): Include driver-native.c only when
21084 building with s390* as host *and* target.
21086 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
21089 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
21090 T bit register modified_between_p check.
21092 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21094 * config/i386/i386.c: Use SUBREG_P predicate.
21095 * config/i386/i386.md: Ditto.
21096 * config/i386/sse.md: Ditto.
21097 * config/i386/predicates.md: Ditto.
21099 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21102 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
21103 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
21105 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21107 * Makefile.in: Remove use of TREEBROWSER.
21108 * config.in: Regenerated.
21109 * configure: Regenerated.
21110 * configure.ac: Remove definition of TREEBROWSER.
21111 * tree-browser.c: Removed.
21112 * tree-browser.def: Removed.
21114 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21116 * graphite-scop-detection.c: Include gimple-pretty-print.h.
21117 (stmt_simple_for_scop_p): Print when a stmt is not handled in
21119 (scopdet_basic_block_info): Print when a loop or bb cannot be
21120 represented in Graphite.
21122 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21125 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
21126 execution guard when min_size is less than size_needed.
21128 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21130 * doc/install.texi: Document supported versions of ISL.
21132 2015-07-25 Jeff Law <law@redhat.com>
21136 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21137 unable to find X NE 0 in the tables, return X as the simplified
21139 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21140 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21141 to VISISTED_BBS. */
21142 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21143 after removing the control flow statement and unnecessary edges.
21145 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
21148 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21150 PR rtl-optimization/64164
21151 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21152 * tree-ssa-copyrename.c: Removed.
21153 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21154 -ftree-coalesce-vars.
21155 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21156 * common.opt (ftree-copyrename): Ignore.
21157 (ftree-coalesce-inlined-vars): Likewise.
21158 * doc/invoke.texi: Remove the ignored options above.
21159 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21160 * tree-ssa-coalesce.h: ... here.
21161 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21162 headers required by it.
21163 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21164 across variables when flag_tree_coalesce_vars. Check register
21165 use and promoted modes to allow coalescing. Moved to
21166 tree-ssa-coalesce.c.
21167 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21168 with its member functions to tree-ssa-coalesce.c.
21169 (var_map_base_init): Likewise. Renamed to
21170 compute_samebase_partition_bases.
21171 (partition_view_normal): Drop want_bases parameter.
21172 (partition_view_bitmap): Likewise.
21173 * tree-ssa-live.h: Adjust declarations.
21174 * tree-ssa-coalesce.c: Include explow.h.
21175 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21176 default defs at the entry point.
21177 (dump_part_var_map): New.
21178 (compute_optimized_partition_bases): New, called by...
21179 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21180 of compute_samebase_partition_bases. Adjust.
21181 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21182 * cfgexpand.c (leader_merge): New.
21183 (get_rtl_for_parm_ssa_default_def): New.
21184 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21185 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21186 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21187 redundant MEM attr setting.
21188 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21190 (expand_one_stack_var): ... this. New wrapper to check and
21191 skip already expanded SSA partitions.
21192 (record_alignment_for_reg_var): New, factored out of...
21193 (expand_one_var): ... this.
21194 (expand_one_ssa_partition): New.
21195 (adjust_one_expanded_partition_var): New.
21196 (expand_one_register_var): Check and skip already expanded SSA
21198 (expand_used_vars): Don't create DECLs for anonymous SSA
21199 names. Expand all SSA partitions, then adjust all SSA names.
21200 (pass::execute): Replace the loops that set
21201 SA.partition_to_pseudo from partition leaders and cleared
21202 DECL_RTL for multi-location variables, and that which used to
21203 rename vars and set attrs, with one that clears DECL_RTL and
21204 checks that PARMs and RESULTs default_defs match DECL_RTL.
21205 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21206 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21207 * explow.c (promote_ssa_mode): New.
21208 * explow.h (promote_ssa_mode): Declare.
21209 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21210 * function.c: Include cfgexpand.h.
21211 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21212 (use_register_for_parm_decl): Wrapper for the above to
21213 special-case the result_ptr.
21214 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21215 (split_complex_args): Take assign_parm_data_all argument.
21216 Pass it to rtl_for_parm. Set up rtl and context for split
21218 (assign_parms_augmented_arg_list): Adjust.
21219 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21220 multiple locations. Recognize split complex args.
21221 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21222 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21223 (assign_parm_setup_block): Prefer SSA-assigned location.
21224 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21225 if stack_parm is NULL.
21226 (assign_parm_setup_stack): Prefer SSA-assigned location.
21227 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21228 rtl before testing for pointer bounds. Special-case result_ptr.
21229 (expand_function_start): Maybe reset DECL_RTL of result.
21230 Prefer SSA-assigned location for result and static chain.
21231 Factor out DECL_RESULT and SET_DECL_RTL.
21232 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21233 anonymous SSA names. Use promote_ssa_mode.
21234 (get_temp_reg): Likewise.
21235 (remove_ssa_form): Adjust.
21236 * stor-layout.c (layout_decl): Don't set mem attributes of
21238 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21239 and get its reg_usage for reg invalidation.
21240 (compute_bb_dataflow): Pass it insn.
21241 (emit_notes_in_bb): Likewise.
21243 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21245 * config/i386/i386.c (ix86_va_start): Remove
21246 unneeded !TARGET_64BIT check.
21247 (ix86_gimplify_va_arg): Ditto.
21249 2015-07-24 Tom de Vries <tom@codesourcery.com>
21251 * graphite-sese-to-poly.c (build_poly_scop): Always call
21252 rewrite_commutative_reductions_out_of_ssa.
21254 2015-07-24 Tom de Vries <tom@codesourcery.com>
21256 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
21257 flag_associative_math to FLOAT_TYPE_P. Honour
21258 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
21260 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21263 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
21264 and "%qD" in warning_at instead of "%q+D" in warning.
21266 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21268 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
21269 (ix86_function_abi): Cleanup.
21271 2015-07-24 Michael Darling <darlingm@gmail.com>
21274 * acinclude.m4: Reflects renaming of configure.in to configure.ac
21275 * configure: Likewise
21276 * configure.ac: Likewise
21277 * doc/install.texi: Likewise
21278 * doc/tm.texi: Likewise
21279 * doc/tm.texi.in: Likewise
21281 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21283 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
21284 manually swapping values.
21285 * cse.c (fold_rtx): Likewise.
21286 * lra-eliminations.c (form_sum): Likewise.
21288 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21291 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
21292 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
21293 (*jcc_1, *jcc_2, jump, simple_return_internal)
21294 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
21295 Set length_nobnd attribute instead of length attribute.
21296 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
21297 (length_nobnd): Remove attribute.
21298 (length): Remove length_nobnd processing.
21300 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
21302 * gimplify.c (omp_default_clause): New function. Reorganize flow
21303 for clarity. Broken out of ...
21304 (omp_notice_variable): ... here.
21306 2015-07-24 Gary Funck <gary@intrepid.com>
21308 PR middle-end/66984
21309 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
21310 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
21312 2015-07-24 Tom de Vries <tom@codesourcery.com>
21314 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
21315 exit-first loop transform.
21317 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
21320 * tree-cfg.c (struct replace_decls_d): New struct.
21321 (replace_block_vars_by_duplicates_1): New function.
21322 (replace_block_vars_by_duplicates): Use it to replace the decls
21323 in the value exprs by duplicates.
21325 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21327 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
21328 -shared, -symbolic, -rdynamic.
21330 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21333 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
21334 -dynamic-linker within %{!static %{!shared, and -rdynamic within
21337 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
21340 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
21341 edge summary is available.
21343 2015-07-24 Richard Biener <rguenther@suse.de>
21345 * genmatch.c (struct dt_node): Add statistic fields.
21346 (dt_node::analyze): New method.
21347 (decision_tree::gen_gimple): Call analyze on the root node
21348 and print statistics to stderr.
21349 (decision_tree::gen_generic): Likewise.
21351 2015-07-24 Richard Biener <rguenther@suse.de>
21353 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
21354 against the highest or lowest possible integer ...
21355 * match.pd: ... as patterns here.
21357 2015-07-24 Richard Biener <rguenther@suse.de>
21359 * genmatch.c (struct capture_info): Add same_as field.
21360 (capture_info::capture_info): Initialize same_as.
21361 (capture_info::walk_match): Compute same_as.
21362 (capture_info::walk_result): Compute stuff for the leader.
21363 (capture_info::walk_c_expr): Likewise.
21364 (dt_simplify::gen_1): Only look at leaders when deciding
21365 to force no side-effects or emit side-effects of omitted operands.
21367 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21369 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
21370 reg note to the GPR -> FPR save instructions.
21372 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21374 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
21376 (s390_expand_insv): Don't generate risbg pattern for constant zero
21378 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
21379 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
21382 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21384 * config/s390/s390.c (s390_reorg): Clean up handling of processors
21387 (s390_issue_rate): Likewise.
21388 (s390_sched_reorder): Likewise.
21389 (s390_sched_variable_issue): Likewise.
21390 (s390_loop_unroll_adjust): Likewise.
21391 (s390_option_override): Likewise.
21393 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21395 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
21396 processor capabilities with -march=native.
21397 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
21398 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
21399 (S390_TARGET_BITS_STRING): Macro to simplify specs.
21401 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21403 * config/s390/s390.c (s390_issue_rate): Handle
21404 PROCESSOR_2094_Z9_EC.
21405 (s390_option_override): Likewise.
21406 (s390_adjust_priority): Likewise.
21408 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21410 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
21411 when cross compiling.
21413 2015-07-24 Richard Biener <rguenther@suse.de>
21415 * fold-const.c (maybe_canonicalize_comparison_1): Move
21416 A code CST canonicalization ...
21417 * match.pd: ... to a pattern here.
21419 2015-07-24 Jiong Wang <jiong.wang@arm.com>
21422 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21424 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21425 (HONOR_REG_ALLOC_ORDER): Define.
21427 2015-07-24 Richard Biener <rguenther@suse.de>
21429 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
21430 * fold-const.c (fold_comparison): Move parameter does not
21431 alias &local simplification ...
21432 * match.pd: ... as a pattern here.
21434 2015-07-24 Richard Biener <rguenther@suse.de>
21436 * gimple-fold.c (replace_stmt_with_simplification): Special-case
21437 valueizing call operands.
21438 * gimple-match-head.c (maybe_push_res_to_seq): Take
21439 number of call arguments from ops array.
21440 (do_valueize): New function.
21441 (gimple_simplify): Return true if valueization changed
21442 any operand even if the result didn't simplify further.
21444 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21446 PR middle-end/25530
21447 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
21449 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21451 PR middle-end/25529
21452 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
21454 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21456 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
21459 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21461 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
21464 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
21466 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
21467 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
21469 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
21470 ms_va_list_type_node initialization.
21472 2015-07-23 Jeff Law <law@redhat.com>
21475 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21476 unable to find X NE 0 in the tables, return X as the simplified
21478 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21479 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21480 to VISISTED_BBS. */
21481 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21482 after removing the control flow statement and unnecessary edges.
21484 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
21486 * tree-pass.h (get_current_pass_name): Removed.
21488 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21490 PR rtl-optimization/64164
21491 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21492 * tree-ssa-copyrename.c: Removed.
21493 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21494 -ftree-coalesce-vars.
21495 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21496 * common.opt (ftree-copyrename): Ignore.
21497 (ftree-coalesce-inlined-vars): Likewise.
21498 * doc/invoke.texi: Remove the ignored options above.
21499 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21500 * tree-ssa-coalesce.h: ... here.
21501 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21502 headers required by it.
21503 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21504 across variables when flag_tree_coalesce_vars. Check register
21505 use and promoted modes to allow coalescing. Moved to
21506 tree-ssa-coalesce.c.
21507 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21508 with its member functions to tree-ssa-coalesce.c.
21509 (var_map_base_init): Likewise. Renamed to
21510 compute_samebase_partition_bases.
21511 (partition_view_normal): Drop want_bases parameter.
21512 (partition_view_bitmap): Likewise.
21513 * tree-ssa-live.h: Adjust declarations.
21514 * tree-ssa-coalesce.c: Include explow.h.
21515 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21516 default defs at the entry point.
21517 (dump_part_var_map): New.
21518 (compute_optimized_partition_bases): New, called by...
21519 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21520 of compute_samebase_partition_bases. Adjust.
21521 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21522 * cfgexpand.c (leader_merge): New.
21523 (get_rtl_for_parm_ssa_default_def): New.
21524 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21525 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21526 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21527 redundant MEM attr setting.
21528 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21530 (expand_one_stack_var): ... this. New wrapper to check and
21531 skip already expanded SSA partitions.
21532 (record_alignment_for_reg_var): New, factored out of...
21533 (expand_one_var): ... this.
21534 (expand_one_ssa_partition): New.
21535 (adjust_one_expanded_partition_var): New.
21536 (expand_one_register_var): Check and skip already expanded SSA
21538 (expand_used_vars): Don't create DECLs for anonymous SSA
21539 names. Expand all SSA partitions, then adjust all SSA names.
21540 (pass::execute): Replace the loops that set
21541 SA.partition_to_pseudo from partition leaders and cleared
21542 DECL_RTL for multi-location variables, and that which used to
21543 rename vars and set attrs, with one that clears DECL_RTL and
21544 checks that PARMs and RESULTs default_defs match DECL_RTL.
21545 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21546 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21547 * explow.c (promote_ssa_mode): New.
21548 * explow.h (promote_ssa_mode): Declare.
21549 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21550 * function.c: Include cfgexpand.h.
21551 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21552 (use_register_for_parm_decl): Wrapper for the above to
21553 special-case the result_ptr.
21554 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21555 (split_complex_args): Take assign_parm_data_all argument.
21556 Pass it to rtl_for_parm. Set up rtl and context for split
21558 (assign_parms_augmented_arg_list): Adjust.
21559 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21560 multiple locations. Recognize split complex args.
21561 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21562 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21563 (assign_parm_setup_block): Prefer SSA-assigned location.
21564 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21565 if stack_parm is NULL.
21566 (assign_parm_setup_stack): Prefer SSA-assigned location.
21567 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21568 rtl before testing for pointer bounds. Special-case result_ptr.
21569 (expand_function_start): Maybe reset DECL_RTL of result.
21570 Prefer SSA-assigned location for result and static chain.
21571 Factor out DECL_RESULT and SET_DECL_RTL.
21572 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21573 anonymous SSA names. Use promote_ssa_mode.
21574 (get_temp_reg): Likewise.
21575 (remove_ssa_form): Adjust.
21576 * stor-layout.c (layout_decl): Don't set mem attributes of
21578 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21579 and get its reg_usage for reg invalidation.
21580 (compute_bb_dataflow): Pass it insn.
21581 (emit_notes_in_bb): Likewise.
21583 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
21586 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
21588 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
21589 (rs6000_emit_2insn_and): Handle dot forms.
21590 * config/rs6000/rs6000.md (and<mode>3): Adjust.
21591 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
21592 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
21594 2015-07-23 Richard Biener <rguenther@suse.de>
21596 * generic-match-head.c: Include cgraph.h.
21597 * gimple-match-head.c: Likewise.
21598 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
21600 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
21601 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
21604 2015-07-23 Richard Biener <rguenther@suse.de>
21606 * gimple-fold.c (fold_gimple_cond): Do not require folding
21607 results to pass valid_gimple_rhs_p.
21608 * tree-cfg.h (fold_cond_expr_cond): Remove.
21609 * tree-cfg.c (fold_cond_expr_cond): Likewise.
21610 (make_edges): Do not call it.
21611 * tree-inline.c (tree_function_versioning): Likewise.
21613 2015-07-23 Tom de Vries <tom@codesourcery.com>
21615 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
21616 vect_force_simple_reduction.
21617 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
21618 (vect_is_simple_reduction_1): Add and handle
21619 need_wrapping_integral_overflow parameter.
21620 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
21621 need_wrapping_integral_overflow parameter.
21622 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
21623 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
21626 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
21628 PR tree-optimization/66926,66951
21629 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
21630 INNER_LOOP and fix up condition for renaming virtual operands.
21632 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21634 * combine.c (try_combine): Use std::swap instead of manually
21637 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
21639 * config/mips/i6400.md: New file.
21640 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
21641 (mips64r6): Likewise.
21643 * config/mips/mips-tables.opt: Regenerate.
21644 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
21645 (mips_issue_rate): Add support for i6400.
21646 (mips_multipass_dfa_lookahead): Likewise.
21647 * config/mips/mips.h (TUNE_I6400): Define.
21648 * config/mips/mips.md: Include i6400.md.
21649 (processor): Add i6400.
21650 * doc/invoke.texi (-march=@var{arch}): Add i6400.
21652 2015-07-23 Richard Biener <rguenther@suse.de>
21654 PR middle-end/66916
21655 * match.pd: Guard widen and sign-change comparison simplification
21658 2015-07-23 Richard Biener <rguenther@suse.de>
21660 PR tree-optimization/66945
21661 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
21662 ::before_dom_children): Force the propagators idea of
21663 non-executable edges to materialize, not what the folder
21666 2015-07-23 Richard Biener <rguenther@suse.de>
21668 * gimple.h (gimple_cond_make_false): Use 0 != 0.
21669 (gimple_cond_make_true): Use 1 != 0.
21671 2015-07-22 DJ Delorie <dj@redhat.com>
21673 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
21676 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
21677 (ashrhi3): Likewise.
21678 (lshrhi3): Likewise.
21679 (movhi): Take advantage of zero-extend to load small constants.
21680 (movpsi): Likewise.
21681 (and<mode>3): Likewise.
21682 (zero_extendqihi2): Likewise.
21683 (zero_extendqisi2): New.
21684 * config/msp430/constraints.md (N,O): New.
21685 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
21687 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
21690 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
21691 to enum feature_priority and feature_list.
21692 (fold_builtin_cpu): Add F_AES to enum processor_features
21693 and isa_names_table.
21695 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
21698 * config/i386/linux-common.h (MPX_SPEC): Use linker option
21699 for 64bit target only.
21701 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
21703 * config/nvptx/nvptx.c: Expand some comments.
21705 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
21707 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
21708 (cortex_a53_advsimd): ...This.
21710 2015-07-22 Richard Biener <rguenther@suse.de>
21712 * genmatch.c (expr::gen_transform): Clarify error message
21713 and display location.
21715 2015-07-22 Richard Biener <rguenther@suse.de>
21717 * genmatch.c (struct operand): Add location member.
21718 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
21720 (struct simplify): Remove match_location and result_location
21722 (elsehwere): Adjust.
21724 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
21726 * config/mips/m5100.md: New file.
21727 * config/mips/mips-cpus.def (m5100, m5101): Define.
21728 * config/mips/mips-tables.opt: Regenerate.
21729 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
21730 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
21731 -march=m5101 to -mips32r5.
21732 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
21733 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
21735 * config/mips/mips.md: Include m5100.md.
21736 (processor): Add m5100.
21737 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
21739 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
21741 * config/mips/mips-cpus.def (interaptiv): Define.
21742 * config/mips/mips-tables.opt: Regenerate.
21743 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
21745 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
21746 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
21748 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21751 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21752 (HONOR_REG_ALLOC_ORDER): Define.
21754 2015-07-22 Richard Biener <rguenther@suse.de>
21756 PR tree-optimization/66952
21757 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
21758 blocks we end up executing unconditionally reset all SSA
21759 info such as range and alignment.
21760 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
21761 * tree-ssanames.c (reset_flow_sensitive_info): New function.
21763 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
21765 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
21768 2015-07-22 Richard Biener <rguenther@suse.de>
21770 * genmatch.c (parser::parse_result): Properly handle
21771 match with result operands and conditions.
21773 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
21776 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
21777 Add qualifier_struct_load_store_lane_index.
21778 (aarch64_types_loadstruct_lane_qualifiers): Use
21779 qualifier_struct_load_store_lane_index for lane index argument for
21781 (aarch64_types_storestruct_lane_qualifiers): Ditto.
21782 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21783 (aarch64_simd_expand_args): Add new argument describing mode of
21784 builtin. Check lane bounds for arguments with
21785 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21786 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
21787 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
21788 (aarch64_simd_expand_builtin): Handle arguments with
21789 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
21790 aarch64_simd_expand_args.
21791 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
21792 vst[234]_lane with BUILTIN_VALLDIF.
21793 * config/aarch64/aarch64-simd.md:
21794 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
21795 endianness reversal on lane index.
21796 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
21797 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
21798 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
21799 (vec_store_lanesci_lane<mode>): Ditto.
21800 (vec_store_lanesxi_lane<mode>): Ditto.
21801 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
21802 reversal of lane index.
21803 (aarch64_ld3_lane<mode>): Ditto.
21804 (aarch64_ld4_lane<mode>): Ditto.
21805 (aarch64_st2_lane<mode>): Ditto.
21806 (aarch64_st3_lane<mode>): Ditto.
21807 (aarch64_st4_lane<mode>): Ditto.
21808 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
21809 to qmode. Add new mode parameter. Update uses.
21810 (__LD3_LANE_FUNC): Ditto.
21811 (__LD4_LANE_FUNC): Ditto.
21812 (__ST2_LANE_FUNC): Ditto.
21813 (__ST3_LANE_FUNC): Ditto.
21814 (__ST4_LANE_FUNC): Ditto.
21816 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
21818 * doc/invoke.texi (Language Independent Options): Rename node to
21819 Diagnostic Message Formatting Options.
21821 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
21824 * lra-remat.c (operand_to_remat): Prevent using insns with input
21825 subregs processed separately by IRA.
21827 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
21829 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
21831 (single_imm_use): Check for iterator node.
21832 (num_imm_uses): Likewise.
21833 * tree-ssa-operands.c (has_zero_uses_1): Delete.
21834 (single_imm_use_1): Check for iterator node.
21836 2015-07-21 Mike Frysinger <vapier@gentoo.org>
21837 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21839 * configure.ac: Add check for new options in isl-0.15.
21840 * config.in, configure: Rebuilt.
21841 * graphite-blocking.c: Include <isl/constraint.h>
21842 * graphite-interchange.c, graphite-poly.c: Likewise.
21843 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
21844 * graphite.c: Likewise.
21845 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
21847 * graphite-dependences.c: Include <isl/constraint.h>.
21848 (max_number_of_out_dimensions): Returns isl_stat.
21849 (extend_schedule_1): Likewise
21850 (extend_schedule): Corresponding changes.
21851 * graphite-optimize-isl.c: Include <isl/constraint.h> and
21853 (getSingleMap): Change return type of isl_stat.
21854 (optimize_isl): Conditionally use
21855 isl_options_set_schedule_serialize_sccs.
21856 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
21857 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
21859 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
21862 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
21863 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
21865 2015-07-21 Richard Biener <rguenther@suse.de>
21867 PR tree-optimization/66948
21868 * genmatch.c (capture_info::walk_match): Also recurse to
21869 captures. Properly compute expr state from captures of
21871 * match.pd: Add single-use guards to
21872 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
21874 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
21876 * config/nvptx/mkoffload.c (process): Add static destructor call.
21878 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21880 PR middle-end/66915
21881 * match.pd (A - B -> A + (-B)): Don't allow folding
21882 when type if a fixed-point type.
21884 2015-07-20 DJ Delorie <dj@redhat.com>
21886 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
21887 (iorqi3_real): Likewise for set1.
21889 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
21891 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
21894 2015-07-20 Aditya Kumar <hiraditya@msn.com>
21896 * graphite-isl-ast-to-gimple.c:
21897 Refactor so that each function can access 'region'. This will help
21898 maintain a parameter rename_map within a region.
21900 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
21902 * config/rs6000/rs6000.md (*lt0_disi): New.
21904 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
21907 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
21908 "available letters" comment.
21909 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
21910 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
21911 and_2rld_operand): Delete.
21912 (and_operand): Adjust.
21913 (rotate_mask_operator): New.
21914 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
21915 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
21916 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
21917 extract_ME): Delete.
21918 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21919 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
21920 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
21921 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21922 rs6000_emit_2insn_and): New.
21923 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
21924 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
21925 includes_rldic_lshift_p, includes_rldicr_lshift_p,
21926 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
21927 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21928 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
21929 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
21930 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21931 rs6000_emit_2insn_and): New.
21932 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
21933 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
21935 <NOT>: Don't fall through to next case.
21936 <AND>: Handle the various rotate-and-mask cases directly.
21937 <IOR>: Always cost as one insn.
21938 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
21939 (and<mode>3): Adjust expander for the new patterns.
21940 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
21941 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
21942 (*and<mode>3_imm_dot_shifted): New.
21943 (*and<mode>3_mask): Delete, rewrite as ...
21944 (and<mode>3_mask): ... New.
21945 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
21946 (andsi3_internal0_nomc): Delete.
21947 (*andsi3_internal6): Delete.
21948 (*and<mode>3_2insn): New.
21949 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21950 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21951 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
21952 *insvdi_internal3): Delete.
21953 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
21954 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
21955 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
21956 *ior<mode>_mask): New.
21957 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
21958 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21959 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21960 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21962 (ashr<mode>3): Delete expander.
21963 (*ashr<mode>3): Rename to ...
21964 (ashr<mode>3): ... This.
21965 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
21966 (*rotldi3_internal4, *rotldi3_internal5 and split,
21967 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
21968 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
21969 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
21970 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
21971 (splitter for loading a mask): Adjust.
21972 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
21974 2015-07-20 Marek Polacek <polacek@redhat.com>
21976 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
21977 output_add_clobbers, output_added_clobbers_hard_reg_p,
21978 gen_rtx_scratch): Remove declarations.
21980 2015-07-20 Marek Polacek <polacek@redhat.com>
21983 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
21985 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21987 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
21988 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
21990 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21992 * combine.c (combine_simplify_rtx): Move simplification step
21993 before various transformations/substitutions.
21995 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
21997 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
21998 (struct int_traits): Likewise.
22000 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22002 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
22003 function to vmsdbgout_function_decl.
22005 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
22008 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
22009 from misaligned positions.
22010 (ix86_expand_pinsr): Reject insertions to misaligned positions.
22012 2015-07-18 Sebastian Pop <s.pop@samsung.com>
22014 PR middle-end/46851
22015 PR middle-end/60340
22016 * Makefile.in: Removed omega.o.
22017 * common.opt: Document flag fcheck-data-deps as deprecated.
22018 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
22019 its associated params: omega-max-vars, omega-max-geqs,
22020 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
22021 omega-max-keys, omega-eliminate-redundant-constraints.
22022 * doc/loop.texi: Remove all the section on Omega.
22023 * graphite-blocking.c: Include missing params.h: it used to be
22024 included through tree-data-ref.h and omega.h.
22025 * graphite-isl-ast-to-gimple.c: Same.
22026 * graphite-optimize-isl.c: Same.
22027 * graphite-sese-to-poly.c: Same.
22028 * graphite.c: Same.
22031 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
22032 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
22033 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
22034 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
22035 * passes.def: Remove pass_check_data_deps.
22036 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
22037 (dump_conflict_function): Same.
22038 (dump_subscript): Same.
22039 (print_direction_vector): Same.
22040 (print_dir_vectors): Same.
22041 (print_lambda_vector): Same.
22042 (print_dist_vectors): Same.
22043 (dump_data_dependence_relation): Same.
22044 (dump_data_dependence_relations): Same.
22045 (dump_dist_dir_vectors): Same.
22047 (init_omega_eq_with_af): Removed.
22048 (omega_extract_distance_vectors): Removed.
22049 (omega_setup_subscript): Removed.
22050 (init_omega_for_ddr_1): Removed.
22051 (init_omega_for_ddr): Removed.
22052 (ddr_consistent_p): Removed.
22053 (compute_affine_dependence): Do not use omega to check data
22055 (compute_data_dependences_for_bb): Removed.
22056 (analyze_all_data_dependences): Removed.
22057 (tree_check_data_deps): Removed.
22058 * tree-data-ref.h: Do not include omega.h.
22059 (compute_data_dependences_for_bb): Removed.
22060 (tree_check_data_deps): Removed.
22061 * tree-ssa-loop.c (pass_check_data_deps): Removed.
22062 (make_pass_check_data_deps): Removed.
22063 * tree-ssa-phiopt.c: Include params.h.
22064 * tree-vect-data-refs.c: Same.
22065 * tree-vect-slp.c: Same.
22067 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
22069 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
22070 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
22071 (mem->fpreg splitters): Ditto.
22072 (general_operand->nonimmediate_operand splitter): Use explicit modes.
22073 Disable DFmode for TARGET_64BIT.
22075 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
22078 * config/i386/i386.c (ix86_expand_prologue): Replicate static
22079 chain on the stack.
22081 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22083 * config/nvptx/mkoffload.c (process): Constify host data.
22084 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22085 Constify host data.
22086 (generate_host_descr_file): Likewise.
22088 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
22089 Sebastian Pop <s.pop@samsung.com>
22091 PR middle-end/61929
22092 * graphite-dependences.c (add_pdr_constraints): Renamed
22093 pdr->extent to pdr->subscript_sizes.
22094 * graphite-interchange.c (build_linearized_memory_access): Add
22095 back all gcc_assert's that the "isl_int to isl_val conversion"
22096 patch has removed. Refactored.
22097 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
22098 * graphite-poly.c (new_poly_dr): Same.
22099 (free_poly_dr): Same.
22100 * graphite-poly.h (struct poly_dr): Same.
22101 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
22102 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
22103 * graphite-scop-detection.h: Fix space.
22104 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
22105 back all gcc_assert's removed by a previous patch.
22106 (wrap): Remove the_isl_ctx global variable that the same patch has
22108 (build_loop_iteration_domains): Same.
22109 (add_param_constraints): Same.
22110 (pdr_add_data_dimensions): Same. Refactored.
22111 (build_poly_dr): Renamed extent to subscript_sizes.
22113 2015-07-17 Marek Polacek <polacek@redhat.com>
22115 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
22116 * match.pd: ... here.
22118 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22120 * config/nvptx/mkoffload.c (process): Constify target data.
22121 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22122 Constify target data.
22123 (generate_target_offloadend_file): Likewise.
22125 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
22127 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
22128 to allow renaming of PHI arguments on edges incoming from outer
22129 loop header, add corresponding check before start PHI iterator.
22130 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
22131 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
22132 with true force_vectorize. Set-up dominator for outer loop too.
22133 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
22134 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
22135 was marked with force_vectorize and has restricted cfg.
22136 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
22138 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
22139 do peeling for outer loops.
22141 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
22142 Matthias Klose <doko@ubuntu.com>
22144 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
22145 build-sysroot, sysroot from the `Miscenalleous configure options' to
22146 the `Directories' section and strip trailing `/' from with_sysroot.
22147 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
22148 * configure: Regenerated.
22150 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22153 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
22154 (TARGET_HARD_DF_REGS): Ditto.
22155 (TARGET_HARD_XF_REGS): Ditto.
22156 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
22157 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
22158 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
22159 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
22160 (*movsf_internal): Add alternatives 16 and 17. Enable
22161 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
22163 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22165 PR rtl-optimization/66891
22166 * calls.c (expand_call): Wrap precompute_register_parameters with
22167 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
22169 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
22171 * config/nvptx/mkoffload.c (process): Constify mapping variables.
22172 Define target data struct and initialize it.
22174 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
22176 PR rtl-optimization/66626
22177 * ira.h (emit-rtl.h): Include.
22178 (non_spilled_static_chain_regno_p): New.
22179 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
22180 unless it is non spilled static chain pseudo.
22181 (assign_hard_rego): Spill memory profitable allocno unless it is
22182 non spilled static chain pseudo.
22183 (allocno_spill_priority_compare): Put non spilled static chain
22184 pseudo at the end of sorted array.
22185 (improve_allocation): Do nothing if we have static chain and
22187 (allocno__priority_compare_func): Put non spilled static chain
22188 pseudo at the beginning of sorted array.
22189 (move_spill_restore): Ignore non spilled static chain pseudo.
22190 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
22191 to non spilled static chain pseudo.
22192 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
22193 pseudo at the beginning of sorted array.
22194 (spill_for): Spill non spilled static chain pseudo last.
22195 * lra-constraints.c (lra_constraints): Remove static chain pseudo
22196 check for equivalence.
22198 2015-07-16 Martin Liska <mliska@suse.cz>
22201 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
22202 dst_ctx if it does not exist.
22204 2015-07-16 Martin Liska <mliska@suse.cz>
22206 * hash-set.h (remove): New function.
22207 (iterator): New iteration class for hash_set.
22209 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22211 * genattrtab.c (make_canonical): Add a file_location parameter.
22212 Use fatal_at rather than fatal.
22213 (get_attr_value): Likewise. Update call to make_canonical.
22214 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
22215 (make_internal_attr): Update calls accordingly.
22217 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22219 * read-md.h (message_with_line, error_with_line): Delete.
22220 * read-md.c (message_with_line, error_with_line): Delete.
22221 * gensupport.h: Include read-md.h.
22222 (md_rtx_info): New structure.
22223 (read_md_rtx): Use it. Return a bool success value.
22224 * gensupport.c (read_md_rtx): Likewise.
22225 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
22226 (main): Update after interface changes.
22227 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
22228 (main): Update after interface changes.
22229 * genattrtab.c (insn_code_number): Delete.
22230 (optimize_attrs): Add a max_insn_code parameter and use it instead
22231 of insn_code_number.
22232 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
22233 Use *_at rather than *_with_line functions.
22234 (gen_insn): Likewise.
22235 (gen_delay): Likewise.
22236 (gen_insn_reserv): Likewise.
22237 (gen_bypass): Take an md_rtx_info rather than an rtx.
22238 (main): Update after interface changes. Use a local max_insn_code
22239 variable instead of insn_code_number.
22240 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
22241 an rtx. Use fatal_at rather than fatal.
22242 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
22243 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
22244 (gen_absence_set, gen_final_absence_set, gen_automaton)
22245 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
22246 (main): Update after interface changes.
22247 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
22249 (main): Update after interface changes.
22250 * genconditions.c (main): Use new read_md_rtx interface.
22251 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
22252 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
22253 (main): Update after interface changes.
22254 * genemit.c (insn_code_number, insn_index_number): Delete.
22255 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22256 Use fatal_at rather than fatal.
22257 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
22259 (gen_split): Likewise.
22260 (main): Update after interface changes.
22261 * genextract.c (line_no): Delete.
22262 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22263 Update call to walk_rtx.
22264 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
22265 rather than message_with_line.
22266 (walk_rtx): Add an md_rtx_info argument. Update call to
22267 VEC_safe_set_locstr.
22268 (main): Update after interface changes.
22269 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
22270 and lineno. Use error_at rather than separate message_with_line
22271 calls and have_error assignments.
22272 (main): Update after interface changes.
22273 * genmddump.c (main): Use new read_md_rtx interface.
22274 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
22275 (main): Update after interface changes.
22276 * genoutput.c (next_code_number): Delete.
22277 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22278 (gen_peephole, gen_expand, gen_split): Likewise.
22279 (note_constraint): Likewise. Use *_at rather than *_with_line
22281 (main): Update after interface changes.
22282 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
22284 (main): Update after interface changes.
22285 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
22286 than an rtx and lineno.
22287 (process_define_constraint): Likewise.
22288 (process_define_register_constraint): Likewise.
22289 (main): Update after interface changes.
22290 * genrecog.c (next_insn_code, pattern_lineno): Delete.
22291 (validate_pattern): Replace top-level rtx with an md_rtx_info.
22292 Use *_at rather than *_with_line functions.
22293 (match_pattern_2): Likewise.
22294 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
22295 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
22296 Use *_at rather than *_with_line functions.
22297 * gentarget-def.c (add_insn): New function.
22298 (main): Use it. Use new read_md_rtx interface.
22300 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22302 * gensupport.h (compute_test_codes): Take a file_location rather
22303 than a line number.
22304 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
22305 rather than *_with_line functions.
22306 (process_define_predicate): Update call to compute_test_codes.
22307 * genpreds.c (validate_exp): Take a file_location rather than a
22308 line number. Use *_at functions rather than *_with_line functions.
22309 (process_define_predicate): Update call to validate_exp.
22310 (constraint_data): Replace lineno field with a file_location.
22311 (add_constraint): Take a file_location rather than a line number.
22312 Use *_at functions rather than *_with_line functions. Fix error
22313 message for address constraints. Update after changes to
22314 validate_exp, constraint_data and compute_test_codes.
22315 (process_define_constraint): Update accordingly.
22316 (process_define_register_constraint): Likewise.
22318 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22320 * genoutput.c (data): Use a file_location to record the source
22323 (idata, idata_end): Remove initialization.
22324 (constraint_data): Replace lineno with a file_location.
22325 (output_insn_data): Update after changes to data.
22326 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
22327 (scan_operands): Likewise, using *_at rather than *_with_line
22329 (process_template): Likewise.
22330 (validate_insn_alternatives): Likewise.
22331 (validate_insn_operands): Likewise.
22332 (validate_optab_operands): Likewise.
22333 (init_insn_for_nothing): Initialize idata and idata_end.
22334 (note_constraint): Update after changes to constraint_data,
22335 using at rather than with_line functions.
22336 (mdep_constraint_len): Take a file_location rather than a
22337 line number. Use at rather than with_line functions.
22339 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22341 * read-md.h (fatal_at): Declare.
22342 * read-md.c (fatal_at): New function.
22343 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
22344 to record the source position.
22345 (check_attr_test): Take a file_location instead of a line number.
22346 Use fatal_at instead of fatal.
22347 (check_attr_value): Update after above changes, using "at"
22348 rather than "with_line" reporting functions.
22349 (convert_set_attr_alternative): Likewise.
22350 (gen_attr): Likewise.
22351 (check_defs): Likewise. Don't assign to read_md_filename.
22352 (gen_insn): Update initialization after above changes.
22353 (gen_delay): Likewise.
22354 (write_insn_cases): Print the filename for a define_peephole.
22355 (gen_insn_reserv): Take a line number as argument and update
22356 the call to check_attr_test.
22357 (main): Pass a line number to gen_insn_reserv.
22359 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22361 * read-md.h (file_location): New structure.
22362 (directive_handler_t): Take a file_location rather than a line number.
22363 (message_at, error_at): Declare.
22364 (read_skip_construct): Delete.
22365 * read-md.c (message_with_line_1): Replace with...
22366 (message_at_1): ...this new function.
22367 (message_at, error_at): New functions.
22368 (message_with_line, error_with_line): Update to use message_at_1.
22369 (handle_enum): Take a file_location rather than a line number
22370 and use error_at for error reporting.
22371 (handle_include): Likewise.
22372 (read_skip_construct): Likewise. Make static.
22373 (handle_file): Update after above changes. Pass a file_location
22374 rather than a line number to handle_directive.
22375 * gensupport.c (queue_elem): Replace separate filename and lineno
22376 with a file_location.
22377 (queue_pattern): Replace filename and lineno arguments with a
22378 file_location. Update after change to queue_elem.
22379 (process_define_predicate): Replace lineno argument with a
22380 file_location and use error_at for error reporting. Update
22381 after above changes.
22382 (process_rtx): Likewise.
22383 (subst_pattern_match): Likewise.
22384 (get_alternatives_number): Likewise.
22385 (alter_predicate_for_insn): Likewise.
22386 (rtx_handle_directive): Likewise.
22387 (is_predicable): Update after above changes, using error_at rather
22388 than error_with_line.
22389 (has_subst_attribute): Likewise.
22390 (identify_predicable_attribute): Likewise.
22391 (alter_attrs_for_subst_insn): Likewise.
22392 (process_one_cond_exec): Likewise.
22393 (process_substs_on_one_elem): Likewise.
22394 (process_define_subst): Likewise.
22395 (check_define_attr_duplicates): Likewise.
22396 (read_md_rtx): Update after change to queue_elem.
22398 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22400 * genoutput.c (next_index_number): Delete.
22401 (data): Remove index_number.
22402 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
22403 (main): Remove manipulation of next_index_number.
22405 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22407 * genattrtab.c (check_attr_value): Remove handling of null attrs.
22408 (make_canonical): Likewise.
22410 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
22412 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
22413 instead of adjust_address_nv.
22414 (restore_stack_nonlocal): Likewise.
22415 (nonlocal_goto): Likewise.
22417 2015-07-16 Tom de Vries <tom@codesourcery.com>
22419 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
22420 not have a corresponding loop header phi.
22422 2015-07-16 Tom de Vries <tom@codesourcery.com>
22424 * tree-parloops.c (create_loads_for_reductions): Handle case that
22425 reduction is unused.
22427 2015-07-16 Richard Biener <rguenther@suse.de>
22429 PR tree-optimization/66894
22430 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
22431 about deriving NE_EXPR from truncated values.
22433 2015-07-16 Martin Liska <mliska@suse.cz>
22436 (object_allocator): Add new class.
22437 (pool_allocator::initialize): Use the underlying class.
22438 (pool_allocator::allocate): Likewise.
22439 (pool_allocator::remove): Likewise.
22440 (operator new): A new generic allocator.
22441 * asan.c (struct asan_mem_ref): Remove unused members.
22442 (asan_mem_ref_new): Replace new operator with
22443 object_allocator::allocate.
22444 (free_mem_ref_resources): Change deallocation.
22445 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
22446 with object_allocator.
22447 * config/sh/sh.c (add_constant): Replace new operator with
22448 object_allocator::allocate.
22449 (sh_reorg): Change call to a release method.
22450 * cselib.c (struct elt_list): Remove unused members.
22451 (new_elt_list): Replace new operator with
22452 object_allocator::allocate.
22453 (new_elt_loc_list): Likewise.
22454 (new_cselib_val): Likewise.
22455 (unchain_one_elt_list): Change delete operator with remove method.
22456 (unchain_one_elt_loc_list): Likewise.
22457 (unchain_one_value): Likewise.
22458 (cselib_finish): Release newly added static allocators.
22459 * cselib.h (struct cselib_val): Remove unused members.
22460 (struct elt_loc_list): Likewise.
22461 * df-problems.c (df_chain_alloc): Replace pool_allocator with
22463 * df-scan.c (struct df_scan_problem_data): Likewise.
22464 (df_scan_alloc): Likewise.
22465 * df.h (struct dataflow): Likewise.
22466 * dse.c (struct read_info_type): Likewise.
22467 (struct insn_info_type): Likewise.
22468 (struct dse_bb_info_type): Likewise.
22469 (struct group_info): Likewise.
22470 (struct deferred_change): Likewise.
22471 (get_group_info): Likewise.
22472 (delete_dead_store_insn): Likewise.
22473 (free_read_records): Likewise.
22474 (replace_read): Likewise.
22475 (check_mem_read_rtx): Likewise.
22476 (scan_insn): Likewise.
22477 (dse_step1): Likewise.
22478 (dse_step7): Likewise.
22479 * et-forest.c (struct et_occ): Remove unused members.
22480 (et_new_occ): Use allocate instead of new operator.
22481 (et_new_tree): Likewise.
22482 (et_free_tree): Call release method explicitly.
22483 (et_free_tree_force): Likewise.
22484 (et_free_pools): Likewise.
22485 (et_split): Use remove instead of delete operator.
22486 * et-forest.h (struct et_node): Remove unused members.
22487 * ipa-cp.c: Change pool_allocator to object_allocator.
22488 * ipa-inline-analysis.c: Likewise.
22489 * ipa-profile.c: Likewise.
22490 * ipa-prop.c: Likewise.
22491 * ipa-prop.h: Likewise.
22492 * ira-build.c (initiate_cost_vectors): Cast return value.
22493 (ira_allocate_cost_vector): Likewise.
22494 * ira-color.c (struct update_cost_record): Remove unused members.
22495 * lra-int.h (struct lra_live_range): Likewise.
22496 (struct lra_copy): Likewise.
22497 (struct lra_insn_reg): Likewise.
22498 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
22499 * lra.c (new_insn_reg): Replace new operator with allocate method.
22500 (free_insn_regs): Same for operator delete.
22501 (finish_insn_regs): Release new static allocator.
22502 (finish_insn_recog_data): Likewise.
22503 (lra_free_copies): Replace delete operator with remove method.
22504 (lra_create_copy): Replace operator new with allocate method.
22505 (invalidate_insn_data_regno_info): Same for remove method.
22506 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
22507 (free_debug_insn_changes): Replace delete operator with remove method.
22508 (replace_oldest_value_reg): Replace operator new with allocate method.
22509 (pass_cprop_hardreg::execute): Release new static variable.
22510 * sched-deps.c (sched_deps_init): Change pool_allocator to
22512 * sel-sched-ir.c: Likewise.
22513 * sel-sched-ir.h: Likewise.
22514 * stmt.c (expand_case): Likewise.
22515 (expand_sjlj_dispatch_table): Likewise.
22516 * tree-sra.c (struct access): Remove unused members.
22517 (struct assign_link): Likewise.
22518 (sra_deinitialize): Release newly added static pools.
22519 (create_access_1):Replace operator new with allocate method.
22520 (build_accesses_from_assign): Likewise.
22521 (create_artificial_child_access): Likewise.
22522 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
22523 pool_allocator to object_allocator.
22524 * tree-ssa-pre.c: Likewise.
22525 * tree-ssa-reassoc.c: Likewise.
22526 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
22527 * tree-ssa-strlen.c: Likewise.
22528 * tree-ssa-structalias.c: Likewise.
22529 * var-tracking.c (onepart_pool_allocate): New function.
22530 (unshare_variable): Use the newly added function.
22531 (variable_merge_over_cur): Likewise.
22532 (variable_from_dropped): Likewise.
22533 (variable_was_changed): Likewise.
22534 (set_slot_part): Likewise.
22535 (emit_notes_for_differences_1): Likewise.
22536 (vt_finalize): Release newly added static pools.
22538 2015-07-16 Martin Jambor <mjambor@suse.cz>
22540 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
22541 all uses. Fix two typos in its general comment.
22542 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
22544 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
22546 * config/i386/linux-common.h (LINK_MPX): New.
22547 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
22548 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
22549 indicating '-z bndplt' support by linker.
22550 * configure: Regenerate.
22551 * config.in: Regenerate.
22553 2015-07-16 Richard Biener <rguenther@suse.de>
22555 * fold-const.c (fold_widened_comparison): Remove.
22556 (fold_sign_changed_comparison): Likewise.
22557 (fold_comparison): Move widened and sign-changed comparison
22559 * match.pd: ... to patterns here.
22560 * generic-match-head.c: Include target.h.
22561 * gimple-match-head.c: Likewise.
22563 2015-07-16 Richard Biener <rguenther@suse.de>
22565 * tree-ssa-dom.c (dom_valueize): New function.
22566 (record_temporary_equivalences): Also record equivalences
22567 for dominating stmts that have uses of equivalences we are
22570 2015-07-16 Bin Cheng <bin.cheng@arm.com>
22572 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
22573 add_autoinc_candidates.
22574 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
22575 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
22576 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
22577 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
22579 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
22580 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
22581 Remove parameter struct iv*. Call add_autoinc_candidates here.
22582 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
22583 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
22585 (find_iv_candidates): Call new functions.
22587 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
22589 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
22590 uninitialized-variable warning.
22592 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
22595 * config/sh/sh.md (movdi): Split simple reg move to two movsi
22596 when the destination is R0.
22598 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
22601 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
22602 * config/i386/i386.c (ix86_expand_pextr): New function.
22603 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
22604 for non-lowpart subregs.
22605 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
22606 (insv<mode>): Use SWI248 mode iterator.
22607 (insv<mode>_1): Ditto.
22609 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22610 Sebastian Pop <s.pop@samsung.com>
22612 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
22613 iterator to use_stmt.
22615 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22616 Sebastian Pop <s.pop@samsung.com>
22618 * graphite-scop-detection.c (build_scops_1): Discard scops for
22621 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22622 Sebastian Pop <s.pop@samsung.com>
22624 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
22625 case of a return statement in scop.
22627 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
22628 Sebastian Pop <s.pop@samsung.com>
22630 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
22631 INTEGER_TYPE parameters.
22632 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
22633 VECTOR_CST in scan_tree_for_params.
22634 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
22636 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
22638 * gimple-pretty-print.h: Don't include pretty-print.h.
22639 * tree-streamer.h: Don't include lto-streamer.h.
22640 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
22641 * gimple-streamer-in.c: Remove redundant includes.
22642 * gimple-streamer-out.c: Likewise.
22643 * ipa-devirt.c: Likewise.
22644 * ipa-icf.c: Likewise.
22645 * ipa-inline-analysis.c: Likewise.
22646 * ipa-polymorphic-call.c: Likewise.
22647 * ipa-profile.c: Likewise.
22648 * ipa-prop.c: Likewise.
22649 * ipa-pure-const.c: Likewise.
22650 * lto-cgraph.c: Likewise.
22651 * lto-streamer-in.c: Likewise.
22652 * lto-streamer-out.c: Likewise.
22653 * lto-streamer.c: Likewise.
22654 * tree-streamer-in.c: Likewise.
22655 * tree-streamer-out.c: Likewise.
22656 * tree-streamer.c: Likewise.
22658 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
22660 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
22662 * opts.c: Remove multiline #include comment.
22664 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
22666 * config/nvptx/mkoffload.c (process): Add C++ protection to
22669 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22672 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
22673 null before IEEE 128-bit floating point support patch.
22675 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22677 * simplify-rtx.c (simplify_ternary_operation): Add simplification
22678 for (!c) != {0,...,0} ? a : b for vector modes.
22680 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
22681 Martin Jambor <mjambor@suse.cz>
22683 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
22684 struct func_body_info* instead of struct ipa_node_params*, expecting
22685 fbi->info to be filled in. Replace throughout. Adjust call to
22686 ipa_load_from_parm_agg.
22687 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
22688 instead of struct ipa_node_params*. Adjust calls to other functions
22689 so that they pass either fbi or fbi->info.
22690 (set_switch_stmt_execution_predicate): Likewise.
22691 (will_be_nonconstant_predicate): Likewise.
22692 (compute_bb_predicates): Likewise.
22693 (estimate_function_body_sizes): Move asserts earlier. Fill in
22694 struct func_body_info, replace parms_info with fbi.info. Adjust
22695 calls to functions that now accept struct func_body_info.
22696 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
22697 (struct func_body_info): Likewise.
22698 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
22699 remove static. Adjust callers.
22700 (ipa_load_from_parm_agg): Remove.
22701 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
22702 (func_body_info): Likewise.
22703 (ipa_load_from_parm_agg): Adjust prototype.
22705 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22707 * gensupport.c (rtx_handle_directive): Adjust.
22708 * read-rtl.c (apply_iterators): Take vector to add rtxs to
22709 instead of expr list rtx.
22710 (add_define_attr_for_define_subst): Likewise.
22711 (add_define_subst_attr): Likewise.
22712 (read_subst_mapping): Likewise.
22713 (read_rtx): Likewise.
22714 * rtl.h (read_rtx): Adjust.
22716 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22718 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
22720 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22723 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
22724 (*tls_local_dynamic_base_64_<mode>): Ditto.
22725 (*tls_local_dynamic_base_64_largepic): Ditto.
22726 (tls_global_dynamic_64_<mode>): Update expander pattern.
22727 (tls_local_dynamic_base_64_<mode>): Ditto.
22729 2015-07-15 Richard Biener <rguenther@suse.de>
22731 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
22732 and bool_var == 1 -> bool_var simplifications ...
22733 * match.pd: ... to patterns here. Factor out negate_expr_p
22734 cases from the A - B -> A + (-B) patterns as negate_expr_p
22735 predicate and add a -(A + B) -> (-B) - A pattern.
22737 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
22739 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
22741 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
22742 Robert Suchanek <robert.suchanek@imgtec.com>
22744 * config/mips/mips.c (mips_int_mask): New enum.
22745 (mips_shadow_set): Likewise.
22746 (int_mask): New variable.
22747 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
22748 (machine_function): Add int_mask and use_shadow_register_set.
22749 (mips_attribute_table): Add attribute handlers for interrupt and
22750 use_shadow_register_set.
22751 (mips_interrupt_mask): New static function.
22752 (mips_handle_interrupt_attr): Likewise.
22753 (mips_handle_use_shadow_register_set_attr): Likewise.
22754 (mips_use_shadow_register_set): Change return type to enum
22755 mips_shadow_set. Add argument handling for use_shadow_register_set
22757 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
22758 compare with mips_shadow_set enum.
22759 (mips_compute_frame_info): Add interrupt mask and
22760 use_shadow_register_set to per-function information structure.
22761 Add a stack slot for EPC unconditionally.
22762 (mips_expand_prologue): Compare use_shadow_register_set value
22763 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
22764 masked interrupt register but in EIC mode use K0 and save Cause in K0.
22765 EPC saved and restored unconditionally. Use PMODE_INSN macro when
22766 copying the stack pointer from the shadow register set.
22767 * config/mips/mips.h (SR_IM0): New define.
22768 * config/mips/mips.md (mips_rdpgpr): Rename to...
22769 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
22770 * doc/extend.texi (Declaring Attributes of Functions): Document
22771 optional arguments for interrupt and use_shadow_register_set
22774 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
22776 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
22777 interrupt attribute.
22778 (mips_expand_prologue): Disable the floating point unit in an ISR.
22779 * config/mips/mips.h (SR_COP1): New define.
22781 2015-07-15 Richard Biener <rguenther@suse.de>
22783 * genmatch.c (parser::peek, parser::peek_ident): Add argument
22784 to tell how many tokens to peek ahead (default 1).
22785 (parser::eat_token, parser::eat_ident): Return token consumed.
22786 (parser::parse_result): Parse new switch statement.
22787 * match.pd: Use case statements where appropriate.
22789 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22791 PR rtl-optimization/58066
22792 * calls.c (expand_call): Precompute register parameters before stack
22793 alignment is performed.
22795 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
22797 PR rtl-optimization/66838
22798 * postreload.c (reload_cse_move2add): Also process
22799 CALL_INSN_FUNCTION_USAGE when resetting information of
22800 call-clobbered registers.
22802 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22803 Cesar Philippidis <cesar@codesourcery.com>
22804 Chung-Lin Tang <cltang@codesourcery.com>
22806 * config/nios2/constraints.md (U, v): New constraints.
22807 * config/nios2/predicates.md (rdprs_dcache_operand): New.
22808 (ldstex_memory_operand): New.
22809 * config/nios2/sync.md: New file.
22810 * config/nios2/nios2.md (unspecv): Add new builtin function
22812 (rdprs, flushd, flushda, wrpie, eni): New patterns.
22813 (top-level): Include sync.md.
22814 * config/nios2/nios2.c (N2_FTYPES): Add function types for
22816 (N2_BUILTINS): Add arch field setting, add new builtins.
22817 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
22819 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
22820 Also handle ldex/stex/ldsex/stsex builtins.
22821 (nios2_expand_rdprs_builtin): New function.
22822 (nios2_expand_cache_builtin): New function.
22823 (nios2_expand_wrpie_builtin): New function.
22824 (nios2_expand_eni_builtin): New function.
22825 (nios2_expand_builtin): Add arch field handling and new builtin
22827 * doc/extend.texi (Altera Nios II Built-in Functions): Document
22829 * doc/md.texi (Machine Constraints): Document U and v constraints.
22831 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22832 Cesar Philippidis <cesar@codesourcery.com>
22833 Chung-Lin Tang <cltang@codesourcery.com>
22835 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
22836 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
22837 callee_save_reg_size and uses_anonymous_args fields.
22838 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
22839 (nios2_create_cfa_notes): New function.
22840 (nios2_adjust_stack): New function for adjusting stack.
22841 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
22842 Use nios2_adjust_stack.
22843 (nios2_expand_epilogue): Likewise.
22844 (nios2_expand_return): New function.
22845 (nios2_can_use_return_insn): Update for CDX pop.n usage.
22846 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
22847 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
22848 * config/nios2/nios2.md (return): Use nios2_expand_return.
22850 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22851 Cesar Philippidis <cesar@codesourcery.com>
22852 Chung-Lin Tang <cltang@codesourcery.com>
22854 * config/nios2/predicates.md (pop_operation): New.
22855 (ldwm_operation, stwm_operation): New.
22856 (nios2_hard_register_operand): New.
22857 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
22858 (ldstwm_operation_p): Declare.
22859 (gen_ldstwm_peep): Declare.
22860 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
22861 (base_reg_adjustment_p): New.
22862 (pop_operation_p): New.
22863 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
22864 (nios2_ldstwm_regset_p): New.
22865 (ldstwm_operation_p): New.
22867 (nios2_ldst_parallel): New.
22868 (struct ldswm_operand): Declare.
22869 (compare_ldstwm_operands): New.
22870 (can_use_cdx_ldstw): New.
22871 (gen_ldstwm_peep): New.
22872 * config/nios2/nios2-ldstwm.sml: New.
22873 * config/nios2/nios2.md: Include ldstwm.md.
22874 * config/nios2/ldstwm.md: Generated.
22876 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22877 Cesar Philippidis <cesar@codesourcery.com>
22878 Chung-Lin Tang <cltang@codesourcery.com>
22880 * config/nios2/nios2.h (LABEL_ALIGN): Define.
22881 (REG_ALLOC_ORDER): Define.
22882 (ADJUST_REG_ALLOC_ORDER): Define.
22883 (HONOR_REG_ALLOC_ORDER): Define.
22884 (CDX_REG_P): Define.
22885 (ANDCLEAR_INT): Define.
22886 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
22887 (nios2_label_align): Declare.
22888 (nios2_cdx_narrow_form_p): Declare.
22889 (nios2_adjust_reg_alloc_order): Declare.
22890 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
22892 (nios2_large_unspec_reloc_p): New function, split from...
22893 (nios2_legitimate_pic_operand_p): ...here.
22894 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
22895 (nios2_print_operand_punct_valid_p): New.
22896 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
22897 (split_mem_address): New.
22898 (split_alu_insn): New.
22900 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
22901 (enum nios2_add_insn_kind): New.
22902 (nios2_add_insn_names, nios2_add_insn_narrow): New.
22903 (nios2_add_insn_classify): New.
22904 (nios2_add_insn_asm): New.
22905 (nios2_cdx_narrow_form_p): New.
22906 (label_align, min_labelno, max_labelno): New.
22907 (nios2_reorg): New.
22908 (nios2_label_align): New.
22909 (nios2_adjust_reg_alloc_order): New.
22910 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22911 (TARGET_MACHINE_DEPENDENT_REORG): Define.
22912 * config/nios2/constraints.md (P): New constraint.
22913 * config/nios2/predicates.md (const_and_operand): New.
22914 (and_operand): New.
22915 (stack_memory_operand): New.
22916 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
22917 (length): Update to use nios2_cdx_narrow_form_p().
22918 (type): Add new insn type values.
22919 (control, alu, st, ld, shift): Update insn reservations with
22920 new insn type values.
22921 (*high, *lo_sum): Define new insn patterns for constant generation.
22922 (movqi_internal, movhi_internal, movsi_internal): Reduce
22923 alternatives, update asm template to handle CDX variants, update
22925 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
22926 template, update type attributes.
22927 (extendhisi2, extendqi<mode>2): Likewise.
22928 (addsi3): Change to use function for asm string.
22929 (subsi3): Add CDX notation to asm template, update type attributes.
22930 (negsi3, one_cmplsi3): Likewise.
22931 (andsi3): New pattern, specialized from logical patterns.
22932 (<code>si3): Remove and case, combine alternatives, update asm
22934 (<shift_op>si3): Add CDX notation, update type attributes.
22935 (rotrsi3): Update type attribute.
22936 (*merge, extzv, insv): New insn patterns.
22937 (return): Change to define_expand.
22938 (simple_return): Add CDX notation, update type attributes.
22939 (indirect_jump): Add CDX notation.
22940 (jump): Update asm cases, update length attribute expression.
22941 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
22942 (nios2_cbranch): Update asm cases and length attribute expression
22943 to handle CDX variants.
22944 (nios2_cmp<code>): Update asm template.
22945 (nop): Add CDX notation, update type attributes.
22946 (trap): Add CDX notation.
22947 (ctrapsi4): Update asm cases and length attribute expression to
22948 handle CDX variant.
22949 * doc/md.texi (Machine Constraints): Document P constraint.
22951 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22952 Cesar Philippidis <cesar@codesourcery.com>
22953 Chung-Lin Tang <cltang@codesourcery.com>
22955 * config/nios2/nios2.h (SMALL_INT12): New macro.
22956 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
22957 (nios2_valid_addr_expr_p): Use it.
22958 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
22959 with implicit "io" instructions on R2.
22960 * config/nios2/constraints.md (w): New constraint.
22961 * config/nios2/predicates.md (ldstio_memory_operand): New.
22962 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
22963 operand predicate and constraint.
22964 (ld<bh>io_signed, st<bhw>io>): Likewise.
22965 * doc/md.texi (Machine Constraints): Document w constraint.
22967 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22968 Cesar Philippidis <cesar@codesourcery.com>
22969 Chung-Lin Tang <cltang@codesourcery.com>
22971 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
22972 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
22973 Nios II architecture level.
22974 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
22975 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
22976 (OPTION_DEFAULT_SPECS): Define.
22977 (ASM_SPEC): Add -march= spec strings.
22978 * config/nios2/nios2.c (nios2_option_override): Check for
22979 conflicts involving new options.
22980 * config.gcc (nios2*-*-*): Support --with-arch=.
22981 * doc/invoke.texi (Option Summary, Nios II Options): Document
22982 -march=, -mbmx, and -mcdx.
22984 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
22986 PR rtl-optimization/66626
22987 * lra-constraints.c (lra_constraints): Prevent equivalence
22988 substitution for static chain pseudo in functions with nonlocal
22991 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22993 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
22994 (nios2_emit_stack_limit_check): Add size parameter. Handle
22995 -fstack-limit-symbol as well as -fstack-limit-register.
22996 (nios2_expand_prologue): Emit only a single stack limit check,
22997 even if multiple stack adjustments are required.
22998 (nios2_option_override): Diagnose unsupported combination of -fpic
22999 and -stack-limit-symbol.
23001 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
23003 * Makefile.in (top_srcdir): New.
23004 * configure.ac: Use AM_ZLIB.
23005 * configure: Regeneated.
23007 2015-07-14 Matthias Klose <doko@ubuntu.com>
23010 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
23012 2015-07-14 Richard Biener <rguenther@suse.de>
23014 PR tree-optimization/66863
23015 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
23016 what we record for conversion use stmt lhs inequalities.
23018 2015-07-14 Richard Biener <rguenther@suse.de>
23020 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
23021 (decision_tree::gen_gimple): Likewise.
23023 2015-07-14 Tom de Vries <tom@codesourcery.com>
23025 * gcc.c (greater_than_spec_func): Declare forward.
23026 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
23027 -ftree-parallelize-loops={0,1}.
23028 (static_spec_functions): Add greater_than_spec_func function with name
23030 (greater_than_spec_func): New function.
23032 2015-07-14 Richard Biener <rguenther@suse.de>
23034 * tree-ssa-dom.c (record_temporary_equivalences): Merge
23035 wideing type conversion case from record_equivalences_from_incoming_edge
23036 and use record_equality to record equivalences.
23037 (record_equivalences_from_incoming_edge): Call
23038 record_temporary_equivalences.
23040 2015-07-14 Richard Biener <rguenther@suse.de>
23042 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
23043 (struct if_expr): New.
23044 (struct with_expr): Likewise.
23045 (is_a_helper): Add helpers for if_expr and with_expr.
23046 (struct simplify): Add simplify_kind enum and member. Remove
23048 (simplify::simplify): Adjust.
23049 (lower_commutative): Adjust.
23050 (lower_opt_convert): Likewise.
23051 (lower_cond): Likewise.
23052 (replace_id): Handle with_expr and if_expr.
23053 (lower_for): Adjust.
23054 (dt_simplify::gen_1): New recursive worker, split out from ...
23055 (dt_simplify::gen): ... here. Deal with if and with expansion
23057 (capture_info::capture_info): Take context argument
23058 (capture_info::walk_result): Only analyze specific result.
23059 (parser::parse_result): New function.
23060 (parser::parse_simplify): Adjust to parse ifs with then end
23062 (parser::parse_if): Simplify.
23063 (parser::parse_pattern): Pass down simplify kind.
23064 * match.pd: Convert if structure to new syntax.
23066 2015-07-13 Marek Polacek <polacek@redhat.com>
23068 * rtl.c (rtx_equal_p_cb): Fix typo.
23070 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
23072 * omega.h: Don't include config.h, don't include params.h again if
23073 omega.h has already been included.
23074 * graphite-poly.h: Include sese.h.
23075 * graphite.c: Don't include sese.h, remove needless includes and
23076 minimize includes outside #ifdef HAVE_isl block.
23077 * graphite-blocking.c: Don't include sese.h, remove needless includes,
23078 and wrap entire file in #ifdef HAVE_isl
23079 * graphite-dependences.c: Likewise.
23080 * graphite-interchange.c: Likewise.
23081 * graphite-isl-ast-to-gimple.c: Likewise.
23082 * graphite-optimize-isl.c: Likewise.
23083 * graphite-poly.c: Likewise.
23084 * graphite-scop-detection.c: Likewise.
23085 * graphite-sese-to-poly.c: Likewise.
23087 2015-07-13 Tom de Vries <tom@codesourcery.com>
23089 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
23091 2015-07-13 Renlin Li <renlin.li@arm.com>
23094 * simplify-rtx.c (simplify_const_relational_operation): Add
23095 side_effects_p checks.
23097 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
23099 * bitmap.h: Fix double word typos.
23100 * builtins.c: Same.
23102 * cfgloopmanip.c: Same.
23105 * cgraphclones.c: Same.
23107 * config/aarch64/aarch64-protos.h: Same.
23108 * config/aarch64/aarch64.c: Same.
23109 * config/aarch64/aarch64.md: Same.
23110 * config/arm/arm.md: Same.
23111 * config/arm/arm1020e.md: Same.
23112 * config/arm/arm1026ejs.md: Same.
23113 * config/arm/arm926ejs.md: Same.
23114 * config/arm/fa526.md: Same.
23115 * config/arm/fa606te.md: Same.
23116 * config/arm/fa626te.md: Same.
23117 * config/arm/fa726te.md: Same.
23118 * config/arm/fmp626.md: Same.
23119 * config/darwin.c: Same.
23120 * config/epiphany/epiphany.c: Same.
23121 * config/frv/frv.c: Same.
23122 * config/ft32/ft32.c: Same.
23123 * config/gnu-user.h: Same.
23124 * config/h8300/constraints.md: Same.
23125 * config/i386/i386.c: Same.
23126 * config/i386/i386.md: Same.
23127 * config/iq2000/iq2000.md: Same.
23128 * config/mips/mips.c: Same.
23129 * config/mmix/mmix.md: Same.
23130 * config/moxie/moxie.c: Same.
23131 * config/nds32/nds32.md: Same.
23132 * config/pa/pa.h: Same.
23133 * config/rs6000/aix.h: Same.
23134 * config/rs6000/rs6000.h: Same.
23135 * config/sh/sh.c: Same.
23136 * config/tilegx/tilegx.md: Same.
23137 * config/tilepro/gen-mul-tables.cc: Same.
23140 * doc/invoke.texi: Same.
23142 * dwarf2out.c: Same.
23145 * genmatch.c: Same.
23146 * gimplify.c: Same.
23147 * hash-table.h: Same.
23148 * internal-fn.c: Same.
23150 * ipa-devirt.c: Same.
23153 * ipa-profile.c: Same.
23154 * ipa-prop.c: Same.
23155 * ipa-prop.h: Same.
23158 * reg-stack.c: Same.
23159 * regcprop.c: Same.
23164 * tree-inline.c: Same.
23165 * tree-sra.c: Same.
23166 * tree-ssa-dom.c: Same.
23167 * tree-ssa-loop-ivopts.c: Same.
23168 * tree-ssa-structalias.c: Same.
23169 * tree-ssa-tail-merge.c: Same.
23170 * tree-ssa-ter.c: Same.
23171 * tree-ssa-threadupdate.c: Same.
23172 * tree-ssa-uninit.c: Same.
23173 * tree-ssanames.c: Same.
23174 * tree-vect-loop-manip.c: Same.
23175 * tree-vrp.c: Same.
23177 * valtrack.c: Same.
23180 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23182 PR middle-end/66726
23183 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
23184 tree_ssa_phiopt_worker): Call it.
23186 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23188 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
23189 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
23192 2015-07-11 Marek Polacek <polacek@redhat.com>
23194 PR middle-end/66353
23195 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
23196 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
23197 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
23198 rather than bb_has_abnormal_call_pred.
23199 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
23200 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
23201 rather than bb_has_abnormal_call_pred.
23203 2015-07-10 Anatoly Sokolov <aesok@post.ru>
23205 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23206 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
23207 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23208 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
23209 v850_legitimate_address_p): New functions.
23210 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23212 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
23215 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
23216 indirect sibcall with register arguments if register available
23217 for argument passing.
23218 (init_cumulative_args): Set cfun->machine->arg_reg_available
23219 to (cum->nregs > 0) or to true if function has a variable
23221 (function_arg_advance_32): Set cfun->machine->arg_reg_available
23222 to false if cum->nregs <= 0.
23223 * config/i386/i386.h (machine_function): Add arg_reg_available.
23225 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23227 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
23228 and gen_higpart instead of gen_rtx_SUBREG.
23229 * config/i386/i386.md
23230 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
23231 (read-modify peephole2): Use gen_lowpart instead of
23232 gen_rtx_SUBREG for operand 5.
23234 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23236 * config/tilepro/gen-mul-tables.cc (main): Change include list for
23238 * config/tilepro/mul-tables.c: Regenerate.
23239 * config/tilegx/mul-tables.c: Regenerate.
23241 2015-07-10 Richard Biener <rguenther@suse.de>
23243 * fold-const.c (distribute_bit_expr): Remove.
23244 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
23245 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
23246 to A & (B | C) and simplifying A << C1 << C2 to ...
23247 * match.pd: ... patterns here.
23249 2015-07-10 Jiong Wang <jiong.wang@arm.com>
23251 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23252 Mark mem as READONLY and NOTRAP for PIC symbol.
23254 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23256 * gimple-predict.h: New file.
23257 (gimple_predict_predictor, gimple_predict_set_predictor,
23258 gimple_predict_outcome, gimple_predict_set_outcome,
23259 gimple_build_predict): Relocate here.
23260 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
23261 gimple_predict_outcome, gimple_predict_set_outcome): Move to
23263 * gimple.c (gimple_build_predict): Move to gimple-predict.h
23264 * basic-block.h: Don't include cfghooks.h.
23265 * backend.h: Don't include predict.h.
23266 * cfghooks.h: Include predict.h.
23267 * gimple-pretty-print.c: Include gimple-predict.h.
23268 * gimplify.c: Likwise.
23269 * predict.c: Adjust includes.
23270 * tree-inline.c: Likewise.
23271 * asan.c: Likewise.
23272 * auto-inc-dec.c: Likewise.
23273 * auto-profile.c: Likewise.
23274 * bb-reorder.c: Likewise.
23275 * builtins.c: Likewise.
23276 * caller-save.c: Likewise.
23277 * calls.c: Likewise.
23278 * cfganal.c: Likewise.
23279 * cfgbuild.c: Likewise.
23281 * cfgcleanup.c: Likewise.
23282 * cfgexpand.c: Likewise.
23283 * cfghooks.c: Likewise.
23284 * cfgloopanal.c: Likewise.
23285 * cfgloop.c: Likewise.
23286 * cfgloopmanip.c: Likewise.
23287 * cfgrtl.c: Likewise.
23288 * cgraph.c: Likewise.
23289 * cgraphunit.c: Likewise.
23290 * combine.c: Likewise.
23291 * cprop.c: Likewise.
23294 * dojump.c: Likewise.
23296 * except.c: Likewise.
23297 * expmed.c: Likewise.
23298 * expr.c: Likewise.
23299 * final.c: Likewise.
23300 * fold-const.c: Likewise.
23301 * function.c: Likewise.
23302 * fwprop.c: Likewise.
23303 * gcc-plugin.h: Likewise.
23304 * gcse.c: Likewise.
23305 * genattrtab.c: Likewise.
23306 * genemit.c: Likewise.
23307 * gengtype.c: Likewise.
23308 * genopinit.c: Likewise.
23309 * genoutput.c: Likewise.
23310 * genpreds.c: Likewise.
23311 * genrecog.c: Likewise.
23312 * gimple-fold.c: Likewise.
23313 * gimple-iterator.c: Likewise.
23314 * gimple-ssa-isolate-paths.c: Likewise.
23315 * gimple-ssa-strength-reduction.c: Likewise.
23316 * graph.c: Likewise.
23317 * graphite-blocking.c: Likewise.
23318 * graphite.c: Likewise.
23319 * graphite-dependences.c: Likewise.
23320 * graphite-interchange.c: Likewise.
23321 * graphite-isl-ast-to-gimple.c: Likewise.
23322 * graphite-optimize-isl.c: Likewise.
23323 * graphite-poly.c: Likewise.
23324 * graphite-scop-detection.c: Likewise.
23325 * graphite-sese-to-poly.c: Likewise.
23326 * haifa-sched.c: Likewise.
23327 * ifcvt.c: Likewise.
23328 * internal-fn.c: Likewise.
23329 * ipa-cp.c: Likewise.
23330 * ipa-profile.c: Likewise.
23331 * ipa-split.c: Likewise.
23332 * ipa-utils.c: Likewise.
23333 * ira-build.c: Likewise.
23334 * ira-color.c: Likewise.
23335 * ira-conflicts.c: Likewise.
23336 * ira-costs.c: Likewise.
23337 * ira-emit.c: Likewise.
23338 * ira-lives.c: Likewise.
23339 * jump.c: Likewise.
23340 * loop-doloop.c: Likewise.
23341 * loop-init.c: Likewise.
23342 * loop-invariant.c: Likewise.
23343 * loop-unroll.c: Likewise.
23344 * lower-subreg.c: Likewise.
23345 * lra-assigns.c: Likewise.
23347 * lra-coalesce.c: Likewise.
23348 * lra-constraints.c: Likewise.
23349 * lra-lives.c: Likewise.
23350 * lto-cgraph.c: Likewise.
23351 * lto-streamer-in.c: Likewise.
23352 * mode-switching.c: Likewise.
23353 * modulo-sched.c: Likewise.
23354 * omp-low.c: Likewise.
23355 * optabs.c: Likewise.
23356 * passes.c: Likewise.
23357 * postreload.c: Likewise.
23358 * postreload-gcse.c: Likewise.
23359 * profile.c: Likewise.
23360 * recog.c: Likewise.
23361 * regstat.c: Likewise.
23362 * reload1.c: Likewise.
23363 * reorg.c: Likewise.
23364 * rtlanal.c: Likewise.
23365 * sched-ebb.c: Likewise.
23366 * sel-sched-ir.c: Likewise.
23367 * sese.c: Likewise.
23368 * shrink-wrap.c: Likewise.
23369 * simplify-rtx.c: Likewise.
23370 * stmt.c: Likewise.
23371 * store-motion.c: Likewise.
23372 * tracer.c: Likewise.
23373 * trans-mem.c: Likewise.
23374 * tree-call-cdce.c: Likewise.
23375 * tree-cfg.c: Likewise.
23376 * tree-cfgcleanup.c: Likewise.
23377 * tree-chkp.c: Likewise.
23378 * tree-complex.c: Likewise.
23379 * tree-eh.c: Likewise.
23380 * tree-if-conv.c: Likewise.
23381 * tree-loop-distribution.c: Likewise.
23382 * tree-outof-ssa.c: Likewise.
23383 * tree-parloops.c: Likewise.
23384 * tree-predcom.c: Likewise.
23385 * tree-pretty-print.c: Likewise.
23386 * tree-profile.c: Likewise.
23387 * tree-sra.c: Likewise.
23388 * tree-ssa.c: Likewise.
23389 * tree-ssa-coalesce.c: Likewise.
23390 * tree-ssa-dce.c: Likewise.
23391 * tree-ssa-dom.c: Likewise.
23392 * tree-ssa-forwprop.c: Likewise.
23393 * tree-ssa-ifcombine.c: Likewise.
23394 * tree-ssa-loop-ch.c: Likewise.
23395 * tree-ssa-loop-im.c: Likewise.
23396 * tree-ssa-loop-ivcanon.c: Likewise.
23397 * tree-ssa-loop-ivopts.c: Likewise.
23398 * tree-ssa-loop-manip.c: Likewise.
23399 * tree-ssa-loop-prefetch.c: Likewise.
23400 * tree-ssa-loop-unswitch.c: Likewise.
23401 * tree-ssa-math-opts.c: Likewise.
23402 * tree-ssa-phiopt.c: Likewise.
23403 * tree-ssa-pre.c: Likewise.
23404 * tree-ssa-reassoc.c: Likewise.
23405 * tree-ssa-sink.c: Likewise.
23406 * tree-ssa-tail-merge.c: Likewise.
23407 * tree-ssa-threadedge.c: Likewise.
23408 * tree-ssa-threadupdate.c: Likewise.
23409 * tree-switch-conversion.c: Likewise.
23410 * tree-tailcall.c: Likewise.
23411 * tree-vect-data-refs.c: Likewise.
23412 * tree-vect-loop.c: Likewise.
23413 * tree-vect-loop-manip.c: Likewise.
23414 * tree-vectorizer.c: Likewise.
23415 * tree-vrp.c: Likewise.
23416 * ubsan.c: Likewise.
23417 * value-prof.c: Likewise.
23418 * varasm.c: Likewise.
23419 * var-tracking.c: Likewise.
23420 * config/aarch64/aarch64-builtins.c: Likewise.
23421 * config/aarch64/aarch64.c: Likewise.
23422 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23423 * config/alpha/alpha.c: Likewise.
23424 * config/arc/arc.c: Likewise.
23425 * config/arm/arm.c: Likewise.
23426 * config/avr/avr.c: Likewise.
23427 * config/bfin/bfin.c: Likewise.
23428 * config/c6x/c6x.c: Likewise.
23429 * config/cr16/cr16.c: Likewise.
23430 * config/cris/cris.c: Likewise.
23431 * config/darwin.c: Likewise.
23432 * config/darwin-c.c: Likewise.
23433 * config/epiphany/epiphany.c: Likewise.
23434 * config/epiphany/mode-switch-use.c: Likewise.
23435 * config/epiphany/resolve-sw-modes.c: Likewise.
23436 * config/fr30/fr30.c: Likewise.
23437 * config/frv/frv.c: Likewise.
23438 * config/ft32/ft32.c: Likewise.
23439 * config/h8300/h8300.c: Likewise.
23440 * config/i386/i386.c: Likewise.
23441 * config/i386/winnt.c: Likewise.
23442 * config/ia64/ia64.c: Likewise.
23443 * config/iq2000/iq2000.c: Likewise.
23444 * config/lm32/lm32.c: Likewise.
23445 * config/m32c/m32c.c: Likewise.
23446 * config/m32r/m32r.c: Likewise.
23447 * config/m68k/m68k.c: Likewise.
23448 * config/mcore/mcore.c: Likewise.
23449 * config/mep/mep.c: Likewise.
23450 * config/microblaze/microblaze.c: Likewise.
23451 * config/mips/mips.c: Likewise.
23452 * config/mmix/mmix.c: Likewise.
23453 * config/mn10300/mn10300.c: Likewise.
23454 * config/moxie/moxie.c: Likewise.
23455 * config/msp430/msp430.c: Likewise.
23456 * config/nds32/nds32.c: Likewise.
23457 * config/nds32/nds32-cost.c: Likewise.
23458 * config/nds32/nds32-fp-as-gp.c: Likewise.
23459 * config/nds32/nds32-intrinsic.c: Likewise.
23460 * config/nds32/nds32-isr.c: Likewise.
23461 * config/nds32/nds32-md-auxiliary.c: Likewise.
23462 * config/nds32/nds32-memory-manipulation.c: Likewise.
23463 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23464 * config/nds32/nds32-predicates.c: Likewise.
23465 * config/nios2/nios2.c: Likewise.
23466 * config/nvptx/nvptx.c: Likewise.
23467 * config/pa/pa.c: Likewise.
23468 * config/pdp11/pdp11.c: Likewise.
23469 * config/rl78/rl78.c: Likewise.
23470 * config/rs6000/rs6000.c: Likewise.
23471 * config/rx/rx.c: Likewise.
23472 * config/s390/s390.c: Likewise.
23473 * config/sh/sh.c: Likewise.
23474 * config/sh/sh-mem.cc: Likewise.
23475 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23476 * config/sh/sh_treg_combine.cc: Likewise.
23477 * config/sparc/sparc.c: Likewise.
23478 * config/spu/spu.c: Likewise.
23479 * config/stormy16/stormy16.c: Likewise.
23480 * config/tilegx/tilegx.c: Likewise.
23481 * config/tilepro/tilepro.c: Likewise.
23482 * config/v850/v850.c: Likewise.
23483 * config/vax/vax.c: Likewise.
23484 * config/visium/visium.c: Likewise.
23485 * config/xtensa/xtensa.c: Likewise.
23487 2015-07-10 Richard Biener <rguenther@suse.de>
23489 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
23490 (decision_tree::gen_gimple): Likewise.
23491 (decision_tree::gen_generic): Likewise.
23493 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23496 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
23497 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
23499 2015-07-10 Jakub Jelinek <jakub@redhat.com>
23501 PR middle-end/66820
23502 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
23503 or ORT_TASK contexts.
23504 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
23507 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23509 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
23512 2015-07-10 Tom de Vries <tom@codesourcery.com>
23514 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
23515 insert nit + 1 bound.
23517 2015-07-10 Richard Biener <rguenther@suse.de>
23519 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
23520 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
23521 (if_convertible_loop_p_1): For this always compute bb predicates.
23522 (if_convertible_loop_p): And free them.
23524 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23526 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
23529 2015-07-10 Richard Biener <rguenther@suse.de>
23531 PR tree-optimization/66823
23532 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
23533 inverted predicate.
23535 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
23537 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
23538 to handle mips[32|64]r3 and mips[32|64]r5.
23540 2015-07-09 Jakub Jelinek <jakub@redhat.com>
23542 PR middle-end/66633
23543 * tree-nested.c (get_static_chain): Or in a flag into
23544 info->static_chain_added.
23545 (get_frame_field, get_nonlocal_debug_decl): Likewise.
23546 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
23547 2015-07-01 changes.
23548 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
23549 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
23552 PR tree-optimization/66718
23553 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
23555 (vect_simd_lane_linear): New function.
23556 (vectorizable_simd_clone_call): Support using linear arguments for
23557 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
23559 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23562 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
23564 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23566 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
23567 Use machine mode, not enum machine_mode in the prototype.
23569 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
23570 classify 128-bit floating point support.
23571 (FLOAT128_IBM_P): Likewise.
23572 (FLOAT128_VECTOR_P): Likewise.
23573 (FLOAT128_2REG_P): Likewise.
23574 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
23575 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
23576 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
23577 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
23579 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
23580 tests against TFmode/TDmode, since those modes do not use VSX
23582 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
23584 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
23585 tests against TFmode, etc.
23586 (invalid_e500_subreg): Add tests against IFmode/KFmode.
23587 (reg_offset_addressing_ok_p): Likewise.
23588 (rs6000_legitimate_offset_address_p): Likewise.
23589 (rs6000_legitimize_address): Likewise.
23590 (rs6000_legitimize_reload_address): Likewise.
23591 (rs6000_legitimate_address_p): Clean up tests against TFmode and
23592 TDmode to use the new helper macros, which will include IFmode and
23594 (rs6000_emit_move): Likewise.
23595 (rs6000_darwin64_record_arg_recurse): Likewise.
23596 (print_operand): Likewise.
23597 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
23598 that uses a single vector register as a vector and not as a
23599 floating point register in terms of the calling sequence.
23600 (rs6000_discover_homogeneous_aggregate): Likewise.
23601 (rs6000_return_in_memory): Likewise.
23602 (init_cumulative_args): Likewise.
23603 (rs6000_function_arg_boundary): Likewise.
23604 (rs6000_function_arg_advance_1): Likewise.
23605 (rs6000_function_arg): Likewise.
23606 (rs6000_pass_by_reference): Likewise.
23607 (rs6000_gimplify_va_arg): Likewise.
23608 (rs6000_secondary_reload_memory): Use machine_mode not enum
23610 (rs6000_split_multireg_move): Use new helper macros.
23611 (spe_func_has_64bit_regs_p): Likewise.
23612 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
23613 (output_toc): Use new helper macros.
23614 (rs6000_register_move_cost): Likewise.
23615 (rs6000_function_value): Add IEEE 128-bit floating point calling
23617 (rs6000_libcall_value): Likewise.
23618 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
23619 floating point support.
23620 (rs6000_vector_mode_supported_p): Likewise.
23622 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
23624 PR rtl-optimization/66782
23625 * lra-int.h (struct lra_insn_recog_data): Add comment about
23626 clobbered hard regs for arg_hard_regs.
23627 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
23628 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
23629 Add condition for processing used hard regs.
23630 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
23631 Process clobbered hard regs.
23633 2015-07-09 Michael Matz <matz@suse.de>
23635 * genmatch.c (fprintf_indent): New function.
23636 (operand::gen_transform): Add indent parameter.
23637 (expr::gen_transform, c_expr::gen_transform,
23638 capture::gen_transform): Ditto and use fprintf_indent.
23639 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
23640 (dt_operand::gen, dt_operand::gen_predicate,
23641 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
23642 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
23643 (decision_tree::gen_gimple): Adjust calls and indent generated
23645 (decision_tree::gen_generic): Ditto.
23646 (write_predicate): Ditto.
23648 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23651 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
23652 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
23653 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
23654 {GENERAL,SSE,MMX}_REG_P where appropriate.
23656 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
23658 * lto-streamer.h: Don't include target.h and alloc-pool.h.
23659 * builtins.c: Adjust includes.
23660 * gimple.c: Likewise.
23661 * ipa-icf.c: Likewise.
23662 * lto-opts.c: Likewise.
23663 * ipa-reference.c: Likewise.
23664 * lto-section-out.c: Likewise.
23665 * lto-streamer-in.c: Likewise.
23666 * lto-streamer-out.c: Likewise.
23667 * opts-global.c: Likewise.
23668 * symtab.c: Likewise.
23669 * tree-chkp.c: Likewise.
23670 * tree-ssa-live.c: Likewise.
23671 * tree-streamer-in.c: Likewise.
23672 * tree-streamer-out.c: Likewise.
23673 * config/darwin.c: Likewise.
23674 * config/i386/winnt.c: Likewise.
23676 2015-07-09 Richard Biener <rguenther@suse.de>
23678 * genmatch.c (struct expr): Add force_single_use flag.
23679 (expr::expr): Add copy constructor.
23680 (capture_info::walk_match): Gather force_single_use captures.
23681 (expr::gen_transform): Use possibly NULLified sequence.
23682 (dt_simplify::gen): Apply single-use restrictions by NULLifying
23683 seq if any constrained expr is not single-use.
23684 (parser::parse_expr): Refactor to allow multiple flags. Handle
23685 's' flag to force an expression have a single-use if the pattern
23686 simplifies to more than one statement.
23687 * match.pd: Convert most single_use conditionals to :s flags.
23689 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23691 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
23692 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
23693 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
23695 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
23697 * flags.h: Don't include flag-types.h or options.h.
23698 * opts-common.c: Adjust includes.
23699 * opts-global.c: Likewise.
23700 * common/config/epiphany/epiphany-common.c: Likewise.
23702 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23705 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
23708 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23711 * config/i386/i386.c (ix86_return_in_memory): Return true
23712 if int_size_in_bytes returns negative for IA MCU.
23714 2015-07-09 Marek Polacek <polacek@redhat.com>
23716 PR tree-optimization/66718
23717 * Makefile.in (OBJS): Add gimple-laddress.o.
23718 * passes.def: Schedule pass_laddress.
23719 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
23720 * tree-pass.h (make_pass_laddress): Declare.
23721 * gimple-laddress.c: New file.
23723 2015-07-09 Richard Biener <rguenther@suse.de>
23725 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
23727 2015-07-09 Richard Biener <rguenther@suse.de>
23729 PR tree-optimization/66807
23730 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
23732 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
23734 * function.c (stack_protect_epilogue): Use if rather than switch for
23735 check targetm.have_stack_protect_test.
23737 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23739 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
23740 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
23741 * config/arc/arc.h: Likewise.
23742 * config/arm/arm.h: Likewise.
23743 * config/bfin/bfin.h: Likewise.
23744 * config/epiphany/epiphany.h: Likewise.
23745 * config/frv/frv.h: Likewise.
23746 * config/ia64/ia64.h: Likewise.
23747 * config/iq2000/iq2000.h: Likewise.
23748 * config/lm32/lm32.h: Likewise.
23749 * config/m32r/m32r.h: Likewise.
23750 * config/mcore/mcore.h: Likewise.
23751 * config/mep/mep.h: Likewise.
23752 * config/microblaze/microblaze.h: Likewise.
23753 * config/mips/mips.h: Likewise.
23754 * config/mmix/mmix.h: Likewise.
23755 * config/mn10300/mn10300.h: Likewise.
23756 * config/nds32/nds32.h: Likewise.
23757 * config/nios2/nios2.h: Likewise.
23758 * config/pa/pa.h: Likewise.
23759 * config/rl78/rl78.h: Likewise.
23760 * config/sh/sh.h: Likewise.
23761 * config/sparc/sparc.h: Likewise.
23762 * config/stormy16/stormy16.h: Likewise.
23763 * config/tilegx/tilegx.h: Likewise.
23764 * config/tilepro/tilepro.h: Likewise.
23765 * config/v850/v850.h: Likewise.
23766 * config/xtensa/xtensa.h: Likewise.
23767 * doc/tm.texi: Regenerate.
23768 * doc/tm.texi.in: Adjust.
23769 * combine.c (simplify_set): Likewise.
23770 (simplify_comparison): Likewise.
23771 * expr.c (store_constructor): Likewise.
23772 * internal-fn.c (expand_arith_overflow): Likewise.
23773 * reload.c (push_reload): Likewise.
23774 (find_reloads): Likewise.
23775 (find_reloads_subreg_address): Likewise.
23776 * reload1.c (eliminate_regs_1): Likewise.
23777 * rtlanal.c (nonzero_bits1): Likewise.
23778 (num_sign_bit_copies1): Likewise.
23779 * simplify-rtx.c (simplify_truncation): Likewise.
23781 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23783 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
23784 of AUTO_INC_DEC with the preprocessor.
23785 * combine.c (combine_instructions): Likewise.
23786 (can_combine_p): Likewise.
23787 (try_combine): Likewise.
23788 * emit-rtl.c (try_split): Likewise.
23789 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23790 * lower-subreg.c (resolve_simple_move): Likewise.
23791 * lra.c (update_inc_notes): Likewise.
23792 * recog.c (asm_operand_ok): Likewise.
23793 (constrain_operands): Likewise.
23794 * regrename.c (scan_rtx_address): Likewise.
23795 * reload.c (update_auto_inc_notes): Likewise.
23796 (reg_inc_found_and_valid_p): Likewise.
23797 * reload1.c (reload): Likewise.
23798 (emit_input_reload_insns): Likewise.
23799 (delete_output_reload): Likewise.
23800 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23801 * valtrack.c (cleanup_auto_inc_dec): Likewise.
23803 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23805 * rtl.h: Always define AUTO_INC_DEC.
23806 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
23807 * combine.c (combine_instructions): Likewise.
23808 (can_combine_p): Likewise.
23809 (try_combine): Likewise.
23810 * emit-rtl.c (try_split): Likewise.
23811 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
23812 * lower-subreg.c (resolve_simple_move): Likewise.
23813 * lra.c (update_inc_notes): Likewise.
23814 * recog.c (asm_operand_ok): Likewise.
23815 (constrain_operands): Likewise.
23816 * regrename.c (scan_rtx_address): Likewise.
23817 * reload.c (update_auto_inc_notes): Likewise.
23818 (find_equiv_reg): Likewise.
23819 * reload1.c (reload): Likewise.
23820 (reload_as_needed): Likewise.
23821 (choose_reload_regs): Likewise.
23822 (emit_input_reload_insns): Likewise.
23823 (delete_output_reload): Likewise.
23824 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23825 * valtrack.c (cleanup_auto_inc_dec): Likewise.
23827 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23829 * combine.c (can_combine_def_p): Don't check the value of
23830 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
23831 (combinable_i3pat): Likewise.
23832 (mark_used_regs_combine): Likewise.
23833 * regrename.c (rename_chains): Likewise.
23834 * reload.c (find_reloads_address): Likewise.
23835 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23837 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23839 * combine.c (update_rsp_from_reg_equal): Don't check if
23840 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
23841 (reg_nonzero_bits_for_combine): Likewise.
23842 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
23844 * config/frv/frv.h: Likewise.
23845 * config/lm32/lm32.h: Likewise.
23846 * config/mep/mep.h: Likewise.
23847 * config/mips/mips.h: Likewise.
23848 * config/rs6000/rs6000.h: Likewise.
23849 * config/sh/sh.h: Likewise.
23850 * config/tilegx/tilegx.h (enum reg_class): Likewise.
23851 * config/tilepro/tilepro.h: Likewise.
23852 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
23853 * doc/tm.texi: Regenerate.
23854 * doc/tm.texi.in: Adjust.
23855 * rtlanal.c (nonzero_bits1): Likewise.
23857 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23859 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
23860 with the preprocessor.
23861 (combine_instructions): Likewise.
23862 (try_combine): Likewise.
23864 (distribute_notes): Likewise.
23866 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23868 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
23870 (simplify_set): Likewise.
23871 * cse.c (cse_insn): Likewise.
23872 * fold-const.c (fold_single_bit_test): Likewise.
23873 (fold_unary_loc): Likewise.
23874 * postreload.c (reload_cse_simplify_set): Likewise.
23875 (reload_cse_simplify_operands): Likewise.
23877 2015-07-08 Jiong Wang <jiong.wang@arm.com>
23879 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
23880 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
23882 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
23885 * config/i386/x86intrin.h: Include <adxintrin.h> even if
23886 __iamcu__ is defined.
23888 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23890 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
23892 2015-07-08 Iain Sandoe <iain@codesourcery.com>
23895 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
23896 names from preservation.
23898 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
23901 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
23903 (function_arg_advance_32): Don't pass vectors in registers for
23905 (function_arg_32): Likewise.
23906 (ix86_return_in_memory): Don't return vectors in registers for
23909 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
23911 PR middle-end/66334
23912 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
23913 hard regno live at the start of BB with incoming abnormal edges.
23914 * lra-lives.c (process_bb_lives): Ditto.
23916 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
23919 * config/nvptx/mkoffload.c (main): Create an offload image only in
23920 64-bit configurations.
23922 2015-07-08 Martin Liska <mliska@suse.cz>
23925 * tree-sra.c (create_access_1): Call ctor without brackets.
23926 (create_artificial_child_access): Likewise.
23928 2015-07-08 Richard Biener <rguenther@suse.de>
23930 PR tree-optimization/66793
23931 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
23932 Properly split the block after stmts ending it.
23934 2015-07-08 Richard Biener <rguenther@suse.de>
23936 PR tree-optimization/66794
23937 * passes.c (execute_function_todo): Assert that post-dominators
23939 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
23940 Free post-dominators.
23942 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23944 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
23947 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23949 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
23950 more than or equal 8 and less than 32 when optimizing for size.
23952 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23954 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
23955 COSTS_N_INSNS (1) and increment it appropriately throughout the
23958 2015-07-08 Richard Biener <rguenther@suse.de>
23960 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
23962 2015-07-08 Alan Modra <amodra@gmail.com>
23964 * target.def (rtx_costs): Remove "code" param, add "mode".
23965 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
23966 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
23967 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
23968 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
23969 call. Track mode when given in rtx.
23970 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
23971 (default_address_cost): Pass Pmode to rtx_cost.
23972 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
23973 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
23975 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
23976 (notreg_cost): Add mode param. Use it.
23977 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
23978 mode param and pass to set_src_cost. Update all calls.
23979 (hash_scan_set): Formatting.
23980 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
23981 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
23983 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
23984 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
23985 emit_store_flag): Update set_src_cost and rtx_cost calls.
23986 * auto-inc-dec.c (attempt_change): Likewise.
23987 * calls.c (precompute_register_parameters): Likewise.
23988 * combine.c (expand_compound_operation, make_extraction,
23989 force_to_mode, distribute_and_simplify_rtx): Likewise.
23990 * dojump.c (prefer_and_bit_test): Likewise.
23991 * dse.c (find_shift_sequence): Likewise.
23992 * expr.c (compress_float_constant): Likewise.
23993 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
23994 * ifcvt.c (noce_try_sign_mask): Likewise.
23995 * loop-doloop.c (doloop_optimize): Likewise.
23996 * loop-invariant.c (create_new_invariant): Likewise.
23997 * lower-subreg.c (shift_cost, compute_costs): Likewise.
23998 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
23999 lshift_cheap_p): Likewise.
24000 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
24001 try_replace_in_use, reload_cse_move2add): Likewise.
24002 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
24004 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24005 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
24006 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
24007 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24008 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
24009 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
24011 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
24012 * config/arc/arc.c (arc_rtx_costs): Likewise.
24013 * config/arm/arm.c (arm_rtx_costs): Likewise.
24014 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
24015 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
24016 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
24017 * config/cris/cris.c (cris_rtx_costs): Likewise.
24018 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
24019 * config/frv/frv.c (frv_rtx_costs): Likewise.
24020 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
24021 * config/i386/i386.c (ix86_rtx_costs): Likewise.
24022 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
24023 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
24024 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
24025 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
24026 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
24027 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
24028 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
24029 * config/mep/mep.c (mep_rtx_cost): Likewise.
24030 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
24031 * config/mips/mips.c (mips_rtx_costs): Likewise.
24032 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
24033 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
24034 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
24035 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
24036 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
24037 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
24038 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
24039 * config/pa/pa.c (hppa_rtx_costs): Likewise.
24040 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
24041 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
24042 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
24043 * config/s390/s390.c (s390_rtx_costs): Likewise.
24044 * config/sh/sh.c (sh_rtx_costs): Likewise.
24045 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
24046 * config/spu/spu.c (spu_rtx_costs): Likewise.
24047 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
24048 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
24049 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
24050 * config/v850/v850.c (v850_rtx_costs): Likewise.
24051 * config/vax/vax.c (vax_rtx_costs): Likewise.
24052 * config/visium/visium.c (visium_rtx_costs): Likewise.
24053 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
24054 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
24055 "code" param, and pass as outer_code to first rtx_cost call. Pass
24056 mode to rtx_cost calls.
24057 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
24059 (aarch64_rtx_costs_wrapper): Update.
24060 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
24061 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
24063 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
24064 and rtx_cost calls.
24065 (avr_operand_rtx_cost): Similarly.
24066 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
24067 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
24068 * config/mips/mips.c (mips_stack_address_p): Comment typo.
24069 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
24070 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
24071 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
24073 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
24074 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
24075 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
24076 * doc/tm.texi: Regenerate.
24078 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
24080 * tree-core.h: Include symtab.h.
24081 * rtl.h: Include hard-reg-set.h but not flags.h.
24082 (HARD_CONST): Remove condition compilation involving HARD_CONST since
24083 hard-reg-set.h is always included.
24084 * regs.h: Don't include hard-reg-set.h or rtl.h.
24085 * cfg.h: Include dominance.h.
24086 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
24087 * backend.h: New. Aggregate commonly used backend header files.
24088 * gimple-ssa.h: Don't include tree-hasher.h.
24089 * ssa.h: New. Aggregate commonly used SSA header files.
24090 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
24091 * sel-sched-ir.h: Flatten includes.
24092 * lra-int.h: Flatten completely.
24093 * sel-sched-dump.h: Flatten includes.
24094 * ira-int.h: Flatten includes.
24095 * gimple-streamer.h: Remove all includes.
24096 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
24097 * resource.h: Flatten hard-reg-set.h and df.h.
24098 * sched-int.h: Flatten insn-arrt.h and df.h.
24099 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
24100 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
24101 * genattrtab.c (write_header): Adjust generated includes.
24102 * genautomata.c (main): Likewise.
24103 * genconditions.c (write-header): Likewise.
24104 * genemit.c (main): Likewise.
24105 * gengtype.c (open_base_files): Likewise.
24106 * genopinit.c (main): Likewise.
24107 * genoutput.c (output_prologue): Likewise.
24108 * genpeep.c (main): Likewise.
24109 * genpreds.c (write_insn_preds_c): Likewise.
24110 * genrecog.c (write_header): Likewise.
24111 * alias.c: Adjust includes.
24112 * asan.c: Likewise.
24113 * attribs.c: Likewise.
24114 * auto-inc-dec.c: Likewise.
24115 * auto-profile.c: Likewise.
24116 * bb-reorder.c: Likewise.
24117 * bt-load.c: Likewise.
24118 * builtins.c: Likewise.
24119 * caller-save.c: Likewise.
24120 * calls.c: Likewise.
24121 * ccmp.c: Likewise.
24123 * cfganal.c: Likewise.
24124 * cfgbuild.c: Likewise.
24125 * cfgcleanup.c: Likewise.
24126 * cfgexpand.c: Likewise.
24127 * cfghooks.c: Likewise.
24128 * cfgloop.c: Likewise.
24129 * cfgloopanal.c: Likewise.
24130 * cfgloopmanip.c: Likewise.
24131 * cfgrtl.c: Likewise.
24132 * cgraph.c: Likewise.
24133 * cgraphbuild.c: Likewise.
24134 * cgraphclones.c: Likewise.
24135 * cgraphunit.c: Likewise.
24136 * cilk-common.c: Likewise.
24137 * combine-stack-adj.c: Likewise.
24138 * combine.c: Likewise.
24139 * compare-elim.c: Likewise.
24140 * convert.c: Likewise.
24141 * coverage.c: Likewise.
24142 * cppbuiltin.c: Likewise.
24143 * cprop.c: Likewise.
24145 * cselib.c: Likewise.
24146 * data-streamer-in.c: Likewise.
24147 * data-streamer-out.c: Likewise.
24148 * data-streamer.c: Likewise.
24149 * dbxout.c: Likewise.
24152 * debug.c: Likewise.
24153 * df-core.c: Likewise.
24154 * df-problems.c: Likewise.
24155 * df-scan.c: Likewise.
24157 * dojump.c: Likewise.
24158 * dominance.c: Likewise.
24159 * domwalk.c: Likewise.
24160 * double-int.c: Likewise.
24162 * dumpfile.c: Likewise.
24163 * dwarf2asm.c: Likewise.
24164 * dwarf2cfi.c: Likewise.
24165 * dwarf2out.c: Likewise.
24166 * emit-rtl.c: Likewise.
24167 * et-forest.c: Likewise.
24168 * except.c: Likewise.
24169 * explow.c: Likewise.
24170 * expmed.c: Likewise.
24171 * expr.c: Likewise.
24172 * final.c: Likewise.
24173 * fixed-value.c: Likewise.
24174 * fold-const.c: Likewise.
24175 * function.c: Likewise.
24176 * fwprop.c: Likewise.
24177 * gcc-plugin.h: Likewise.
24178 * gcse-common.c: Likewise.
24179 * gcse.c: Likewise.
24180 * generic-match-head.c: Likewise.
24181 * ggc-page.c: Likewise.
24182 * gimple-builder.c: Likewise.
24183 * gimple-expr.c: Likewise.
24184 * gimple-fold.c: Likewise.
24185 * gimple-iterator.c: Likewise.
24186 * gimple-low.c: Likewise.
24187 * gimple-match-head.c: Likewise.
24188 * gimple-pretty-print.c: Likewise.
24189 * gimple-ssa-isolate-paths.c: Likewise.
24190 * gimple-ssa-strength-reduction.c: Likewise.
24191 * gimple-streamer-in.c: Likewise.
24192 * gimple-streamer-out.c: Likewise.
24193 * gimple-walk.c: Likewise.
24194 * gimple.c: Likewise.
24195 * gimplify-me.c: Likewise.
24196 * gimplify.c: Likewise.
24197 * godump.c: Likewise.
24198 * graph.c: Likewise.
24199 * graphite-blocking.c: Likewise.
24200 * graphite-dependences.c: Likewise.
24201 * graphite-interchange.c: Likewise.
24202 * graphite-isl-ast-to-gimple.c: Likewise.
24203 * graphite-optimize-isl.c: Likewise.
24204 * graphite-poly.c: Likewise.
24205 * graphite-scop-detection.c: Likewise.
24206 * graphite-sese-to-poly.c: Likewise.
24207 * graphite.c: Likewise.
24208 * haifa-sched.c: Likewise.
24209 * hw-doloop.c: Likewise.
24210 * ifcvt.c: Likewise.
24211 * init-regs.c: Likewise.
24212 * internal-fn.c: Likewise.
24213 * ipa-chkp.c: Likewise.
24214 * ipa-comdats.c: Likewise.
24215 * ipa-cp.c: Likewise.
24216 * ipa-devirt.c: Likewise.
24217 * ipa-icf-gimple.c: Likewise.
24218 * ipa-icf.c: Likewise.
24219 * ipa-inline-analysis.c: Likewise.
24220 * ipa-inline-transform.c: Likewise.
24221 * ipa-inline.c: Likewise.
24222 * ipa-polymorphic-call.c: Likewise.
24223 * ipa-profile.c: Likewise.
24224 * ipa-prop.c: Likewise.
24225 * ipa-pure-const.c: Likewise.
24226 * ipa-ref.c: Likewise.
24227 * ipa-reference.c: Likewise.
24228 * ipa-split.c: Likewise.
24229 * ipa-utils.c: Likewise.
24230 * ipa-visibility.c: Likewise.
24232 * ira-build.c: Likewise.
24233 * ira-color.c: Likewise.
24234 * ira-conflicts.c: Likewise.
24235 * ira-costs.c: Likewise.
24236 * ira-emit.c: Likewise.
24237 * ira-lives.c: Likewise.
24239 * jump.c: Likewise.
24240 * langhooks.c: Likewise.
24242 * loop-doloop.c: Likewise.
24243 * loop-init.c: Likewise.
24244 * loop-invariant.c: Likewise.
24245 * loop-iv.c: Likewise.
24246 * loop-unroll.c: Likewise.
24247 * lower-subreg.c: Likewise.
24248 * lra-assigns.c: Likewise.
24249 * lra-coalesce.c: Likewise.
24250 * lra-constraints.c: Likewise.
24251 * lra-eliminations.c: Likewise.
24252 * lra-lives.c: Likewise.
24253 * lra-remat.c: Likewise.
24254 * lra-spills.c: Likewise.
24256 * lto-cgraph.c: Likewise.
24257 * lto-compress.c: Likewise.
24258 * lto-opts.c: Likewise.
24259 * lto-section-in.c: Likewise.
24260 * lto-section-out.c: Likewise.
24261 * lto-streamer-in.c: Likewise.
24262 * lto-streamer-out.c: Likewise.
24263 * lto-streamer.c: Likewise.
24265 * mode-switching.c: Likewise.
24266 * modulo-sched.c: Likewise.
24267 * omega.c: Likewise.
24268 * omp-low.c: Likewise.
24269 * optabs.c: Likewise.
24270 * opts-global.c: Likewise.
24271 * passes.c: Likewise.
24272 * plugin.c: Likewise.
24273 * postreload-gcse.c: Likewise.
24274 * postreload.c: Likewise.
24275 * predict.c: Likewise.
24276 * print-rtl.c: Likewise.
24277 * print-tree.c: Likewise.
24278 * profile.c: Likewise.
24279 * real.c: Likewise.
24280 * realmpfr.c: Likewise.
24281 * recog.c: Likewise.
24283 * reg-stack.c: Likewise.
24284 * regcprop.c: Likewise.
24285 * reginfo.c: Likewise.
24286 * regrename.c: Likewise.
24287 * regstat.c: Likewise.
24288 * reload.c: Likewise.
24289 * reload1.c: Likewise.
24290 * reorg.c: Likewise.
24291 * resource.c: Likewise.
24292 * rtl-chkp.c: Likewise.
24293 * rtlanal.c: Likewise.
24294 * rtlhooks.c: Likewise.
24295 * sanopt.c: Likewise.
24296 * sched-deps.c: Likewise.
24297 * sched-ebb.c: Likewise.
24298 * sched-rgn.c: Likewise.
24299 * sched-vis.c: Likewise.
24300 * sdbout.c: Likewise.
24301 * sel-sched-dump.c: Likewise.
24302 * sel-sched-ir.c: Likewise.
24303 * sel-sched.c: Likewise.
24304 * sese.c: Likewise.
24305 * shrink-wrap.c: Likewise.
24306 * simplify-rtx.c: Likewise.
24307 * stack-ptr-mod.c: Likewise.
24308 * stmt.c: Likewise.
24309 * stor-layout.c: Likewise.
24310 * store-motion.c: Likewise.
24311 * stringpool.c: Likewise.
24312 * symtab.c: Likewise.
24313 * target-globals.c: Likewise.
24314 * targhooks.c: Likewise.
24315 * toplev.c: Likewise.
24316 * tracer.c: Likewise.
24317 * trans-mem.c: Likewise.
24318 * tree-affine.c: Likewise.
24319 * tree-browser.c: Likewise.
24320 * tree-call-cdce.c: Likewise.
24321 * tree-cfg.c: Likewise.
24322 * tree-cfgcleanup.c: Likewise.
24323 * tree-chkp-opt.c: Likewise.
24324 * tree-chkp.c: Likewise.
24325 * tree-chrec.c: Likewise.
24326 * tree-complex.c: Likewise.
24327 * tree-data-ref.c: Likewise.
24328 * tree-dfa.c: Likewise.
24329 * tree-diagnostic.c: Likewise.
24330 * tree-dump.c: Likewise.
24331 * tree-eh.c: Likewise.
24332 * tree-emutls.c: Likewise.
24333 * tree-if-conv.c: Likewise.
24334 * tree-inline.c: Likewise.
24335 * tree-into-ssa.c: Likewise.
24336 * tree-iterator.c: Likewise.
24337 * tree-loop-distribution.c: Likewise.
24338 * tree-nested.c: Likewise.
24339 * tree-nrv.c: Likewise.
24340 * tree-object-size.c: Likewise.
24341 * tree-outof-ssa.c: Likewise.
24342 * tree-parloops.c: Likewise.
24343 * tree-phinodes.c: Likewise.
24344 * tree-predcom.c: Likewise.
24345 * tree-pretty-print.c: Likewise.
24346 * tree-profile.c: Likewise.
24347 * tree-scalar-evolution.c: Likewise.
24348 * tree-sra.c: Likewise.
24349 * tree-ssa-address.c: Likewise.
24350 * tree-ssa-alias.c: Likewise.
24351 * tree-ssa-ccp.c: Likewise.
24352 * tree-ssa-coalesce.c: Likewise.
24353 * tree-ssa-copy.c: Likewise.
24354 * tree-ssa-copyrename.c: Likewise.
24355 * tree-ssa-dce.c: Likewise.
24356 * tree-ssa-dom.c: Likewise.
24357 * tree-ssa-dse.c: Likewise.
24358 * tree-ssa-forwprop.c: Likewise.
24359 * tree-ssa-ifcombine.c: Likewise.
24360 * tree-ssa-live.c: Likewise.
24361 * tree-ssa-loop-ch.c: Likewise.
24362 * tree-ssa-loop-im.c: Likewise.
24363 * tree-ssa-loop-ivcanon.c: Likewise.
24364 * tree-ssa-loop-ivopts.c: Likewise.
24365 * tree-ssa-loop-manip.c: Likewise.
24366 * tree-ssa-loop-niter.c: Likewise.
24367 * tree-ssa-loop-prefetch.c: Likewise.
24368 * tree-ssa-loop-unswitch.c: Likewise.
24369 * tree-ssa-loop.c: Likewise.
24370 * tree-ssa-math-opts.c: Likewise.
24371 * tree-ssa-operands.c: Likewise.
24372 * tree-ssa-phiopt.c: Likewise.
24373 * tree-ssa-phiprop.c: Likewise.
24374 * tree-ssa-pre.c: Likewise.
24375 * tree-ssa-propagate.c: Likewise.
24376 * tree-ssa-reassoc.c: Likewise.
24377 * tree-ssa-sccvn.c: Likewise.
24378 * tree-ssa-scopedtables.c: Likewise.
24379 * tree-ssa-sink.c: Likewise.
24380 * tree-ssa-strlen.c: Likewise.
24381 * tree-ssa-structalias.c: Likewise.
24382 * tree-ssa-tail-merge.c: Likewise.
24383 * tree-ssa-ter.c: Likewise.
24384 * tree-ssa-threadedge.c: Likewise.
24385 * tree-ssa-threadupdate.c: Likewise.
24386 * tree-ssa-uncprop.c: Likewise.
24387 * tree-ssa-uninit.c: Likewise.
24388 * tree-ssa.c: Likewise.
24389 * tree-ssanames.c: Likewise.
24390 * tree-stdarg.c: Likewise.
24391 * tree-streamer-in.c: Likewise.
24392 * tree-streamer-out.c: Likewise.
24393 * tree-streamer.c: Likewise.
24394 * tree-switch-conversion.c: Likewise.
24395 * tree-tailcall.c: Likewise.
24396 * tree-vect-data-refs.c: Likewise.
24397 * tree-vect-generic.c: Likewise.
24398 * tree-vect-loop-manip.c: Likewise.
24399 * tree-vect-loop.c: Likewise.
24400 * tree-vect-patterns.c: Likewise.
24401 * tree-vect-slp.c: Likewise.
24402 * tree-vect-stmts.c: Likewise.
24403 * tree-vectorizer.c: Likewise.
24404 * tree-vrp.c: Likewise.
24405 * tree.c: Likewise.
24406 * tsan.c: Likewise.
24407 * ubsan.c: Likewise.
24408 * valtrack.c: Likewise.
24409 * value-prof.c: Likewise.
24410 * var-tracking.c: Likewise.
24411 * varasm.c: Likewise.
24412 * varpool.c: Likewise.
24413 * vmsdbgout.c: Likewise.
24414 * vtable-verify.c: Likewise.
24416 * wide-int.cc: Likewise.
24417 * xcoffout.c: Likewise.
24418 * config/aarch64/aarch64-builtins.c: Likewise.
24419 * config/aarch64/aarch64.c: Likewise.
24420 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24421 * config/alpha/alpha.c: Likewise.
24422 * config/arc/arc.c: Likewise.
24423 * config/arm/aarch-common.c: Likewise.
24424 * config/arm/arm-builtins.c: Likewise.
24425 * config/arm/arm-c.c: Likewise.
24426 * config/arm/arm.c: Likewise.
24427 * config/avr/avr-c.c: Likewise.
24428 * config/avr/avr-log.c: Likewise.
24429 * config/avr/avr.c: Likewise.
24430 * config/bfin/bfin.c: Likewise.
24431 * config/c6x/c6x.c: Likewise.
24432 * config/cr16/cr16.c: Likewise.
24433 * config/cris/cris.c: Likewise.
24434 * config/darwin-c.c: Likewise.
24435 * config/darwin.c: Likewise.
24436 * config/epiphany/epiphany.c: Likewise.
24437 * config/epiphany/mode-switch-use.c: Likewise.
24438 * config/epiphany/resolve-sw-modes.c: Likewise.
24439 * config/fr30/fr30.c: Likewise.
24440 * config/frv/frv.c: Likewise.
24441 * config/ft32/ft32.c: Likewise.
24442 * config/h8300/h8300.c: Likewise.
24443 * config/i386/i386-c.c: Likewise.
24444 * config/i386/i386.c: Likewise.
24445 * config/i386/msformat-c.c: Likewise.
24446 * config/i386/winnt-cxx.c: Likewise.
24447 * config/i386/winnt-stubs.c: Likewise.
24448 * config/i386/winnt.c: Likewise.
24449 * config/ia64/ia64-c.c: Likewise.
24450 * config/ia64/ia64.c: Likewise.
24451 * config/iq2000/iq2000.c: Likewise.
24452 * config/lm32/lm32.c: Likewise.
24453 * config/m32c/m32c-pragma.c: Likewise.
24454 * config/m32c/m32c.c: Likewise.
24455 * config/m32r/m32r.c: Likewise.
24456 * config/m68k/m68k.c: Likewise.
24457 * config/mcore/mcore.c: Likewise.
24458 * config/mep/mep-pragma.c: Likewise.
24459 * config/mep/mep.c: Likewise.
24460 * config/microblaze/microblaze-c.c: Likewise.
24461 * config/microblaze/microblaze.c: Likewise.
24462 * config/mips/mips.c: Likewise.
24463 * config/mmix/mmix.c: Likewise.
24464 * config/mn10300/mn10300.c: Likewise.
24465 * config/moxie/moxie.c: Likewise.
24466 * config/msp430/msp430-c.c: Likewise.
24467 * config/msp430/msp430.c: Likewise.
24468 * config/nds32/nds32-cost.c: Likewise.
24469 * config/nds32/nds32-fp-as-gp.c: Likewise.
24470 * config/nds32/nds32-intrinsic.c: Likewise.
24471 * config/nds32/nds32-isr.c: Likewise.
24472 * config/nds32/nds32-md-auxiliary.c: Likewise.
24473 * config/nds32/nds32-memory-manipulation.c: Likewise.
24474 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24475 * config/nds32/nds32-predicates.c: Likewise.
24476 * config/nds32/nds32.c: Likewise.
24477 * config/nios2/nios2.c: Likewise.
24478 * config/nvptx/nvptx.c: Likewise.
24479 * config/pa/pa.c: Likewise.
24480 * config/pdp11/pdp11.c: Likewise.
24481 * config/rl78/rl78-c.c: Likewise.
24482 * config/rl78/rl78.c: Likewise.
24483 * config/rs6000/rs6000-c.c: Likewise.
24484 * config/rs6000/rs6000.c: Likewise.
24485 * config/rx/rx.c: Likewise.
24486 * config/s390/s390-c.c: Likewise.
24487 * config/s390/s390.c: Likewise.
24488 * config/sh/sh-c.c: Likewise.
24489 * config/sh/sh-mem.cc: Likewise.
24490 * config/sh/sh.c: Likewise.
24491 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24492 * config/sh/sh_treg_combine.cc: Likewise.
24493 * config/sol2-c.c: Likewise.
24494 * config/sol2-cxx.c: Likewise.
24495 * config/sol2-stubs.c: Likewise.
24496 * config/sol2.c: Likewise.
24497 * config/sparc/sparc-c.c: Likewise.
24498 * config/sparc/sparc.c: Likewise.
24499 * config/spu/spu-c.c: Likewise.
24500 * config/spu/spu.c: Likewise.
24501 * config/stormy16/stormy16.c: Likewise.
24502 * config/tilegx/mul-tables.c: Likewise.
24503 * config/tilegx/tilegx-c.c: Likewise.
24504 * config/tilegx/tilegx.c: Likewise.
24505 * config/tilepro/mul-tables.c: Likewise.
24506 * config/tilepro/tilepro-c.c: Likewise.
24507 * config/tilepro/tilepro.c: Likewise.
24508 * config/v850/v850-c.c: Likewise.
24509 * config/v850/v850.c: Likewise.
24510 * config/vax/vax.c: Likewise.
24511 * config/visium/visium.c: Likewise.
24512 * config/vms/vms-c.c: Likewise.
24513 * config/vms/vms.c: Likewise.
24514 * config/vxworks.c: Likewise.
24515 * config/xtensa/xtensa.c: Likewise.
24517 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
24519 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
24520 Remove operand constraints. Change operand 2 predicate to
24521 nonmemory operand. Limit const_int values to mode bitsize. Only
24522 allow const_int values less than 32 when optimizing for size.
24523 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
24524 Remove operand constraints.
24525 (*bt<mode>): Use SImode for const_int values less than 32.
24526 (regmode): Remove mode attribute.
24528 2015-07-07 Anatoly Sokolov <aesok@post.ru>
24530 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24531 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
24532 moxie_legitimate_address_p): New functions.
24533 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
24535 2015-07-07 Tom de Vries <tom@codesourcery.com>
24537 PR tree-optimization/66642
24538 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
24539 header comment. Rename split_edge variable to edge_at_split. Split
24540 exit edge to create new loop exit bb. Insert loop exit phis in new
24543 2015-07-07 Tom de Vries <tom@codesourcery.com>
24545 * tree-cfg.c (get_virtual_phi): New function.
24546 * tree-cfg.h (get_virtual_phi): Declare.
24547 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
24548 (rewrite_virtuals_into_loop_closed_ssa): New function.
24549 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
24551 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
24552 (transform_to_exit_first_loop_alt): Use
24553 rewrite_virtuals_into_loop_closed_ssa.
24555 2015-07-07 Richard Biener <rguenther@suse.de>
24557 * fold-const.c (fold_binary_loc): Move
24558 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
24559 * match.pd: ... here.
24560 Add (X * C1) % C2 -> 0 simplification pattern derived from
24563 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
24566 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
24567 change for target/65249.
24569 2015-07-07 Paulo Matos <pmatos@broadcom.com>
24571 * symtab.c (address_matters_1): Fix typo in comment above.
24572 (can_increase_alignment_p): Likewise.
24574 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24576 * function.c (free_after_compilation): Clear PROP_cfg in
24577 f->curr_properties.
24579 2015-07-07 Richard Biener <rguenther@suse.de>
24581 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
24583 (add_control_edge): Remove excessive vertical space in dumping.
24584 (process_ssa_edge_worklist): Simulate at most one statement and
24585 return whether we did. Do not simulate PHIs if they are in a
24586 BB not yet simulated.
24587 (ssa_propagate): Adjust to always drain the BB worklist whenever
24588 a BB is available there, likewise the VARYING edges list before
24589 the interesting edge list.
24591 2015-07-07 Christian Bruel <christian.bruel@st.com>
24594 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
24596 2015-07-07 Richard Biener <rguenther@suse.de>
24598 PR middle-end/66739
24599 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
24602 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
24604 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
24605 modes for operands 0 and 3. Use SImode for operands 2 and 3.
24606 Copy operand 0 to a temporary if !ext_register_operand. Remove
24607 ancient extract_bit_field workaround.
24608 (insv<mode>_1): Rename from mov<mode>_insv_1.
24609 (*insvqi): Rename from *movqi_insv_2.
24610 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
24611 for renamed insvsi_1.
24612 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
24614 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
24616 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
24617 call to nvptx_reorg_subreg.
24619 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
24621 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
24622 * graphite-dependencies.c, graphite-interchange.c,
24623 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
24624 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
24627 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
24629 * match.pd: Remove element_mode inside HONOR_*.
24630 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
24631 (~X | X -> -1, ~X ^ X -> -1): Merge.
24632 * tree.c (build_each_one_cst): New function.
24633 * tree.h (build_each_one_cst): Likewise.
24635 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24637 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24640 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
24642 * config.gcc <mips*-*-*>: Add fused-madd.opt.
24643 * config/mips/mips.opt (mfused-madd): Remove.
24644 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
24645 * config/mips/mips.h (TARGET_MIPS8000): New.
24646 (ISA_HAS_FP_MADD4_MSUB4): Remove.
24647 (ISA_HAS_FP_MADDF_MSUBF): Remove.
24648 (ISA_HAS_FP_MADD3_MSUB3): Remove.
24649 (ISA_HAS_NMADD4_NMSUB4): Remove.
24650 (ISA_HAS_NMADD3_NMSUB3): Remove.
24651 (ISA_HAS_FUSED_MADD4): New.
24652 (ISA_HAS_UNFUSED_MADD4): New.
24653 (ISA_HAS_FUSED_MADDF): New.
24654 (ISA_HAS_FUSED_MADD3): New.
24655 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
24656 (*fma<mode>4_madd3) New.
24657 (*fma<mode>4_madd4) New.
24658 (*fma<mode>4_maddf) New.
24660 (*fms<mode>4_msub3) New.
24661 (*fms<mode>4_msub4) New.
24663 (*fnma<mode>4_nmadd3) New.
24664 (*fnma<mode>4_nmadd4) New.
24666 (*fnms<mode>4_nmsub3) New.
24667 (*fnms<mode>4_nmsub4) New.
24668 (*madd4<mode>) Modify to be unfused only.
24669 (*msub4<mode>) Modify to be unfused only.
24670 (*nmadd4<mode>) Modify to be unfused only.
24671 (*nmsub4<mode>) Modify to be unfused only.
24672 (*madd3<mode>) Remove.
24673 (*msub3<mode>) Remove.
24674 (*nmadd3<mode>) Remove.
24675 (*nmsub3<mode>) Remove.
24676 (*nmadd3<mode>_fastmath) Remove.
24677 (*nmsub3<mode>_fastmath) Remove.
24678 (*nmadd4<mode>_fastmath) Update condition.
24679 (*nmsub4<mode>_fastmath) Update condition.
24681 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
24684 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
24685 alignment attribute, exploring one level down for records and arrays.
24687 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
24689 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
24690 modes for operands 0 and 1. Use SImode for operands 2 and 3.
24691 Copy operand 1 to a temporary if !ext_register_operand. Remove
24692 ancient extract_bit_field workaround.
24693 (*extv<mode>): Rename from *mov<mode>_extv_1.
24694 (*extvqi): Rename from *movqi_extv_1.
24695 (extzv<mode>): Rename from extzv. Use SWI248 modes for
24696 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
24697 to a temporary if !ext_register_operand. Remove ancient
24698 extract_bit_field workaround.
24699 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
24700 (*extzvqi): Rename from *movqi_extzv_2.
24701 (*testqi_ext_3): Remove modes from const_int_operand predicated
24702 operands. Add "n" constraint.
24703 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
24704 operand. Add "J" constraint.
24705 (*btsq, *btrq, *btcq peephole2s): Remove mode from
24706 const_0_to_63 predicated operand.
24707 (regmode): New insn attribute.
24708 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
24709 to nonmemory_operand. Use regmode insn attribute.
24710 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
24711 (*jcc_bt<mode>_mask): Remove mode from operand 3.
24712 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
24713 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
24714 operands. Use "N" constraint instead of "n".
24716 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
24718 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
24720 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24723 * config/i386/i386.c (iamcu_cost): New.
24724 (m_IAMCU): Likewise.
24725 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
24726 (processor_target_table): Add an entry for "iamcu".
24727 (processor_alias_table): Likewise.
24728 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
24729 (ix86_adjust_cost): Likewise.
24730 (ia32_multipass_dfa_lookahead): Likewise.
24731 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
24732 * config/i386/x86-tune.def: Updated for m_IAMCU.
24734 2015-07-06 Richard Biener <rguenther@suse.de>
24736 PR tree-optimization/66772
24737 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
24738 values are available in the PHI node BB when there are
24739 still unexecutable edges.
24741 2015-07-06 Richard Biener <rguenther@suse.de>
24743 PR tree-optimization/66767
24744 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
24745 Make sure to build the alignment test on a SSA name without
24746 final alignment info valid only if the alignment test
24749 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
24752 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
24753 loop start when inserting LSETUP.
24755 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
24758 * config/i386/i386.c (ix86_option_override_internal): Allow
24759 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
24761 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24763 * read-md.c (decimal_string): Rename to ...
24764 (md_decimal_string): ... this.
24765 (handle_enum): Reflect this.
24767 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
24770 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
24772 2015-07-06 Richard Biener <rguenther@suse.de>
24774 PR middle-end/66759
24775 * match.pd: Add missing constraint of y to REAL_CST in
24776 REAL_CST - x CMP y to y - CST CMP x simplification.
24778 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
24780 PR tree-optimization/66757
24781 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
24783 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
24784 Sandra Loosemore <sandra@codesourcery.com>
24786 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
24787 Delete extern declaration.
24788 (gprel_constant_p): Add extern declaration.
24789 * config/nios2/constraints.md ("S"): Use gprel_constant_p
24790 instead of nios2_symbol_ref_in_small_data_p.
24791 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
24792 (nios2_symbol_ref_in_small_data_p): Make static.
24793 (gprel_constant_p): Make non-static.
24795 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
24797 * doc/fragments.texi (Target Fragment): Convert debian.org
24799 * doc/install.texi (Configuration): Ditto.
24801 2015-07-05 Jakub Jelinek <jakub@redhat.com>
24803 PR tree-optimization/66718
24804 * tree-vect-stmts.c (vectorizable_call): Replace uses of
24805 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
24807 PR tree-optimization/66718
24808 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
24809 vectorizable_load, vectorizable_condition): Move vectype,
24810 nunits, ncopies computation after checking what kind of statement
24813 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24815 * target-insns.def (extv, extzv, insv): New targetm instruction
24817 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
24819 * recog.c (simplify_while_replacing): Likewise.
24821 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24823 * target-insns.def (doloop_begin, doloop_end): New targetm
24824 instruction patterns.
24825 * loop-init.c: Include target.h.
24826 (pass_loop2::gate): Use the new targetm patterns instead of
24827 HAVE_*/gen_* interface.
24828 (pass_rtl_doloop::gate): Likewise.
24829 (pass_rtl_doloop::execute): Remove preprocessor condition.
24830 * hw-doloop.c: Build unconditionally.
24831 * loop-doloop.c: Likewise.
24832 (doloop_optimize): Use the new targetm patterns instead of
24833 HAVE_*/gen_* interface.
24834 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
24835 * modulo-sched.c (doloop_register_get): Likewise.
24837 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24839 * target-insns.def (clear_cache): New targetm instruction pattern.
24840 * builtins.c (expand_builtin___clear_cache): Use it instead of
24841 HAVE_*/gen_* interface.
24843 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24845 * target-insns.def (allocate_stack, check_stack, probe_stack)
24846 (probe_stack_address, split_stack_prologue, split_stack_space_check):
24847 New targetm instruction patterns.
24848 * explow.c (allocate_dynamic_stack_space): Use them instead of
24849 HAVE_*/gen_* interface.
24850 (emit_stack_probe): Likewise.
24851 (probe_stack_range): Likewise.
24852 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24854 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24856 * target-insns.def (stack_protect_set, stack_protect_test): New
24857 targetm instruction patterns.
24858 * cfgexpand.c (stack_protect_prologue): Use them instead of
24859 HAVE_*/gen_* interface.
24860 * function.c (stack_protect_epilogue): Likewise.
24862 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24864 * expr.h (gen_move_insn_uncast): Delete.
24865 * expr.c (gen_move_insn_uncast): Delete.
24867 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24869 * target-insns.def (restore_stack_block, restore_stack_function)
24870 (restore_stack_nonlocal, save_stack_block, save_stack_function)
24871 (save_stack_nonlocal): New targetm instruction patterns.
24872 * builtins.c (expand_builtin_apply): Use them instead of
24873 HAVE_*/gen_* interface.
24874 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
24876 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24878 * target-insns.def (trap): New targetm instruction pattern.
24879 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
24881 * explow.c (allocate_dynamic_stack_space): Likewise.
24882 * ifcvt.c (find_if_header): Likewise.
24884 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24886 * target-insns.def (prefetch): New targetm instruction pattern.
24887 * tree-ssa-loop-prefetch.c: Include targeth.
24888 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
24889 of HAVE_*/gen_* interface.
24890 * builtins.c (expand_builtin_prefetch): Likewise.
24891 * toplev.c (process_options): Likewise.
24893 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24895 * target-insns.def (untyped_call, untyped_return): New targetm
24896 instruction patterns.
24897 * builtins.c (expand_builtin_apply): Use them instead of
24898 HAVE_*/gen_* interface.
24899 (result_vector): Define unconditionally.
24901 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24903 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
24904 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
24905 (nonlocal_goto_receiver): New targetm instruction patterns.
24906 * builtins.c (expand_builtin_setjmp_setup): Use them instead
24907 of HAVE_*/gen_* interface.
24908 (expand_builtin_setjmp_receiver): Likewise.
24909 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
24910 * except.c (expand_dw2_landing_pad_for_region): Likewise.
24912 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
24914 * target.def: Add code_for_* hooks.
24915 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
24916 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
24917 * target-insns.def (casesi, tablejump): New targetm instruction
24919 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
24920 (do_tablejump): Likewise.
24921 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
24922 (expand_sjlj_dispatch_table): Likewise.
24923 * targhooks.c (default_case_values_threshold): Likewise.
24925 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
24927 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
24928 Use rtx_insn * instead of rtx.
24929 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
24930 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
24931 (nios2_call_tls_get_addr): Likewise.
24932 (nios2_emit_expensive_div): Likewise.
24933 (nios2_emit_move_sequence): Change return type to bool.
24934 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
24935 Change return type to bool.
24937 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24940 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
24942 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
24945 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
24946 of register_operand. Remove constraint.
24948 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
24950 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
24951 the first argument.
24953 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
24955 * attribs.c (decl_attributes): Guard inform with the return value
24956 of the preceding warning.
24958 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24960 * doc/invoke.texi (moverride): Move to correct section.
24962 2015-07-03 Richard Biener <rguenther@suse.de>
24964 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
24966 (dt_operand::gen_gimple_expr): After valueizing operands
24967 re-canonicalize operand order for commutative tree codes.
24969 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
24972 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
24974 (__crc32w): Likewise.
24975 (__crc32d): Likewise.
24976 (__rdpmc): Likewise.
24977 (__rdtscp): Likewise.
24978 (_rdpmc): Likewise.
24979 (_rdtscp): Likewise.
24980 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
24983 2015-07-03 Richard Biener <rguenther@suse.de>
24985 * fold-const.c (fold_mathfn_compare): Remove.
24986 (fold_inf_compare): Likewise.
24987 (fold_comparison): Move floating point comparison simplifications...
24988 * match.pd: ... to patterns here. Introduce simple_comparisons
24989 operator list and use it for patterns formerly in fold_comparison.
24991 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24993 PR tree-optimization/66119
24994 * toplev.c (process_options): Don't set up default values for
24995 the sra_max_scalarization_size_{speed,size} parameters.
24996 * tree-sra (analyze_all_variable_accesses): If no values
24997 have been set for the sra_max_scalarization_size_{speed,size}
24998 parameters, call get_move_ratio to get target defaults.
25000 2015-07-03 Richard Biener <rguenther@suse.de>
25002 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
25003 * match.pd: ... here.
25005 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
25008 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
25009 is not actually the default on FreeBSD.
25011 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25013 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
25015 (CMPGE_8HI): Likewise.
25016 (CMPGE_4SI): Likewise.
25017 (CMPGE_2DI): Likewise.
25018 (CMPGE_U16QI): Likewise.
25019 (CMPGE_U8HI): Likewise.
25020 (CMPGE_U4SI): Likewise.
25021 (CMPGE_U2DI): Likewise.
25022 (CMPLE_16QI): Likewise.
25023 (CMPLE_8HI): Likewise.
25024 (CMPLE_4SI): Likewise.
25025 (CMPLE_2DI): Likewise.
25026 (CMPLE_U16QI): Likewise.
25027 (CMPLE_U8HI): Likewise.
25028 (CMPLE_U4SI): Likewise.
25029 (CMPLE_U2DI): Likewise.
25030 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25031 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
25032 ALTIVEC_BUILTIN_VEC_CMPLE.
25033 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
25034 floating-point vector modes.
25035 (vector_nlt<mode>): New define_expand.
25036 (vector_nltu<mode>): Likewise.
25037 (vector_ngt<mode>): Likewise.
25038 (vector_ngtu<mode>): Likewise.
25040 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
25042 PR rtl-optimization/66706
25043 * combine.c (make_compound_operation): If an AND of SUBREG of
25044 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
25046 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
25048 * tree-pass.h (make_pass_ch_vect): New.
25049 * passes.def: Add pass_ch_vect just before pass_if_conversion.
25051 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
25052 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
25053 make_pass_ch_vect): New.
25054 (pass_ch): Extend ch_base.
25056 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
25057 (ch_base::copy_headers): ...here.
25059 2015-07-02 Richard Biener <rguenther@suse.de>
25061 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
25062 * fold-const.c (get_pointer_modulus_and_residue): Remove.
25063 (fold_binary_loc): Implement (T)ptr & CST in terms of
25064 get_pointer_alignment_1.
25065 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
25066 Make sure to build the alignment test on a SSA name without
25067 final alignment info valid only after the prologue.
25069 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
25071 * config/cris/cris.md ("epilogue"): Remove condition.
25072 ("prologue"): Ditto.
25074 2015-07-02 Richard Biener <rguenther@suse.de>
25076 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
25077 parameter to record a condition that is false.
25078 (record_conditions): When recording an extra NE_EXPR that is
25079 true also record a EQ_EXPR that is false.
25081 2015-07-02 Bin Cheng <bin.cheng@arm.com>
25083 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
25084 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
25085 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
25086 (set_iv, find_interesting_uses_address, add_candidate_1): New
25087 argument to alloc_iv.
25088 (find_interesting_uses_op, find_interesting_uses_cond): Don't
25089 duplicate struct iv.
25090 (free_loop_data): Don't free struct iv explicitly.
25091 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
25093 2015-07-01 DJ Delorie <dj@redhat.com>
25095 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
25097 (SUPPORTS_DISCRIMINATOR): Define.
25099 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25102 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
25103 there are no CALLs in the same pattern.
25105 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25107 PR rtl-optimization/61047
25108 * rtlanal.c (get_initial_register_offset): New function.
25109 (rtx_addr_can_trap_p_1): Check offsets of stack references.
25111 2015-07-01 Richard Biener <rguenther@suse.de>
25113 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
25114 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
25115 ~X CMP C -> X CMP' ~C to ...
25116 * match.pd: ... patterns here.
25118 2015-07-01 Nick Clifton <nickc@redhat.com>
25120 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
25121 a 16-bit value into a 20-bit memory slot.
25123 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25125 * doc/sourcebuild.texi (AArch64-specific attributes): Document
25126 "aarch64_tiny", "aarch64_small", "aarch64_large",
25127 "aarch64_little_endian", "aarch64_big_endian".
25129 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25131 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
25132 Document "aarch64_small_fpic".
25134 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25136 * configure.ac: Add check for aarch64 assembler -fpic relocation
25138 * configure: Regenerate.
25139 * config.in: Regenerate.
25140 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
25141 to -fPIC if not support of -fpic relocation modifier in assembler.
25143 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25146 * rtl.c (classify_insn): Handle returns in PARALLELs.
25148 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
25150 PR middle-end/66633
25151 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
25152 to true if the function is nested and if not optimizing.
25153 (convert_local_omp_clauses): Initialize need_frame to true if the
25154 function contains nested functions and if not optimizing.
25156 2015-07-01 Richard Biener <rguenther@suse.de>
25158 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
25159 (X & Y) ^ Y -> ~X & Y transforms to ...
25160 * match.pd: ... here.
25162 2015-07-01 Richard Biener <rguenther@suse.de>
25164 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
25165 of converts to avoid uninteresting noise from the conversion
25166 simplifying patterns.
25168 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
25170 * config/c6x/c6x.c (try_rename_operands): Do not depend on
25171 gcc_assert evaluating its argument for side-effect.
25173 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
25176 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
25179 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25181 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
25182 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
25183 (hash_scc): Add this_ref_p and ref_p parameters and pass them
25184 to the inner DFS walk.
25186 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25188 * target-insns.def (jump): New targetm instruction pattern.
25189 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
25190 instead of gen_jump.
25191 (fix_up_crossing_landing_pad): Likewise.
25192 (add_labels_and_missing_jumps): Likewise.
25193 (fix_crossing_conditional_branches): Likewise.
25194 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25195 (force_nonfallthru_and_redirect): Likewise.
25196 * cse.c (cse_insn): Likewise.
25197 * expmed.c (expand_divmod): Likewise.
25198 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
25199 * haifa-sched.c (init_before_recovery): Likewise.
25200 (sched_create_recovery_edges): Likewise.
25201 * ifcvt.c (find_cond_trap): Likewise.
25202 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
25203 (expand_float, expand_fix): Likewise.
25204 * stmt.c (emit_jump): Likewise.
25206 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25208 * defaults.h (HAVE_load_multiple, gen_load_multiple)
25209 (HAVE_store_multiple, gen_store_multiple): Delete.
25210 * target-insns.def (load_multiple, store_multiple): New targetm
25211 instruction patterns.
25212 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
25213 of HAVE_*/gen_* interface.
25215 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25217 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
25218 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
25219 (gen_mem_signal_fence): Delete.
25220 * target-insns.def (mem_signal_fence, mem_thread_fence)
25221 (memory_barrier): New targetm instruction patterns.
25222 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
25224 (expand_mem_signal_fence): Likewise.
25226 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25228 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
25229 * target-insns.def (epilogue, prologue, sibcall_prologue): New
25230 targetm instruction patterns.
25231 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
25233 * calls.c (expand_call): Likewise.
25234 * cfgrtl.c (cfg_layout_finalize): Likewise.
25235 * df-scan.c (df_get_entry_block_def_set): Likewise.
25236 (df_get_exit_block_use_set): Likewise.
25237 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
25238 * final.c (final_start_function): Likewise.
25239 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25240 (reposition_prologue_and_epilogue_notes): Likewise.
25241 * reorg.c (find_end_label): Likewise.
25242 * toplev.c (process_options): Likewise.
25244 2015-06-30 David Malcolm <dmalcolm@redhat.com>
25246 * typed-splay-tree.h: New file.
25248 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
25251 * lra-int.h (lra_substitute_pseudo): Add a parameter.
25252 (lra_substitute_pseudo_within_insn): Ditto.
25253 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
25255 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
25256 to lra_substitute_pseudo.
25257 * lra-lives.c (process_bb_lives): Add an argument to
25258 lra_substitute_pseudo_within_insn call.
25259 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
25260 argument to lra_substitute_pseudo and
25261 lra_substitute_pseudo_within_insn calls.
25262 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
25264 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25266 * configure: Regenerated.
25268 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25270 * config.gcc: Support i[34567]86-*-elfiamcu target.
25271 * config/i386/iamcu.h: New.
25272 * config/i386/i386.opt: Add -miamcu.
25273 * doc/invoke.texi: Document -miamcu.
25274 * common/config/i386/i386-common.c (ix86_handle_option): Turn
25275 off x87/MMX/SSE/AVX codegen for -miamcu.
25276 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25277 __iamcu/__iamcu__ for -miamcu.
25278 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
25279 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
25280 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
25281 * config/i386/i386.c (ix86_option_override_internal): Ignore and
25282 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
25283 MCU by default. Default long double to 64-bit for Intel MCU.
25284 Turn on -freg-struct-return for Intel MCU. Issue an error when
25285 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
25287 (function_arg_advance_32): Pass value whose size is no larger
25288 than 8 bytes in registers for Intel MCU.
25289 (function_arg_32): Likewise.
25290 (ix86_return_in_memory): Return value whose size is no larger
25291 than 8 bytes in registers for Intel MCU.
25292 (iamcu_alignment): New function.
25293 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
25295 (ix86_local_alignment): Don't increase alignment for Intel MCU.
25296 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
25299 2015-06-30 Marek Polacek <polacek@redhat.com>
25301 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
25302 both operands of the resulting expression.
25304 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
25305 the final expression with the operand's type and then convert
25306 it to the type of the expression.
25308 2015-06-30 Richard Biener <rguenther@suse.de>
25310 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
25311 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
25312 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
25313 * match.pd: ... to patterns here.
25315 2015-06-30 Richard Biener <rguenther@suse.de>
25317 PR tree-optimization/66704
25318 * tree-vect-data-refs.c (vect_setup_realignment): Use
25319 make_ssa_name for non-SSA name source.
25321 2015-06-30 Jakub Jelinek <jakub@redhat.com>
25323 PR middle-end/66702
25324 * omp-low.c (simd_clone_adjust): Handle addressable linear
25325 or uniform parameters or non-gimple type uniform parameters.
25327 2015-06-30 Richard Biener <rguenther@suse.de>
25329 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
25330 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
25331 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
25332 * match.pd: ... here.
25333 Add a few cases of A - B -> A + (-B) when B "easily" negates.
25334 Move (x & y) | x -> x and friends before
25335 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
25337 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25339 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
25340 -mfix-ut699 is not specified.
25341 (leon3_load): Rename into...
25342 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
25345 2015-06-30 Marek Polacek <polacek@redhat.com>
25347 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
25348 * match.pd: ... here.
25350 2015-06-30 Richard Biener <rguenther@suse.de>
25352 * target-insns.def (canonicalize_funcptr_for_compare): Add.
25353 * fold-const.c (build_range_check): Replace uses of
25354 HAVE_canonicalize_funcptr_for_compare.
25355 (fold_widened_comparison): Likewise.
25356 (fold_sign_changed_comparison): Likewise.
25357 * dojump.c: Include "target.h".
25358 (do_compare_and_jump): Replace uses of
25359 HAVE_canonicalize_funcptr_for_compare and
25360 gen_canonicalize_funcptr_for_compare.
25361 * expr.c (do_store_flag): Likewise.
25363 2015-06-30 Tom de Vries <tom@codesourcery.com>
25365 PR tree-optimization/66652
25366 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
25367 max_loop_iterations to determine if nit + 1 overflows.
25369 2015-06-30 Richard Biener <rguenther@suse.de>
25371 * tree-vrp.c (register_edge_assert_for_2): Also register
25372 asserts for dominating conversion results.
25374 2015-06-30 Bin Cheng <bin.cheng@arm.com>
25376 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
25377 field in struct iv.
25379 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
25382 * configure.ac: Fix filds and fildq test for 64-bit.
25383 * configure: Regenerated.
25385 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
25387 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
25388 (nvptx_reorg): Here. Keep the non-subreg pieces.
25390 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
25392 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
25393 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25395 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
25397 * config/i386/i386.md (*jcc_1): Use %! in asm template.
25398 Set attribute "length_nobnd" instead of "length".
25401 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
25403 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
25405 * config/nios2/nios2.c (nios2_delegitimize_address): Make
25406 assert less restrictive.
25408 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
25411 * cgraphunit.c (cgraph_node::finalize_function): Do not call
25412 do_warn_unused_parameter.
25413 * function.c (do_warn_unused_parameter): Move from here.
25414 * function.h (do_warn_unused_parameter): Do not declare.
25416 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25419 * gcc.target/arm/armv-sync-comp-swap.c: New.
25420 * gcc.target/arm/armv-sync-op-acquire.c: New.
25421 * gcc.target/arm/armv-sync-op-full.c: New.
25422 * gcc.target/arm/armv-sync-op-release.c: New.
25424 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25427 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
25428 initial acquire barrier with final barrier.
25430 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25433 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
25434 initial acquire barrier with final barrier.
25436 2015-06-29 Richard Henderson <rth@redhat.com>
25438 * config/i386/constraints.md (Bf): New constraint.
25439 * config/i386/i386-c.c (ix86_target_macros): Define
25440 __GCC_ASM_FLAG_OUTPUTS__.
25441 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
25443 * doc/extend.texi (FlagOutputOperands): Document them.
25445 2015-06-29 Jiong Wang <jiong.wang@arm.com>
25447 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
25448 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
25450 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
25451 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
25452 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
25453 (aarch64_symbol_context): Ditto.
25454 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
25455 and use new pattern name.
25456 (aarch64_expand_mov_immediate): Ditto.
25457 (aarch64_print_operand): Ditto.
25458 (aarch64_classify_tls_symbol): Ditto.
25460 2015-06-29 Marek Polacek <polacek@redhat.com>
25461 Marc Glisse <marc.glisse@inria.fr>
25463 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
25464 * match.pd: ... pattern here.
25466 2015-06-29 Tom de Vries <tom@codesourcery.com>
25468 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
25469 function structure.
25471 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25473 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
25474 feature description, split out the native option, add a link to
25475 the feature documentation, rearrange and slightly rewrite text.
25476 (Aarch64 options, -mcpu): Likewise.
25477 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
25478 +rdma implies Adv. SIMD.
25480 2015-06-29 Marek Polacek <polacek@redhat.com>
25483 * function.c (stack_protect_epilogue): Remove a cast to int.
25484 * doc/invoke.texi: Update -Wswitch-bool description.
25486 2015-06-29 Richard Biener <rguenther@suse.de>
25488 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
25489 * fold-const.c (fold_binary_loc): Move &A - &B simplification
25490 via ptr_difference_const ...
25491 * match.pd: ... here.
25492 When matching (X ^ Y) == Y also match with swapped operands.
25494 2015-06-29 Richard Biener <rguenther@suse.de>
25496 * lto-streamer.h (LTO_major_version): Bump to 5.
25498 2015-06-29 Richard Biener <rguenther@suse.de>
25500 PR tree-optimization/66677
25501 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
25502 STMT_VINFO_VEC_STMT clobbering less strict.
25504 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
25506 PR middle-end/64130
25507 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
25508 division, compute max and min when value ranges for dividend and
25509 divisor are available.
25511 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
25512 Sandra Loosemore <sandra@codesourcery.com>
25514 * regrename.h (regrename_do_replace): Change to return bool.
25515 * regrename.c (rename_chains): Check return value of
25516 regname_do_replace.
25517 (regrename_do_replace): Re-validate the modified insns and
25518 return bool status.
25519 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
25520 Update to match rename_chains changes.
25521 * config/c6x/c6x.c (try_rename_operands): Assert that
25522 regrename_do_replace returns true.
25524 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
25526 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
25527 operand 2 here. Use copy_addr_to_reg to copy non-index
25528 register operand 2 to a temporary.
25529 (<mode>_stx): Ditto for operand 1.
25530 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
25531 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
25532 (ix86_store_bounds): Ditto.
25534 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
25536 * print-tree.c (print_node) [TREE_VEC]: Print its length.
25538 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
25540 * gimple.c (gimple_call_set_fndecl): Remove.
25541 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
25542 build1_loc directly instead of build_fold_addr_expr_loc.
25544 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25546 * hash-map.h (hash_map::traverse): Use the definition of the
25547 Key typedef rather than the typedef itself.
25549 2015-06-26 Martin Jambor <mjambor@suse.cz>
25552 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
25553 NULL instead of calling dump_enabled_p.
25555 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25557 * config/aarch64/aarch64.opt: (override): New.
25558 * doc/invoke.texi (override): Document.
25559 * config/aarch64/aarch64.c (aarch64_flag_desc): New
25560 (aarch64_fusible_pairs): Likewise.
25561 (aarch64_tuning_flags): Likewise.
25562 (aarch64_tuning_override_function): Likewise.
25563 (aarch64_tuning_override_functions): Likewise.
25564 (aarch64_parse_one_option_token): Likewise.
25565 (aarch64_parse_boolean_options): Likewise.
25566 (aarch64_parse_fuse_string): Likewise.
25567 (aarch64_parse_tune_string): Likewise.
25568 (aarch64_parse_one_override_token): Likewise.
25569 (aarch64_parse_override_string): Likewise.
25570 (aarch64_override_options): Parse the -override string if it
25573 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25575 * config/aarch64/aarch64-protos.h (tune_params): Remove
25576 const from members.
25577 (aarch64_tune_params): Remove const, change to no longer be
25579 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
25580 change to no longer be a pointer, initialize to generic_tunings.
25581 (aarch64_min_divisions_for_recip_mul): Change dereference of
25582 aarch64_tune_params to member access.
25583 (aarch64_reassociation_width): Likewise.
25584 (aarch64_rtx_mult_cost): Likewise.
25585 (aarch64_address_cost): Likewise.
25586 (aarch64_branch_cost): Likewise.
25587 (aarch64_rtx_costs): Likewise.
25588 (aarch64_register_move_cost): Likewise.
25589 (aarch64_memory_move_cost): Likewise.
25590 (aarch64_sched_issue_rate): Likewise.
25591 (aarch64_builtin_vectorization_cost): Likewise.
25592 (aarch64_override_options): Take a copy of the selected tuning
25593 struct in to aarch64_tune_params, rather than just setting
25594 a pointer, change dereferences of aarch64_tune_params to member
25596 (aarch64_override_options_after_change): Change dereferences of
25597 aarch64_tune_params to member access.
25598 (aarch64_macro_fusion_p): Likewise.
25599 (aarch_macro_fusion_pair_p): Likewise.
25600 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
25602 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25604 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
25605 (aarch64_tune_flags): Likewise.
25606 (AARCH64_TUNE_FMA_STEERING): Likewise.
25607 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
25608 to AARCH64_FL_USE_FMA_STEERING_PASS.
25609 (cortex-a57.cortex-a53): Likewise.
25610 (cortex-a72): Use cortexa72_tunings.
25611 (cortex-a72.cortex-a53): Likewise.
25612 (exynos-m1): Likewise.
25613 * config/aarch64/aarch64-protos.h (tune_params): Add
25614 a field: extra_tuning_flags.
25615 * config/aarch64/aarch64-tuning-flags.def: New.
25616 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
25617 (aarch64_extra_tuning_flags): Likewise.
25618 (aarch64_tune_params): Declare here.
25619 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
25620 (cortexa53_tunings): Likewise.
25621 (cortexa57_tunings): Likewise.
25622 (thunderx_tunings): Likewise.
25623 (xgene1_tunings): Likewise.
25624 (cortexa72_tunings): New.
25625 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
25626 (gate): Check against aarch64_tune_params.
25627 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
25630 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25632 * config/aarch64/aarch64-fusion-pairs.def: New.
25633 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
25634 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
25635 aarch64_fusion_pairs.
25636 (AARCH64_FUSE_MOV_MOVK): Likewise.
25637 (AARCH64_FUSE_ADRP_ADD): Likewise.
25638 (AARCH64_FUSE_MOVK_MOVK): Likewise.
25639 (AARCH64_FUSE_ADRP_LDR): Likewise.
25640 (AARCH64_FUSE_CMP_BRANCH): Likewise.
25642 2015-06-26 Jiong Wang <jiong.wang@arm.com>
25644 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
25645 SYMBOL_SMALL_GOT_28K.
25646 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
25647 relocation modifiers.
25648 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
25649 (ldr_got_small_28k_<mode>): New.
25650 (ldr_got_small_28k_sidi): New.
25651 * config/aarch64/iterators.md (got_modifier): New mode iterator.
25652 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
25653 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
25654 SYMBOL_SMALL_GOT_28K.
25655 (aarch64_rtx_costs): Add costs for new instruction sequences.
25656 (initialize_aarch64_code_model): Initialize new model.
25657 (aarch64_classify_symbol): Recognize new model and new symbol classification.
25658 (aarch64_asm_preferred_eh_data_format): Support new model.
25659 (aarch64_load_symref_appropriately): Generate new instruction
25660 sequences for -fpic.
25661 (TARGET_USE_PSEUDO_PIC_REG): New definition.
25662 (aarch64_use_pseudo_pic_reg): New function.
25664 2015-06-26 Jiong Wang <jiong.wang@arm.com>
25666 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
25667 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
25668 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
25669 (aarch64_expand_mov_immediate): Ditto.
25670 (aarch64_print_operand): Ditto.
25671 (aarch64_classify_symbol): Ditto.
25673 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
25675 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
25677 2015-06-26 Bin Cheng <bin.cheng@arm.com>
25680 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
25681 assertion failed. Remove assertion itself.
25683 2015-06-26 Richard Biener <rguenther@suse.de>
25685 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
25686 and -A CMP CST -> A CMP -CST which is redundant with a pattern
25688 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
25689 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
25690 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
25691 * match.pd: ... patterns here.
25693 2015-06-26 Marek Polacek <polacek@redhat.com>
25695 * match.pd ((x | y) & ~(x & y) -> x ^ y,
25696 (x | y) & (~x ^ y) -> x & y): New patterns.
25698 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25700 * rtl.h (emit): Add an optional boolean parameter to control
25701 whether barriers are emitted.
25702 * emit-rtl.c (emit): Likewise.
25703 * gensupport.c (get_emit_function): Return null rather than "emit".
25704 * genemit.c (gen_emit_seq): Handle the null return value.
25705 Don't emit barriers after the final instruction in the sequence.
25706 * gentarget-def.c (main): Don't emit barriers after the instruction.
25708 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25710 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
25711 TARGET_UNIFIED_ASM.
25713 2015-06-26 Richard Biener <rguenther@suse.de>
25715 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
25717 2015-06-26 Richard Biener <rguenther@suse.de>
25719 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
25720 irrespective on whether the inner operation has a single use
25721 of both off are constant.
25723 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
25724 Segher Boessenkool <segher@kernel.crashing.org>
25727 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
25728 before doing PUT_MODE or PUT_CODE on operands to avoid
25729 in-place RTX modification.
25731 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
25733 * gentarget-def.c (def_target_insn): Cast return of strtol to
25736 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25738 * gimple.h (gimple_call_set_fn): Move inline function.
25739 * gimple.c (gimple_call_set_fn): Relocate here.
25741 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
25745 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
25746 the replacement insn will work.
25748 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
25750 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
25753 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25755 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
25756 * cgraph.h: Include ipa-ref.h and plugin-api.h.
25757 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
25758 (symtab_node::address_can_be_compared_p): Move function.
25759 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
25761 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
25762 * auto-profile.c: Likewise.
25763 * bb-reorder.c: Likewise.
25764 * builtins.c: Likewise.
25765 * calls.c: Likewise.
25766 * cfgexpand.c: Likewise.
25767 * cgraphbuild.c: Likewise.
25768 * cgraphclones.c: Likewise.
25769 * cgraphunit.c: Likewise.
25770 * combine.c: Likewise.
25771 * coverage.c: Likewise.
25772 * data-streamer-in.c: Likewise.
25773 * data-streamer-out.c: Likewise.
25774 * data-streamer.c: Likewise.
25775 * dbxout.c: Likewise.
25776 * dwarf2out.c: Likewise.
25777 * except.c: Likewise.
25778 * expr.c: Likewise.
25779 * final.c: Likewise.
25780 * fold-const.c: Likewise.
25781 * ggc-page.c: Likewise.
25782 * gimple-fold.c: Likewise.
25783 * gimple-iterator.c: Likewise.
25784 * gimple-pretty-print.c: Likewise.
25785 * gimple-streamer-in.c: Likewise.
25786 * gimple-streamer-out.c: Likewise.
25787 * gimple.c: Likewise.
25788 * gimplify.c: Likewise.
25789 * ipa-chkp.c: Likewise.
25790 * ipa-comdats.c: Likewise.
25791 * ipa-cp.c: Likewise.
25792 * ipa-devirt.c: Likewise.
25793 * ipa-icf-gimple.c: Likewise.
25794 * ipa-icf.c: Likewise.
25795 * ipa-inline-analysis.c: Likewise.
25796 * ipa-inline-transform.c: Likewise.
25797 * ipa-inline.c: Likewise.
25798 * ipa-polymorphic-call.c: Likewise.
25799 * ipa-profile.c: Likewise.
25800 * ipa-prop.c: Likewise.
25801 * ipa-pure-const.c: Likewise.
25802 * ipa-ref.c: Likewise.
25803 * ipa-reference.c: Likewise.
25804 * ipa-split.c: Likewise.
25805 * ipa-utils.c: Likewise.
25806 * ipa-visibility.c: Likewise.
25808 * langhooks.c: Likewise.
25809 * lto-cgraph.c: Likewise.
25810 * lto-compress.c: Likewise.
25811 * lto-opts.c: Likewise.
25812 * lto-section-in.c: Likewise.
25813 * lto-section-out.c: Likewise.
25814 * lto-streamer-in.c: Likewise.
25815 * lto-streamer-out.c: Likewise.
25816 * lto-streamer.c: Likewise.
25817 * omp-low.c: Likewise.
25818 * opts-global.c: Likewise.
25819 * passes.c: Likewise.
25820 * predict.c: Likewise.
25821 * print-tree.c: Likewise.
25822 * profile.c: Likewise.
25824 * sanopt.c: Likewise.
25825 * stor-layout.c: Likewise.
25826 * symtab.c: Likewise.
25827 * toplev.c: Likewise.
25828 * trans-mem.c: Likewise.
25829 * tree-cfg.c: Likewise.
25830 * tree-chkp.c: Likewise.
25831 * tree-eh.c: Likewise.
25832 * tree-emutls.c: Likewise.
25833 * tree-inline.c: Likewise.
25834 * tree-nested.c: Likewise.
25835 * tree-parloops.c: Likewise.
25836 * tree-pretty-print.c: Likewise.
25837 * tree-profile.c: Likewise.
25838 * tree-sra.c: Likewise.
25839 * tree-ssa-alias.c: Likewise.
25840 * tree-ssa-live.c: Likewise.
25841 * tree-ssa-loop-ivcanon.c: Likewise.
25842 * tree-ssa-loop-ivopts.c: Likewise.
25843 * tree-ssa-pre.c: Likewise.
25844 * tree-ssa-sccvn.c: Likewise.
25845 * tree-ssa-strlen.c: Likewise.
25846 * tree-ssa-structalias.c: Likewise.
25847 * tree-streamer-in.c: Likewise.
25848 * tree-streamer-out.c: Likewise.
25849 * tree-streamer.c: Likewise.
25850 * tree-switch-conversion.c: Likewise.
25851 * tree-tailcall.c: Likewise.
25852 * tree-vect-data-refs.c: Likewise.
25853 * tree-vect-stmts.c: Likewise.
25854 * tree-vectorizer.c: Likewise.
25855 * tree.c: Likewise.
25856 * tsan.c: Likewise.
25857 * ubsan.c: Likewise.
25858 * value-prof.c: Likewise.
25859 * varasm.c: Likewise.
25860 * varpool.c: Likewise.
25861 * config/arm/arm.c: Likewise.
25862 * config/bfin/bfin.c: Likewise.
25863 * config/c6x/c6x.c: Likewise.
25864 * config/cris/cris.c: Likewise.
25865 * config/darwin-c.c: Likewise.
25866 * config/darwin.c: Likewise.
25867 * config/i386/i386.c: Likewise.
25868 * config/i386/winnt.c: Likewise.
25869 * config/microblaze/microblaze.c: Likewise.
25870 * config/mips/mips.c: Likewise.
25871 * config/rs6000/rs6000.c: Likewise.
25872 * config/rx/rx.c: Likewise.
25873 * config/s390/s390.c: Likewise.
25874 * config/tilegx/mul-tables.c: Likewise.
25876 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25878 * config/aarch64/aarch64.c, config/alpha/alpha.c,
25879 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
25880 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
25881 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
25882 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25883 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25884 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25885 config/microblaze/microblaze.c, config/mips/mips.c,
25886 config/mmix/mmix.c, config/mn10300/mn10300.c,
25887 config/moxie/moxie.c, config/msp430/msp430.c,
25888 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25889 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25890 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25891 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25892 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25893 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25894 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
25895 target-def.h include.
25896 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
25898 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25900 * Makefile.in (TARGET_DEF): Add target-insns.def.
25901 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
25902 (build/gentarget-def.o): New rule.
25903 (genprogrtl): Add target-def.
25904 * target-insns.def, gentarget-def.c: New files.
25905 * target.def: Add targetm.have_* and targetm.gen_* hooks,
25906 based on the contents of target-insns.def.
25907 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
25908 (HAVE_return, gen_return): Delete.
25909 * target-def.h: Include insn-target-def.h.
25910 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
25911 instead of direct calls. Rely on them to do the appropriate assertions.
25912 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
25913 (convert_jumps_to_returns): Use targetm interface instead of
25915 (thread_prologue_and_epilogue_insns): Likewise.
25916 * reorg.c (find_end_label, dbr_schedule): Likewise.
25917 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
25918 * shrink-wrap.c (convert_to_simple_return): Likewise.
25919 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
25921 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25923 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
25924 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25925 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
25926 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
25927 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25928 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25929 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25930 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
25931 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
25932 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25933 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25934 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25935 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25936 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25937 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25938 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
25941 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25943 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
25944 (unbounded_int_hashmap_traits::key_type): Likewise.
25945 * hash-map.h (hash_map): Get the key type from the traits.
25946 * hash-traits.h (default_hash_traits): By default, inherit from the
25947 template parameter.
25948 * alias.c (alias_set_traits): Delete.
25949 (alias_set_entry_d::children): Use alias_set_hash as the first
25950 template parameter.
25951 (record_alias_subset): Update accordingly.
25952 * except.c (tree_hash_traits): Delete.
25953 (type_to_runtime_map): Use tree_hash as the first template parameter.
25954 (init_eh): Update accordingly.
25955 * genmatch.c (capture_id_map_hasher): Delete.
25956 (cid_map_t): Use nofree_string_hash as first template parameter.
25957 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
25958 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25959 Use symbol_compare_hash as the first template parameter in
25960 subdivide_hash_map.
25961 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
25962 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
25963 template parameter.
25964 * passes.c (pass_registry_hasher): Delete.
25965 (name_to_pass_map): Use nofree_string_hash as the first template
25967 (register_pass_name): Update accordingly.
25968 * sanopt.c (sanopt_tree_map_traits): Delete.
25969 (sanopt_tree_triplet_map_traits): Delete.
25970 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
25971 template parameter.
25972 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
25973 the first template parameter.
25974 * sese.c (rename_map_hasher): Delete.
25975 (rename_map_type): Use tree_ssa_name_hash as the first template
25977 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
25978 (function_summary::m_map): Use map_hash as the first template
25980 (function_summary::release): Update accordingly.
25981 * tree-if-conv.c (phi_args_hash_traits): Delete.
25982 (predicate_scalar_phi): Use tree_operand_hash as the first template
25983 parameter to phi_arg_map.
25984 * tree-inline.h (dependence_hasher): Delete.
25985 (copy_body_data::dependence_map): Use dependence_hash as the first
25986 template parameter.
25987 * tree-inline.c (remap_dependence_clique): Update accordingly.
25988 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
25989 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
25991 (addr_stridxptr): Update accordingly.
25992 * value-prof.c (profile_id_traits): Delete.
25993 (cgraph_node_map): Use profile_id_hash as the first template
25995 (init_node_map): Update accordingly.
25996 * config/alpha/alpha.c (string_traits): Delete.
25997 (machine_function::links): Use nofree_string_hash as the first
25998 template parameter.
25999 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
26000 * config/m32c/m32c.c (pragma_traits): Delete.
26001 (pragma_htab): Use nofree_string_hash as the first template parameter.
26002 (m32c_note_pragma_address): Update accordingly.
26003 * config/mep/mep.c (pragma_traits): Delete.
26004 (pragma_htab): Use nofree_string_hash as the first template parameter.
26005 (mep_note_pragma_flag): Update accordingly.
26006 * config/mips/mips.c (mips16_flip_traits): Delete.
26007 (mflip_mips16_htab): Use nofree_string_hash as the first template
26009 (mflip_mips16_use_mips16_p): Update accordingly.
26010 (local_alias_traits): Delete.
26011 (mips16_local_aliases): Use nofree_string_hash as the first template
26013 (mips16_local_alias): Update accordingly.
26015 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26017 * hash-map-traits.h (default_hashmap_traits): Delete.
26019 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26021 * hash-map-traits.h (unbounded_hashmap_traits): New class.
26022 (unbounded_int_hashmap_traits): Likewise.
26023 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
26025 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26027 * ipa-icf.h (symbol_compare_hash): New class.
26028 (symbol_compare_hashmap_traits): Use it.
26029 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
26030 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
26031 (mem_alloc_description::reverse_mem_map_t): Remove redundant
26032 default_hashmap_traits.
26033 * sanopt.c (sanopt_tree_triplet_hash): New class.
26034 (sanopt_tree_triplet_map_traits): Use it.
26036 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26038 * gengtype-parse.c (require_template_declaration): Allow '+' in
26039 template parameters. Consolidate cases.
26040 * hash-traits.h (int_hash): New class.
26041 * alias.c (alias_set_hash): New structure.
26042 (alias_set_traits): Use it.
26043 * symbol-summary.h (function_summary::map_hash): New class.
26044 (function_summary::summary_hashmap_traits): Use it.
26045 * tree-inline.h (dependence_hash): New class.
26046 (dependence_hasher): Use it.
26047 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
26048 * value-prof.c (profile_id_hash): New class.
26049 (profile_id_traits): Use it.
26051 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26053 * config/mips/mips.c (mips16_flip_traits): Use it.
26054 (local_alias_traits, mips16_local_aliases): Convert from a map of
26055 rtxes to a map of symbol names.
26056 (mips16_local_alias): Update accordingly.
26058 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26060 * hash-traits.h (string_hash, nofree_string_hash): New classes.
26061 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
26062 * passes.c (pass_registry_hasher): Likewise.
26063 * config/alpha/alpha.c (string_traits): Likewise.
26064 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
26065 * config/m32c/m32c.c (pragma_traits): Likewise.
26066 * config/mep/mep.c (pragma_traits): Likewise.
26068 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26070 * tree-hash-traits.h (tree_hash): New class.
26071 * except.c: Include tree-hash-traits.h.
26072 (tree_hash_traits): Use tree_hash.
26074 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26076 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
26077 * sese.c: Include tree-hash-traits.h.
26078 (rename_map_hasher): Use tree_ssa_name_hasher.
26080 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26082 * tree-hash-traits.h (tree_decl_hash): New class.
26083 * tree-ssa-strlen.c: Include tree-hash-traits.h.
26084 (stridxlist_hash_traits): Use tree_decl_hash.
26086 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26088 * tree-hash-traits.h: New file.
26089 (tree_operand_hash): New class.
26090 * sanopt.c: Include tree-hash-traits.h.
26091 (sanopt_tree_map_traits): Use tree_operand_hash.
26092 * tree-if-conv.c: Include tree-hash-traits.h.
26093 (phi_args_hash_traits): Use tree_operand_hash.
26094 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
26095 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
26097 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26099 * hash-map-traits.h: Include hash-traits.h.
26100 (simple_hashmap_traits): New class.
26101 * mem-stats.h (hash_map): Change the default traits to
26102 simple_hashmap_traits<default_hash_traits<Key> >.
26104 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26106 * hash-table.h: Update comments.
26108 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26110 * hash-traits.h (default_hash_traits): New structure.
26111 * hash-set.h (default_hashset_traits): Delete.
26112 (hash_set): Use default_hash_traits<Key> instead of
26113 default_hashset_traits. Delete hash_entry type and use Key directly.
26114 * ipa-devirt.c (pair_traits): Delete.
26115 (default_hash_traits <type_pair>): Override.
26116 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
26117 (odr_types_equivalent_p, add_type_duplicate): Likewise.
26119 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26121 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
26123 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26125 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
26126 (has_is_empty, is_empty_helper): Delete.
26127 (has_mark_deleted, mark_deleted_helper): Delete.
26128 (has_mark_empty, mark_empty_helper): Delete.
26129 (hash_table::is_deleted): Call the Descriptor unconditionally.
26130 (hash_table::is_empty): Likewise.
26131 (hash_table::mark_deleted): Likewise.
26132 (hash_table::mark_empty): Likewise.
26134 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26136 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
26137 redundant typedefs and members.
26138 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
26139 redundant typedefs.
26140 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
26141 * ipa-devirt.c (odr_name_hasher): Likewise.
26142 (polymorphic_call_target_hasher): Likewise.
26143 * ira-costs.c (cost_classes_hasher): Likewise.
26144 * statistics.c (stats_counter_hasher): Likewise.
26145 * trans-mem.c (log_entry_hasher): Likewise.
26146 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
26147 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
26148 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
26149 * var-tracking.c (variable_hasher): Likewise.
26150 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
26151 Remove redundant typedefs and members.
26153 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26155 * hash-traits.h (ggc_cache_hasher): Rename to...
26156 (ggc_cache_remove): ...this and remove typedefs.
26157 (ggc_cache_ptr_hash): New class.
26158 * hash-table.h: Update commentary.
26159 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
26160 rather than ggc_cache_hasher.
26161 (const_wide_int_hasher, reg_attr_hasher): Likewise.
26162 (const_double_hasher, const_fixed_hasher): Likewise.
26163 * function.c (insn_cache_hasher): Likewise.
26164 * trans-mem.c (tm_wrapper_hasher): Likewise.
26165 * tree.h (tree_decl_map_cache_hasher): Likewise.
26166 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
26167 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
26168 * ubsan.c (tree_type_map_cache_hasher): Likewise.
26169 * varasm.c (tm_clone_hasher): Likewise.
26170 * config/i386/i386.c (dllimport_hasher): Likewise.
26171 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
26172 (tree_hasher): Likewise.
26174 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26176 * hash-traits.h (ggc_hasher): Rename to...
26177 (ggc_remover): ...this and remove typedefs.
26178 (ggc_cache_hasher): Update accordingly. Add typedefs.
26179 (ggc_ptr_hash): New class.
26180 * hash-table.h: Update comment.
26181 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
26183 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
26184 (tree_descriptor_hasher): Likewise.
26185 * cgraph.c (function_version_hasher): Likewise.
26186 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
26187 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
26188 (dw_loc_list_hasher, addr_hasher): Likewise.
26189 * function.h (used_type_hasher): Likewise.
26190 * function.c (temp_address_hasher): Likewise.
26191 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
26192 * libfuncs.h (libfunc_hasher): Likewise.
26193 * lto-streamer.h (decl_state_hasher): Likewise.
26194 * optabs.c (libfunc_decl_hasher): Likewise.
26195 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
26196 * varasm.c (section_hasher, object_block_hasher): Likewise.
26197 (const_rtx_desc_hasher): Likewise.
26198 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
26199 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
26201 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26203 * hash-traits.h (free_ptr_hash): New class.
26204 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
26205 rather than typed_free_remove. Remove redudant typedefs.
26206 (external_ref_hasher): Likewise.
26207 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
26208 (ehspec_hasher): Likewise.
26209 * ggc-common.c (saving_hasher): Likewise.
26210 * gimplify.c (gimplify_hasher): Likewise.
26211 * haifa-sched.c (delay_i2_hasher): Likewise.
26212 * loop-invariant.c (invariant_expr_hasher): Likewise.
26213 * loop-iv.c (biv_entry_hasher): Likewise.
26214 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
26215 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
26216 * tree-cfg.c (locus_discrim_hasher): Likewise.
26217 * tree-eh.c (finally_tree_hasher): Likewise.
26218 * tree-into-ssa.c (var_info_hasher): Likewise.
26219 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
26220 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
26221 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
26222 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
26223 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
26224 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
26225 (shared_bitmap_hasher): Likewise.
26226 * tree-ssa-threadupdate.c (redirection_data): Likewise.
26227 * tree-vectorizer.h (peel_info_hasher): Likewise.
26228 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
26229 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
26231 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26233 * hash-table.h: Update comments.
26234 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
26235 (nofree_ptr_hash): New class.
26236 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
26237 than typed_noop_remove. Remove redudant typedefs.
26238 * attribs.c (attribute_hasher): Likewise.
26239 * cfg.c (bb_copy_hasher): Likewise.
26240 * cselib.c (cselib_hasher): Likewise.
26241 * dse.c (invariant_group_base_hasher): Likewise.
26242 * dwarf2cfi.c (trace_info_hasher): Likewise.
26243 * dwarf2out.c (macinfo_entry_hasher): Likewise.
26244 (comdat_type_hasher, loc_list_hasher): Likewise.
26245 * gcse.c (pre_ldst_expr_hasher): Likewise.
26246 * genmatch.c (id_base): Likewise.
26247 * genrecog.c (test_pattern_hasher): Likewise.
26248 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
26249 * haifa-sched.c (delay_i1_hasher): Likewise.
26250 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
26251 * ipa-icf.h (congruence_class_group_hash): Likewise.
26252 * ipa-profile.c (histogram_hash): Likewise.
26253 * ira-color.c (allocno_hard_regs_hasher): Likewise.
26254 * lto-streamer.h (string_slot_hasher): Likewise.
26255 * lto-streamer.c (tree_entry_hasher): Likewise.
26256 * plugin.c (event_hasher): Likewise.
26257 * postreload-gcse.c (expr_hasher): Likewise.
26258 * store-motion.c (st_expr_hasher): Likewise.
26259 * tree-sra.c (uid_decl_hasher): Likewise.
26260 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
26261 (ssa_name_var_hash): Likewise.
26262 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
26263 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
26264 * tree-ssa-pre.c (pre_expr_d): Likewise.
26265 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
26266 * vtable-verify.h (registration_hasher): Likewise.
26267 * vtable-verify.c (vtbl_map_hasher): Likewise.
26268 * config/arm/arm.c (libcall_hasher): Likewise.
26269 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
26270 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
26271 * config/sol2.c (comdat_entry_hasher): Likewise.
26272 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
26273 (print_fold_checksum, fold_checksum_tree): Likewise.
26274 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
26275 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
26276 (fold_build_call_array_loc): Likewise.
26277 * tree-ssa-ccp.c (gimple_htab): Likewise.
26278 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
26279 rather than pointer_type.
26281 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26283 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
26284 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
26286 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26288 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
26289 (ggc_hasher::ggc_mx): Likewise.
26290 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
26291 that duplicate ggc_hasher ones.
26293 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26295 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
26296 (gt_cleare_cache): Check here for deleted and empty entries.
26297 Replace handle_cache_entry with a call to keep_cache_entry.
26298 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
26299 (ggc_cache_hasher::keep_cache_entry): New function.
26300 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
26301 (tm_wrapper_hasher::keep_cache_entry): New function.
26302 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
26303 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26304 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
26305 (type_cache_hasher::keep_cache_entry): New function.
26306 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
26307 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26308 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
26309 (tree_type_map_cache_hasher::keep_cache_entry): New function.
26310 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
26311 (tm_clone_hasher::keep_cache_entry): New function.
26312 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
26313 (dllimport_hasher::keep_cache_entry): New function.
26315 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26317 * hash-table.h: Include hash-traits.h.
26318 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
26319 (ggc_cache_hasher): Move to...
26320 * hash-traits.h: ...this new file.
26322 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26324 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
26325 struct cl_optimization.
26326 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
26327 * tree.c (make_node_stat): Allocate cl_optimization struct.
26328 (copy_node_stat): Allocate and copy cl_optimization struct.
26330 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26332 * function.h (struct incoming_args): Move struct.
26333 (pass_by_reference, reference_callee_copied): Remove prototypes.
26334 * emit-rtl.h (struct incoming_args): Relocate struct here.
26335 * calls.h (pass_by_reference, reference_callee_copied): Relocate
26337 * function.c (pass_by_reference, reference_callee_copied): Move.
26338 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
26339 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
26340 * ipa-chkp.c: Include calls.h.
26342 2015-06-25 Andrew Macleod <amacleod@redhat.com>
26344 * alias.h (alias_set_type): Move typedef.
26345 * coretypes.h (alias_set_type): Relocate typedef here.
26346 * rtl.h: Don't include alias.h.
26348 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26350 * cgraph.h (cgraph_rtl_info): Move to rtl.h
26351 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
26353 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
26354 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
26356 * calls.c: Include hard-reg-set.h before rtl.h.
26359 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26360 Vladimir Makarov <vmakarov@redhat.com>
26362 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
26365 2015-06-25 Richard Biener <rguenther@suse.de>
26367 * fold-const.c (fold_binary_loc): Move simplification of
26368 (X <<>> C1) & C2 ...
26369 * match.pd: ... here.
26371 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
26373 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
26375 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26377 * match.pd: Add patterns for vec_conds between 1 and 0.
26379 2015-06-25 Richard Biener <rguenther@suse.de>
26381 * tree-vect-stmts.c (vectorizable_conversion): Do not set
26382 STMT_VINFO_VEC_STMT for SLP.
26383 (vectorizable_store): Likewise.
26384 (vectorizable_load): Likewise.
26385 (vect_transform_stmt): Catch SLP vectorization clobbering
26386 STMT_VINFO_VEC_STMT.
26388 2015-06-25 Richard Biener <rguenther@suse.de>
26390 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
26392 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
26393 cleanup resulting dead code and parameters.
26394 (vect_transform_slp_perm_load): Adjust.
26396 2015-06-25 Nick Clifton <nickc@redhat.com>
26398 * config/bfin/bfin.c (bfin_expand_prologue): Set
26399 current_function_static_stack_size if flag_stack_usage_info is set.
26400 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
26401 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
26402 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
26403 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
26405 2015-06-25 Tom de Vries <tom@codesourcery.com>
26407 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
26408 comment that the generated IV is unsigned.
26410 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26413 * config/arm/arm.c (arm_dbx_register_number): Return
26414 DWARF_FRAME_REGISTERS by default.
26416 2015-06-25 Tom de Vries <tom@codesourcery.com>
26418 * dominance.c (calculate_dominance_info): Fix verify_dominators call
26419 argument. Call verify_dominator when reusing dominator info.
26421 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
26424 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
26425 an additional element of the unspec vector. Modify indices
26427 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
26428 * config/sh/sh.c (prepare_move_operands): Pass incremented
26429 const_int to gen_GOTaddr2picreg.
26430 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
26432 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26434 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
26435 Condition on TARGET_FLOAT.
26437 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26439 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
26442 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26444 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
26446 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
26447 aarch64_err_no_fpadvsimd.
26449 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
26450 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
26451 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
26452 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
26453 Turn error into assert, test TARGET_FLOAT.
26454 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
26457 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
26460 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
26462 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
26464 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
26466 2015-06-24 Renlin Li <renlin.li@arm.com>
26468 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
26469 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
26471 2015-06-24 Richard Biener <rguenther@suse.de>
26473 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
26475 (lower_opt_convert): Support lowering of conditional view_convert.
26476 (parser::parse_operation): Likewise.
26477 (parser::parse_for): Likewise.
26479 2015-06-24 Renlin Li <renlin.li@arm.com>
26481 * varasm.c (emit_local): Use unsigned int for align variable.
26483 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26486 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
26487 for negative numbers.
26489 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26491 PR rtl-optimization/66306
26492 * reload.c (find_reloads): Swap the match_dup info for
26493 commutative operands.
26495 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26497 * config/s390/vx-builtins.md
26498 ("vec_scatter_element<mode>_<non_vec_int>")
26499 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
26500 attribute with bhfgq.
26502 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26504 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
26506 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26508 * config/s390/s390-builtin-types.def: Add flag to indicate the
26509 options under which the function type is needed.
26510 * config/s390/s390-builtins.def: Add flag to indicate the options
26511 under which the builtin is enabled.
26512 * config/s390/s390-builtins.h: Add flags parameter to macro
26514 (bflags_for_builtin): New function.
26515 (flags_for_builtin): Renamed to ...
26516 (opflags_for_builtin): ... this.
26517 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
26518 flags_for_builtin to bflags_for_builtin and
26519 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
26520 * config/s390/s390.c: Add initialization of bflags_builtin and
26521 opflags_builtin arrays.
26522 Remove code for flags_builtin.
26523 (s390_init_builtins): Only create builtin function types if one of
26524 their flags is active.
26525 Only create builtins if all of their flags are active.
26526 (s390_expand_builtin): Rename flags_for_builtin to
26527 opflags_for_builtin.
26529 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26531 * config/s390/vecintrin.h: Remove internal builtins.
26533 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26535 * config/s390/s390.c (s390_secondary_reload): Fix check for
26536 GENERAL_REGS register class.
26538 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26540 * config/s390/s390.c (s390_support_vector_misalignment): Call
26541 default implementation for !TARGET_VX.
26543 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26545 * config/s390/s390.c (s390_legitimate_constant_p): Add
26548 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26550 * config/s390/s390.c (s390_vector_abi): New variable definition.
26551 (s390_check_type_for_vector_abi): New function.
26552 (TARGET_ASM_FILE_END): New macro definition.
26553 (s390_asm_file_end): New function.
26554 (s390_function_arg): Call s390_check_type_for_vector_abi.
26555 (s390_gimplify_va_arg): Likewise.
26556 * configure: Regenerate.
26557 * configure.ac: Check for .gnu_attribute Binutils feature.
26559 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
26562 * config/bfin/bfin.c (hwloop_optimize): Initialize
26563 JUMP_LABEL for newly created jump.
26565 2015-06-23 Tristan Gingold <gingold@adacore.com>
26567 * collect-utils.c (collect_wait): Unlink the response file here
26569 (do_wait): ...here.
26570 (utils_cleanup): ...and here.
26572 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
26574 * df-scan.c: Don't include target-def.h.
26575 * targhooks.c: Likewise.
26576 * config/arm/arm-c.c: Likewise.
26577 * config/i386/i386-c.c: Likewise.
26578 * config/nds32/nds32-cost.c: Likewise.
26579 * config/nds32/nds32-fp-as-gp.c: Likewise.
26580 * config/nds32/nds32-intrinsic.c: Likewise.
26581 * config/nds32/nds32-isr.c: Likewise.
26582 * config/nds32/nds32-md-auxiliary.c: Likewise.
26583 * config/nds32/nds32-memory-manipulation.c: Likewise.
26584 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26585 * config/nds32/nds32-predicates.c: Likewise.
26587 2015-06-23 Richard Biener <rguenther@suse.de>
26589 PR tree-optimization/66636
26590 * tree-vect-stmts.c (vectorizable_store): Properly compute the
26591 def type for further defs for strided stores.
26593 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
26595 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
26596 conditional selects.
26597 (setcc_int<mode>, setcc_float<mode>): Reformat.
26599 2015-06-23 Marek Polacek <polacek@redhat.com>
26601 * match.pd ((x + y) - (x | y) -> x & y,
26602 (x + y) - (x & y) -> x | y): New patterns.
26604 2015-06-23 Ludovic Courtès <ludo@gnu.org>
26607 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
26608 '-dynamic-linker' within %{!shared: ...}.
26610 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
26613 * config/i386/predicates.md (addsub_vm_operator): New predicate.
26614 (addsub_vs_operator): Ditto.
26615 (addsub_vs_parallel): Ditto.
26616 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
26617 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
26618 Put minus RTX before plus and adjust vec_merge selector.
26619 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
26620 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
26621 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
26622 (addsub vec_merge splitters): New combiner splitters.
26623 (addsub vec_select/vec_concat splitters): Ditto.
26625 2015-06-23 Bin Cheng <bin.cheng@arm.com>
26627 PR tree-optimization/66449
26628 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
26629 POINTER_PLUS_EXPR for pointers.
26631 2015-06-23 Alan Modra <amodra@gmail.com>
26633 * rtlanal.c (commutative_operand_precedence): Correct comments.
26634 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
26635 declaration. Return an int. Distinguish REG,REG return from
26637 (struct simplify_plus_minus_op_data): Make local to function.
26638 (simplify_plus_minus): Don't set canonicalized if merely sorting
26639 registers. Avoid packing ops if nothing changes. White space fixes.
26641 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
26643 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
26644 -fdump-ada-spec is passed but not if -fsyntax-only is.
26646 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
26649 * lra-lives.c (process_bb_lives): Check insn copying the same
26650 reload pseudo and don't create a copy for it.
26652 2015-06-22 Tom de Vries <tom@codesourcery.com>
26654 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
26657 2015-06-22 Tom de Vries <tom@codesourcery.com>
26659 * builtins.def (DEF_GOMP_BUILTIN): Test
26660 'flag_tree_parallelize_loops > 1' instead of
26661 'flag_tree_parallelize_loops'. Test flag_cilkplus.
26663 2015-06-22 Tom de Vries <tom@codesourcery.com>
26665 * dominance.c (calculate_dominance_info): Verify dominators if
26668 2015-06-22 Marek Polacek <polacek@redhat.com>
26670 * match.pd ((x ^ y) ^ (x | y) -> x & y,
26671 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
26672 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
26673 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
26675 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
26678 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
26679 cost of embedded comparison.
26681 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26684 * config/rs6000/predicates.md (altivec_register_operand): Permit
26685 virtual stack registers.
26686 (vsx_register_operand): Likewise.
26687 (vfloat_operand): Likewise.
26688 (vint_operand): Likewise.
26689 (vlogical_operand): Likewise.
26691 2015-06-22 Richard Biener <rguenther@suse.de>
26693 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
26694 and single_scalar_iteration_cost members.
26695 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
26696 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
26697 (vect_get_single_scalar_iteration_cost): Remove.
26698 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26699 Use LOOP_VINFO_SCALAR_ITERATION_COST.
26700 * tree-vect-loop.c (destroy_loop_vec_info): Free
26702 (vect_get_single_scalar_iteration_cost): Compute result into
26703 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
26704 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
26705 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
26706 (vect_estimate_min_profitable_iters): Use them.
26708 2015-06-22 Christian Bruel <christian.bruel@st.com>
26711 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
26712 (TARGET_INSERT_ATTRIBUTES): Define.
26713 (thumb_flipper): New var.
26714 * config/arm/arm.opt (-mflip-thumb): New switch.
26716 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
26717 Martin Liska <mliska@suse.cz>
26720 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
26721 construction of arg_types.
26722 (sem_function::sem_function): Likewise.
26723 (sem_function::~sem_function): Remove destruction of arg_types.
26724 (sem_function::compatible_parm_types_p): New function.
26725 (sem_function::equals_wpa): Reorg matching of return values
26726 and parameter types.
26727 (sem_function::equals_private): Reorg mathcing of argument types.
26728 (sem_function::parse_tree_args): Remove.
26729 * ipa-icf.h (init_wpa): Do not call it.
26730 (parse_tree_args): Remove.
26731 (compatible_parm_types_p): Declare.
26732 (result_type): Remove.
26733 (arg_types): Remove.
26735 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
26738 * ipa-polymorphic-call.c
26739 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
26740 initializing alias oracle; fix formating; set base_alias_set if it
26743 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
26745 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
26746 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
26747 (find_inc): Likewise.
26748 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
26750 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
26751 * df-scan.c (df_swap_refs): Remove.
26752 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
26753 * dominance.c (link_roots): Use std::swap instead of manually swapping.
26754 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
26755 * fold-const.c (fold_relational_const): Likewise.
26756 * genattrtab.c (simplify_test_exp): Likewise.
26757 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
26758 gimple_simplify): Likewise.
26759 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
26760 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
26761 * ipa-devirt.c (add_type_duplicate): Likewise.
26762 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
26763 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
26764 * lra.c (lra_create_copy): Likewise.
26765 * lto-streamer-out.c (DFS::DFS): Likewise.
26766 * modulo-sched.c (get_sched_window): Likewise.
26767 * omega.c (omega_pretty_print_problem): Likewise.
26768 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
26769 * reload1.c (reloads_unique_chain_p): Likewise.
26770 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
26771 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
26773 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
26775 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
26776 predicate_mem_writes): Likewise.
26777 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
26778 * tree-predcom.c (combine_chains): Likewise.
26779 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
26780 refs_may_alias_p_1): Likewise.
26781 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
26782 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
26783 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
26784 number_of_iterations_cond): Likewise.
26785 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
26786 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
26787 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
26788 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
26789 * tree-vrp.c (extract_range_from_binary_expr_1,
26790 extract_range_from_unary_expr_1): Likewise.
26792 2015-06-20 Marek Polacek <polacek@redhat.com>
26794 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
26796 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
26799 * config/sh/sh.c (prepare_move_operands): Replace subreg
26800 index term with R0 for base and index addressing.
26802 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
26804 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
26806 (movsf_aarch64): Change condition from register_operand to
26807 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
26808 load1. Change type for alternative 7 to store1.
26809 (movdf_aarch64): Likewise.
26811 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
26813 * config/vax/vax.md: Adjust sign/zero extend patterns to
26814 handle SUBREGs in operands[1].
26816 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26818 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
26819 of manually swapping.
26820 (expand_vec_perm_interleave2): Likewise.
26822 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
26824 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
26825 reuse bounds created for abnormal ssa names.
26827 2015-06-19 Jakub Jelinek <jakub@redhat.com>
26829 * config/nvptx/nvptx.md (allocate_stack): Rename to...
26830 (allocate_stack_<mode>): ... this, and add :P on both
26831 match_operand and unspec.
26832 (allocate_stack): New expander.
26834 2015-06-19 Christian Bruel <christian.bruel@st.com>
26838 * config/arm/arm.c (arm_set_current_function): Handle
26839 explicit default options.
26841 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
26843 * config/i386/i386.md (*movsicc_noc_zext): New insn.
26844 (zero-extended cmove with mem peephole2): New pattern.
26845 (cmove with mem peephole2): Merge patterns.
26847 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
26849 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
26851 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
26853 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
26854 * config/mips/mips.md (*madd4<mode>): Ditto.
26855 (*nmadd3<mode>) Ditto.
26856 (*nmadd4<mode>_fastmath): Ditto.
26857 (*nmadd3<mode>_fastmath): Ditto.
26858 (*nmsub4<mode>): Ditto.
26859 (*nmsub3<mode>): Ditto.
26860 (*nmsub4<mode>_fastmath): Ditto.
26861 (*nmsub3<mode>_fastmath): Ditto.
26863 2015-06-18 Michael Matz <matz@suse.de>
26865 PR middle-end/66253
26866 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
26867 grouped strided stores.
26868 (vectorizable_load): Don't use the DR from first_stmt in
26869 the non-SLP grouped strided case.
26871 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26874 * function.c (assign_bounds): Add arguments assign_regs,
26875 assign_special, assign_bt.
26876 (assign_parms): For vararg functions handle bounds in BT
26877 and special slots after incoming vararg bounds.
26879 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26881 PR middle-end/66568
26882 * cfgexpand.c (expand_return): Handle missing bounds.
26883 (expand_gimple_stmt_1): Likewise.
26884 * tree-chkp.c (chkp_expand_zero_bounds): New.
26885 * tree-chkp.h (chkp_expand_zero_bounds): New.
26887 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
26889 PR middle-end/66567
26890 * ipa-chkp.c (chkp_maybe_create_clone): Require
26891 functions to be instrumentable.
26892 * tree-chkp.c (chkp_replace_function_pointer): Use
26893 chkp_instrumentable_p instead of attribute check.
26895 2015-06-18 Richard Biener <rguenther@suse.de>
26897 PR tree-optimization/66510
26898 * tree-vect-stmts.c (vectorizable_load): Properly compute the
26899 number of vector loads for SLP permuted loads.
26900 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
26901 check the stride for loop vectorization.
26902 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
26903 vectorization factor.
26904 (vect_analyze_group_access): If the group size is not a power
26905 of two require a epilogue loop.
26906 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
26907 compute and optimizing and alias test pruning after final
26908 vectorization factor computation.
26909 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
26911 (vect_transform_slp_perm_load): Properly compute the original
26912 number of vector load stmts.
26914 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
26916 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
26917 "unlikely character , in @var" warning.
26919 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
26921 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
26922 (ix86_function_arg_advance): Ditto.
26923 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
26925 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26927 * function.h (struct rtl_data): Remove struct and accessor macros.
26928 * emit-rtl.h (struct rtl_data): Relocate to here.
26929 * Makefile.in (GTFILES): Add emit-rtl.h.
26930 * df-core.c: Include emit-rtl.h.
26931 * genattrtab.c: Likewise.
26932 * genconditions.c: Likewise.
26933 * genpreds.c: Likewise.
26934 * genrecog.c: Likewise.
26935 * regcprop.c: Likewise.
26936 * resource.c: Likewise.
26937 * sched-rgn.c: Likewise.
26938 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26939 * config/i386/winnt.c: Likewise.
26941 2015-06-17 Jakub Jelinek <jakub@redhat.com>
26943 PR middle-end/66429
26944 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
26945 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
26946 and has_force_vectorize_loops flags from cfun into
26948 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
26949 if simduid is non-NULL.
26950 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
26951 * passes.def (pass_simduid_cleanup): Add new pass after loop
26953 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
26954 indirection from htab argument's type.
26955 (shrink_simd_arrays): New function.
26956 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
26957 Don't call adjust_simduid_builtins if there are no loops.
26958 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
26959 (pass_simduid_cleanup::execute): New method.
26960 (make_pass_simduid_cleanup): New function.
26962 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
26964 * tree-core.h (tree_target_option): Make opts field a pointer to a
26965 cl_target_option instead of an instance of the struct.
26966 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
26968 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
26969 TARGET_OPTION_NODE.
26970 (copy_node_stat): Allocate and copy struct cl_target_option.
26972 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26974 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
26975 Remove conditional exposure of prototypes.
26976 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
26977 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
26978 definitions in tree.h with functions.
26979 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
26981 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
26983 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
26985 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
26986 (*cmp<mode>_signed): ... this.
26987 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
26988 (*cmp<mode>_unsigned): ... this. Remove %b.
26990 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26992 * coretypes.h: Include input.h and as-a.h.
26993 * rtl.h: Include input.h and as-a.h for generator files.
26994 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
26995 * vec.c: Don't include diagnostic-core.h.
26996 * alias.c: Do not include input.h, line-map.h or is-a.h.
26997 * asan.c: Likewise.
26998 * attribs.c: Likewise.
26999 * auto-inc-dec.c: Likewise.
27000 * auto-profile.c: Likewise.
27001 * bb-reorder.c: Likewise.
27002 * bt-load.c: Likewise.
27003 * builtins.c: Likewise.
27004 * caller-save.c: Likewise.
27005 * calls.c: Likewise.
27006 * ccmp.c: Likewise.
27008 * cfganal.c: Likewise.
27009 * cfgbuild.c: Likewise.
27010 * cfgcleanup.c: Likewise.
27011 * cfgexpand.c: Likewise.
27012 * cfghooks.c: Likewise.
27013 * cfgloop.c: Likewise.
27014 * cfgloop.h: Likewise.
27015 * cfgloopanal.c: Likewise.
27016 * cfgloopmanip.c: Likewise.
27017 * cfgrtl.c: Likewise.
27018 * cgraph.c: Likewise.
27019 * cgraphbuild.c: Likewise.
27020 * cgraphclones.c: Likewise.
27021 * cgraphunit.c: Likewise.
27022 * cilk-common.c: Likewise.
27023 * combine-stack-adj.c: Likewise.
27024 * combine.c: Likewise.
27025 * compare-elim.c: Likewise.
27026 * convert.c: Likewise.
27027 * coverage.c: Likewise.
27028 * cppbuiltin.c: Likewise.
27029 * cprop.c: Likewise.
27031 * cselib.c: Likewise.
27032 * data-streamer-in.c: Likewise.
27033 * data-streamer-out.c: Likewise.
27034 * data-streamer.c: Likewise.
27035 * dbxout.c: Likewise.
27038 * debug.c: Likewise.
27039 * df-core.c: Likewise.
27040 * df-problems.c: Likewise.
27041 * df-scan.c: Likewise.
27044 * diagnostic-core.h: Likewise.
27045 * diagnostic.c: Likewise.
27046 * dojump.c: Likewise.
27047 * dominance.c: Likewise.
27048 * domwalk.c: Likewise.
27049 * double-int.c: Likewise.
27051 * dumpfile.c: Likewise.
27052 * dumpfile.h: Likewise.
27053 * dwarf2asm.c: Likewise.
27054 * dwarf2cfi.c: Likewise.
27055 * dwarf2out.c: Likewise.
27056 * emit-rtl.c: Likewise.
27057 * et-forest.c: Likewise.
27058 * except.c: Likewise.
27059 * explow.c: Likewise.
27060 * expmed.c: Likewise.
27061 * expr.c: Likewise.
27062 * final.c: Likewise.
27063 * fixed-value.c: Likewise.
27064 * fold-const.c: Likewise.
27065 * function.c: Likewise.
27066 * fwprop.c: Likewise.
27067 * gcc-plugin.h: Likewise.
27068 * gcse.c: Likewise.
27069 * generic-match-head.c: Likewise.
27070 * ggc-page.c: Likewise.
27071 * gimple-builder.c: Likewise.
27072 * gimple-expr.c: Likewise.
27073 * gimple-fold.c: Likewise.
27074 * gimple-iterator.c: Likewise.
27075 * gimple-low.c: Likewise.
27076 * gimple-match-head.c: Likewise.
27077 * gimple-pretty-print.c: Likewise.
27078 * gimple-ssa-isolate-paths.c: Likewise.
27079 * gimple-ssa-strength-reduction.c: Likewise.
27080 * gimple-streamer-in.c: Likewise.
27081 * gimple-streamer-out.c: Likewise.
27082 * gimple-streamer.h: Likewise.
27083 * gimple-walk.c: Likewise.
27084 * gimple.c: Likewise.
27085 * gimplify-me.c: Likewise.
27086 * gimplify.c: Likewise.
27087 * godump.c: Likewise.
27088 * graph.c: Likewise.
27089 * graphite-blocking.c: Likewise.
27090 * graphite-dependences.c: Likewise.
27091 * graphite-interchange.c: Likewise.
27092 * graphite-isl-ast-to-gimple.c: Likewise.
27093 * graphite-optimize-isl.c: Likewise.
27094 * graphite-poly.c: Likewise.
27095 * graphite-scop-detection.c: Likewise.
27096 * graphite-sese-to-poly.c: Likewise.
27097 * graphite.c: Likewise.
27098 * haifa-sched.c: Likewise.
27099 * hw-doloop.c: Likewise.
27100 * ifcvt.c: Likewise.
27101 * init-regs.c: Likewise.
27102 * input.c: Likewise.
27103 * internal-fn.c: Likewise.
27104 * ipa-chkp.c: Likewise.
27105 * ipa-comdats.c: Likewise.
27106 * ipa-cp.c: Likewise.
27107 * ipa-devirt.c: Likewise.
27108 * ipa-icf-gimple.c: Likewise.
27109 * ipa-icf.c: Likewise.
27110 * ipa-inline-analysis.c: Likewise.
27111 * ipa-inline-transform.c: Likewise.
27112 * ipa-inline.c: Likewise.
27113 * ipa-polymorphic-call.c: Likewise.
27114 * ipa-profile.c: Likewise.
27115 * ipa-prop.c: Likewise.
27116 * ipa-pure-const.c: Likewise.
27117 * ipa-ref.c: Likewise.
27118 * ipa-reference.c: Likewise.
27119 * ipa-split.c: Likewise.
27120 * ipa-utils.c: Likewise.
27121 * ipa-visibility.c: Likewise.
27123 * ira-build.c: Likewise.
27124 * ira-color.c: Likewise.
27125 * ira-conflicts.c: Likewise.
27126 * ira-costs.c: Likewise.
27127 * ira-emit.c: Likewise.
27128 * ira-lives.c: Likewise.
27130 * jump.c: Likewise.
27131 * langhooks.c: Likewise.
27133 * loop-doloop.c: Likewise.
27134 * loop-init.c: Likewise.
27135 * loop-invariant.c: Likewise.
27136 * loop-iv.c: Likewise.
27137 * loop-unroll.c: Likewise.
27138 * lower-subreg.c: Likewise.
27139 * lra-assigns.c: Likewise.
27140 * lra-coalesce.c: Likewise.
27141 * lra-constraints.c: Likewise.
27142 * lra-eliminations.c: Likewise.
27143 * lra-lives.c: Likewise.
27144 * lra-remat.c: Likewise.
27145 * lra-spills.c: Likewise.
27147 * lto-cgraph.c: Likewise.
27148 * lto-compress.c: Likewise.
27149 * lto-opts.c: Likewise.
27150 * lto-section-in.c: Likewise.
27151 * lto-section-out.c: Likewise.
27152 * lto-streamer-in.c: Likewise.
27153 * lto-streamer-out.c: Likewise.
27154 * lto-streamer.c: Likewise.
27156 * mode-switching.c: Likewise.
27157 * modulo-sched.c: Likewise.
27158 * omega.c: Likewise.
27159 * omp-low.c: Likewise.
27160 * optabs.c: Likewise.
27161 * opts-global.c: Likewise.
27162 * opts.h: Likewise.
27163 * passes.c: Likewise.
27164 * plugin.c: Likewise.
27165 * postreload-gcse.c: Likewise.
27166 * postreload.c: Likewise.
27167 * predict.c: Likewise.
27168 * pretty-print.h: Likewise.
27169 * print-rtl.c: Likewise.
27170 * print-tree.c: Likewise.
27171 * profile.c: Likewise.
27172 * real.c: Likewise.
27173 * realmpfr.c: Likewise.
27174 * recog.c: Likewise.
27176 * reg-stack.c: Likewise.
27177 * regcprop.c: Likewise.
27178 * reginfo.c: Likewise.
27179 * regrename.c: Likewise.
27180 * regstat.c: Likewise.
27181 * reload.c: Likewise.
27182 * reload1.c: Likewise.
27183 * reorg.c: Likewise.
27184 * resource.c: Likewise.
27185 * rtl-chkp.c: Likewise.
27186 * rtl-error.c: Likewise.
27187 * rtlanal.c: Likewise.
27188 * rtlhooks.c: Likewise.
27189 * sanopt.c: Likewise.
27190 * sched-deps.c: Likewise.
27191 * sched-ebb.c: Likewise.
27192 * sched-rgn.c: Likewise.
27193 * sched-vis.c: Likewise.
27194 * sdbout.c: Likewise.
27195 * sel-sched-dump.c: Likewise.
27196 * sel-sched-ir.c: Likewise.
27197 * sel-sched.c: Likewise.
27198 * sese.c: Likewise.
27199 * shrink-wrap.c: Likewise.
27200 * simplify-rtx.c: Likewise.
27201 * stack-ptr-mod.c: Likewise.
27202 * statistics.c: Likewise.
27203 * stmt.c: Likewise.
27204 * stor-layout.c: Likewise.
27205 * store-motion.c: Likewise.
27206 * streamer-hooks.c: Likewise.
27207 * stringpool.c: Likewise.
27208 * symtab.c: Likewise.
27209 * target-globals.c: Likewise.
27210 * targhooks.c: Likewise.
27211 * toplev.c: Likewise.
27212 * tracer.c: Likewise.
27213 * trans-mem.c: Likewise.
27214 * tree-affine.c: Likewise.
27215 * tree-browser.c: Likewise.
27216 * tree-call-cdce.c: Likewise.
27217 * tree-cfg.c: Likewise.
27218 * tree-cfgcleanup.c: Likewise.
27219 * tree-chkp-opt.c: Likewise.
27220 * tree-chkp.c: Likewise.
27221 * tree-chrec.c: Likewise.
27222 * tree-complex.c: Likewise.
27223 * tree-data-ref.c: Likewise.
27224 * tree-dfa.c: Likewise.
27225 * tree-diagnostic.c: Likewise.
27226 * tree-dump.c: Likewise.
27227 * tree-eh.c: Likewise.
27228 * tree-emutls.c: Likewise.
27229 * tree-if-conv.c: Likewise.
27230 * tree-inline.c: Likewise.
27231 * tree-into-ssa.c: Likewise.
27232 * tree-iterator.c: Likewise.
27233 * tree-loop-distribution.c: Likewise.
27234 * tree-nested.c: Likewise.
27235 * tree-nrv.c: Likewise.
27236 * tree-object-size.c: Likewise.
27237 * tree-outof-ssa.c: Likewise.
27238 * tree-parloops.c: Likewise.
27239 * tree-phinodes.c: Likewise.
27240 * tree-predcom.c: Likewise.
27241 * tree-pretty-print.c: Likewise.
27242 * tree-profile.c: Likewise.
27243 * tree-scalar-evolution.c: Likewise.
27244 * tree-sra.c: Likewise.
27245 * tree-ssa-address.c: Likewise.
27246 * tree-ssa-alias.c: Likewise.
27247 * tree-ssa-ccp.c: Likewise.
27248 * tree-ssa-coalesce.c: Likewise.
27249 * tree-ssa-copy.c: Likewise.
27250 * tree-ssa-copyrename.c: Likewise.
27251 * tree-ssa-dce.c: Likewise.
27252 * tree-ssa-dom.c: Likewise.
27253 * tree-ssa-dse.c: Likewise.
27254 * tree-ssa-forwprop.c: Likewise.
27255 * tree-ssa-ifcombine.c: Likewise.
27256 * tree-ssa-live.c: Likewise.
27257 * tree-ssa-loop-ch.c: Likewise.
27258 * tree-ssa-loop-im.c: Likewise.
27259 * tree-ssa-loop-ivcanon.c: Likewise.
27260 * tree-ssa-loop-ivopts.c: Likewise.
27261 * tree-ssa-loop-manip.c: Likewise.
27262 * tree-ssa-loop-niter.c: Likewise.
27263 * tree-ssa-loop-prefetch.c: Likewise.
27264 * tree-ssa-loop-unswitch.c: Likewise.
27265 * tree-ssa-loop.c: Likewise.
27266 * tree-ssa-math-opts.c: Likewise.
27267 * tree-ssa-operands.c: Likewise.
27268 * tree-ssa-phiopt.c: Likewise.
27269 * tree-ssa-phiprop.c: Likewise.
27270 * tree-ssa-pre.c: Likewise.
27271 * tree-ssa-propagate.c: Likewise.
27272 * tree-ssa-reassoc.c: Likewise.
27273 * tree-ssa-sccvn.c: Likewise.
27274 * tree-ssa-scopedtables.c: Likewise.
27275 * tree-ssa-sink.c: Likewise.
27276 * tree-ssa-strlen.c: Likewise.
27277 * tree-ssa-structalias.c: Likewise.
27278 * tree-ssa-tail-merge.c: Likewise.
27279 * tree-ssa-ter.c: Likewise.
27280 * tree-ssa-threadedge.c: Likewise.
27281 * tree-ssa-threadupdate.c: Likewise.
27282 * tree-ssa-uncprop.c: Likewise.
27283 * tree-ssa-uninit.c: Likewise.
27284 * tree-ssa.c: Likewise.
27285 * tree-ssanames.c: Likewise.
27286 * tree-stdarg.c: Likewise.
27287 * tree-streamer-in.c: Likewise.
27288 * tree-streamer-out.c: Likewise.
27289 * tree-streamer.c: Likewise.
27290 * tree-switch-conversion.c: Likewise.
27291 * tree-tailcall.c: Likewise.
27292 * tree-vect-data-refs.c: Likewise.
27293 * tree-vect-generic.c: Likewise.
27294 * tree-vect-loop-manip.c: Likewise.
27295 * tree-vect-loop.c: Likewise.
27296 * tree-vect-patterns.c: Likewise.
27297 * tree-vect-slp.c: Likewise.
27298 * tree-vect-stmts.c: Likewise.
27299 * tree-vectorizer.c: Likewise.
27300 * tree-vrp.c: Likewise.
27301 * tree.c: Likewise.
27302 * tsan.c: Likewise.
27303 * ubsan.c: Likewise.
27304 * valtrack.c: Likewise.
27305 * value-prof.c: Likewise.
27306 * var-tracking.c: Likewise.
27307 * varasm.c: Likewise.
27308 * varpool.c: Likewise.
27309 * vmsdbgout.c: Likewise.
27310 * vtable-verify.c: Likewise.
27312 * wide-int.cc: Likewise.
27313 * xcoffout.c: Likewise.
27314 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
27315 * common/common-targhooks.c: Likewise.
27316 * config/aarch64/aarch64-builtins.c: Likewise.
27317 * config/aarch64/aarch64.c: Likewise.
27318 * config/alpha/alpha.c: Likewise.
27319 * config/arc/arc.c: Likewise.
27320 * config/arm/aarch-common.c: Likewise.
27321 * config/arm/arm-builtins.c: Likewise.
27322 * config/arm/arm-c.c: Likewise.
27323 * config/arm/arm.c: Likewise.
27324 * config/avr/avr-c.c: Likewise.
27325 * config/avr/avr-log.c: Likewise.
27326 * config/avr/avr.c: Likewise.
27327 * config/bfin/bfin.c: Likewise.
27328 * config/c6x/c6x.c: Likewise.
27329 * config/cr16/cr16.c: Likewise.
27330 * config/cris/cris.c: Likewise.
27331 * config/darwin-c.c: Likewise.
27332 * config/darwin.c: Likewise.
27333 * config/default-c.c: Likewise.
27334 * config/epiphany/epiphany.c: Likewise.
27335 * config/epiphany/mode-switch-use.c: Likewise.
27336 * config/epiphany/resolve-sw-modes.c: Likewise.
27337 * config/fr30/fr30.c: Likewise.
27338 * config/frv/frv.c: Likewise.
27339 * config/ft32/ft32.c: Likewise.
27340 * config/glibc-c.c: Likewise.
27341 * config/h8300/h8300.c: Likewise.
27342 * config/i386/i386-c.c: Likewise.
27343 * config/i386/i386.c: Likewise.
27344 * config/i386/msformat-c.c: Likewise.
27345 * config/i386/winnt-cxx.c: Likewise.
27346 * config/i386/winnt-stubs.c: Likewise.
27347 * config/i386/winnt.c: Likewise.
27348 * config/ia64/ia64-c.c: Likewise.
27349 * config/ia64/ia64.c: Likewise.
27350 * config/iq2000/iq2000.c: Likewise.
27351 * config/lm32/lm32.c: Likewise.
27352 * config/m32c/m32c-pragma.c: Likewise.
27353 * config/m32c/m32c.c: Likewise.
27354 * config/m32r/m32r.c: Likewise.
27355 * config/m68k/m68k.c: Likewise.
27356 * config/mcore/mcore.c: Likewise.
27357 * config/mep/mep-pragma.c: Likewise.
27358 * config/mep/mep.c: Likewise.
27359 * config/microblaze/microblaze-c.c: Likewise.
27360 * config/microblaze/microblaze.c: Likewise.
27361 * config/mips/mips.c: Likewise.
27362 * config/mmix/mmix.c: Likewise.
27363 * config/mn10300/mn10300.c: Likewise.
27364 * config/moxie/moxie.c: Likewise.
27365 * config/msp430/msp430-c.c: Likewise.
27366 * config/msp430/msp430.c: Likewise.
27367 * config/nds32/nds32-cost.c: Likewise.
27368 * config/nds32/nds32-fp-as-gp.c: Likewise.
27369 * config/nds32/nds32-intrinsic.c: Likewise.
27370 * config/nds32/nds32-isr.c: Likewise.
27371 * config/nds32/nds32-md-auxiliary.c: Likewise.
27372 * config/nds32/nds32-memory-manipulation.c: Likewise.
27373 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27374 * config/nds32/nds32-predicates.c: Likewise.
27375 * config/nds32/nds32.c: Likewise.
27376 * config/nios2/nios2.c: Likewise.
27377 * config/nvptx/nvptx.c: Likewise.
27378 * config/pa/pa.c: Likewise.
27379 * config/pdp11/pdp11.c: Likewise.
27380 * config/rl78/rl78-c.c: Likewise.
27381 * config/rl78/rl78.c: Likewise.
27382 * config/rs6000/rs6000-c.c: Likewise.
27383 * config/rs6000/rs6000.c: Likewise.
27384 * config/rx/rx.c: Likewise.
27385 * config/s390/s390-c.c: Likewise.
27386 * config/s390/s390.c: Likewise.
27387 * config/sh/sh-c.c: Likewise.
27388 * config/sh/sh-mem.cc: Likewise.
27389 * config/sh/sh.c: Likewise.
27390 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27391 * config/sh/sh_treg_combine.cc: Likewise.
27392 * config/sol2-c.c: Likewise.
27393 * config/sol2-cxx.c: Likewise.
27394 * config/sol2-stubs.c: Likewise.
27395 * config/sol2.c: Likewise.
27396 * config/sparc/sparc-c.c: Likewise.
27397 * config/sparc/sparc.c: Likewise.
27398 * config/spu/spu-c.c: Likewise.
27399 * config/spu/spu.c: Likewise.
27400 * config/stormy16/stormy16.c: Likewise.
27401 * config/tilegx/mul-tables.c: Likewise.
27402 * config/tilegx/tilegx-c.c: Likewise.
27403 * config/tilegx/tilegx.c: Likewise.
27404 * config/tilepro/mul-tables.c: Likewise.
27405 * config/tilepro/tilepro-c.c: Likewise.
27406 * config/tilepro/tilepro.c: Likewise.
27407 * config/v850/v850-c.c: Likewise.
27408 * config/v850/v850.c: Likewise.
27409 * config/vax/vax.c: Likewise.
27410 * config/visium/visium.c: Likewise.
27411 * config/vms/vms-c.c: Likewise.
27412 * config/vms/vms.c: Likewise.
27413 * config/vxworks.c: Likewise.
27414 * config/winnt-c.c: Likewise.
27415 * config/xtensa/xtensa.c: Likewise.
27417 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
27419 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
27421 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
27423 2015-06-17 Richard Biener <rguenther@suse.de>
27425 PR tree-optimization/66251
27426 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
27427 stmts for SLP strided stores.
27430 2015-05-22 Richard Biener <rguenther@suse.de>
27432 PR tree-optimization/66251
27433 * tree-vect-stmts.c (vectorizable_conversion): Properly
27434 set STMT_VINFO_VEC_STMT even for the SLP case.
27436 2015-05-26 Michael Matz <matz@suse.de>
27438 PR middle-end/66251
27439 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
27440 STMT_VINFO_VEC_STMT, also with SLP.
27442 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
27445 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
27446 (*avx_addsubv4df3_1s): Ditto.
27447 (*sse3_addsubv2df3_1): Ditto.
27448 (*sse3_addsubv2df3_1s): Ditto.
27449 (*avx_addsubv8sf3_1): Ditto.
27450 (*avx_addsubv8sf3_1s): Ditto.
27451 (*sse3_addsubv4sf3_1): Ditto.
27452 (*sse3_addsubv4sf3_1s): Ditto.
27454 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
27456 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
27457 (SYSROOT_SUFFIX_SPEC): Update.
27458 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
27459 (STARTFILE_PREFIX_SPEC): Update.
27460 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
27461 (MULTILIB_REQUIRED): New.
27462 (MULTILIB_OSDIRNAMES): New.
27463 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
27464 (MULTILIB_REQUIRED): New.
27465 (MULTILIB_OSDIRNAMES): New.
27467 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
27469 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
27470 * config/aarch64/aarch64-options-extensions.def: Update "fP",
27471 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
27472 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
27473 (AARCH64_FL_PAN): New.
27474 (AARCH64_FL_LOR): New.
27475 (AARCH64_FL_RDMA): New.
27476 (AARCH64_FL_FOR_ARCH8_1): New.
27477 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
27478 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
27480 2015-06-16 Martin Liska <mliska@suse.cz>
27482 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
27483 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
27486 2015-06-16 Richard Biener <rguenther@suse.de>
27488 * tree-vect-stmts.c (vectorizable_store): Adjust.
27489 (vectorizable_load): Likewise.
27490 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27492 (vect_create_data_ref_ptr): Likewise.
27493 (bump_vector_ptr): Adjust.
27495 2015-06-16 Richard Biener <rguenther@suse.de>
27497 * tree-vect-stmts.c (vectorizable_load): Properly start loads
27498 with the first element if this is grouped loads.
27500 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
27502 * config/arm/arm-protos.h (struct tune_params): Rename
27503 log_op_non_sc to log_op_non_short_circuit, and rename enum
27504 values to expand SC to SHORT_CIRCUIT.
27505 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
27506 to LOG_OP_NON_SHORT_CIRCUIT.
27507 (arm_fastmul_tune):Likewise
27508 (arm_strongarm_tune): Likewise.
27509 (arm_xscale_tune): Likewise.
27510 (arm_9e_tune): Likewise.
27511 (arm_marvell_pj4_tune): Likewise.
27512 (arm_v6t2_tune): Likewise.
27513 (arm_cortex_tune): Likewise.
27514 (arm_cortex_a8_tune): Likewise.
27515 (arm_cortex_a7_tune): Likewise.
27516 (arm_cortex_a15_tune): Likewise.
27517 (arm_cortex_a53_tune): Likewise.
27518 (arm_cortex_a57_tune): Likewise.
27519 (arm_xgene1_tune): Likewise.
27520 (arm_cortex_a5_tune): Likewise.
27521 (arm_cortex_a9_tune): Likewise.
27522 (arm_cortex_a12_tune): Likewise.
27523 (arm_v7m_tune): Likewise.
27524 (arm_cortex_m7_tune): Likewise.
27525 (arm_v6m_tune): Likewise.
27526 (arm_fa726te_tune): Likewise.
27528 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
27530 * altivec.md: Delete UNSPEC_VMLADDUHM.
27531 (mulv4si3_p8): New pattern.
27532 (mulv4si3): Use it for POWER8.
27533 (mulv8hi3): Use vmladduhm with zero addend.
27534 (altivec_vmladduhm): Descriptive RTL.
27536 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
27538 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
27539 to use neon_move instead of mov_imm.
27540 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
27541 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
27543 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
27544 aarch64_float_const_zero_rtx_p check before TFmode check.
27545 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
27547 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
27548 code and attributes to match. Change condition from register_operand
27549 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
27550 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
27553 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
27556 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
27557 there is no parent.
27559 2015-06-14 Shiva Chen <shiva0217@gmail.com>
27561 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
27562 HOST_WIDE_INT parameter.
27564 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
27567 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
27568 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
27570 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
27572 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
27574 * rtl.h (classify_insn): Declare.
27575 * emit-rtl.c (classify_insn): Move to...
27576 * rtl.c: ...here and add generator support.
27577 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
27578 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
27579 * genemit.c (gen_emit_seq): New function.
27580 (gen_expand, gen_split): Use it.
27582 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
27584 * tree.c (make_vector_stat): Fix comment to state that the
27585 function returns a VECTOR_CST.
27587 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
27589 * gensupport.h (add_implicit_parallel): Declare.
27590 * genrecog.c (add_implicit_parallel): Move to...
27591 * gensupport.c (add_implicit_parallel): ...here.
27592 (process_one_cond_exec): Use it.
27593 * genemit.c (gen_insn): Likewise.
27595 2015-06-13 Iain Sandoe <iain@codesourcery.com>
27598 * passes.c (rest_of_decl_compilation): Do not register globals for
27599 early debug if they are declared in built-ins.
27601 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
27603 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
27605 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27607 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
27609 (noce_try_cmove_arith): Likewise.
27610 (noce_get_alt_condition): Likewise.
27612 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27614 * common/config/i386/i386-common.c
27615 (OPTION_MASK_ISA_MWAITX_SET): New.
27616 (ix86_handle_option): Handle mwaitx.
27617 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
27618 (x86_64-*-*): Likewise.
27619 * config/i386/mwaitxintrin.h: New header.
27620 * config/i386/cpuid.h (bit_MWAITX): Define.
27621 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
27623 * config/i386/i386.opt (mwaitx): New.
27624 * config/i386/i386-builtin-types.def
27625 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
27626 * config/i386/i386-c.c: Define __MWAITX__ if needed.
27627 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
27629 (ix86_option_override_internal): Handle new option.
27630 (processor_alias_table): Added PTA_MWAITX.
27631 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
27632 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
27633 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
27634 IX86_BUILTIN_MONITORX built-ins.
27635 * config/i386/i386.h (TARGET_MWAITX): New.
27636 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
27638 (mwaitx): New pattern.
27639 (monitorx_<mode>): New pattern.
27640 * config/i386/x86intrin.h: Include mwaitxintrin.h.
27641 * doc/extend.texi: Document monitorx and mwaitx builtins.
27642 * doc/invoke.texi: Document -mmwaitx option.
27644 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
27646 * emit-rtl.c (need_atomic_barrier_p): Mask model with
27647 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
27649 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
27651 * dbxout.c (xcoff_debug_hooks): Provide a function for
27652 register_main_translation_unit hook.
27654 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
27656 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
27657 variants cases from switch.
27658 (rs6000_post_atomic_barrier): Same.
27659 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
27660 (rs6000_expand_atomic_exchange): Same.
27661 (rs6000_expand_atomic_op): Same.
27662 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
27663 SYNC variants cases from switch.
27664 (atomic_load): Same.
27665 (atomic_store): Same.
27667 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
27669 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
27670 CONST_INT for goto.
27672 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
27675 * dwarf2out.c (check_die): Check for common duplicate attributes.
27676 (add_location_or_const_value_attribute): Do not add duplicate
27678 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
27680 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
27681 (gen_type_die_with_usage): Call check_die.
27682 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
27684 2015-06-11 Jason Merrill <jason@redhat.com>
27686 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
27689 2015-06-11 Marek Polacek <polacek@redhat.com>
27691 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
27693 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
27696 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
27697 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
27698 (*addx_extend_sp32): Fix pasto.
27699 (*subx_extend): Rename into...
27700 (*subx_extend_sp32): ...this.
27701 (*adddi3_extend_sp32): Add earlyclobber.
27702 (*subdi3_insn_sp32): Likewise.
27703 (*subdi3_extend_sp32): Likewise.
27704 (*and_not_di_sp32): Likewise.
27705 (*or_not_di_sp32): Likewise.
27706 (*xor_not_di_sp32): Likewise.
27707 (*negdi2_sp32): Likewise.
27708 (*one_cmpldi2_sp32): Likewise.
27710 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
27712 * debug.h (struct gcc_debug_hooks): Add a
27713 register_main_translation_unit hook.
27714 * debug.c (do_nothing_debug_hooks): Provide a function for this
27716 * dbxout.c (dbx_debug_hooks): Likewise.
27717 * sdbout.c (sdb_debug_hooks): Likewise.
27718 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27719 * dwarf2out.c (main_translation_unit): New global variable.
27720 (dwarf2out_register_main_translation_unit): New function
27721 implementing the new hook.
27722 (dwarf2_debug_hooks): Assign
27723 dwarf2out_register_main_translation_unit to this new hook.
27724 (dwarf2out_init): Associate any main translation unit to
27727 2015-06-11 Marek Polacek <polacek@redhat.com>
27729 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
27731 2015-06-11 Marek Polacek <polacek@redhat.com>
27733 * match.pd: Use single_use throughout.
27735 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27737 * config/arm/arm.c (arm_option_params_internal): When optimising
27738 for speed set max_insns_skipped when arm_restrict_it.
27740 2015-06-11 Christian Bruel <christian.bruel@st.com>
27743 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
27745 (arm_cpu_builtins): New function.
27746 (arm_pragma_target_parse): Call arm_cpu_builtins.
27747 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
27748 (arm_register_target_pragmas): Likewise.
27749 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
27750 Call arm_register_target_pragmas.
27751 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
27752 (arm_pragma_target_parse): Likewise.
27754 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
27756 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
27757 of the second operand.
27759 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
27762 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
27763 to prepare mask operand for AVX512 modes.
27765 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
27768 * doc/md.texi (Machine Constraints): Document that on the PowerPC
27769 if you use a constraint that targets a VSX register, you must use
27770 %x<n> in the template.
27772 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
27774 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
27775 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
27776 (define_insn "trap"): New definition.
27778 2015-06-10 Richard Biener <rguenther@suse.de>
27780 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
27782 (vect_supported_load_permutation_p): ... here. Handle
27783 supportable permutations in reductions.
27784 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
27785 for vectorizing strided group loads.
27787 2015-06-10 Jakub Jelinek <jakub@redhat.com>
27790 * config/i386/i386.c (ix86_split_long_move): For collisions
27791 involving direct tls segment refs, move the UNSPEC_TP possibly
27792 wrapped in ZERO_EXTEND out of the address for lea, to each of
27795 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27797 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
27798 dmb sy. Adjust tabs.
27800 2015-06-10 Tom de Vries <tom@codesourcery.com>
27802 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
27804 2015-06-10 Martin Liska <mliska@suse.cz>
27807 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
27808 all enum values in mem_alloc_origin.
27809 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
27811 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
27812 * bitmap.c (bitmap_register): Likewise.
27813 (dump_bitmap_statistics): Likewise.
27814 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
27815 (ggc_record_overhead): Likewise.
27816 * hash-map.h: Likewise.
27817 * hash-set.h: Likewise.
27818 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
27819 * hash-table.h: Likewise.
27820 * vec.c (vec_prefix::register_overhead): Likewise.
27821 (vec_prefix::release_overhead): Likewise.
27822 (dump_vec_loc_statistics): Likewise.
27824 2015-06-09 Christian Bruel <christian.bruel@st.com>
27827 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
27828 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
27829 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
27830 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
27831 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
27832 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
27833 (arm_valid_target_attribute_p): Likewise.
27834 (arm_set_current_function, arm_can_inline_p): Likewise.
27835 (arm_valid_target_attribute_rec): Likewise.
27836 (arm_previous_fndecl): New variable.
27837 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
27838 (TARGET_CAN_INLINE_P): Define.
27839 (arm_asm_trampoline_template): Emit mode.
27840 (arm_file_start): Don't set unified syntax.
27841 (arm_declare_function_name): Set unified syntax and mode.
27842 (arm_option_override): Init target_option_default_node.
27843 and target_option_current_node.
27844 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
27845 (*call_symbol): Likewise.
27846 * doc/extend.texi: Document ARM/Thumb target attribute.
27847 * doc/invoke.texi: Likewise.
27849 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27852 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27853 PR rtl-optimization/64164
27854 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27855 * tree-ssa-copyrename.c: Removed.
27856 * opts.c (default_options_table): Drop -ftree-copyrename. Add
27857 -ftree-coalesce-vars.
27858 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27859 * common.opt (ftree-copyrename): Ignore.
27860 (ftree-coalesce-inlined-vars): Likewise.
27861 * doc/invoke.texi: Remove the ignored options above.
27862 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27863 * tree-ssa-coalesce.h: ... here.
27864 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27865 headers required by it.
27866 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27867 across variables when flag_tree_coalesce_vars. Check register
27868 use and promoted modes to allow coalescing. Moved to
27869 tree-ssa-coalesce.c.
27870 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27871 with its member functions to tree-ssa-coalesce.c.
27872 (var_map_base_init): Likewise. Renamed to
27873 compute_samebase_partition_bases.
27874 (partition_view_normal): Drop want_bases parameter.
27875 (partition_view_bitmap): Likewise.
27876 * tree-ssa-live.h: Adjust declarations.
27877 * tree-ssa-coalesce.c: Include explow.h.
27878 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27879 default defs at the entry point.
27880 (dump_part_var_map): New.
27881 (compute_optimized_partition_bases): New, called by...
27882 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27883 of compute_samebase_partition_bases. Adjust.
27884 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27885 * cfgexpand.c (leader_merge): New.
27886 (get_rtl_for_parm_ssa_default_def): New.
27887 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27888 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27889 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
27890 redundant MEM attr setting.
27891 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
27893 (expand_one_stack_var): ... this. New wrapper to check and
27894 skip already expanded SSA partitions.
27895 (record_alignment_for_reg_var): New, factored out of...
27896 (expand_one_var): ... this.
27897 (expand_one_ssa_partition): New.
27898 (adjust_one_expanded_partition_var): New.
27899 (expand_one_register_var): Check and skip already expanded SSA
27901 (expand_used_vars): Don't create DECLs for anonymous SSA
27902 names. Expand all SSA partitions, then adjust all SSA names.
27903 (pass::execute): Replace the loops that set
27904 SA.partition_to_pseudo from partition leaders and cleared
27905 DECL_RTL for multi-location variables, and that which used to
27906 rename vars and set attrs, with one that clears DECL_RTL and
27907 checks that PARMs and RESULTs default_defs match DECL_RTL.
27908 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27909 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27910 * explow.c (promote_ssa_mode): New.
27911 * explow.h (promote_ssa_mode): Declare.
27912 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27913 * function.c: Include cfgexpand.h.
27914 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27915 (use_register_for_parm_decl): Wrapper for the above to
27916 special-case the result_ptr.
27917 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27918 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27919 multiple locations.
27920 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27921 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
27922 (assign_parm_setup_block): Prefer SSA-assigned location.
27923 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
27924 if stack_parm is NULL.
27925 (assign_parm_setup_stack): Prefer SSA-assigned location.
27926 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
27927 rtl before testing for pointer bounds. Special-case result_ptr.
27928 (expand_function_start): Maybe reset DECL_RTL of result.
27929 Prefer SSA-assigned location for result and static chain.
27930 Factor out DECL_RESULT and SET_DECL_RTL.
27931 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27932 anonymous SSA names. Use promote_ssa_mode.
27933 (get_temp_reg): Likewise.
27934 (remove_ssa_form): Adjust.
27935 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27936 and get its reg_usage for reg invalidation.
27937 (compute_bb_dataflow): Pass it insn.
27938 (emit_notes_in_bb): Likewise.
27939 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27940 fail assert on conversion between unsigned types.
27942 2015-06-09 Tom de Vries <tom@codesourcery.com>
27944 PR tree-optimization/65460
27945 * omp-low.c (expand_omp_target): Set parallelized_function on
27946 cgraph_node for child_fn.
27948 2015-06-09 Tom de Vries <tom@codesourcery.com>
27950 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
27951 parallelized_function before add_new_function.
27953 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
27955 * gcc-plugin.h: Move decls to plugin.h and include it.
27956 * plugin.h: Relocate decls from gcc-plugin.h
27957 * ggc-page.c: Include required header files.
27958 * passes.c: Likewise.
27959 * cgraphunit.c: Likewise.
27961 2015-06-09 Tom de Vries <tom@codesourcery.com>
27963 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
27965 2015-06-09 Jason Merrill <jason@redhat.com>
27968 * toplev.c (check_global_declaration): Don't warn about a clone.
27970 2015-06-09 Marek Polacek <polacek@redhat.com>
27972 PR tree-optimization/66299
27973 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27974 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
27977 2015-06-09 Richard Biener <rguenther@suse.de>
27979 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
27980 (vect_analyze_slp_instance): Instead do not falsely drop
27983 2015-06-09 Richard Biener <rguenther@suse.de>
27985 PR middle-end/66423
27986 * match.pd: Handle A % (unsigned)(1 << B).
27988 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
27990 * varasm.c (output_object_block_htab): Remove.
27991 (output_object_block_compare): New.
27992 (output_object_blocks): Sort named object_blocks before outputting
27995 2015-06-09 Richard Biener <rguenther@suse.de>
27997 PR tree-optimization/66419
27998 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
27999 consider GROUP_GAP when detecting a perfect subchain.
28001 2015-06-09 Nick Clifton <nickc@redhat.com>
28003 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
28004 place read only data in the .frodata section.
28006 2015-06-09 Shiva Chen <shiva0217@gmail.com>
28008 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
28009 (atomic_store<mode>): Likewise.
28011 2015-06-09 Richard Biener <rguenther@suse.de>
28013 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
28015 2015-06-09 Richard Biener <rguenther@suse.de>
28017 PR middle-end/66413
28018 * tree-inline.c (insert_init_debug_bind): Unshare value.
28020 2015-06-09 Richard Biener <rguenther@suse.de>
28022 PR tree-optimization/66396
28023 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
28024 Rename virtual operands.
28026 2015-06-09 Tom de Vries <tom@codesourcery.com>
28028 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
28029 always return false.
28031 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28033 PR rtl-optimization/64164
28034 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
28035 * tree-ssa-copyrename.c: Removed.
28036 * opts.c (default_options_table): Drop -ftree-copyrename. Add
28037 -ftree-coalesce-vars.
28038 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
28039 * common.opt (ftree-copyrename): Ignore.
28040 (ftree-coalesce-inlined-vars): Likewise.
28041 * doc/invoke.texi: Remove the ignored options above.
28042 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
28043 * tree-ssa-coalesce.h: ... here.
28044 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
28045 headers required by it.
28046 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
28047 across variables when flag_tree_coalesce_vars. Check register
28048 use and promoted modes to allow coalescing. Moved to
28049 tree-ssa-coalesce.c.
28050 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
28051 with its member functions to tree-ssa-coalesce.c.
28052 (var_map_base_init): Likewise. Renamed to
28053 compute_samebase_partition_bases.
28054 (partition_view_normal): Drop want_bases parameter.
28055 (partition_view_bitmap): Likewise.
28056 * tree-ssa-live.h: Adjust declarations.
28057 * tree-ssa-coalesce.c: Include explow.h.
28058 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
28059 default defs at the entry point.
28060 (dump_part_var_map): New.
28061 (compute_optimized_partition_bases): New, called by...
28062 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
28063 of compute_samebase_partition_bases. Adjust.
28064 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
28065 * cfgexpand.c (leader_merge): New.
28066 (get_rtl_for_parm_ssa_default_def): New.
28067 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
28068 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
28069 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
28070 redundant MEM attr setting.
28071 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
28073 (expand_one_stack_var): ... this. New wrapper to check and
28074 skip already expanded SSA partitions.
28075 (record_alignment_for_reg_var): New, factored out of...
28076 (expand_one_var): ... this.
28077 (expand_one_ssa_partition): New.
28078 (adjust_one_expanded_partition_var): New.
28079 (expand_one_register_var): Check and skip already expanded SSA
28081 (expand_used_vars): Don't create DECLs for anonymous SSA
28082 names. Expand all SSA partitions, then adjust all SSA names.
28083 (pass::execute): Replace the loops that set
28084 SA.partition_to_pseudo from partition leaders and cleared
28085 DECL_RTL for multi-location variables, and that which used to
28086 rename vars and set attrs, with one that clears DECL_RTL and
28087 checks that PARMs and RESULTs default_defs match DECL_RTL.
28088 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
28089 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
28090 * explow.c (promote_ssa_mode): New.
28091 * explow.h (promote_ssa_mode): Declare.
28092 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
28093 * function.c: Include cfgexpand.h.
28094 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
28095 (use_register_for_parm_decl): Wrapper for the above to
28096 special-case the result_ptr.
28097 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
28098 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
28099 multiple locations.
28100 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
28101 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
28102 (assign_parm_setup_block): Prefer SSA-assigned location.
28103 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
28104 if stack_parm is NULL.
28105 (assign_parm_setup_stack): Prefer SSA-assigned location.
28106 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
28107 rtl before testing for pointer bounds. Special-case result_ptr.
28108 (expand_function_start): Maybe reset DECL_RTL of result.
28109 Prefer SSA-assigned location for result and static chain.
28110 Factor out DECL_RESULT and SET_DECL_RTL.
28111 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
28112 anonymous SSA names. Use promote_ssa_mode.
28113 (get_temp_reg): Likewise.
28114 (remove_ssa_form): Adjust.
28115 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
28116 and get its reg_usage for reg invalidation.
28117 (compute_bb_dataflow): Pass it insn.
28118 (emit_notes_in_bb): Likewise.
28119 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
28120 fail assert on conversion between unsigned types.
28122 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28125 * tree-inline.c (reset_debug_binding): New.
28126 (reset_debug_bindings): Likewise.
28127 (expand_call_inline): Call it.
28129 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28131 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
28134 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28136 * lto-streamer-out.c (lto_output_location): Stream
28137 reserved locations correctly.
28138 * lto-streamer-in.c (lto_output_location): Likewise.
28140 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
28142 * coretypes.h: Include hash-table.h and hash-set.h for host files.
28143 * ggc.h: Don't include statistics.h>
28144 * hash-map.h: Remove all includes.
28145 * hash-set.h: Likewise.
28146 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
28147 the include list. Remove <new>.
28148 * inchash.h: Remove all includes.
28149 * mem-stats.h: Likewise.
28150 * vec.h: No special processing for generators or ggc.
28151 * alias.c : Adjust include files.
28152 * alloc-pool.c : Likewise.
28153 * alloc-pool.h : Likewise.
28154 * asan.c : Likewise.
28155 * attribs.c : Likewise.
28156 * auto-inc-dec.c : Likewise.
28157 * auto-profile.c : Likewise.
28158 * bb-reorder.c : Likewise.
28159 * bitmap.c : Likewise.
28160 * bitmap.h : Likewise.
28161 * bt-load.c : Likewise.
28162 * builtins.c : Likewise.
28163 * caller-save.c : Likewise.
28164 * calls.c : Likewise.
28165 * ccmp.c : Likewise.
28166 * cfg.c : Likewise.
28167 * cfganal.c : Likewise.
28168 * cfgbuild.c : Likewise.
28169 * cfgcleanup.c : Likewise.
28170 * cfgexpand.c : Likewise.
28171 * cfghooks.c : Likewise.
28172 * cfgloop.c : Likewise.
28173 * cfgloop.h : Likewise.
28174 * cfgloopanal.c : Likewise.
28175 * cfgloopmanip.c : Likewise.
28176 * cfgrtl.c : Likewise.
28177 * cgraph.c : Likewise.
28178 * cgraphbuild.c : Likewise.
28179 * cgraphclones.c : Likewise.
28180 * cgraphunit.c : Likewise.
28181 * cilk-common.c : Likewise.
28182 * combine-stack-adj.c : Likewise.
28183 * combine.c : Likewise.
28184 * compare-elim.c : Likewise.
28185 * context.c : Likewise.
28186 * convert.c : Likewise.
28187 * coverage.c : Likewise.
28188 * cppbuiltin.c : Likewise.
28189 * cprop.c : Likewise.
28190 * cse.c : Likewise.
28191 * cselib.c : Likewise.
28192 * data-streamer-in.c : Likewise.
28193 * data-streamer-out.c : Likewise.
28194 * data-streamer.c : Likewise.
28195 * data-streamer.h : Likewise.
28196 * dbxout.c : Likewise.
28197 * dce.c : Likewise.
28198 * ddg.c : Likewise.
28199 * debug.c : Likewise.
28200 * df-core.c : Likewise.
28201 * df-problems.c : Likewise.
28202 * df-scan.c : Likewise.
28204 * dfp.c : Likewise.
28205 * dojump.c : Likewise.
28206 * dominance.c : Likewise.
28207 * domwalk.c : Likewise.
28208 * double-int.c : Likewise.
28209 * dse.c : Likewise.
28210 * dumpfile.c : Likewise.
28211 * dwarf2asm.c : Likewise.
28212 * dwarf2cfi.c : Likewise.
28213 * dwarf2out.c : Likewise.
28214 * emit-rtl.c : Likewise.
28215 * et-forest.c : Likewise.
28216 * except.c : Likewise.
28217 * except.h : Likewise.
28218 * explow.c : Likewise.
28219 * expmed.c : Likewise.
28220 * expr.c : Likewise.
28221 * final.c : Likewise.
28222 * fixed-value.c : Likewise.
28223 * fold-const.c : Likewise.
28224 * function.c : Likewise.
28225 * fwprop.c : Likewise.
28226 * gcc-plugin.h : Likewise.
28227 * gcc.c : Likewise.
28228 * gcse-common.c : Likewise.
28229 * gcse.c : Likewise.
28230 * genattrtab.c : Likewise.
28231 * genautomata.c : Likewise.
28232 * genconditions.c : Likewise.
28233 * genemit.c : Likewise.
28234 * generic-match-head.c : Likewise.
28235 * genextract.c : Likewise.
28236 * gengtype-state.c : Likewise.
28237 * gengtype.c : Likewise.
28238 * genhooks.c : Likewise.
28239 * genmatch.c : Likewise.
28240 * genmodes.c : Likewise.
28241 * genrecog.c : Likewise.
28242 * gensupport.c : Likewise.
28243 * ggc-common.c : Likewise.
28244 * ggc-internal.h : Likewise.
28245 * ggc-none.c : Likewise.
28246 * ggc-page.c : Likewise.
28247 * gimple-builder.c : Likewise.
28248 * gimple-expr.c : Likewise.
28249 * gimple-fold.c : Likewise.
28250 * gimple-iterator.c : Likewise.
28251 * gimple-low.c : Likewise.
28252 * gimple-match-head.c : Likewise.
28253 * gimple-pretty-print.c : Likewise.
28254 * gimple-ssa-isolate-paths.c : Likewise.
28255 * gimple-ssa-strength-reduction.c : Likewise.
28256 * gimple-ssa.h : Likewise.
28257 * gimple-streamer-in.c : Likewise.
28258 * gimple-streamer-out.c : Likewise.
28259 * gimple-streamer.h : Likewise.
28260 * gimple-walk.c : Likewise.
28261 * gimple.c : Likewise.
28262 * gimplify-me.c : Likewise.
28263 * gimplify.c : Likewise.
28264 * godump.c : Likewise.
28265 * graph.c : Likewise.
28266 * graphds.c : Likewise.
28267 * graphite-blocking.c : Likewise.
28268 * graphite-dependences.c : Likewise.
28269 * graphite-interchange.c : Likewise.
28270 * graphite-isl-ast-to-gimple.c : Likewise.
28271 * graphite-optimize-isl.c : Likewise.
28272 * graphite-poly.c : Likewise.
28273 * graphite-scop-detection.c : Likewise.
28274 * graphite-sese-to-poly.c : Likewise.
28275 * graphite.c : Likewise.
28276 * haifa-sched.c : Likewise.
28277 * hard-reg-set.h : Likewise.
28278 * hw-doloop.c : Likewise.
28279 * ifcvt.c : Likewise.
28280 * inchash.c : Likewise.
28281 * incpath.c : Likewise.
28282 * init-regs.c : Likewise.
28283 * input.c : Likewise.
28284 * internal-fn.c : Likewise.
28285 * ipa-chkp.c : Likewise.
28286 * ipa-comdats.c : Likewise.
28287 * ipa-cp.c : Likewise.
28288 * ipa-devirt.c : Likewise.
28289 * ipa-icf-gimple.c : Likewise.
28290 * ipa-icf.c : Likewise.
28291 * ipa-inline-analysis.c : Likewise.
28292 * ipa-inline-transform.c : Likewise.
28293 * ipa-inline.c : Likewise.
28294 * ipa-polymorphic-call.c : Likewise.
28295 * ipa-profile.c : Likewise.
28296 * ipa-prop.c : Likewise.
28297 * ipa-pure-const.c : Likewise.
28298 * ipa-ref.c : Likewise.
28299 * ipa-reference.c : Likewise.
28300 * ipa-split.c : Likewise.
28301 * ipa-utils.c : Likewise.
28302 * ipa-visibility.c : Likewise.
28303 * ipa.c : Likewise.
28304 * ira-build.c : Likewise.
28305 * ira-color.c : Likewise.
28306 * ira-conflicts.c : Likewise.
28307 * ira-costs.c : Likewise.
28308 * ira-emit.c : Likewise.
28309 * ira-lives.c : Likewise.
28310 * ira.c : Likewise.
28311 * jump.c : Likewise.
28312 * langhooks.c : Likewise.
28313 * lcm.c : Likewise.
28314 * libfuncs.h : Likewise.
28315 * lists.c : Likewise.
28316 * loop-doloop.c : Likewise.
28317 * loop-init.c : Likewise.
28318 * loop-invariant.c : Likewise.
28319 * loop-iv.c : Likewise.
28320 * loop-unroll.c : Likewise.
28321 * lower-subreg.c : Likewise.
28322 * lra-assigns.c : Likewise.
28323 * lra-coalesce.c : Likewise.
28324 * lra-constraints.c : Likewise.
28325 * lra-eliminations.c : Likewise.
28326 * lra-lives.c : Likewise.
28327 * lra-remat.c : Likewise.
28328 * lra-spills.c : Likewise.
28329 * lra.c : Likewise.
28330 * lto-cgraph.c : Likewise.
28331 * lto-compress.c : Likewise.
28332 * lto-opts.c : Likewise.
28333 * lto-section-in.c : Likewise.
28334 * lto-section-out.c : Likewise.
28335 * lto-streamer-in.c : Likewise.
28336 * lto-streamer-out.c : Likewise.
28337 * lto-streamer.c : Likewise.
28338 * lto-streamer.h : Likewise.
28339 * mcf.c : Likewise.
28340 * mode-switching.c : Likewise.
28341 * modulo-sched.c : Likewise.
28342 * omega.c : Likewise.
28343 * omp-low.c : Likewise.
28344 * optabs.c : Likewise.
28345 * opts-global.c : Likewise.
28346 * opts.h : Likewise.
28347 * passes.c : Likewise.
28348 * plugin.c : Likewise.
28349 * postreload-gcse.c : Likewise.
28350 * postreload.c : Likewise.
28351 * predict.c : Likewise.
28352 * print-rtl.c : Likewise.
28353 * print-tree.c : Likewise.
28354 * profile.c : Likewise.
28355 * read-md.c : Likewise.
28356 * read-md.h : Likewise.
28357 * read-rtl.c : Likewise.
28358 * real.c : Likewise.
28359 * realmpfr.c : Likewise.
28360 * recog.c : Likewise.
28361 * ree.c : Likewise.
28362 * reg-stack.c : Likewise.
28363 * regcprop.c : Likewise.
28364 * reginfo.c : Likewise.
28365 * regrename.c : Likewise.
28366 * regstat.c : Likewise.
28367 * reload.c : Likewise.
28368 * reload1.c : Likewise.
28369 * reorg.c : Likewise.
28370 * resource.c : Likewise.
28371 * rtl-chkp.c : Likewise.
28372 * rtl.c : Likewise.
28373 * rtl.h : Likewise.
28374 * rtlanal.c : Likewise.
28375 * rtlhash.c : Likewise.
28376 * rtlhash.h : Likewise.
28377 * rtlhooks.c : Likewise.
28378 * sanopt.c : Likewise.
28379 * sched-deps.c : Likewise.
28380 * sched-ebb.c : Likewise.
28381 * sched-rgn.c : Likewise.
28382 * sched-vis.c : Likewise.
28383 * sdbout.c : Likewise.
28384 * sel-sched-dump.c : Likewise.
28385 * sel-sched-ir.c : Likewise.
28386 * sel-sched-ir.h : Likewise.
28387 * sel-sched.c : Likewise.
28388 * sese.c : Likewise.
28389 * shrink-wrap.c : Likewise.
28390 * shrink-wrap.h : Likewise.
28391 * simplify-rtx.c : Likewise.
28392 * stack-ptr-mod.c : Likewise.
28393 * statistics.c : Likewise.
28394 * stmt.c : Likewise.
28395 * stor-layout.c : Likewise.
28396 * store-motion.c : Likewise.
28397 * stringpool.c : Likewise.
28398 * symtab.c : Likewise.
28399 * target-globals.c : Likewise.
28400 * targhooks.c : Likewise.
28401 * tlink.c : Likewise.
28402 * toplev.c : Likewise.
28403 * tracer.c : Likewise.
28404 * trans-mem.c : Likewise.
28405 * tree-affine.c : Likewise.
28406 * tree-affine.h : Likewise.
28407 * tree-browser.c : Likewise.
28408 * tree-call-cdce.c : Likewise.
28409 * tree-cfg.c : Likewise.
28410 * tree-cfgcleanup.c : Likewise.
28411 * tree-chkp-opt.c : Likewise.
28412 * tree-chkp.c : Likewise.
28413 * tree-chrec.c : Likewise.
28414 * tree-complex.c : Likewise.
28415 * tree-data-ref.c : Likewise.
28416 * tree-dfa.c : Likewise.
28417 * tree-diagnostic.c : Likewise.
28418 * tree-dump.c : Likewise.
28419 * tree-eh.c : Likewise.
28420 * tree-eh.h : Likewise.
28421 * tree-emutls.c : Likewise.
28422 * tree-hasher.h : Likewise.
28423 * tree-if-conv.c : Likewise.
28424 * tree-inline.c : Likewise.
28425 * tree-inline.h : Likewise.
28426 * tree-into-ssa.c : Likewise.
28427 * tree-iterator.c : Likewise.
28428 * tree-loop-distribution.c : Likewise.
28429 * tree-nested.c : Likewise.
28430 * tree-nrv.c : Likewise.
28431 * tree-object-size.c : Likewise.
28432 * tree-outof-ssa.c : Likewise.
28433 * tree-parloops.c : Likewise.
28434 * tree-phinodes.c : Likewise.
28435 * tree-predcom.c : Likewise.
28436 * tree-pretty-print.c : Likewise.
28437 * tree-profile.c : Likewise.
28438 * tree-scalar-evolution.c : Likewise.
28439 * tree-sra.c : Likewise.
28440 * tree-ssa-address.c : Likewise.
28441 * tree-ssa-alias.c : Likewise.
28442 * tree-ssa-ccp.c : Likewise.
28443 * tree-ssa-coalesce.c : Likewise.
28444 * tree-ssa-copy.c : Likewise.
28445 * tree-ssa-copyrename.c : Likewise.
28446 * tree-ssa-dce.c : Likewise.
28447 * tree-ssa-dom.c : Likewise.
28448 * tree-ssa-dse.c : Likewise.
28449 * tree-ssa-forwprop.c : Likewise.
28450 * tree-ssa-ifcombine.c : Likewise.
28451 * tree-ssa-live.c : Likewise.
28452 * tree-ssa-loop-ch.c : Likewise.
28453 * tree-ssa-loop-im.c : Likewise.
28454 * tree-ssa-loop-ivcanon.c : Likewise.
28455 * tree-ssa-loop-ivopts.c : Likewise.
28456 * tree-ssa-loop-manip.c : Likewise.
28457 * tree-ssa-loop-niter.c : Likewise.
28458 * tree-ssa-loop-prefetch.c : Likewise.
28459 * tree-ssa-loop-unswitch.c : Likewise.
28460 * tree-ssa-loop.c : Likewise.
28461 * tree-ssa-math-opts.c : Likewise.
28462 * tree-ssa-operands.c : Likewise.
28463 * tree-ssa-phiopt.c : Likewise.
28464 * tree-ssa-phiprop.c : Likewise.
28465 * tree-ssa-pre.c : Likewise.
28466 * tree-ssa-propagate.c : Likewise.
28467 * tree-ssa-reassoc.c : Likewise.
28468 * tree-ssa-sccvn.c : Likewise.
28469 * tree-ssa-scopedtables.c : Likewise.
28470 * tree-ssa-sink.c : Likewise.
28471 * tree-ssa-strlen.c : Likewise.
28472 * tree-ssa-structalias.c : Likewise.
28473 * tree-ssa-tail-merge.c : Likewise.
28474 * tree-ssa-ter.c : Likewise.
28475 * tree-ssa-threadedge.c : Likewise.
28476 * tree-ssa-threadupdate.c : Likewise.
28477 * tree-ssa-uncprop.c : Likewise.
28478 * tree-ssa-uninit.c : Likewise.
28479 * tree-ssa.c : Likewise.
28480 * tree-ssanames.c : Likewise.
28481 * tree-stdarg.c : Likewise.
28482 * tree-streamer-in.c : Likewise.
28483 * tree-streamer-out.c : Likewise.
28484 * tree-streamer.c : Likewise.
28485 * tree-streamer.h : Likewise.
28486 * tree-switch-conversion.c : Likewise.
28487 * tree-tailcall.c : Likewise.
28488 * tree-vect-data-refs.c : Likewise.
28489 * tree-vect-generic.c : Likewise.
28490 * tree-vect-loop-manip.c : Likewise.
28491 * tree-vect-loop.c : Likewise.
28492 * tree-vect-patterns.c : Likewise.
28493 * tree-vect-slp.c : Likewise.
28494 * tree-vect-stmts.c : Likewise.
28495 * tree-vectorizer.c : Likewise.
28496 * tree-vectorizer.h : Likewise.
28497 * tree-vrp.c : Likewise.
28498 * tree.c : Likewise.
28499 * tsan.c : Likewise.
28500 * ubsan.c : Likewise.
28501 * valtrack.c : Likewise.
28502 * valtrack.h : Likewise.
28503 * value-prof.c : Likewise.
28504 * var-tracking.c : Likewise.
28505 * varasm.c : Likewise.
28506 * varpool.c : Likewise.
28508 * vmsdbgout.c : Likewise.
28509 * vtable-verify.c : Likewise.
28510 * vtable-verify.h : Likewise.
28511 * web.c : Likewise.
28512 * wide-int.cc : Likewise.
28513 * xcoffout.c : Likewise.
28514 * config/aarch64/aarch64-builtins.c : Likewise.
28515 * config/aarch64/aarch64.c : Likewise.
28516 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
28517 * config/alpha/alpha.c : Likewise.
28518 * config/arc/arc.c : Likewise.
28519 * config/arm/aarch-common.c : Likewise.
28520 * config/arm/arm-builtins.c : Likewise.
28521 * config/arm/arm-c.c : Likewise.
28522 * config/arm/arm.c : Likewise.
28523 * config/avr/avr-c.c : Likewise.
28524 * config/avr/avr-log.c : Likewise.
28525 * config/avr/avr.c : Likewise.
28526 * config/bfin/bfin.c : Likewise.
28527 * config/c6x/c6x.c : Likewise.
28528 * config/cr16/cr16.c : Likewise.
28529 * config/cris/cris.c : Likewise.
28530 * config/darwin-c.c : Likewise.
28531 * config/darwin.c : Likewise.
28532 * config/default-c.c : Likewise.
28533 * config/epiphany/epiphany.c : Likewise.
28534 * config/epiphany/mode-switch-use.c : Likewise.
28535 * config/epiphany/resolve-sw-modes.c : Likewise.
28536 * config/fr30/fr30.c : Likewise.
28537 * config/frv/frv.c : Likewise.
28538 * config/ft32/ft32.c : Likewise.
28539 * config/glibc-c.c : Likewise.
28540 * config/h8300/h8300.c : Likewise.
28541 * config/i386/i386-c.c : Likewise.
28542 * config/i386/i386.c : Likewise.
28543 * config/i386/msformat-c.c : Likewise.
28544 * config/i386/winnt-cxx.c : Likewise.
28545 * config/i386/winnt-stubs.c : Likewise.
28546 * config/i386/winnt.c : Likewise.
28547 * config/ia64/ia64-c.c : Likewise.
28548 * config/ia64/ia64.c : Likewise.
28549 * config/iq2000/iq2000.c : Likewise.
28550 * config/lm32/lm32.c : Likewise.
28551 * config/m32c/m32c-pragma.c : Likewise.
28552 * config/m32c/m32c.c : Likewise.
28553 * config/m32r/m32r.c : Likewise.
28554 * config/m68k/m68k.c : Likewise.
28555 * config/mcore/mcore.c : Likewise.
28556 * config/mep/mep-pragma.c : Likewise.
28557 * config/mep/mep.c : Likewise.
28558 * config/microblaze/microblaze-c.c : Likewise.
28559 * config/microblaze/microblaze.c : Likewise.
28560 * config/mips/mips.c : Likewise.
28561 * config/mmix/mmix.c : Likewise.
28562 * config/mn10300/mn10300.c : Likewise.
28563 * config/moxie/moxie.c : Likewise.
28564 * config/msp430/msp430-c.c : Likewise.
28565 * config/msp430/msp430.c : Likewise.
28566 * config/nds32/nds32-cost.c : Likewise.
28567 * config/nds32/nds32-fp-as-gp.c : Likewise.
28568 * config/nds32/nds32-intrinsic.c : Likewise.
28569 * config/nds32/nds32-isr.c : Likewise.
28570 * config/nds32/nds32-md-auxiliary.c : Likewise.
28571 * config/nds32/nds32-memory-manipulation.c : Likewise.
28572 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
28573 * config/nds32/nds32-predicates.c : Likewise.
28574 * config/nds32/nds32.c : Likewise.
28575 * config/nios2/nios2.c : Likewise.
28576 * config/nvptx/nvptx.c : Likewise.
28577 * config/pa/pa.c : Likewise.
28578 * config/pdp11/pdp11.c : Likewise.
28579 * config/rl78/rl78-c.c : Likewise.
28580 * config/rl78/rl78.c : Likewise.
28581 * config/rs6000/rs6000-c.c : Likewise.
28582 * config/rs6000/rs6000.c : Likewise.
28583 * config/rx/rx.c : Likewise.
28584 * config/s390/s390-c.c : Likewise.
28585 * config/s390/s390.c : Likewise.
28586 * config/sh/sh-c.c : Likewise.
28587 * config/sh/sh-mem.cc : Likewise.
28588 * config/sh/sh.c : Likewise.
28589 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
28590 * config/sh/sh_treg_combine.cc : Likewise.
28591 * config/sol2-c.c : Likewise.
28592 * config/sol2-cxx.c : Likewise.
28593 * config/sol2-stubs.c : Likewise.
28594 * config/sol2.c : Likewise.
28595 * config/sparc/sparc-c.c : Likewise.
28596 * config/sparc/sparc.c : Likewise.
28597 * config/spu/spu-c.c : Likewise.
28598 * config/spu/spu.c : Likewise.
28599 * config/stormy16/stormy16.c : Likewise.
28600 * config/tilegx/mul-tables.c : Likewise.
28601 * config/tilegx/tilegx-c.c : Likewise.
28602 * config/tilegx/tilegx.c : Likewise.
28603 * config/tilepro/mul-tables.c : Likewise.
28604 * config/tilepro/tilepro-c.c : Likewise.
28605 * config/tilepro/tilepro.c : Likewise.
28606 * config/v850/v850-c.c : Likewise.
28607 * config/v850/v850.c : Likewise.
28608 * config/vax/vax.c : Likewise.
28609 * config/visium/visium.c : Likewise.
28610 * config/vms/vms-c.c : Likewise.
28611 * config/vms/vms.c : Likewise.
28612 * config/vxworks.c : Likewise.
28613 * config/winnt-c.c : Likewise.
28614 * config/xtensa/xtensa.c : Likewise.
28616 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28619 * ipa-utils.h (warn_types_mismatch): Update prototype.
28620 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
28622 (type_mismatch_p): New function.
28623 (warn_types_mismatch): Reorg to work better on non-C++ types.
28624 (odr_types_equivalent_p): Add loc1/loc2 parameters.
28625 (add_type_duplicate): Update.
28627 2015-06-08 Tom de Vries <tom@codesourcery.com>
28629 PR rtl-optimization/66444
28630 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
28633 2015-06-08 Richard Biener <rguenther@suse.de>
28635 PR tree-optimization/66422
28636 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
28637 block after inserted gcc_unreachable.
28639 2015-06-08 Nick Clifton <nickc@redhat.com>
28641 * config/rx/rx.c (rx_function_value): Do not promote vector types.
28642 (rx_promote_function_mode): Likewise.
28643 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
28645 2015-06-08 Jakub Jelinek <jakub@redhat.com>
28647 * genattrtab.c (insn_alternatives): Change type from int *
28649 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
28650 (get_attr_value): Change type of num_alt to uint64_t.
28651 (compute_alternative_mask): Change return type from
28652 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
28653 (make_alternative_compare, mk_attr_alt): Change argument type
28654 from int to uint64_t.
28655 (simplify_test_exp): Change type of i from int to uint64_t.
28656 Shift ((uint64_t) 1) instead of 1 up.
28657 (main): Adjust oballocvec first argument from int to uint64_t.
28658 Shift ((uint64_t) 1) instead of 1 up.
28660 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
28663 * gdbhooks.py: Import sys.
28664 (intptr): New function. Replace int(...) by intptr(...).
28666 2015-06-08 Richard Biener <rguenther@suse.de>
28668 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
28669 adjustment for gaps at the end of a SLP load group properly.
28670 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
28671 all permutations we can generate.
28672 (vect_transform_slp_perm_load): Use the correct group-size.
28674 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
28676 * genmatch.c (expr::gen_transform): For conditions, guess the type
28677 from the second operand.
28679 2015-06-08 Tom de Vries <tom@codesourcery.com>
28681 PR tree-optimization/66442
28682 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
28683 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
28684 if the loop latch is not a singleton. Use
28685 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
28687 2015-06-08 Marek Polacek <polacek@redhat.com>
28690 * toplev.c (check_global_declaration): Don't warn about artificial
28693 2015-06-08 Tom de Vries <tom@codesourcery.com>
28695 PR tree-optimization/66436
28696 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
28698 * gimplify.c: Add tree-dump.h include.
28699 (gimplify_function_tree): Dump function to gimple dump file.
28700 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
28703 2015-06-08 Tom de Vries <tom@codesourcery.com>
28705 PR tree-optimization/66435
28706 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
28709 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
28711 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
28712 of ptr_type_node to not be ptr_to_node.
28713 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
28714 TREE_TYPE of pointers.
28715 * gimple-expr.c (useless_type_conversion): Reorder the check for
28716 function pointers and TYPE_CANONICAL.
28718 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
28721 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
28722 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
28723 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
28725 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
28726 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
28727 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
28728 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
28729 and non iso if unix2003.
28731 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
28733 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
28735 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
28737 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
28738 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
28739 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
28740 except.c, final.c, function.c, gcse-common.c, genemit.c,
28741 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
28742 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
28743 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
28744 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
28747 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
28749 * combine.c (combine_split_insns): Remove cast.
28750 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
28751 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
28752 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
28753 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
28754 * genemit.c (gen_split): Change return type of generated functions to
28756 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
28757 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
28758 gen_peephole2_* functions.
28759 (print_subroutine, main): Likewise.
28760 * recog.c (peephole2_optimize): Remove cast.
28761 (peep2_next_insn): Promote return type to rtx_insn.
28762 * recog.h (peep2_next_insn): Fix prototype.
28763 * rtl.h (try_split, split_insns): Likewise.
28765 2015-06-06 DJ Delorie <dj@redhat.com>
28767 * config/msp430/msp430.c (msp430_asm_integer): Support addition
28768 and subtraction too.
28770 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
28773 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
28774 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
28775 instead of Snd. Disparage Sid/z alternative with '^'.
28777 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
28779 * dwarf2out.c: Remove deferred_locations*.
28780 (dwarf2_debug_hooks): Add early_finish hook.
28781 Remove global_decl hook.
28782 Add early_global_decl and late_global_decl hook.
28783 New global early_dwarf.
28784 New structure set_early_dwarf.
28785 (output_die): Indicate whether a DIE was generated early
28786 when generating assembly with -dA.
28787 (struct limbo_die_struct): Document created_for field.
28788 Remove file_table_last_lookup.
28789 (remove_AT): Return TRUE if successful.
28790 (remove_child_TAG): Clear die_parent.
28791 (reparent_child): New function abstracted from...
28792 (splice_child_die): ...here.
28793 (new_die): ICE if a DIE ends up in limbo too late.
28795 (defer_location): Remove.
28796 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
28797 (fill_variable_array_bounds): New.
28798 (decl_start_label): Call fill_variable_array_bounds.
28799 (gen_formal_parameter_die): Rewrite to reuse previously generated
28801 (gen_subprogram_die): Same.
28802 (gen_variable_die): Same.
28803 (gen_const_die): Same.
28804 (gen_label_die): Same.
28805 (gen_lexical_block_die): Same.
28806 (decl_will_get_specification_p): New.
28807 (local_function_static): New.
28808 (gen_struct_or_union_type_die): Fill in variable-length fields.
28809 (gen_typedef_die): Fill in variable-length typedefs.
28810 (gen_tagged_type_die): Gracefully return on error_mark_node.
28811 Handle re-entrancy.
28812 (gen_type_die_with_usage): Handle variable-length types.
28813 Remove duplicate code for ARRAY_TYPE case.
28814 (process_scope_var): Only process imported modules during early
28816 (dwarf2out_early_global_decl): New.
28817 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
28818 (dwarf2out_type_decl): Set early_dwarf while calling
28820 (dwarf2out_decl): Verify that we did not recreate a previously
28822 Do not return on DECL_EXTERNALs in VAR_DECLs.
28823 Abstract some code to local_function_static.
28824 (lookup_filename): Remove use of file_table_last_lookup.
28825 Gracefully exit on missing file_name.
28826 (dwarf2out_finish): Verify limbo list.
28827 Remove deferred_locations_list use.
28828 Move deferred_asm_name and limbo flushing to...
28829 (dwarf2out_early_finish): ...here. New.
28830 (dwarf2out_c_finalize): Remove set of deferred_location_list,
28831 deferred_asm_name, and file_table_last_lookup.
28832 * cgraph.h (referred_to_p): Add default argument.
28833 * cgraphunit.c (referred_to_p): Add and handle include_self
28835 (analyze_functions): Add first_time argument.
28836 Call check_global_declaration for all symbols.
28837 Call late_global_decl for nodes for moribund nodes.
28838 (finalize_compilation_unit): Add new argument to
28840 Call early_global_decl for functions.
28841 Call early_finish debug hook.
28842 * dbxout.c (dbxout_early_global_decl): New.
28843 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
28844 (dbx_debug_hooks): Add new hooks.
28845 (xcoff_debug_hooks): Same.
28846 * debug.c (do_nothing_debug_hooks): Add early_finish field.
28847 Add early and late debug hooks.
28848 Remove global_decl hook.
28849 * debug.h (struct gcc_debug_hooks): Add early_finish,
28850 early_global_decl, and late_global_decl fields.
28851 Remove global_decl field.
28852 Document gcc_debug_hooks.
28853 * gengtype.c (output_typename): Remove.
28854 * godump.c (go_early_global_decl): New.
28855 (go_late_global_decl): New.
28856 (go_global_decl): Remove.
28857 (dump_go_spec_init): Remove global_decl. Add
28858 {early,late}_global_decl.
28859 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
28860 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
28861 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
28862 (write_global_declarations): Remove.
28863 (global_decl_processing): New.
28864 * langhooks.h (struct lang_hooks_for_decls): Remove
28865 final_write_globals field.
28866 Add post_compilation_parsing_cleanups field.
28867 * passes.c (rest_of_decl_compilation): Call early_global_decl.
28868 * sdbout.c: Add early and late_global_decl hooks. Remove
28869 sdbout_global_decl hook.
28870 Add early_finish field for sdb_debug_hooks.
28871 (sdbout_global_decl): Remove.
28872 (sdbout_early_global_decl): New.
28873 (sdbout_late_global_decl): New.
28874 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
28875 * toplev.c (check_global_declaration): Rename from
28876 check_global_declaration_1.
28877 Adapt to use symtab infrastructure.
28878 (check_global_declarations): Remove.
28879 (emit_debug_global_declarations): Remove.
28880 (compile_file): Remove call to final_write_globals langhook.
28881 Run the actual compilation process.
28882 Perform any post compilation parser cleanups.
28883 Generate late debug info.
28884 * toplev.h (check_global_declaration): New.
28885 (check_global_declaration_1): Remove.
28886 (check_global_declarations): Remove.
28887 (write_global_declarations): Remove.
28888 (emit_debug_global_declarations): Remove.
28889 (global_decl_processing): New.
28890 * tree-core.h (struct tree_block): Add DIE field.
28891 * tree.h (BLOCK_DIE): New.
28892 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
28894 (vmsdbgout_early_global_decl): New.
28895 (vmsdbgout_late_global_decl): New.
28896 Add early_finish debug hook field to vmsdbg_debug_hooks.
28897 Remove vmsdbgout_decl to vmsdbgout_function_decl.
28898 Add early and late_global_decl debug hooks.
28900 2015-06-05 Julian Brown <julian@codesourcery.com>
28901 Sandra Loosemore <sandra@codesourcery.com>
28903 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
28904 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
28905 to print-sysroot-suffix.sh script.
28907 2015-06-05 Tom de Vries <tom@codesourcery.com>
28909 merge from gomp4 branch:
28910 2015-05-28 Tom de Vries <tom@codesourcery.com>
28912 PR tree-optimization/65443
28913 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
28914 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
28915 (try_transform_to_exit_first_loop_alt): New function.
28916 (transform_to_exit_first_loop): Use
28917 try_transform_to_exit_first_loop_alt.
28919 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
28921 * builtins.c (expand_builtin_atomic_compare_exchange): Call
28922 emit_cmp_and_jump_insns with the mode of target.
28924 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28926 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
28928 2015-06-04 DJ Delorie <dj@redhat.com>
28930 * config/msp430/msp430.md (movsi_s): New. Special case for
28931 storing a 20-bit symbol into a 32-bit register.
28932 * config/msp430/msp430.c (msp430_subreg): Add support for it.
28933 * config/msp430/predicates.md (msp430_symbol_operand): New.
28935 2015-06-04 Sriraman Tallam <tmsriram@google.com>
28937 * calls.c (prepare_call_address): Check for noplt
28939 * config/i386/i386.c (ix86_expand_call): Check
28940 for noplt attribute.
28941 (ix86_nopic_noplt_attribute_p): New function.
28942 (ix86_output_call_insn): Output indirect call for non-pic
28944 * doc/extend.texi (noplt): Document new attribute.
28945 * doc/invoke.texi: Document new attribute.
28947 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
28949 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
28950 real.h, and fixed-value.h when included in host source files.
28951 * double-int.h: Remove redundant #includes listed above.
28952 * fixed-value.h: Likewise.
28953 * real.h: Likewise.
28954 * wide-int.h: Likewise.
28955 * inchash.h: Likewise.
28956 * rtl.h: Add some include files When included from a generator file.
28957 * target.h: Remove wide-int.h and insn-modes.h from the include list.
28958 * internal-fn.h: Don't include coretypes.h.
28959 * alias.c: Adjust includes for restructured coretypes.h.
28960 * asan.c: Likewise.
28961 * attribs.c: Likewise.
28962 * auto-inc-dec.c: Likewise.
28963 * auto-profile.c: Likewise.
28964 * bb-reorder.c: Likewise.
28965 * bt-load.c: Likewise.
28966 * builtins.c: Likewise.
28967 * caller-save.c: Likewise.
28968 * calls.c: Likewise.
28969 * ccmp.c: Likewise.
28971 * cfganal.c: Likewise.
28972 * cfgbuild.c: Likewise.
28973 * cfgcleanup.c: Likewise.
28974 * cfgexpand.c: Likewise.
28975 * cfghooks.c: Likewise.
28976 * cfgloop.c: Likewise.
28977 * cfgloop.h: Likewise.
28978 * cfgloopanal.c: Likewise.
28979 * cfgloopmanip.c: Likewise.
28980 * cfgrtl.c: Likewise.
28981 * cgraph.c: Likewise.
28982 * cgraphbuild.c: Likewise.
28983 * cgraphclones.c: Likewise.
28984 * cgraphunit.c: Likewise.
28985 * cilk-common.c: Likewise.
28986 * combine-stack-adj.c: Likewise.
28987 * combine.c: Likewise.
28988 * compare-elim.c: Likewise.
28989 * convert.c: Likewise.
28990 * coverage.c: Likewise.
28991 * cppbuiltin.c: Likewise.
28992 * cprop.c: Likewise.
28994 * cselib.c: Likewise.
28995 * data-streamer-in.c: Likewise.
28996 * data-streamer-out.c: Likewise.
28997 * data-streamer.c: Likewise.
28998 * dbxout.c: Likewise.
29001 * debug.c: Likewise.
29002 * df-core.c: Likewise.
29003 * df-problems.c: Likewise.
29004 * df-scan.c: Likewise.
29007 * dojump.c: Likewise.
29008 * dominance.c: Likewise.
29009 * domwalk.c: Likewise.
29010 * double-int.c: Likewise.
29012 * dumpfile.c: Likewise.
29013 * dwarf2asm.c: Likewise.
29014 * dwarf2cfi.c: Likewise.
29015 * dwarf2out.c: Likewise.
29016 * dwarf2out.h: Likewise.
29017 * emit-rtl.c: Likewise.
29018 * et-forest.c: Likewise.
29019 * except.c: Likewise.
29020 * explow.c: Likewise.
29021 * expmed.c: Likewise.
29022 * expr.c: Likewise.
29023 * final.c: Likewise.
29024 * fixed-value.c: Likewise.
29025 * fold-const.c: Likewise.
29026 * function.c: Likewise.
29027 * fwprop.c: Likewise.
29028 * gcc-plugin.h: Likewise.
29029 * gcse.c: Likewise.
29030 * generic-match-head.c: Likewise.
29031 * ggc-page.c: Likewise.
29032 * gimple-builder.c: Likewise.
29033 * gimple-expr.c: Likewise.
29034 * gimple-fold.c: Likewise.
29035 * gimple-iterator.c: Likewise.
29036 * gimple-low.c: Likewise.
29037 * gimple-match-head.c: Likewise.
29038 * gimple-pretty-print.c: Likewise.
29039 * gimple-ssa-isolate-paths.c: Likewise.
29040 * gimple-ssa-strength-reduction.c: Likewise.
29041 * gimple-streamer-in.c: Likewise.
29042 * gimple-streamer-out.c: Likewise.
29043 * gimple-streamer.h: Likewise.
29044 * gimple-walk.c: Likewise.
29045 * gimple.c: Likewise.
29046 * gimplify-me.c: Likewise.
29047 * gimplify.c: Likewise.
29048 * godump.c: Likewise.
29049 * graph.c: Likewise.
29050 * graphite-blocking.c: Likewise.
29051 * graphite-dependences.c: Likewise.
29052 * graphite-interchange.c: Likewise.
29053 * graphite-isl-ast-to-gimple.c: Likewise.
29054 * graphite-optimize-isl.c: Likewise.
29055 * graphite-poly.c: Likewise.
29056 * graphite-scop-detection.c: Likewise.
29057 * graphite-sese-to-poly.c: Likewise.
29058 * graphite.c: Likewise.
29059 * haifa-sched.c: Likewise.
29060 * hooks.h: Likewise.
29061 * hw-doloop.c: Likewise.
29062 * ifcvt.c: Likewise.
29063 * incpath.c: Likewise.
29064 * init-regs.c: Likewise.
29065 * internal-fn.c: Likewise.
29066 * ipa-chkp.c: Likewise.
29067 * ipa-comdats.c: Likewise.
29068 * ipa-cp.c: Likewise.
29069 * ipa-devirt.c: Likewise.
29070 * ipa-icf-gimple.c: Likewise.
29071 * ipa-icf.c: Likewise.
29072 * ipa-inline-analysis.c: Likewise.
29073 * ipa-inline-transform.c: Likewise.
29074 * ipa-inline.c: Likewise.
29075 * ipa-polymorphic-call.c: Likewise.
29076 * ipa-profile.c: Likewise.
29077 * ipa-prop.c: Likewise.
29078 * ipa-pure-const.c: Likewise.
29079 * ipa-ref.c: Likewise.
29080 * ipa-reference.c: Likewise.
29081 * ipa-split.c: Likewise.
29082 * ipa-utils.c: Likewise.
29083 * ipa-visibility.c: Likewise.
29085 * ira-build.c: Likewise.
29086 * ira-color.c: Likewise.
29087 * ira-conflicts.c: Likewise.
29088 * ira-costs.c: Likewise.
29089 * ira-emit.c: Likewise.
29090 * ira-lives.c: Likewise.
29092 * jump.c: Likewise.
29093 * langhooks.c: Likewise.
29095 * loop-doloop.c: Likewise.
29096 * loop-init.c: Likewise.
29097 * loop-invariant.c: Likewise.
29098 * loop-iv.c: Likewise.
29099 * loop-unroll.c: Likewise.
29100 * lower-subreg.c: Likewise.
29101 * lra-assigns.c: Likewise.
29102 * lra-coalesce.c: Likewise.
29103 * lra-constraints.c: Likewise.
29104 * lra-eliminations.c: Likewise.
29105 * lra-lives.c: Likewise.
29106 * lra-remat.c: Likewise.
29107 * lra-spills.c: Likewise.
29109 * lto-cgraph.c: Likewise.
29110 * lto-compress.c: Likewise.
29111 * lto-opts.c: Likewise.
29112 * lto-section-in.c: Likewise.
29113 * lto-section-out.c: Likewise.
29114 * lto-streamer-in.c: Likewise.
29115 * lto-streamer-out.c: Likewise.
29116 * lto-streamer.c: Likewise.
29118 * mode-switching.c: Likewise.
29119 * modulo-sched.c: Likewise.
29120 * omega.c: Likewise.
29121 * omp-low.c: Likewise.
29122 * optabs.c: Likewise.
29123 * opts-global.c: Likewise.
29124 * passes.c: Likewise.
29125 * plugin.c: Likewise.
29126 * postreload-gcse.c: Likewise.
29127 * postreload.c: Likewise.
29128 * predict.c: Likewise.
29129 * print-rtl.c: Likewise.
29130 * print-tree.c: Likewise.
29131 * profile.c: Likewise.
29132 * real.c: Likewise.
29133 * realmpfr.c: Likewise.
29134 * realmpfr.h: Likewise.
29135 * recog.c: Likewise.
29137 * reg-stack.c: Likewise.
29138 * regcprop.c: Likewise.
29139 * reginfo.c: Likewise.
29140 * regrename.c: Likewise.
29141 * regs.h: Likewise.
29142 * regstat.c: Likewise.
29143 * reload.c: Likewise.
29144 * reload1.c: Likewise.
29145 * reorg.c: Likewise.
29146 * resource.c: Likewise.
29147 * rtl-chkp.c: Likewise.
29148 * rtlanal.c: Likewise.
29149 * rtlhooks.c: Likewise.
29150 * sanopt.c: Likewise.
29151 * sched-deps.c: Likewise.
29152 * sched-ebb.c: Likewise.
29153 * sched-rgn.c: Likewise.
29154 * sched-vis.c: Likewise.
29155 * sdbout.c: Likewise.
29156 * sel-sched-dump.c: Likewise.
29157 * sel-sched-ir.c: Likewise.
29158 * sel-sched.c: Likewise.
29159 * sese.c: Likewise.
29160 * shrink-wrap.c: Likewise.
29161 * shrink-wrap.h: Likewise.
29162 * simplify-rtx.c: Likewise.
29163 * stack-ptr-mod.c: Likewise.
29164 * statistics.c: Likewise.
29165 * stmt.c: Likewise.
29166 * stor-layout.c: Likewise.
29167 * store-motion.c: Likewise.
29168 * stringpool.c: Likewise.
29169 * symtab.c: Likewise.
29170 * target-globals.c: Likewise.
29171 * targhooks.c: Likewise.
29172 * toplev.c: Likewise.
29173 * tracer.c: Likewise.
29174 * trans-mem.c: Likewise.
29175 * tree-affine.c: Likewise.
29176 * tree-affine.h: Likewise.
29177 * tree-browser.c: Likewise.
29178 * tree-call-cdce.c: Likewise.
29179 * tree-cfg.c: Likewise.
29180 * tree-cfgcleanup.c: Likewise.
29181 * tree-chkp-opt.c: Likewise.
29182 * tree-chkp.c: Likewise.
29183 * tree-chrec.c: Likewise.
29184 * tree-complex.c: Likewise.
29185 * tree-data-ref.c: Likewise.
29186 * tree-dfa.c: Likewise.
29187 * tree-diagnostic.c: Likewise.
29188 * tree-dump.c: Likewise.
29189 * tree-eh.c: Likewise.
29190 * tree-emutls.c: Likewise.
29191 * tree-if-conv.c: Likewise.
29192 * tree-inline.c: Likewise.
29193 * tree-into-ssa.c: Likewise.
29194 * tree-iterator.c: Likewise.
29195 * tree-loop-distribution.c: Likewise.
29196 * tree-nested.c: Likewise.
29197 * tree-nrv.c: Likewise.
29198 * tree-object-size.c: Likewise.
29199 * tree-outof-ssa.c: Likewise.
29200 * tree-parloops.c: Likewise.
29201 * tree-phinodes.c: Likewise.
29202 * tree-predcom.c: Likewise.
29203 * tree-pretty-print.c: Likewise.
29204 * tree-pretty-print.h: Likewise.
29205 * tree-profile.c: Likewise.
29206 * tree-scalar-evolution.c: Likewise.
29207 * tree-sra.c: Likewise.
29208 * tree-ssa-address.c: Likewise.
29209 * tree-ssa-alias.c: Likewise.
29210 * tree-ssa-ccp.c: Likewise.
29211 * tree-ssa-coalesce.c: Likewise.
29212 * tree-ssa-copy.c: Likewise.
29213 * tree-ssa-copyrename.c: Likewise.
29214 * tree-ssa-dce.c: Likewise.
29215 * tree-ssa-dom.c: Likewise.
29216 * tree-ssa-dse.c: Likewise.
29217 * tree-ssa-forwprop.c: Likewise.
29218 * tree-ssa-ifcombine.c: Likewise.
29219 * tree-ssa-live.c: Likewise.
29220 * tree-ssa-loop-ch.c: Likewise.
29221 * tree-ssa-loop-im.c: Likewise.
29222 * tree-ssa-loop-ivcanon.c: Likewise.
29223 * tree-ssa-loop-ivopts.c: Likewise.
29224 * tree-ssa-loop-manip.c: Likewise.
29225 * tree-ssa-loop-niter.c: Likewise.
29226 * tree-ssa-loop-prefetch.c: Likewise.
29227 * tree-ssa-loop-unswitch.c: Likewise.
29228 * tree-ssa-loop.c: Likewise.
29229 * tree-ssa-loop.h: Likewise.
29230 * tree-ssa-math-opts.c: Likewise.
29231 * tree-ssa-operands.c: Likewise.
29232 * tree-ssa-phiopt.c: Likewise.
29233 * tree-ssa-phiprop.c: Likewise.
29234 * tree-ssa-pre.c: Likewise.
29235 * tree-ssa-propagate.c: Likewise.
29236 * tree-ssa-reassoc.c: Likewise.
29237 * tree-ssa-sccvn.c: Likewise.
29238 * tree-ssa-scopedtables.c: Likewise.
29239 * tree-ssa-sink.c: Likewise.
29240 * tree-ssa-strlen.c: Likewise.
29241 * tree-ssa-structalias.c: Likewise.
29242 * tree-ssa-tail-merge.c: Likewise.
29243 * tree-ssa-ter.c: Likewise.
29244 * tree-ssa-threadedge.c: Likewise.
29245 * tree-ssa-threadupdate.c: Likewise.
29246 * tree-ssa-uncprop.c: Likewise.
29247 * tree-ssa-uninit.c: Likewise.
29248 * tree-ssa.c: Likewise.
29249 * tree-ssanames.c: Likewise.
29250 * tree-stdarg.c: Likewise.
29251 * tree-streamer-in.c: Likewise.
29252 * tree-streamer-out.c: Likewise.
29253 * tree-streamer.c: Likewise.
29254 * tree-switch-conversion.c: Likewise.
29255 * tree-tailcall.c: Likewise.
29256 * tree-vect-data-refs.c: Likewise.
29257 * tree-vect-generic.c: Likewise.
29258 * tree-vect-loop-manip.c: Likewise.
29259 * tree-vect-loop.c: Likewise.
29260 * tree-vect-patterns.c: Likewise.
29261 * tree-vect-slp.c: Likewise.
29262 * tree-vect-stmts.c: Likewise.
29263 * tree-vectorizer.c: Likewise.
29264 * tree-vrp.c: Likewise.
29265 * tree.c: Likewise.
29266 * tsan.c: Likewise.
29267 * ubsan.c: Likewise.
29268 * valtrack.c: Likewise.
29269 * value-prof.c: Likewise.
29270 * var-tracking.c: Likewise.
29271 * varasm.c: Likewise.
29272 * varpool.c: Likewise.
29273 * vmsdbgout.c: Likewise.
29274 * vtable-verify.c: Likewise.
29276 * wide-int-print.cc: Likewise.
29277 * wide-int-print.h: Likewise.
29278 * wide-int.cc: Likewise.
29279 * xcoffout.c: Likewise.
29280 * config/aarch64/aarch64-builtins.c: Likewise.
29281 * config/aarch64/aarch64.c: Likewise.
29282 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29283 * config/alpha/alpha.c: Likewise.
29284 * config/arc/arc.c: Likewise.
29285 * config/arm/aarch-common.c: Likewise.
29286 * config/arm/arm-builtins.c: Likewise.
29287 * config/arm/arm-c.c: Likewise.
29288 * config/arm/arm.c: Likewise.
29289 * config/avr/avr-c.c: Likewise.
29290 * config/avr/avr-log.c: Likewise.
29291 * config/avr/avr.c: Likewise.
29292 * config/bfin/bfin.c: Likewise.
29293 * config/c6x/c6x.c: Likewise.
29294 * config/cr16/cr16.c: Likewise.
29295 * config/cris/cris.c: Likewise.
29296 * config/darwin-c.c: Likewise.
29297 * config/darwin.c: Likewise.
29298 * config/default-c.c: Likewise.
29299 * config/epiphany/epiphany.c: Likewise.
29300 * config/epiphany/mode-switch-use.c: Likewise.
29301 * config/epiphany/resolve-sw-modes.c: Likewise.
29302 * config/fr30/fr30.c: Likewise.
29303 * config/frv/frv.c: Likewise.
29304 * config/ft32/ft32.c: Likewise.
29305 * config/glibc-c.c: Likewise.
29306 * config/h8300/h8300.c: Likewise.
29307 * config/i386/i386-c.c: Likewise.
29308 * config/i386/i386.c: Likewise.
29309 * config/i386/msformat-c.c: Likewise.
29310 * config/i386/winnt-cxx.c: Likewise.
29311 * config/i386/winnt-stubs.c: Likewise.
29312 * config/i386/winnt.c: Likewise.
29313 * config/ia64/ia64-c.c: Likewise.
29314 * config/ia64/ia64.c: Likewise.
29315 * config/iq2000/iq2000.c: Likewise.
29316 * config/lm32/lm32.c: Likewise.
29317 * config/m32c/m32c-pragma.c: Likewise.
29318 * config/m32c/m32c.c: Likewise.
29319 * config/m32r/m32r.c: Likewise.
29320 * config/m68k/m68k.c: Likewise.
29321 * config/mcore/mcore.c: Likewise.
29322 * config/mep/mep-pragma.c: Likewise.
29323 * config/mep/mep.c: Likewise.
29324 * config/microblaze/microblaze-c.c: Likewise.
29325 * config/microblaze/microblaze.c: Likewise.
29326 * config/mips/mips.c: Likewise.
29327 * config/mmix/mmix.c: Likewise.
29328 * config/mn10300/mn10300.c: Likewise.
29329 * config/moxie/moxie.c: Likewise.
29330 * config/msp430/msp430-c.c: Likewise.
29331 * config/msp430/msp430.c: Likewise.
29332 * config/nds32/nds32-cost.c: Likewise.
29333 * config/nds32/nds32-fp-as-gp.c: Likewise.
29334 * config/nds32/nds32-intrinsic.c: Likewise.
29335 * config/nds32/nds32-isr.c: Likewise.
29336 * config/nds32/nds32-md-auxiliary.c: Likewise.
29337 * config/nds32/nds32-memory-manipulation.c: Likewise.
29338 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29339 * config/nds32/nds32-predicates.c: Likewise.
29340 * config/nds32/nds32.c: Likewise.
29341 * config/nios2/nios2.c: Likewise.
29342 * config/nvptx/nvptx.c: Likewise.
29343 * config/pa/pa.c: Likewise.
29344 * config/pdp11/pdp11.c: Likewise.
29345 * config/rl78/rl78-c.c: Likewise.
29346 * config/rl78/rl78.c: Likewise.
29347 * config/rs6000/rs6000-c.c: Likewise.
29348 * config/rs6000/rs6000.c: Likewise.
29349 * config/rx/rx.c: Likewise.
29350 * config/s390/s390-c.c: Likewise.
29351 * config/s390/s390.c: Likewise.
29352 * config/sh/sh-c.c: Likewise.
29353 * config/sh/sh-mem.cc: Likewise.
29354 * config/sh/sh.c: Likewise.
29355 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
29356 * config/sh/sh_treg_combine.cc: Likewise.
29357 * config/sol2-c.c: Likewise.
29358 * config/sol2-cxx.c: Likewise.
29359 * config/sol2-stubs.c: Likewise.
29360 * config/sol2.c: Likewise.
29361 * config/sparc/sparc-c.c: Likewise.
29362 * config/sparc/sparc.c: Likewise.
29363 * config/spu/spu-c.c: Likewise.
29364 * config/spu/spu.c: Likewise.
29365 * config/stormy16/stormy16.c: Likewise.
29366 * config/tilegx/mul-tables.c: Likewise.
29367 * config/tilegx/tilegx-c.c: Likewise.
29368 * config/tilegx/tilegx.c: Likewise.
29369 * config/tilepro/mul-tables.c: Likewise.
29370 * config/tilepro/tilepro-c.c: Likewise.
29371 * config/tilepro/tilepro.c: Likewise.
29372 * config/v850/v850-c.c: Likewise.
29373 * config/v850/v850.c: Likewise.
29374 * config/vax/vax.c: Likewise.
29375 * config/visium/visium.c: Likewise.
29376 * config/vms/vms-c.c: Likewise.
29377 * config/vms/vms.c: Likewise.
29378 * config/vxworks.c: Likewise.
29379 * config/winnt-c.c: Likewise.
29380 * config/xtensa/xtensa.c: Likewise.
29381 * common/config/bfin/bfin-common.c: Likewise.
29383 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
29385 * tree.h (tree_code_for_canonical_type_merging): New function.
29386 * tree.c (gimple_canonical_types_compatible_p): Use
29387 tree_code_for_canonical_type_merging..
29389 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29393 * doc/tm.texi: Regenerate.
29394 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
29395 * target.def (TARGET_RELAXED_ORDERING): Likewise.
29396 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
29397 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
29398 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
29399 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
29400 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
29401 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
29402 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
29404 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29406 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
29407 register fma steering pass.
29408 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
29409 AARCH64_TUNE_FMA_STEERING.
29411 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
29413 * tree.c (verify_type_variant): Verify that type and variant is
29415 (gimple_canonical_types_compatible_p): Look for main variants.
29417 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29419 * config.gcc (powerpc*-*-*): Add support for a new configure
29420 option --with-advance-toolchain=<xxx> which overrides using the
29421 default header files, libraries and dynamic linker.
29423 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
29424 specs to support the configure --with-advance-toolchain=<xxx>
29426 (INCLUDE_EXTRA_SPEC): Likewise.
29427 (LINK_OS_EXTRA_SPEC32): Likewise.
29428 (LINK_OK_EXTRA_SPEC64): Likewise.
29429 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
29430 (DYNAMIC_LINKER_PREFIX): Likewise.
29431 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
29433 (GLIBC_DYNAMIC_LINKER32): Likewise.
29434 (GLIBC_DYNAMIC_LINKER64): Likewise.
29435 (LINK_OS_LINUX_SPEC32): Likewise.
29436 (LINK_OS_LINUX_SPEC64): Likewise.
29438 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
29439 configuration option.
29441 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
29444 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
29445 to determine current function ABI.
29446 (ix86_function_value_regno_p): Ditto.
29448 2015-06-03 Martin Liska <mliska@suse.cz>
29450 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
29451 * bitmap.h (struct bitmap_usage): Likewise.
29452 * ggc-common.c (struct ggc_usage): Likewise.
29453 * mem-stats.h (struct mem_location): Likewise.
29454 (struct mem_usage): Likewise.
29455 * vec.c (struct vec_usage): Likewise.
29457 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
29459 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
29462 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
29464 * doc/plugins.texi (enum plugin_event): New event.
29465 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
29466 and PLUGIN_FINISH_FUNCTION.
29467 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
29468 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
29470 2015-06-03 Richard Biener <rguenther@suse.de>
29472 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29473 compute GROUP_GAP for the first element.
29474 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
29477 2015-06-03 Nick Clifton <nickc@redhat.com>
29479 * config/rl78/rl78-real.md: Add peepholes to avoid a register
29480 copy when calling a function.
29481 * config/rl78/rl78.c (need_to_save): Do not push the frame
29482 pointer in an interrupt handler prologue if it is never used.
29484 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29486 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
29488 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29490 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
29491 reference when cloning alias node.
29493 2015-06-03 Martin Liska <mliska@suse.cz>
29495 * alloc-pool.h (struct pool_usage): Correct space padding.
29496 * ggc-page.c (ggc_print_statistics): Align columns in a report.
29497 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
29498 * tree.c (dump_tree_statistics): Align columns in a report.
29500 2015-06-03 Martin Liska <mliska@suse.cz>
29502 * alloc-pool.c (allocate_pool_descriptor): Remove.
29503 (struct pool_output_info): Likewise.
29504 (print_alloc_pool_statistics): Likewise.
29505 (dump_alloc_pool_statistics): Likewise.
29506 * alloc-pool.h (struct pool_usage): New struct.
29507 (pool_allocator::initialize): Change usage of memory statistics
29508 to a new interface.
29509 (pool_allocator::release): Likewise.
29510 (pool_allocator::allocate): Likewise.
29511 (pool_allocator::remove): Likewise.
29512 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
29513 for a pool allocator.
29514 * mem-stats.h (struct mem_location): Add new ctor.
29515 (struct mem_usage): Add counter for number of
29517 (mem_alloc_description::register_descriptor): New overload of
29518 * mem-stats.h (mem_location::to_string): New function.
29519 * bitmap.h (struct bitmap_usage): Use this new function.
29520 * ggc-common.c (struct ggc_usage): Likewise.
29523 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29525 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
29526 of GCC_INSN_FLAGS_H block.
29528 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
29530 * explow.c (plus_constant): Update check after force_const_mem call
29531 to see if the value returned is not a NULL_RTX.
29533 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29535 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
29536 remove instumentation thunks calling reachable functions.
29537 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
29538 * lto/lto-partition.c (privatize_symbol_name_1): New.
29539 (privatize_symbol_name): Privatize both decl and orig_decl
29540 names for instrumented functions.
29541 * cgraph.c (cgraph_node::verify_node): Add transparent
29542 alias chain check for instrumented node.
29544 2015-06-03 Marek Polacek <polacek@redhat.com>
29548 * tree.c (attribute_value_equal): Handle attribute format.
29549 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
29551 2015-06-03 Richard Biener <rguenther@suse.de>
29553 PR tree-optimization/63916
29554 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
29555 Forward-propagate non-invariant addresses by splicing their
29556 reference ops if the result isn't going to be used by PRE.
29557 (vn_reference_lookup_3): Remove pointless assert.
29559 2015-06-03 Richard Biener <rguenther@suse.de>
29561 PR tree-optimization/66375
29562 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
29563 add to the evolution before following SSA edges.
29565 2015-06-03 Bin Cheng <bin.cheng@arm.com>
29567 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
29568 (dump_use, dump_cand, find_induction_variables): Pass new argument
29570 (record_use): Preserve the ssa name information in IV.
29572 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29574 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
29576 (add_mode_tests): Don't add mode tests if the predicate only
29577 accepts scalar constant integers. Otherwise, allow the mode
29578 of "op" to be VOIDmode if the predicate does accept such integers.
29580 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
29583 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
29584 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
29585 (aarch64_secondary_reload): Likewise
29586 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
29588 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
29591 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
29592 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29595 * cprop.c (try_replace_reg): Check cost of constants before propagating.
29597 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29599 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
29600 provide access to the IBM extended double floating point mode if
29601 long double is IEEE 128-bit floating point.
29602 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
29603 point if long double is the IBM extended double type.
29605 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
29606 enable adding IEEE 128-bit floating point support.
29607 (-mfloat128-software): Likewise.
29608 (-mfloat128-sw): Likewise.
29610 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
29611 128-bit floating point types to occupy any register if
29612 -mlong-double-64. Do not allow use of IFmode/KFmode unless
29613 -mfloat128-software is enabled.
29614 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
29616 (rs6000_option_override_internal): Add -mfloat128-* support.
29617 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
29619 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
29620 and float128 type nodes.
29621 (ieee128_float_type_node): Likewise.
29622 (ibm128_float_type_node): Likewise.
29624 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
29627 * config/aarch64/geniterators.sh: Rewrite in awk.
29629 2015-06-02 Martin Liska <mliska@suse.cz>
29631 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
29632 values to avoid -Wmaybe-uninitialized errors.
29634 2015-06-02 Richard Biener <rguenther@suse.de>
29637 * dwarf2out.c (lookup_context_die): New function.
29638 (resolve_addr): Avoid forcing a full DIE for the
29639 target of a DW_TAG_GNU_call_site during late compilation.
29640 Instead create a stub DIE without a type if we have a
29641 context DIE present.
29643 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
29645 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
29647 2015-06-02 Bin Cheng <bin.cheng@arm.com>
29649 PR tree-optimization/48052
29650 * cfgloop.h (struct control_iv): New.
29651 (struct loop): New field control_ivs.
29652 * tree-ssa-loop-niter.c : Include "stor-layout.h".
29653 (number_of_iterations_lt): Set no_overflow information.
29654 (number_of_iterations_exit): Init control iv in niter struct.
29655 (record_control_iv): New.
29656 (estimate_numbers_of_iterations_loop): Call record_control_iv.
29657 (loop_exits_before_overflow): New. Interface factored out of
29658 scev_probably_wraps_p.
29659 (scev_probably_wraps_p): Factor loop niter related code into
29660 loop_exits_before_overflow.
29661 (free_numbers_of_iterations_estimates_loop): Free control ivs.
29662 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
29664 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
29666 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
29667 the target doesn't belong to the current function.
29669 2015-06-02 Marek Polacek <polacek@redhat.com>
29671 PR middle-end/66345
29672 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
29673 get_maxval_strlen does not produce an INTEGER_CST.
29675 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
29677 * config/arc/constraints.md: Use lower-case names in match_code.
29678 * config/mmix/constraints.md: Likewise.
29680 2015-06-02 Richard Biener <rguenther@suse.de>
29682 PR tree-optimization/65961
29683 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
29684 check and clarify dump message.
29685 (vect_build_slp_tree): If all children are built up from scalars
29686 build up the parent from scalars instead.
29687 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
29689 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
29692 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
29693 instead of print ... .
29695 2015-06-02 Alan Modra <amodra@gmail.com>
29697 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
29700 2015-06-02 Bin Cheng <bin.cheng@arm.com>
29702 PR tree-optimization/52563
29703 PR tree-optimization/62173
29704 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
29705 (alloc_iv, set_iv): New parameter.
29706 (determine_biv_step): Delete.
29707 (find_bivs): Inline original determine_biv_step. Pass new
29708 argument to set_iv.
29709 (idx_find_step): Use no_overflow information for conversion.
29710 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
29711 resolve_mixers handle folded_casts.
29712 (instantiate_scev_name): Change bool parameter to bool pointer.
29713 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
29714 (instantiate_array_ref, instantiate_scev_not): Ditto.
29715 (instantiate_scev_3, instantiate_scev_2): Ditto.
29716 (instantiate_scev_1, instantiate_scev_r): Ditto.
29717 (instantiate_scev_convert, ): Change parameter. Pass argument
29718 to chrec_convert_aggressive.
29719 (instantiate_scev): Change argument.
29720 (resolve_mixers): New parameter and set it.
29721 (scev_const_prop): New argument.
29722 * tree-scalar-evolution.h (resolve_mixers): New parameter.
29723 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
29725 (chrec_convert): New parameter. Move definition below.
29726 (chrec_convert_aggressive): New parameter and set it. Call
29727 convert_affine_scev.
29728 * tree-chrec.h (chrec_convert): New parameter.
29729 (chrec_convert_aggressive): Ditto.
29731 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
29733 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
29734 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
29735 the LHS of a no-return call if its type has variable size.
29736 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
29737 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
29739 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
29741 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
29742 * config.in: Regenerate.
29744 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
29746 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
29747 consecutive accesses within outer-loop with force_vectorize
29748 for references with zero step in inner-loop.
29750 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
29752 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
29753 rather than from gcc/build directory.
29755 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
29758 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
29759 for __sync memory models, emit initial loads and final barriers as
29762 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
29765 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
29766 (aarch64_split_atomic_op): Check for __sync memory models, emit
29767 appropriate initial loads and final barriers.
29769 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
29771 * Makefile.in: Fix gcov dependencies that should
29772 not point to a build folder.
29774 2015-06-01 Richard Biener <rguenther@suse.de>
29777 2015-05-29 Richard Biener <rguenther@suse.de>
29779 PR tree-optimization/66314
29780 * tree-ssa-threadupdate.c (create_block_for_threading): Add
29781 parameter that says which loop the new block belongs to.
29782 (ssa_create_duplicates): Blocks duplicated for the threaded
29783 path belong to the loop of the thread destination.
29785 2015-06-01 Martin Liska <mliska@suse.cz>
29787 * sched-deps.c: Include pool-alloc.h before
29788 cselib.h header file is included.
29790 2015-06-01 Richard Biener <rguenther@suse.de>
29792 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
29795 2015-06-01 Martin Liska <mliska@suse.cz>
29797 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
29798 a function local variable.
29800 2015-06-01 Martin Liska <mliska@suse.cz>
29802 * alloc-pool.c (create_alloc_pool): Remove.
29803 (empty_alloc_pool): Likewise.
29804 (free_alloc_pool): Likewise.
29805 (free_alloc_pool_if_empty): Likewise.
29806 (pool_alloc): Likewise.
29807 (pool_free): Likewise.
29808 * alloc-pool.h: Remove old declarations.
29810 2015-06-01 Martin Liska <mliska@suse.cz>
29812 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
29813 (ira_create_object): Likewise.
29814 (ira_create_allocno): Likewise.
29815 (ira_create_live_range): Likewise.
29816 (copy_live_range): Likewise.
29817 (ira_finish_live_range): Likewise.
29818 (ira_free_allocno_costs): Likewise.
29819 (finish_allocno): Likewise.
29820 (finish_allocnos): Likewise.
29821 (initiate_prefs): Likewise.
29822 (ira_create_pref): Likewise.
29823 (finish_pref): Likewise.
29824 (finish_prefs): Likewise.
29825 (initiate_copies): Likewise.
29826 (ira_create_copy): Likewise.
29827 (finish_copy): Likewise.
29828 (finish_copies): Likewise.
29829 (finish_prefs): Likewise.
29831 2015-06-01 Martin Liska <mliska@suse.cz>
29833 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
29834 (allocate_and_init_ipcp_value): Likewise.
29835 (ipcp_lattice::add_value): Likewise.
29836 (merge_agg_lats_step): Likewise.
29837 (ipcp_driver): Likewise.
29838 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
29839 (ipa_free_all_structures_after_iinln): Likewise.
29840 * ipa-prop.h: Likewise.
29842 2015-06-01 Martin Liska <mliska@suse.cz>
29844 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
29846 (set_hint_predicate): Likewise.
29847 (inline_summary_alloc): Likewise.
29848 (reset_inline_edge_summary): Likewise.
29849 (reset_inline_summary): Likewise.
29850 (set_cond_stmt_execution_predicate): Likewise.
29851 (set_switch_stmt_execution_predicate): Likewise.
29852 (compute_bb_predicates): Likewise.
29853 (estimate_function_body_sizes): Likewise.
29854 (inline_free_summary): Likewise.
29856 2015-06-01 Martin Liska <mliska@suse.cz>
29858 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
29859 (ipa_edge_duplication_hook): Likewise.
29860 (ipa_free_all_structures_after_ipa_cp): Likewise.
29861 (ipa_free_all_structures_after_iinln): Likewise.
29863 2015-06-01 Martin Liska <mliska@suse.cz>
29865 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
29866 (ipa_profile_generate_summary): Likewise.
29867 (ipa_profile_read_summary): Likewise.
29868 (ipa_profile): Likewise.
29870 2015-06-01 Martin Liska <mliska@suse.cz>
29872 * tree-ssa-structalias.c (new_var_info): Use new type-based
29874 (new_constraint): Likewise.
29875 (init_alias_vars): Likewise.
29876 (delete_points_to_sets): Likewise.
29878 2015-06-01 Martin Liska <mliska@suse.cz>
29880 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
29881 (free_strinfo): Likewise.
29882 (pass_strlen::execute): Likewise.
29884 2015-06-01 Martin Liska <mliska@suse.cz>
29886 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
29888 (vn_reference_insert_pieces): Likewise.
29889 (vn_phi_insert): Likewise.
29890 (visit_reference_op_call): Likewise.
29891 (copy_phi): Likewise.
29892 (copy_reference): Likewise.
29893 (process_scc): Likewise.
29894 (allocate_vn_table): Likewise.
29895 (free_vn_table): Likewise.
29897 2015-06-01 Martin Liska <mliska@suse.cz>
29899 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
29901 (add_repeat_to_ops_vec): Likewise.
29902 (get_ops): Likewise.
29903 (maybe_optimize_range_tests): Likewise.
29904 (init_reassoc): Likewise.
29905 (fini_reassoc): Likewise.
29907 2015-06-01 Martin Liska <mliska@suse.cz>
29909 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
29911 (bitmap_set_new): Likewise.
29912 (get_or_alloc_expr_for_constant): Likewise.
29913 (get_or_alloc_expr_for): Likewise.
29914 (phi_translate_1): Likewise.
29915 (compute_avail): Likewise.
29916 (init_pre): Likewise.
29917 (fini_pre): Likewise.
29919 2015-06-01 Martin Liska <mliska@suse.cz>
29921 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
29922 (delete_dep_node): Likewise.
29923 (create_deps_list): Likewise.
29924 (free_deps_list): Likewise.
29925 (sched_deps_init): Likewise.
29926 (sched_deps_finish): Likewise.
29928 2015-06-01 Martin Liska <mliska@suse.cz>
29930 * regcprop.c (free_debug_insn_changes): Use new type-based
29932 (replace_oldest_value_reg): Likewise.
29933 (pass_cprop_hardreg::execute): Likewise.
29935 2015-06-01 Martin Liska <mliska@suse.cz>
29937 * ira-build.c (initiate_cost_vectors): Use new type-based
29939 (ira_allocate_cost_vector): Likewise.
29940 (ira_free_cost_vector): Likewise.
29941 (finish_cost_vectors): Likewise.
29943 2015-06-01 Martin Liska <mliska@suse.cz>
29945 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
29947 (free_sched_pools): Likewise.
29948 * sel-sched-ir.h (_list_alloc): Likewise.
29949 (_list_remove): Likewise.
29951 2015-06-01 Martin Liska <mliska@suse.cz>
29953 * stmt.c (add_case_node): Use new type-based pool allocator.
29954 (expand_case): Likewise.
29955 (expand_sjlj_dispatch_table): Likewise.
29957 2015-06-01 Martin Liska <mliska@suse.cz>
29959 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
29960 (free_bb): Likewise.
29961 (pass_cse_reciprocals::execute): Likewise.
29963 2015-06-01 Martin Liska <mliska@suse.cz>
29965 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
29966 (sra_deinitialize) Likewise.
29967 (create_access_1) Likewise.
29968 (build_accesses_from_assign) Likewise.
29969 (create_artificial_child_access) Likewise.
29971 2015-06-01 Martin Liska <mliska@suse.cz>
29973 * dse.c (get_group_info):Use new type-based pool allocator.
29974 (dse_step0) Likewise.
29975 (free_store_info) Likewise.
29976 (delete_dead_store_insn) Likewise.
29977 (free_read_records) Likewise.
29978 (record_store) Likewise.
29979 (replace_read) Likewise.
29980 (check_mem_read_rtx) Likewise.
29981 (scan_insn) Likewise.
29982 (dse_step1) Likewise.
29983 (dse_step7) Likewise.
29985 2015-06-01 Martin Liska <mliska@suse.cz>
29987 * df-scan.c (struct df_scan_problem_data):Use new type-based
29989 (df_scan_free_internal) Likewise.
29990 (df_scan_alloc) Likewise.
29991 (df_grow_reg_info) Likewise.
29992 (df_free_ref) Likewise.
29993 (df_insn_create_insn_record) Likewise.
29994 (df_mw_hardreg_chain_delete) Likewise.
29995 (df_insn_info_delete) Likewise.
29996 (df_free_collection_rec) Likewise.
29997 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
29998 (df_sort_and_compress_mws) Likewise.
29999 (df_ref_create_structure) Likewise.
30000 (df_ref_record) Likewise.
30002 2015-06-01 Martin Liska <mliska@suse.cz>
30004 * df-problems.c (df_chain_create):Use new type-based pool allocator.
30005 (df_chain_unlink_1) Likewise.
30006 (df_chain_unlink) Likewise.
30007 (df_chain_remove_problem) Likewise.
30008 (df_chain_alloc) Likewise.
30009 (df_chain_free) Likewise.
30010 * df.h (struct dataflow) Likewise.
30012 2015-06-01 Martin Liska <mliska@suse.cz>
30014 * cselib.c (new_elt_list):Use new type-based pool allocator.
30015 (new_elt_loc_list) Likewise.
30016 (unchain_one_elt_list) Likewise.
30017 (unchain_one_elt_loc_list) Likewise.
30018 (unchain_one_value) Likewise.
30019 (new_cselib_val) Likewise.
30020 (cselib_init) Likewise.
30021 (cselib_finish) Likewise.
30023 2015-06-01 Martin Liska <mliska@suse.cz>
30025 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
30026 (sh_reorg) Likewise.
30028 2015-06-01 Martin Liska <mliska@suse.cz>
30030 * cfg.c (initialize_original_copy_tables):Use new type-based
30032 (free_original_copy_tables) Likewise.
30033 (copy_original_table_clear) Likewise.
30034 (copy_original_table_set) Likewise.
30036 2015-06-01 Martin Liska <mliska@suse.cz>
30038 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
30040 (asan_mem_ref_new) Likewise.
30041 (free_mem_ref_resources) Likewise.
30043 2015-06-01 Martin Liska <mliska@suse.cz>
30045 * var-tracking.c (variable_htab_free):Use new type-based
30047 (attrs_list_clear) Likewise.
30048 (attrs_list_insert) Likewise.
30049 (attrs_list_copy) Likewise.
30050 (shared_hash_unshare) Likewise.
30051 (shared_hash_destroy) Likewise.
30052 (unshare_variable) Likewise.
30053 (var_reg_delete_and_set) Likewise.
30054 (var_reg_delete) Likewise.
30055 (var_regno_delete) Likewise.
30056 (drop_overlapping_mem_locs) Likewise.
30057 (variable_union) Likewise.
30058 (insert_into_intersection) Likewise.
30059 (canonicalize_values_star) Likewise.
30060 (variable_merge_over_cur) Likewise.
30061 (dataflow_set_merge) Likewise.
30062 (remove_duplicate_values) Likewise.
30063 (variable_post_merge_new_vals) Likewise.
30064 (dataflow_set_preserve_mem_locs) Likewise.
30065 (dataflow_set_remove_mem_locs) Likewise.
30066 (variable_from_dropped) Likewise.
30067 (variable_was_changed) Likewise.
30068 (set_slot_part) Likewise.
30069 (clobber_slot_part) Likewise.
30070 (delete_slot_part) Likewise.
30071 (loc_exp_insert_dep) Likewise.
30072 (notify_dependents_of_changed_value) Likewise.
30073 (emit_notes_for_differences_1) Likewise.
30074 (vt_emit_notes) Likewise.
30075 (vt_initialize) Likewise.
30076 (vt_finalize) Likewise.
30078 2015-06-01 Martin Liska <mliska@suse.cz>
30080 * ira-color.c (init_update_cost_records):Use new type-based
30082 (get_update_cost_record) Likewise.
30083 (free_update_cost_record_list) Likewise.
30084 (finish_update_cost_records) Likewise.
30085 (initiate_cost_update) Likewise.
30087 2015-06-01 Martin Liska <mliska@suse.cz>
30089 * lra.c (init_insn_regs): Use new type-based pool allocator.
30090 (new_insn_reg) Likewise.
30091 (free_insn_reg) Likewise.
30092 (free_insn_regs) Likewise.
30093 (finish_insn_regs) Likewise.
30094 (init_insn_recog_data) Likewise.
30095 (init_reg_info) Likewise.
30096 (finish_reg_info) Likewise.
30097 (lra_free_copies) Likewise.
30098 (lra_create_copy) Likewise.
30099 (invalidate_insn_data_regno_info) Likewise.
30101 2015-06-01 Martin Liska <mliska@suse.cz>
30103 * lra-lives.c (free_live_range): Use new type-based pool allocator.
30104 (free_live_range_list) Likewise.
30105 (create_live_range) Likewise.
30106 (copy_live_range) Likewise.
30107 (lra_merge_live_ranges) Likewise.
30108 (remove_some_program_points_and_update_live_ranges) Likewise.
30109 (lra_live_ranges_init) Likewise.
30110 (lra_live_ranges_finish) Likewise.
30112 2015-06-01 Martin Liska <mliska@suse.cz>
30114 * et-forest.c (et_new_occ): Use new type-based pool allocator.
30115 (et_new_tree): Likewise.
30116 (et_free_tree): Likewise.
30117 (et_free_tree_force): Likewise.
30118 (et_free_pools): Likewise.
30119 (et_split): Likewise.
30121 2015-06-01 Martin Liska <mliska@suse.cz>
30123 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
30125 * alloc-pool.h (pool_allocator::pool_allocator): New function.
30126 (pool_allocator::release): Likewise.
30127 (inline pool_allocator::release_if_empty): Likewise.
30128 (inline pool_allocator::~pool_allocator): Likewise.
30129 (pool_allocator::allocate): Likewise.
30130 (pool_allocator::remove): Likewise.
30132 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30134 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
30137 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30139 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
30141 * config/arm/arm.c (arm_print_tune_info): Likewise.
30142 (arm_macro_fusion_p): Likewise.
30143 (arm_macro_fusion_pair_p): Likewise.
30145 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30147 * config/aarch64/aarch64-protos.h (tune_params): Rename
30148 fuseable_ops to fusible_ops.
30149 * config/aarch64/aarch64.c (generic_tunings): Rename
30150 fuseable_ops to fusible_ops.
30151 (cortexa53_tunings): Likewise.
30152 (cortexa57_tunings): Likewise.
30153 (thunderx_tunings): Likewise.
30154 (xgene1_tunings): Likewise.
30155 (aarch64_macro_fusion_p): Likewise.
30156 (aarch64_macro_fusion_pair_p): Likewise.
30158 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
30160 * config/s390/driver-native.c: New file.
30161 * config/s390/x-native: New file.
30162 * config.host: Add new files for s390.
30163 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
30165 * config.gcc: Likewise.
30166 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
30167 * config/s390/s390-opts.h (enum processor_type): Ditto.
30168 * config/s390/s390.c (s390_option_override): Catch unhandled
30171 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
30174 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
30175 redirection for instrumented calls.
30176 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
30177 (append_compiler_options): Append -fcheck-pointer-bounds.
30178 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
30179 (chkp_redirect_edge): New.
30180 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
30181 (chkp_redirect_edge): New.
30183 2015-06-01 Richard Biener <rguenther@suse.de>
30185 PR tree-optimization/66280
30186 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
30189 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30191 * config/aarch64/aarch64.md
30192 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
30195 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
30197 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
30198 Remove obsolete kludge.
30200 2015-06-01 Richard Biener <rguenther@suse.de>
30202 * tree-ssa-reassoc.c (get_rank): Simplify.
30204 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
30206 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
30207 * configure: Regenerated.
30209 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
30211 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
30212 issue (add space between string literal and macro).
30213 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
30215 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
30217 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
30218 implict or explicit -fPIE or -fpie.
30220 2015-05-30 Mike Frysinger <vapier@gentoo.org>
30222 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
30224 2015-05-28 DJ Delorie <dj@redhat.com>
30226 * expmed.c (extract_bit_field_1): Avoid clobbering a
30227 yet-to-be-used base/index register.
30229 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
30231 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
30232 (alias_stats): Add num_universal.
30233 (alias_set_subset_of): Special case pointers; be ready for NULL
30235 (alias_sets_conflict_p): Special case pointers; be ready for NULL
30237 (init_alias_set_entry): Break out from ...
30238 (record_alias_subset): ... here; propagate new fields;
30239 allocate children only when really needed.
30240 (get_alias_set): Do less generous pointer globbing.
30241 (dump_alias_stats_in_alias_c): Update statistics.
30243 2015-05-30 Alan Modra <amodra@gmail.com>
30245 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
30246 correct block for use of r12.
30247 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
30249 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
30252 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
30255 2015-05-29 Jakub Jelinek <jakub@redhat.com>
30257 PR tree-optimization/66142
30258 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
30259 virtual phis that feed themselves.
30261 2015-05-29 Richard Biener <rguenther@suse.de>
30263 PR tree-optimization/66314
30264 * tree-ssa-threadupdate.c (create_block_for_threading): Add
30265 parameter that says which loop the new block belongs to.
30266 (ssa_create_duplicates): Blocks duplicated for the threaded
30267 path belong to the loop of the thread destination.
30269 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30271 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
30272 to cleanup-saved-temps.
30273 * doc/sourcebuild.texi (Clean up generated test files): Expand
30275 (dg-keep-saved-temps): Document new proc.
30276 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
30277 cleanup-saved-temps): Remove.
30279 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
30281 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
30282 gcc_AC_CHECK_DECLS.
30283 * configure: Regenerate.
30285 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30287 * config/nios2/linux.h (CPP_SPEC): Define.
30289 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30291 * config/microblaze/linux.h (CPP_SPEC): Define.
30293 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30295 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
30296 -pthread is specified.
30298 2015-05-28 Richard Biener <rguenther@suse.de>
30300 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
30301 (vect_fixup_scalar_cycles_with_patterns): Likewise.
30302 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
30303 after pattern recog.
30304 (vect_create_epilog_for_reduction): Properly handle reductions
30306 (vectorizable_reduction): Likewise.
30307 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
30309 (vect_get_constant_vectors): Create the correct number of
30310 initial values for reductions.
30311 (vect_schedule_slp_instance): Handle reduction chains that are
30312 type changing properly.
30313 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
30315 2015-05-28 Richard Biener <rguenther@suse.de>
30317 PR tree-optimization/66142
30318 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
30319 values better in memcpy destination handling. Handle non-aliasing
30322 2015-05-28 Lawrence Velázquez <vq@larryv.me>
30325 * config/darwin-c.c (version_components): New global enum.
30326 (parse_version, version_as_legacy_macro)
30327 (version_as_modern_macro, macosx_version_as_macro): New functions.
30328 (version_as_macro): Remove.
30329 (darwin_cpp_builtins): Use new function.
30331 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
30333 * builtins.c (expand_builtin_acc_on_device): Mark parameters
30334 with ATTRIBUTE_UNUSED.
30336 2015-05-28 Julian Brown <julian@codesourcery.com>
30340 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
30341 sequence for !ACCEL_COMPILER.
30343 2015-05-28 Nick Clifton <nickc@redhat.com>
30345 * config/rx/rx.c (push_regs): New function. Extracts code from...
30346 (rx_expand_prologue): ... here. Use push_regs to push even small
30347 spans of registers.
30348 (pop_regs): New function.
30349 (rx_expand_epilogue): Use pop_regs to pop even small spans of
30352 2015-05-28 Richard Biener <rguenther@suse.de>
30354 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
30356 (SLP_INSTANCE_BODY_COST_VEC): Remove.
30357 (vect_update_slp_costs_according_to_vf): Likewise.
30358 (vect_slp_analyze_operations): Update prototype.
30359 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
30360 vect_update_slp_costs_according_to_vf, adjust.
30361 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
30362 (vect_analyze_slp_cost_1): Likewise.
30363 (vect_analyze_slp_cost): Likewise. Properly deal with
30364 widening reduction ops. Commit body costs.
30365 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
30366 cost for loops from here.
30367 (vect_slp_analyze_operations): But do it from here when
30368 the vectorization factor is known and stmts are analyzed.
30369 (vect_bb_vectorization_profitable_p): Simplify.
30370 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
30371 (vect_update_slp_costs_according_to_vf): Remove.
30373 2015-05-27 Magnus Granberg <zorry@gentoo.org>
30374 H.J. Lu <hongjiu.lu@intel.com>
30376 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
30377 (BUILD_CFLAGS): Likewise.
30378 (BUILD_CXXFLAGS): Likewise.
30379 (LINKER): Add @NO_PIE_FLAG@.
30380 (BUILD_LDFLAGS): Likewise.
30381 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
30382 --enable-default-pie.
30383 * common.opt (fPIE): Initialize to -1.
30385 (no-pie): New option.
30386 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
30387 * configure.ac: Add --enable-default-pie.
30388 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
30389 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
30390 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
30391 * gcc.c (NO_PIE_SPEC): New.
30392 (PIE_SPEC): Likewise.
30393 (NO_FPIE1_SPEC): Likewise.
30394 (FPIE1_SPEC): Likewise.
30395 (NO_FPIE2_SPEC): Likewise.
30396 (FPIE2_SPEC): Likewise.
30397 (NO_FPIE2_SPEC): Likewise.
30398 (FPIE_SPEC): Likewise.
30399 (NO_FPIE_SPEC): Likewise.
30400 (NO_FPIC1_SPEC): Likewise.
30401 (FPIC1_SPEC): Likewise.
30402 (NO_FPIC2_SPEC): Likewise.
30403 (FPIC2_SPEC): Likewise.
30404 (NO_FPIC2_SPEC): Likewise.
30405 (FPIC_SPEC): Likewise.
30406 (NO_FPIC_SPEC): Likewise.
30407 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
30408 (FPIE1_OR_FPIC1_SPEC): Likewise.
30409 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
30410 (FPIE2_OR_FPIC2_SPEC): Likewise.
30411 (NO_FPIE_AND_FPIC_SPEC): Likewise.
30412 (FPIE_OR_FPIC_SPEC): Likewise.
30413 (LD_PIE_SPEC): Likewise.
30414 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
30415 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
30416 * config/darwin.h (PIE_SPEC): Renamed to ...
30417 (DARWIN_PIE_SPEC): This.
30418 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
30419 * config/darwin9.h (PIE_SPEC): Renamed to ...
30420 (DARWIN_PIE_SPEC): This.
30421 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
30422 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
30423 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
30424 FPIE2_OR_FPIC2_SPEC.
30425 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
30426 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
30427 * config/sol2.h (ASM_PIC_SPEC): Likewise.
30428 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30429 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30430 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30431 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
30432 * config/m32r/m32r.h (ASM_SPEC): Likewise.
30433 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
30434 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30435 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
30436 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
30437 * config/sparc/linux.h (ASM_SPEC): Likewise.
30438 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30439 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
30440 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
30441 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30442 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30443 * config/sparc/sparc.h (ASM_SPEC): Likewise.
30444 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
30445 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
30446 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
30447 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
30448 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
30449 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
30450 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
30451 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
30452 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
30453 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
30454 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
30455 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
30456 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30457 * config/vax/linux.h (ASM_SPEC): Likewise.
30458 * doc/install.texi: Document --enable-default-pie.
30459 * doc/invoke.texi: Document -no-pie.
30460 * config.in: Regenerated.
30461 * configure: Likewise.
30463 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30465 PR rtl-optimization/66168
30466 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
30467 can_move_invariant_reg.
30469 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
30472 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
30473 REG_EQUAL note when doing insert.
30475 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
30476 instead of "%d" for 'o' operand.
30478 2015-05-27 Nathan Sidwell <nathan@acm.org>
30481 * tree.c (build_pointer_type_for_mode): Canonical type does not
30482 inherit can_alias_all.
30483 (build_reference_type_for_mode): Likewise.
30485 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
30487 * expr.h (array_at_struct_end_p): Move to...
30488 (array_ref_element_size): Likewise.
30489 (component_ref_field_offset): Likewise.
30490 * tree.h (array_ref_element_size): ...here.
30491 (array_at_struct_end_p): Likewise.
30492 (component_ref_field_offset): Likewise.
30493 * expr.c (array_ref_element_size): Move to...
30494 (array_ref_low_bound): Likewise.
30495 (array_at_struct_end_p): Likewise.
30496 (array_ref_up_bound): Likewise.
30497 (component_ref_field_offset): Likewise.
30498 * tree.c (array_ref_element_size): ...here.
30499 (array_ref_low_bound): Likewise.
30500 (array_ref_up_bound): Likewise.
30501 (array_at_struct_end_p): Likewise.
30502 (component_ref_field_offset): Likewise.
30504 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30505 Szabolcs Nagy <szabolcs.nagy@arm.com>
30507 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
30509 2015-05-27 Jason Merrill <jason@redhat.com>
30512 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
30513 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
30514 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
30516 2015-05-22 Aditya Kumar <hiraditya@msn.com>
30518 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
30521 * statistics.c (statistics_fini_pass): Print pass name.
30523 2015-05-27 Richard Biener <rguenther@suse.de>
30525 PR tree-optimization/66272
30527 2014-08-15 Richard Biener <rguenther@suse.de>
30529 PR tree-optimization/62031
30530 * tree-data-ref.c (dr_analyze_indices): Do not set
30531 DR_UNCONSTRAINED_BASE.
30532 (dr_may_alias_p): All indirect accesses have to go the
30533 formerly DR_UNCONSTRAINED_BASE path.
30534 * tree-data-ref.h (struct indices): Remove
30535 unconstrained_base member.
30536 (DR_UNCONSTRAINED_BASE): Remove.
30538 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
30540 * dwarf2out.c: Remove block_map.
30541 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
30542 (gen_lexical_block_die): Same.
30543 (dwarf2out_function_decl): Remove block_map use.
30544 (dwarf2out_c_finalize): Same.
30545 * tree-core.h (struct tree_block): Add die field.
30546 * tree.h (BLOCK_DIE): New.
30548 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30551 * expr.c (memory_load_overlap): New function.
30552 (emit_push_insn): When pushing partial args to the stack would
30553 clobber the register part load the overlapping part into a pseudo
30554 and put it into the hard reg after pushing. Change return type
30555 to bool. Add bool argument.
30556 * expr.h (emit_push_insn): Change return type to bool.
30558 * calls.c (expand_call): Cancel sibcall optimization when encountering
30559 partial argument on targets with ARGS_GROW_DOWNWARD and
30560 !STACK_GROWS_DOWNWARD.
30561 (emit_library_call_value_1): Update callsite of emit_push_insn.
30562 (store_one_arg): Likewise.
30564 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30566 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
30568 2015-05-27 Martin Liska <mliska@suse.cz>
30570 * Makefile.in: Add additional dependencies related to memory report
30572 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
30573 * bitmap.c (struct bitmap_descriptor_d): Remove.
30574 (struct loc): Likewise.
30575 (struct bitmap_desc_hasher): Likewise.
30576 (bitmap_desc_hasher::hash): Likewise.
30577 (bitmap_desc_hasher::equal): Likewise.
30578 (get_bitmap_descriptor): Likewise.
30579 (bitmap_register): User new memory descriptor API.
30580 (register_overhead): Likewise.
30581 (bitmap_find_bit): Register nsearches and search_iter statistics.
30582 (struct bitmap_output_info): Remove.
30583 (print_statistics): Likewise.
30584 (dump_bitmap_statistics): Use new memory descriptor.
30585 * bitmap.h (struct bitmap_usage): New class.
30586 * genmatch.c: Extend header file inclusion.
30587 * genpreds.c: Likewise.
30588 * ggc-common.c (struct ggc_usage): New class.
30589 (struct ggc_loc_desc_hasher): Remove.
30590 (ggc_loc_desc_hasher::hash): Likewise.
30591 (ggc_loc_desc_hasher::equal): Likewise.
30592 (struct ggc_ptr_hash_entry): Likewise.
30593 (struct ptr_hash_hasher): Likewise.
30594 (ptr_hash_hasher::hash): Likewise.
30595 (ptr_hash_hasher::equal): Likewise.
30596 (make_loc_descriptor): Likewise.
30597 (ggc_prune_ptr): Likewise.
30598 (dump_ggc_loc_statistics): Use new memory descriptor.
30599 (ggc_record_overhead): Likewise.
30600 (ggc_free_overhead): Likewise.
30601 (final_cmp_statistic): Remove.
30602 (cmp_statistic): Likewise.
30603 (ggc_add_statistics): Liekwise.
30604 (ggc_prune_overhead_list): Likewise.
30605 * hash-map-traits.h: New file.
30606 * hash-map.h (struct default_hashmap_traits): Move the traits to a
30607 separate header file.
30608 * hash-set.h: Pass memory statistics info to ctor.
30609 * hash-table.c (void dump_hash_table_loc_statistics): New function.
30610 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
30611 (hash_table::~hash_table): Register memory release operation.
30612 (hash_table::alloc_entries): Handle memory allocation operation.
30613 (hash_table::expand): Likewise.
30614 * inchash.c (iterative_hash_hashval_t): Move implementation to header
30616 (iterative_hash_host_wide_int): Likewise.
30617 * inchash.h (class hash): Likewise.
30618 * mem-stats-traits.h: New file.
30619 * mem-stats.h: New file.
30620 (mem_location): Add new class.
30621 (mem_usage): Likewise.
30622 (mem_alloc_description): Likewise.
30623 * sese.c: Add new header file inclusision.
30624 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
30626 * tree-sra.c: Add new header file inclusision.
30627 * vec.c (struct vec_descriptor): Remove.
30628 (hash_descriptor): Likewise.
30629 (struct vec_usage): Likewise.
30630 (struct ptr_hash_entry): Likewise.
30631 (hash_ptr): Likewise.
30632 (eq_ptr): Likewise.
30633 (vec_prefix::register_overhead): Use new memory descriptor API.
30634 (vec_prefix::release_overhead): Likewise.
30635 (add_statistics): Remove.
30636 (dump_vec_loc_statistics): Use new memory descriptor API.
30637 * vec.h (struct vec_prefix): Likewise.
30638 (va_heap::reserve): Likewise.
30639 (va_heap::release): Likewise.
30640 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
30642 2015-05-27 Richard Biener <rguenther@suse.de>
30644 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
30645 earlier and remove ??? comment.
30646 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
30647 and got called from loop analysis bail out. Always pass the SLP
30648 node to the vectorizable_* functions.
30649 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
30650 the premature SLP check here.
30651 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
30652 detected SLP stmts.
30653 (vect_detect_hybrid_slp_1): Likewise.
30655 2015-05-26 Jeff Law <law@redhat.com>
30657 * combine.c (find_split_point): Verify that the shift count is a
30658 constant when choosing (plus (ashift ...)) as a split point.
30660 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
30661 No functional changes.
30663 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
30665 * ipa-polymorphic-call.c
30666 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
30667 case when call target is already known.
30669 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
30672 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
30673 take into account the case that operands[1] and operands[2]
30674 are the same register.
30676 2015-05-26 Michael Matz <matz@suse.de>
30678 PR middle-end/66251
30680 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
30682 (vect_create_vectorized_demotion_stmts): Always set
30683 STMT_VINFO_VEC_STMT, also with SLP.
30684 (vectorizable_store): Handle strided group stores.
30686 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30689 * config/aarch64/aarch64.md
30690 (*adds_shift_imm_<mode>): New pattern.
30691 (*subs_shift_imm_<mode>): Likewise.
30692 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30693 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
30694 (*add_uxt<mode>_shift2): Likewise.
30695 (*add_uxtsi_shift2_uxtw): Likewise.
30696 (*sub_uxt<mode>_shift2): Likewise.
30697 (*sub_uxtsi_shift2_uxtw): Likewise.
30699 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
30701 * config/rs6000/constraints.md (Y, U): Use match_test.
30703 2015-05-26 Christian Bruel <christian.bruel@st.com>
30706 * config/arm/arm.c (arm_option_check_internal)
30707 (arm_option_params_internal): Check opts->target_flags to set macros.
30708 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30709 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
30710 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30711 (builtin_define): Replaced with def_or_undef_macro.
30712 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
30713 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
30714 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
30715 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
30716 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
30717 (TARGET_ARM_FEATURE_LDREX_P)
30718 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
30719 * config/arm/arm-c.c (def_or_undef_macro): New function.
30720 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
30722 2015-05-26 Christian Bruel <christian.bruel@st.com>
30724 * c-common.h (builtin_define_with_int_value)
30725 (builtin_define_type_sizeof): Declare.
30726 * c-cppbuiltin.c (builtin_define_with_int_value)
30727 (builtin_define_type_sizeof): Externalize.
30728 (builtin_define_std): Cleanup declaration.
30729 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
30730 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
30731 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
30732 (builtin_define, builtin_assert): New macros.
30734 2015-05-26 Richard Biener <rguenther@suse.de>
30736 PR tree-optimization/66142
30737 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
30738 MEM_REFs for the same base address.
30740 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30743 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
30745 2015-05-26 Jason Merrill <jason@redhat.com>
30747 * configure.ac: Set CXXFLAGS for ISL test.
30748 * configure: Regenerate.
30750 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
30751 strstr and basename.
30752 * configure: Regenerate.
30754 2015-05-26 Richard Biener <rguenther@suse.de>
30756 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
30757 X % C -> X & (C - 1) for C being a power-of two to ...
30758 * match.pd: ... patterns.
30760 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
30762 * match.pd (swapped_tcc_comparison): New operator list.
30763 (-A CMP -B): New simplification.
30764 * fold-const.c (fold_comparison): Remove corresponding code.
30766 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
30768 * caller-save.c (init_caller_save): Base temporary register numbers
30769 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
30770 * cfgloopanal.c (init_set_costs): Likewise.
30771 * dojump.c (prefer_and_bit_test): Likewise.
30772 * expr.c (init_expr_target): Likewise.
30773 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30774 * lower-subreg.c (init_lower_subreg): Likewise.
30775 * postreload.c (reload_cse_regs_1): Likewise.
30777 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
30779 * gensupport.h (compute_test_codes): Declare.
30780 * gensupport.c (compute_predicate_codes): Rename to...
30781 (compute_test_codes): ...this. Generalize error message.
30782 (process_define_predicate): Update accordingly.
30783 * genpreds.c (compute_maybe_allows): Delete.
30784 (add_constraint): Use compute_test_codes to determine whether
30785 something can accept a SUBREG, REG or MEM.
30787 2015-05-26 Torvald Riegel <triegel@redhat.com>
30789 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
30790 'memory model' to align with C++11; fix description of memory orders;
30793 2015-05-26 Richard Biener <rguenther@suse.de>
30795 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
30796 (vect_analyze_loop_operations): ... here. Remove slp parameter,
30797 detect whether we apply SLP. Remove call to
30798 vect_update_slp_costs_according_to_vf.
30799 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
30800 vect_update_slp_costs_according_to_vf from here. Dispatch
30801 to vect_slp_analyze_operations to analyze SLP stmts.
30802 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
30803 unused bb_vec_info parameter, adjust assert.
30804 (vect_slp_analyze_operations): Pass in the slp instance tree
30805 instead of bb_vec_info.
30806 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
30807 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
30809 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
30811 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
30812 Q_REGS. Expand comment.
30813 (REG_CLASS_NAMES): Ditto.
30814 (REG_CLASS_CONTENTS): Ditto.
30816 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
30819 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
30820 when LEGACY_INT_REGNO_P is processed.
30822 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
30824 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
30826 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30828 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
30829 register if not marked dead/unused, before return.
30831 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30834 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
30835 is set; check for assembler name at LTO time.
30836 (type_in_anonymous_namespace): Remove hacks, check that all
30837 anonymous types are called "<anon>"
30838 (odr_type_p): Simplify; add check for "<anon>"
30839 (odr_subtypes_equivalent): Add odr_type_p check.
30840 * tree.c (need_assembler_name_p): Even anonymous namespace needs
30843 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30845 * ipa-utils.h (method_class_type): Remove.
30846 * cgraphunit.c (walk_polymorphic_call_targets): Use
30847 TYPE_METHOD_BASETYPE.
30848 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
30849 on main variants only.
30850 (method_class_type): Remove.
30851 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
30852 (build_type_inheritance_graph): Likewise.
30853 * ipa-icf.c (sem_function::equals_wpa): Likewise.
30854 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
30855 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
30857 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
30859 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
30860 is_typedef_decl, typedef_variant_p): Constify.
30861 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
30862 is_typedef_decl, typedef_variant_p): Constify.
30864 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30866 * defaults.h (gen_tablejump): New function.
30867 (HAVE_tablejump): Add default value.
30869 * stmt.c: Likewise.
30871 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30873 * defaults.h (gen_store_multiple): New function.
30874 (HAVE_store_multiple): Add default value.
30875 * expr.c (move_block_from_reg): Adjust.
30877 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30879 * defaults.h (gen_load_multiple): New function.
30880 (HAVE_load_multiple): Add default value.
30881 * expr.c (move_block_to_reg): Adjust.
30883 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30885 * defaults.h (gen_mem_signal_fence): New function.
30886 (HAVE_mem_signal_fence): Add default value.
30887 * optabs.c: Adjust.
30889 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30891 * defaults.h (gen_memory_barrier): New function.
30892 (HAVE_memory_barrier): Add default value.
30893 * optabs.c: Adjust.
30895 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30897 * defaults.h (gen_mem_thread_fence): New function.
30898 (HAVE_mem_thread_fence): Add default definition.
30899 * optabs.c: Adjust.
30901 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30903 * combine.c (find_split_point): Check the value of HAVE_lo_sum
30904 instead of if it is defined.
30905 (combine_simplify_rtx): Likewise.
30906 * lra-constraints.c (process_address_1): Likewise.
30907 * config/darwin.c: Adjust.
30908 * genconfig.c (main): Always define HAVE_lo_sum.
30910 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30912 * genmatch.c (parser::parse_operation): Reject expanding
30913 operator-list inside 'for'.
30915 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30917 * genmatch.c (parser::parse_for): Reject iterator if used as
30920 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30922 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
30923 after end of id-list.
30925 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
30927 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
30928 we do not try to compute canonical type for type that does not need
30930 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
30932 * tree.h (type_with_alias_set_p): New.
30934 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
30936 * tree.c (gimple_canonical_types_compatible_p): Do not compare
30937 function attributes.
30938 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
30940 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
30942 * Makefile.in (check_gcc_parallelize): Delete.
30943 (lang_checks_parallelized): Update comment.
30945 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
30947 PR rtl-optimization/66237
30948 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
30949 location of an "as_a" cast.
30951 2015-05-22 Jeff Law <law@redhat.com>
30953 * config/pa/pa.md (non-canonical shift-add insns): Remove.
30954 (peepholes with non-canonical RTL sources): Remove.
30955 (peepholes for indexed stores of FP regs in integer modes): Match and
30956 generate canonical RTL.
30958 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30960 PR tree-optimization/63387
30961 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
30962 ((x ord x) & (y ord y) -> (x ord y),
30963 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
30964 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
30965 vectors like scalars.
30967 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30969 * convert.c (convert_to_integer, convert_to_vector): Include the
30970 types in the error message.
30972 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30974 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
30977 2015-05-22 Jeff Law <law@redhat.com>
30979 * config/pa/pa.md (integer_indexed_store splitters): Use
30980 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
30981 insns -- adjusting the constant 2nd operand accordingly.
30983 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
30984 (plus (ashift X log2) Y) if it is a split point.
30986 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
30987 out of hppa_legitimize_address to handle both forms of a multiply
30989 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
30990 Always generate the ASHIFT variant as the result is not directly
30991 used in a MEM. Update comments and refactor slightly to improve
30994 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30997 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
30998 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
30999 (aarch64_composite_type_p): Return false if given type and mode are
31000 for a short vector.
31002 2015-05-22 Richard Biener <rguenther@suse.de>
31004 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
31006 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
31007 patterns when determining whether SLP is pure.
31008 (vect_is_slp_reduction): Remove check for pattern stmts.
31009 (vect_is_simple_reduction_1): Remove dead code.
31010 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
31011 (vect_get_and_check_slp_defs): Pass in the stmt number.
31012 Allow the first def in a reduction to be not a pattern stmt when
31013 the rest of the stmts def are patterns.
31014 (vect_build_slp_tree_1): Allow tcc_expression codes like
31015 SAD_EXPR and DOT_PROD_EXPR.
31016 (vect_build_slp_tree): Adjust.
31017 (vect_analyze_slp): Refactor and move BB vect error message ...
31018 (vect_slp_analyze_bb_1): ... here.
31020 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
31022 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
31023 for CSWTCH temporary.
31025 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31027 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
31028 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
31031 2015-05-22 Richard Biener <rguenther@suse.de>
31033 PR tree-optimization/66251
31034 * tree-vect-stmts.c (vectorizable_conversion): Properly
31035 set STMT_VINFO_VEC_STMT even for the SLP case.
31037 2015-05-22 Marek Polacek <polacek@redhat.com>
31039 * doc/extend.texi: Use @pxref instead of @xref.
31041 2015-05-22 hiraditya <hiraditya@msn.com>
31043 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
31046 2015-05-22 Richard Biener <rguenther@suse.de>
31048 PR tree-optimization/65701
31049 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31050 Move peeling cost models into one place. Peel for alignment
31051 for single loads only if an aligned load is cheaper than
31054 2015-05-22 Marek Polacek <polacek@redhat.com>
31057 * doc/extend.texi (Enumerator Attributes): New section.
31058 Document syntax of enumerator attributes.
31060 2015-05-22 Richard Biener <rguenther@suse.de>
31062 * tree-vect-loop.c (get_reduction_op): New function.
31063 (vect_model_reduction_cost): Use it, add reduc_index parameter.
31064 Make ready for BB reductions.
31065 (vect_create_epilog_for_reduction): Use get_reduction_op.
31066 (vectorizable_reduction): Init reduc_index to a valid value.
31067 Adjust vect_model_reduction_cost call.
31068 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
31069 operand for reduction defaults. Add SAD_EXPR support.
31070 Assert we have a neutral op for SLP reductions.
31071 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
31072 walking pattern stmt ops only recurse to SSA names.
31074 2015-05-22 Richard Biener <rguenther@suse.de>
31076 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
31077 assert with guard, remove check on detected reduction.
31078 (vect_recog_sad_pattern): Likewise.
31079 (vect_recog_widen_sum_pattern): Likewise.
31081 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31083 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
31084 __always_inline__ attribute.
31085 (vaesdq_u8): Likewise.
31086 (vaesmcq_u8): Likewise.
31087 (vaesimcq_u8): Likewise.
31088 (vsha1cq_u32): Likewise.
31089 (vsha1mq_u32): Likewise.
31090 (vsha1pq_u32): Likewise.
31091 (vsha1h_u32): Likewise.
31092 (vsha1su0q_u32): Likewise.
31093 (vsha1su1q_u32): Likewise.
31094 (vsha256hq_u32): Likewise.
31095 (vsha256h2q_u32): Likewise.
31096 (vsha256su0q_u32): Likewise.
31097 (vsha256su1q_u32): Likewise.
31098 (vmull_p64): Likewise.
31099 (vmull_high_p64): Likewise.
31101 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31103 * final.c (final_scan_insn): Don't check HAVE_peephole with the
31105 * output.h: Likewise.
31106 * genconfig.c (main): Alwways define HAVE_peephole.
31107 * genpeep.c: Don't emit checks of HAVE_peephole.
31109 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31111 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
31112 check HAVE_conditional_move with the preprocessor.
31114 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31116 * genconfig.c (main): Always define HAVE_conditional_move.
31117 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
31118 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
31121 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31123 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
31124 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
31125 and FRAME_POINTER_REGNUM with the preprocessor.
31127 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31129 * defaults.h: Add default for STACK_PUSH_CODE.
31130 * expr.c: Don't redefine STACK_PUSH_CODE.
31131 * recog.c: Likewise.
31133 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31135 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
31136 sched-deps.c: Use if instead of preprocessor checks with
31137 STACK_GROWS_DOWNWARD.
31139 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31141 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
31143 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
31144 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
31145 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
31146 * doc/tm.texi: Regenerate.
31148 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
31151 * config/i386/constraints.md (Bg): New constraint for GOT memory
31153 * config/i386/i386.md (*call_got_x32): New pattern.
31154 (*call_value_got_x32): Likewise.
31155 * config/i386/predicates.md (GOT_memory_operand): New predicate.
31157 2015-05-21 Jakub Jelinek <jakub@redhat.com>
31159 PR tree-optimization/66233
31160 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
31163 2015-05-21 Jeff Law <law@redhat.com>
31165 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
31166 than MULT for shadd sequences.
31168 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
31170 * alias.c (alias_stats): New static var.
31171 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
31172 (dump_alias_stats_in_alias_c): New function.
31173 * alias.h (dump_alias_stats_in_alias_c): Declare.
31174 * tree-ssa-alias.c (dump_alias_stats): Call it.
31176 2015-05-08 Michael Matz <matz@suse.de>
31178 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
31180 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
31181 (STMT_VINFO_STRIDED_P): ... this.
31182 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
31183 (vect_verify_datarefs_alignment): Likewise.
31184 (vect_enhance_data_refs_alignment): Likewise.
31185 (vect_analyze_data_ref_access): Likewise.
31186 (vect_analyze_data_refs): Accept strided stores.
31187 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
31188 (vect_model_load_cost): Adjust for macro rename.
31189 (vectorizable_mask_load_store): Likewise.
31190 (vectorizable_load): Likewise.
31191 (vectorizable_store): Open code strided stores.
31193 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31195 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
31196 Document sqrt_insn.
31198 2015-05-21 Richard Biener <rguenther@suse.de>
31201 * match.pd: Guard pattern optimzing (int)(float)int
31202 conversions to apply only on GIMPLE.
31204 2015-05-21 Jeff Law <law@redhat.com>
31206 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
31207 multiply-accumulate/shift-add insn generation.
31209 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
31212 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
31213 operands[1] are the same.
31215 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
31217 PR middle-end/66221
31218 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
31219 build_distinct_type_copy to copy bounds.
31221 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
31223 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
31224 Change to unsigned int.
31226 2015-05-20 Jeff Law <law@redhat.com>
31228 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
31229 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
31230 (pa_shadd_constant_p): Allow constants for shadd insns rather
31231 than valid scaling constants for memory addresses.
31232 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
31233 * config/pa/predicates.md (mem_shadd_operand): New predicate.
31234 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
31235 (shift-add insns using ASHIFT): New patterns.
31237 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
31239 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
31241 (fix_up_fall_thru_edges): Likewise.
31242 (fix_crossing_conditional_branches): Likewise. Promote jump targets
31243 from to rtx_insn to rtx_code_label where feasible.
31244 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
31245 gen_move_insn (returned type changed to rtx_insn).
31246 * builtins.c (expand_errno_check): Fix arguments of
31247 do_compare_rtx_and_jump (now expects rtx_code_label).
31248 (expand_builtin_acc_on_device): Likewise.
31249 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
31250 invert_jump (now exprects rtx_jump_insn).
31251 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
31252 (construct_init_block): Use rtx_code_label.
31253 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
31254 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
31255 calling redirect_jump.
31256 (patch_jump_insn): Likewise.
31257 (redirect_branch_edge): Likewise.
31258 (force_nonfallthru_and_redirect): Likewise.
31259 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
31261 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
31262 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
31263 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
31264 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
31265 to store the value retured by gen_label_rtx.
31266 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
31268 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
31269 (split_branches): Fix calls of redirect_jump.
31270 * dojump.c (jumpifnot): Promote argument type from rtx to
31272 (jumpifnot_1): Likewise.
31273 (jumpif): Likewise.
31274 (jumpif_1): Likewise.
31275 (do_jump_1): Likewise.
31276 (do_jump): Likewise. Use rtx_code_label when feasible.
31277 (do_jump_by_parts_greater_rtx): Likewise.
31278 (do_jump_by_parts_zero_rtx): Likewise.
31279 (do_jump_by_parts_equality_rtx): Likewise.
31280 (do_compare_rtx_and_jump): Likewise.
31281 * dojump.h: Update function prototypes.
31282 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
31284 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
31286 (emit_label_before): Likewise.
31287 (emit_jump_insn_after_noloc): Likewise.
31288 (emit_jump_insn_after_setloc): Likewise.
31289 (emit_jump_insn_after): Likewise
31290 (emit_jump_insn_before_setloc): Likewise.
31291 (emit_jump_insn_before): Likewise.
31292 (emit_label_before): Promote return type to rtx_code_label.
31293 (emit_label): Likewise.
31294 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
31295 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
31297 (emit_stack_restore): Likewise.
31298 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
31299 (do_cmp_and_jump): Likewise.
31300 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
31301 from rtx to rtx_code_label.
31302 (gen_move_insn_uncast): New function.
31303 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
31304 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
31305 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
31306 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
31307 invert_jump_1 and redirect_jump_1.
31308 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
31309 do_compare_rtx_and_jump.
31310 (expand_addsub_overflow): Likewise.
31311 (expand_neg_overflow): Likewise.
31312 (expand_mul_overflow): Likewise.
31313 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
31314 return value of gen_move_insn.
31315 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
31316 * loop-doloop.c (add_test): Use rtx_code_label.
31317 (doloop_modify): Likewise.
31318 (doloop_optimize): Likewise.
31319 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
31320 * lra-constraints.c (emit_spill_move): Remove cast of value returned
31322 (inherit_reload_reg): Add cast when calling dump_insn_slim.
31323 (split_reg): Likewise.
31324 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
31326 * optabs.c (expand_binop_directly): Remove casts of values returned by
31328 (expand_unop_direct): Likewise.
31329 (expand_abs): Likewise.
31330 (maybe_emit_unop_insn): Likewise.
31331 (maybe_gen_insn): Promote return type to rtx_insn.
31332 * optabs.h: Update prototype of maybe_gen_insn.
31333 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
31335 * recog.c (struct peep2_insn_data): Promote type of insn field to
31337 (peep2_reinit_state): Use NULL instead of NULL_RTX.
31338 (peep2_attempt): Remove casts of insn in peep2_insn_data.
31339 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
31340 * recog.h (struct insn_gen_fn): Promote return types of function
31341 pointers and operator ().from rtx to rtx_insn.
31342 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
31343 (fill_eager_delay_slots): Likewise.
31344 (relax_delay_slots): Likewise.
31345 (make_return_insns): Likewise.
31346 (dbr_schedule): Likewise.
31347 (optimize_skips): Likewise.
31348 (reorg_redirect_jump): Likewise.
31349 (fill_slots_from_thread): Likewise.
31350 * reorg.h: Update prototypes.
31351 * resource.c (find_dead_or_set_registers): Use dyn_cast to
31352 rtx_jump_insn instead of check. Use it's jump_target method.
31353 * rtl.h (rtx_jump_insn::jump_label): Define new method.
31354 (rtx_jump_insn::jump_target): Define new method.
31355 (rtx_jump_insn::set_jump_target): Define new method.
31356 * rtlanal.c (tablejump_p): Promote type of one local variable.
31357 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
31358 (sched_analyze_insn): Likewise.
31359 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
31360 (print_insn): Likewise.
31361 * stmt.c (label_rtx): Promote return type to rtx_insn.
31362 (force_label_rtx): Likewise.
31363 (jump_target_rtx): Define new function.
31364 (expand_label): Use it, get rid of one cast.
31365 (expand_naked_return): Promote rtx to rtx_code_label.
31366 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
31367 (expand_case): Use rtx_code_label instread of rtx where feasible.
31368 (expand_sjlj_dispatch_table): Likewise.
31369 (emit_case_nodes): Likewise.
31370 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
31371 * store-motion.c (insert_store): Make use of new return type of
31372 gen_move_insn and remove a cast.
31373 (replace_store_insn): Likewise.
31375 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
31377 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
31378 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
31380 2015-05-20 Jeff Law <law@redhat.com>
31382 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
31383 dispose of the jump thread path when the jump threading
31384 opportunity is cancelled.
31386 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31388 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
31389 when printing the caret character.
31391 2015-05-20 Marek Polacek <polacek@redhat.com>
31393 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
31395 2015-05-20 Marek Polacek <polacek@redhat.com>
31397 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
31398 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
31399 * gimple-fold.c (canonicalize_bool): Likewise.
31400 (same_bool_result_p): Likewise.
31401 * tree-if-conv.c (parse_predicate): Likewise.
31403 2015-05-20 Marek Polacek <polacek@redhat.com>
31405 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
31406 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
31408 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31410 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
31411 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
31414 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
31416 * config/mips/mips.h (micromips_globals): Declare.
31418 2015-05-20 David Malcolm <dmalcolm@redhat.com>
31420 * timevar.def (TV_INITIALIZE_RTL): New.
31421 * toplev.c (initialize_rtl): Use an auto_timevar to account this
31422 function's time to TV_INITIALIZE_RTL.
31424 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
31426 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
31427 gimple_build_nop calls.
31428 (chkp_find_bounds_for_elem): Likewise.
31429 (chkp_get_zero_bounds): Likewise.
31430 (chkp_get_none_bounds): Likewise.
31431 (chkp_get_bounds_by_definition): Likewise.
31432 (chkp_generate_extern_var_bounds): Likewise.
31433 (chkp_get_bounds_for_decl_addr): Likewise.
31434 (chkp_get_bounds_for_string_cst): Likewise.
31436 2015-05-20 Bin Cheng <bin.cheng@arm.com>
31438 PR tree-optimization/65447
31439 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
31440 (dump_use, dump_uses): Support to dump sub use.
31441 (record_use): New parameters to support sub use. Remove call to
31443 (record_sub_use, record_group_use): New functions.
31444 (compute_max_addr_offset, split_all_small_groups): New functions.
31445 (group_address_uses, rewrite_use_address): New functions.
31446 (strip_offset): New declaration.
31447 (find_interesting_uses_address): Call record_group_use.
31448 (add_candidate): New assertion.
31449 (infinite_cost_p): Move definition forward.
31450 (add_costs): Check INFTY cost and return immediately.
31451 (get_computation_cost_at): Clear setup cost and dependent bitmap
31453 (determine_use_iv_cost_address): Compute cost for sub uses.
31454 (rewrite_use_address_1): Rename from old rewrite_use_address.
31455 (free_loop_data): Free sub uses.
31456 (tree_ssa_iv_optimize_loop): Call group_address_uses.
31458 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31459 Jim Wilson <jim.wilson@linaro.org>
31461 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
31462 new fields loadv and storev.
31463 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
31464 Initialize loadv and storev.
31465 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
31466 (cortexa53_extra_costs): Likewise.
31467 (cortexa57_extra_costs): Likewise.
31468 (xgene1_extra_costs): Likewise.
31469 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
31472 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31474 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
31476 (cortexa8_extra_costs): Likewise.
31477 (cortexa5_extra_costs): Likewise.
31478 (cortexa7_extra_costs): Likewise.
31479 (cortexa12_extra_costs): Likewise.
31480 (cortexa15_extra_costs): Likewise.
31481 (v7m_extra_costs): Likewise.
31483 2015-05-20 Jeff Law <law@redhat.com>
31485 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
31486 instead of open-coded version. Also delete the jump thread created
31487 within this function.
31489 2015-05-20 Alan Modra <amodra@gmail.com>
31491 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
31492 stack adjusting insn. Formatting.
31493 (rs6000_emit_prologue): Track stack adjusting insn, and use of
31494 r12. If possible, emit first -fsplit-stack arg pointer insn
31495 before stack adjust. Don't use r12 to save cr if split-stack.
31497 2015-05-20 Alan Modra <amodra@gmail.com>
31499 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
31501 (rs6000_supports_split_stack): New function.
31502 * config/rs6000/rs6000.c (machine_function): Add
31503 split_stack_arg_pointer.
31504 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
31505 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
31506 rather than virtual_incoming_args_rtx.
31507 (rs6000_va_start): Likewise.
31508 (split_stack_arg_pointer_used_p): New function.
31509 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
31510 (morestack_ref): New var.
31511 (gen_add3_const, rs6000_expand_split_stack_prologue,
31512 rs6000_internal_arg_pointer, rs6000_live_on_entry,
31513 rs6000_split_stack_space_check): New functions.
31514 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
31515 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
31516 (UNSPECV_SPLIT_STACK_RETURN): Define.
31517 (split_stack_prologue, load_split_stack_limit,
31518 load_split_stack_limit_di, load_split_stack_limit_si,
31519 split_stack_return, split_stack_space_check): New expands and insns.
31520 * config/rs6000/rs6000-protos.h
31521 (rs6000_expand_split_stack_prologue): Declare.
31522 (rs6000_split_stack_space_check): Declare.
31524 2015-05-20 Alan Modra <amodra@gmail.com>
31526 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
31527 (direct_return): Test vrsave_size rather than vrsave_mask.
31528 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
31529 (rs6000_emit_epilogue): Likewise.
31531 2015-05-20 Alan Modra <amodra@gmail.com>
31533 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
31534 when not saving registers.
31535 (debug_stack_info): Adjust to omit printing unused offsets,
31537 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
31540 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31543 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
31544 value_type to const char *.
31546 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
31548 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
31549 to build a biarch toolchain again.
31551 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31553 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
31554 or implicit declarations.
31555 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
31557 (get_odr_type): Check type has linkage before adding bases.
31558 (register_odr_type): Check that type has linkage before adding it.
31559 (type_known_to_have_no_deriavations_p): Rename to ..
31560 (type_known_to_have_no_derivations_p): This one.
31561 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
31562 (type_known_to_have_no_derivations_p): This one.
31563 * ipa-polymorphic-call.c
31564 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
31567 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31569 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
31570 (layout_type): Use RECORD_OR_UNION_TYPE_P.
31572 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31574 * config/s390/s390.c (s390_vector_bool_type_p): New function.
31575 (s390_invalid_binary_op): New function.
31576 (TARGET_INVALID_BINARY_OP): Define macro.
31578 2015-05-19 David Sherwood <david.sherwood@arm.com>
31580 * loop-invariant.c (create_new_invariant): Don't calculate address cost
31581 if mode is not a scalar integer.
31582 (get_inv_cost): Increase computational cost for unused invariants.
31584 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31586 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
31587 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
31588 * config/s390/s390-builtin-types.def: New file.
31589 * config/s390/s390-builtins.def: New file.
31590 * config/s390/s390-builtins.h: New file.
31591 * config/s390/s390-c.c: New file.
31592 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
31593 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
31594 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
31595 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
31597 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
31599 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
31600 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
31601 variable definitions.
31602 (s390_const_operand_ok): New function.
31603 (s390_expand_builtin): Rewrite.
31604 (s390_init_builtins): New function.
31605 (s390_handle_vectorbool_attribute): New function.
31606 (s390_attribute_table): Add s390_vector_bool attribute.
31607 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
31608 (s390_branch_condition_mask): Generate masks for new modes.
31609 (s390_expand_vec_compare_cc): New function.
31610 (s390_mangle_type): Add mangling for vector bool types.
31611 (enum s390_builtin): Remove.
31612 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
31614 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
31615 s390_cpu_cpp_builtins.
31616 (REGISTER_TARGET_PRAGMAS): New macro.
31617 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
31618 (insn_cmp mode attribute): Add new CC modes.
31619 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
31620 (lcbb): New pattern definition.
31621 * config/s390/s390intrin.h: Include vecintrin.h.
31622 * config/s390/t-s390: New file.
31623 * config/s390/vecintrin.h: New file.
31624 * config/s390/vector.md: Include vx-builtins.md.
31625 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
31628 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31630 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
31632 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
31633 (s390_select_ccmode): Likewise.
31634 (s390_canonicalize_comparison): Swap operands if necessary.
31635 (s390_expand_vec_compare_scalar): Expand DFmode compare using
31636 single element vector instructions.
31637 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
31638 (s390_branch_condition_mask): Generate CC masks for the new modes.
31639 * config/s390/s390.md (v0, vf, vd): New mode attributes.
31640 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
31641 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
31642 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
31643 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
31644 (*extend<DSF:mode><BFP:mode>2): New insn definition.
31645 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
31646 (extend<DSF:mode><BFP:mode>2): Turn into expander.
31647 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
31648 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
31649 (sqrt<mode>2): Add vector instruction.
31651 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31653 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
31655 * config/s390/predicates.md (const0_operand, constm1_operand)
31656 (constable_operand): Accept vector operands.
31657 * config/s390/s390-modes.def: Add supported vector modes.
31658 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
31659 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
31660 (s390_bytemask_vector_p, s390_expand_vec_strlen)
31661 (s390_expand_vec_compare, s390_expand_vcond)
31662 (s390_expand_vec_init): Add prototypes.
31663 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
31664 (s390_vector_mode_supported_p): New function.
31665 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
31666 (s390_contiguous_bitmask_vector_p): New function.
31667 (s390_bytemask_vector_p): New function.
31668 (s390_split_ok_p): Vector regs don't work either.
31669 (regclass_map): Add VEC_REGS.
31670 (s390_legitimate_constant_p): Handle vector constants.
31671 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
31672 (legitimate_reload_vector_constant_p): New function.
31673 (s390_preferred_reload_class): Handle CONST_VECTOR.
31674 (s390_reload_symref_address): Likewise.
31675 (s390_secondary_reload): Vector memory instructions only support
31676 short displacements. Rename reload*_nonoffmem* to reload*_la*.
31677 (s390_emit_ccraw_jump): New function.
31678 (s390_expand_vec_strlen): New function.
31679 (s390_expand_vec_compare): New function.
31680 (s390_expand_vcond): New function.
31681 (s390_expand_vec_init): New function.
31682 (s390_dwarf_frame_reg_mode): New function.
31683 (print_operand): Handle addresses with 'O' and 'R' constraints.
31684 (NR_C_MODES, constant_modes): Add vector modes.
31685 (s390_output_pool_entry): Handle vector constants.
31686 (s390_hard_regno_mode_ok): Handle vector registers.
31687 (s390_class_max_nregs): Likewise.
31688 (s390_cannot_change_mode_class): New function.
31689 (s390_invalid_arg_for_unprototyped_fn): New function.
31690 (s390_function_arg_vector): New function.
31691 (s390_function_arg_float): Remove size variable.
31692 (s390_pass_by_reference): Handle vector arguments.
31693 (s390_function_arg_advance): Likewise.
31694 (s390_function_arg): Likewise.
31695 (s390_return_in_memory): Vector values are returned in a VR if
31697 (s390_function_and_libcall_value): Handle vector arguments.
31698 (s390_gimplify_va_arg): Likewise.
31699 (s390_call_saved_register_used): Consider the arguments named.
31700 (s390_conditional_register_usage): Disable v16-v31 for non-vec
31702 (s390_preferred_simd_mode): New function.
31703 (s390_support_vector_misalignment): New function.
31704 (s390_vector_alignment): New function.
31705 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
31706 (TARGET_VECTOR_MODE_SUPPORTED_P)
31707 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
31708 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
31709 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
31710 (TARGET_VECTOR_ALIGNMENT): Define target macro.
31711 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
31712 (FIRST_PSEUDO_REGISTER): Increase value.
31713 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
31714 (VECTOR_REG_P): Define macros.
31715 (FIXED_REGISTERS, CALL_USED_REGISTERS)
31716 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
31717 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
31718 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
31719 Add vector registers.
31720 (CANNOT_CHANGE_MODE_CLASS): Call C function.
31721 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
31722 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
31724 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
31725 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
31726 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
31727 (VR*_REGNUM): New constants.
31728 (ALL): New mode iterator.
31729 (INTALL): Remove mode iterator.
31731 (movti): Implement TImode moves for VRs.
31732 Disable TImode splitter for VR targets.
31733 Implement splitting TImode GPR<->VR moves.
31734 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
31735 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
31736 reload<mode>_la_in, reload<mode>_la_out.
31737 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
31738 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
31739 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
31740 (mov<mode> SF SD): Prefer lder, lde for loading.
31741 Add lrl and strl instructions.
31742 Add vector instructions.
31743 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
31744 Call s390_expand_vec_strlen on z13.
31745 (*cc_to_int): Change predicate to nonimmediate_operand.
31746 (addti3): Rename to *addti3. New expander.
31747 (subti3): Rename to *subti3. New expander.
31748 * config/s390/vector.md: New file.
31750 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31752 * common/config/s390/s390-common.c (processor_flags_table): Add
31754 * config.gcc: Add z13.
31755 * config/s390/s390-opts.h (enum processor_type): Add
31756 PROCESSOR_2964_Z13.
31757 * config/s390/s390.c (s390_adjust_priority): Check for
31758 PROCESSOR_2964_Z13.
31759 (s390_reorg): Likewise.
31760 (s390_sched_reorder): Likewise.
31761 (s390_sched_variable_issue): Likewise.
31762 (s390_loop_unroll_adjust): Likewise.
31763 (s390_option_override): Likewise. Default to -mvx when available.
31764 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
31765 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
31766 (TARGET_VX_ABI): Define macros.
31768 (TARGET_DEFAULT): Add MASK_OPT_VX.
31769 * config/s390/s390.md ("cpu" attribute): Add z13.
31770 ("cpu_facility" attribute): Add vec.
31771 * config/s390/s390.opt (processor_type): Add z13.
31772 (mvx): New options.
31773 * doc/invoke.texi: Add z13 option for -march.
31775 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31777 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
31778 mode check to make sure that only scalar integer values are
31781 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31783 * tree.c (verify_type_variant): Fix #undef.
31784 (gimple_canonical_types_compatible_p): Move here from lto.c
31785 (verify_type): Verify TYPE_CANONICAL compatibility.
31786 * tree.h (gimple_canonical_types_compatible_p): Declare.
31788 2015-05-19 Jakub Jelinek <jakub@redhat.com>
31790 PR middle-end/66199
31791 * tree.h (OMP_TEAMS_COMBINED): Define.
31792 * gimplify.c (enum gimplify_omp_var_data): Add
31793 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
31794 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
31795 (omp_notice_variable): Accept both ORT_TEAMS
31796 and ORT_COMBINED_TEAMS. Don't recurse if
31797 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
31798 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
31800 (omp_no_lastprivate): New function.
31801 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
31802 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
31803 notice_outer and set appropriate bits, otherwise make
31804 sure default(none) combined constructs won't complain.
31805 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
31806 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
31807 omp_no_lastprivate either remove the clause or turn it
31808 into OMP_CLAUSE_PRIVATE.
31809 (gimplify_omp_for): Fix up handling of implicit
31810 lastprivate or linear iterators.
31811 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
31812 ORT_COMBINED_TEAMS.
31813 * omp-low.c (lower_omp_for_lastprivate): For combined
31814 for simd use fd.loop.n2 from the for rather than simd.
31816 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31818 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
31819 instead of gen_rtx_raw_REG.
31820 (cris_expand_epilogue): Likewise.
31821 * config/microblaze/microblaze.c (microblaze_classify_address):
31823 * config/sparc/sparc.md: Likewise.
31825 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
31827 * config/alpha/alpha.c (alpha_legitimize_reload_address)
31828 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
31829 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
31830 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
31831 Use CASE_CONST_SCALAR_INT.
31832 (print_operand) <case 'M'>: Use mode_width_operand to check the
31833 value of the constant.
31834 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
31835 * config/alpha/predicates.md (input_operand): Use general_operand
31836 instead of match_code as operand check.
31837 (symbolic_operand): Use match_code with subexpression digits.
31838 * config/alpha/constraints.md (Q): Ditto.
31840 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31842 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
31844 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31846 * config/s390/s390.c (s390_secondary_reload): Fix check for
31847 load/store relative.
31849 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31851 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
31852 alternative_mask to uint64_t.
31854 2015-05-19 Jakub Jelinek <jakub@redhat.com>
31856 PR tree-optimization/66187
31857 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
31858 Pass TYPE_SIGN to tree_int_cst_min_precision. If
31859 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
31861 2015-05-19 David Malcolm <dmalcolm@redhat.com>
31863 * diagnostic.c (diagnostic_report_current_module): Strengthen
31864 local "new_map" from const line_map * to
31865 const line_map_ordinary *.
31866 * genmatch.c (error_cb): Likewise for local "map".
31867 (output_line_directive): Likewise for local "map".
31868 * input.c (expand_location_1): Likewise for local "map".
31869 Pass NULL rather than &map to
31870 linemap_unwind_to_first_non_reserved_loc, since the value is never
31871 read from there, and the value written back not read from here.
31872 (is_location_from_builtin_token): Strengthen local "map" from
31873 const line_map * to const line_map_ordinary *.
31874 (dump_location_info): Strengthen locals "map" from
31875 line_map *, one to const line_map_ordinary *, the other
31876 to const line_map_macro *.
31877 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
31878 const line_map * to const line_map_macro *.
31879 (maybe_unwind_expanded_macro_loc): Add a call to
31880 linemap_check_macro when writing to the "map" field of the
31882 Introduce local const line_map_ordinary * "ord_map", using it in
31883 place of "map" in the part of the function where we know we have
31884 an ordinary map. Strengthen local "m" from const line_map * to
31885 const line_map_ordinary *.
31887 2015-05-19 Nick Clifton <nickc@redhat.com>
31890 * config/msp430/msp430.md (zero_extendhisi2): Add support for
31891 separate source and destination registers.
31893 2015-05-19 Richard Biener <rguenther@suse.de>
31895 PR tree-optimization/66165
31896 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
31897 for no load permutation.
31899 PR tree-optimization/66185
31900 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
31901 when building the SLP node from scalars.
31903 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31904 Tristan Gingold <gingold@adacore.com>
31906 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
31907 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
31908 (expand_stack_restore): Call record_new_stack_level.
31909 (expand_stack_save): Do not call do_pending_stack_adjust.
31910 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
31911 * calls.c (expand_call): Call record_new_stack_level for alloca.
31912 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
31913 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
31914 (update_sjlj_context): New global function.
31915 * except.h (update_sjlj_context): Declare.
31916 * explow.c (record_new_stack_level): New global function.
31917 (allocate_dynamic_stack_space): Call record_new_stack_level.
31918 * explow.h (record_new_stack_level): Declare.
31919 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
31920 * cfgrtl.c (duplicate_insn_chain): Likewise.
31922 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31924 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
31925 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
31926 STACK_GROWS_DOWNWARD as normal if.
31927 (expand_call): Likewise.
31929 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
31932 * config/sh/sh.md (*round_int_even): New insn_and_split and
31933 accompanying new unnamed split.
31935 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31937 * bitmap.c (bitmap_set_range): Handle count==1 specially.
31938 (bitmap_clear_range): Likewise.
31939 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
31940 bitmap_set_range unconditionally.
31941 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31942 * df-scan.c (df_mark_reg): Likewise.
31943 * haifa-sched.c (setup_ref_regs): Likewise.
31944 * sched-rgn.c (update_live_1): Likewise.
31946 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31948 * regs.h (END_HARD_REGNO): Delete.
31949 (END_REGNO): Move to...
31951 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
31952 * caller-save.c (mark_set_regs): Likewise.
31953 * combine.c (move_deaths, distribute_notes): Likewise.
31954 * cse.c (invalidate, invalidate_for_call): Likewise.
31955 * df-scan.c (df_ref_record): Likewise.
31956 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
31957 (record_last_reg_set_info): Likewise.
31958 * reg-stack.c (convert_regs_exit): Likewise.
31959 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
31960 * resource.c (update_live_status): Likewise.
31961 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
31963 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31965 * rtl.h (reg_info): Add an nregs field.
31966 (REG_NREGS): Use it.
31967 (SET_REGNO_RAW): Delete.
31968 (set_regno_raw): New function.
31969 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
31970 (END_REGNO): Redefine in terms of REG_NREGS.
31971 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
31973 * emit-rtl.c (set_mode_and_regno): Likewise.
31974 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
31975 instead of SET_REGNO_RAW.
31977 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31979 * rtl.h (PUT_MODE_RAW): New macro.
31980 (PUT_REG_NOTE_KIND): Use it.
31981 (set_mode_and_regno): Declare.
31982 (gen_raw_REG): Change regno to "unsigned int".
31983 (gen_rtx_REG): Change "unsigned" to "unsigned int".
31984 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
31985 use set_mode_and_regno to change the mode of registers.
31986 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
31987 * emit-rtl.c (set_mode_and_regno): New function.
31988 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
31989 * caller-save.c (reg_save_code): Use set_mode_and_regno.
31990 * expr.c (init_expr_target): Likewise.
31991 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31992 * postreload.c (reload_cse_simplify_operands): Likewise.
31994 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31996 * caller-save.c (init_caller_save): Use word_mode and
31997 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
31998 * expr.c (init_expr_target): Likewise.
31999 * ira.c (setup_prohibited_mode_move_regs): Likewise.
32000 * postreload.c (reload_cse_regs_1): Likewise.
32002 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32004 * rtl.def (REG): Change format to "r".
32005 * rtl.h (rtunion): Remove rt_reg.
32006 (reg_info): New structure.
32007 (rtx_def): Add reg field to main union.
32008 (X0REGATTR): Delete.
32009 (REG_CHECK): New macro.
32010 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
32011 * rtl.c (rtx_format): Document "r".
32012 (rtx_code_size): Handle REG specially.
32013 * gengenrtl.c (special_format): Return true for formats
32015 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
32016 Deal with REG_ATTRS after the field loop.
32017 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
32018 * expmed.c (init_expmed): Call gen_raw_REG instead of
32020 * expr.c (init_expr_target): Likewise.
32021 * regcprop.c (maybe_mode_change): Likewise.
32022 * varasm.c (make_decl_rtl): Likewise.
32023 * final.c (leaf_renumber_regs_insn): Return early after
32025 * genemit.c (gen_exp): Handle 'r' fields.
32026 * genpeep.c (match_rtx): Likewise.
32027 * gensupport.c (subst_pattern_match): Likewise.
32028 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
32029 (alter_constraints, subst_dup): Likewise.
32030 * read-rtl.c (read_rtx_code): Likewise.
32031 * print-rtl.c (print_rtx): Likewise.
32032 * genrecog.c (find_operand, find_matching_operand): Likewise.
32033 (validate_pattern, match_pattern_2): Likewise.
32034 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
32035 (rtx_test::regno_field): New function.
32036 (operator ==, safe_to_hoist_p, transition_parameter_type)
32037 (parameter_type_string, print_parameter_value)
32038 (print_nonbool_test, print_test): Handle new enum values.
32039 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
32040 * lra-constraints.c (operands_match_p): Likewise.
32042 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32044 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
32045 Change type of new_regno to unsigned int.
32046 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
32047 new_regno to unsigned int.
32048 (df_ref_change_reg_with_loc): Remove old_regno parameter.
32049 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
32050 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
32051 (SET_REGNO_RAW): Add space after ",".
32053 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32055 * rtl.h (REG_NREGS): New macro
32056 * alias.c (record_set): Use it.
32057 * cfgcleanup.c (mark_effect): Likewise.
32058 * combine.c (likely_spilled_retval_1): Likewise.
32059 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
32060 (move_deaths, distribute_notes): Likewise.
32061 * cselib.c (cselib_record_set): Likewise.
32062 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
32063 * df-scan.c (df_mark_reg): Likewise.
32064 * dse.c (look_for_hardregs): Likewise.
32065 * dwarf2out.c (reg_loc_descriptor): Likewise.
32066 (multiple_reg_loc_descriptor): Likewise.
32067 * expr.c (write_complex_part, read_complex_part): Likewise.
32068 (emit_move_complex): Likewise.
32069 * haifa-sched.c (setup_ref_regs): Likewise.
32070 * ira-lives.c (mark_hard_reg_live): Likewise.
32071 * lra.c (lra_set_insn_recog_data): Likewise.
32072 * mode-switching.c (create_pre_exit): Likewise.
32073 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
32074 (reload_combine_recognize_pattern): Likewise.
32075 (reload_combine_note_use, move2add_record_mode): Likewise.
32076 (reload_cse_move2add): Likewise.
32077 * reg-stack.c (subst_stack_regs_pat): Likewise.
32078 * regcprop.c (kill_value, copy_value): Likewise.
32079 (copyprop_hardreg_forward_1): Likewise.
32080 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
32081 (build_def_use): Likewise.
32082 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
32083 (deps_analyze_insn): Likewise.
32084 * sched-rgn.c (check_live_1, update_live_1): Likewise.
32085 * sel-sched.c (count_occurrences_equiv): Likewise.
32086 * valtrack.c (dead_debug_insert_temp): Likewise.
32088 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32090 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
32091 * dse.c (note_add_store): Likewise.
32092 * ira-lives.c (mark_hard_reg_dead): Likewise.
32093 * loop-invariant.c (mark_reg_store): Likewise.
32094 (mark_reg_death): Likewise.
32095 * postreload.c (reload_combine): Likewise.
32096 (reload_combine_note_store): Likewise.
32097 (reload_combine_note_use): Likewise.
32098 * recog.c (peep2_reg_dead_p): Likewise.
32100 2015-05-19 Alan Modra <amodra@gmail.com>
32102 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
32103 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
32104 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
32106 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
32107 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
32108 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
32109 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
32111 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
32113 * config/mips/mips.md (JOIN_MODE): New mode iterator.
32114 (join2_load_Store<JOIN_MODE:mode>): New pattern.
32115 (join2_loadhi): Likewise.
32116 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
32117 load-load and store-stores.
32118 * config/mips/mips.opt (mload-store-pairs): New option.
32119 (TARGET_LOAD_STORE_PAIRS): New macro.
32120 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
32121 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
32122 * config/mips/mips.c (mips_load_store_bonding_p): New function.
32124 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
32126 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
32128 * dojump.c (do_compare_rtx_and_jump): Likewise.
32129 * expmed.c (emit_store_flag_1): Likewise.
32130 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
32131 * final.c (sprint_ul): Use std::reverse for reversing a string.
32132 * fold-const.c (extract_muldiv_1): Use std::swap.
32133 * genmodes.c (emit_mode_int_n): Likewise.
32134 * ifcvt.c (dead_or_predicable): Likewise.
32135 * ira-build.c (ira_merge_live_ranges): Likewise.
32136 (swap_allocno_copy_ends_if_necessary): Likewise.
32137 * ira.c (ira_setup_alts): Likewise.
32138 * loop-iv.c (iv_analyze_expr): Likewise.
32139 (implies_p): Likewise.
32140 (canon_condition): Likewise.
32141 * lra-constraints.c (swap_operands): Likewise.
32142 * lra-lives.c (lra_merge_live_ranges): Likewise.
32143 * omega.c (swap): Remove.
32145 (omega_unprotect_1): Use std::swap.
32146 (omega_solve_geq): Likewise.
32147 * optabs.c (expand_binop_directly): Likewise.
32148 (expand_binop): Likewise.
32149 (emit_conditional_move): Likewise.
32150 (emit_conditional_add): Likewise.
32151 * postreload.c (reload_cse_simplify_operands): Likewise.
32152 * reg-stack.c (emit_swap_insn): Likewise.
32153 (swap_to_top): Likewise.
32154 (compare_for_stack_reg): Likewise.
32155 (subst_asm_stack_regs): Likewise.
32156 * reload.c (find_reloads): Likewise.
32157 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
32158 * sel-sched.c (invoke_reorder_hooks): Likewise.
32159 (create_block_for_bookkeeping): Likewise.
32160 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
32161 (lambda_matrix_right_hermite): Use std::swap.
32162 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
32163 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
32164 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
32165 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
32166 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
32167 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
32168 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
32169 * tree-vrp.c (compare_ranges): Likewise.
32170 * var-tracking.c (add_with_sets): Likewise.
32171 (vt_find_locations): Likewise.
32173 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
32175 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
32177 (FBSD_ENDFILE_SPEC): Likewise.
32178 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
32179 config/freebsd-spec.h.
32180 (ENDFILE_SPEC): Likewise.
32182 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
32183 Richard Henderson <rth@redhat.com>
32186 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
32187 Check for a memory location that is not a reference (using an AND)
32188 to an unaligned location here.
32189 * config/alpha/predicates.md (normal_memory_operand): Remove.
32191 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
32193 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
32194 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
32196 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
32198 * config/mips/mips.c (micromips_globals): New variable.
32199 (mips_set_compression_mode): Save and reinitialize target-dependent
32200 state for microMIPS.
32202 2015-05-18 Martin Liska <mliska@suse.cz>
32204 * dbgcnt.def: Add new counter.
32205 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
32207 2015-05-18 Martin Liska <mliska@suse.cz>
32209 * dbgcnt.def: Sort counters.
32210 * opts.c (common_handle_option): Do not compile if
32211 -fdbg-cnt-list is enabled.
32213 2015-05-18 Tom de Vries <tom@codesourcery.com>
32215 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
32216 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
32217 address operator to va_list operand.
32218 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
32220 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
32222 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
32223 * config/s390/s390.c (s390_gimplify_va_arg): Same.
32224 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
32226 2015-05-18 Tom de Vries <tom@codesourcery.com>
32228 * tree-ssa-tail-merge.c: Fix whitespace.
32230 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
32232 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
32233 cortex-a17, and cortex-a17.cortex-a7.
32235 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
32238 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
32240 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
32243 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
32244 QImode inner modes for TARGET_AVX512BW. Force mask operand
32245 to a register for AVX512F modes.
32247 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32249 * toplev.c (emit_debug_global_declarations): Do not output debug info
32250 when doing slim LTO objects.
32252 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32254 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
32255 odr_types_equivalent_p): Declare.
32256 (odr_type_p): Use gcc_checking_assert.
32257 (type_in_anonymous_namespace_p) Declare.
32258 (type_with_linkage_p): Declare.
32259 * common.opt (Wlto-type-mismatch): New warning.
32260 * ipa-devirt.c (compound_type_base): New function.
32261 (odr_or_derived_type_p): New function.
32262 (odr_types_equivalent_p): New function.
32263 (add_type_duplicate): Simplify.
32264 (type_with_linkage_p): Add hack to prevent false positives on C types
32265 (type_in_anonymous_namespace_p): Likewise.
32266 * tree.c (need_assembler_name_p): Use type_with_linkage.
32267 * tree.h (type_in_anonymous_namespace_p): Remove.
32268 * doc/invoke.texi (-Wlto-type-mismatch): Document
32270 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32272 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
32273 (verify_type): Verify STRING_FLAG.
32275 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
32278 * tree-pretty-print.c (percent_K_format): Replace locus pointer
32279 with accessor function.
32280 * tree-diagnostic.c (diagnostic_report_current_function): Use
32281 diagnostic_location function.
32282 (maybe_unwind_expanded_macro_loc): Likewise.
32283 (virt_loc_aware_diagnostic_finalizer): Likewise.
32284 (default_tree_printer): Replace locus pointer with accessor function.
32285 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
32286 (diagnostic_set_info_translated): Initialize second location.
32287 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
32288 (diagnostic_show_locus): Handle two locations. Call
32289 diagnostic_print_caret_line.
32290 (diagnostic_print_caret_line): New.
32291 (default_diagnostic_starter): Use diagnostic_location function.
32292 (diagnostic_report_diagnostic): Use diagnostic_location function.
32293 (verbatim): Do not set text.locus.
32294 * diagnostic.h (struct diagnostic_info): Remove location field.
32295 (struct diagnostic_context): Make caret_chars an array of two.
32296 (diagnostic_location): New inline.
32297 (diagnostic_expand_location): Handle two locations.
32298 (diagnostic_same_line): New inline.
32299 (diagnostic_print_caret_line): Declare.
32300 (CARET_LINE_MARGIN): New constant.
32301 * pretty-print.c (pp_printf): Do not set text.locus.
32302 (pp_verbatim): Do not set text.locus.
32303 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
32304 (struct text_info): Replace locus pointer with locations
32305 array. Add accessor functions.
32307 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
32308 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32311 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
32312 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
32313 large constants in register instead of splitting them.
32315 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
32318 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
32319 replacements in memory addresses.
32320 (get_unaligned_address): Ditto.
32322 2015-05-16 James Bowman <james.bowman@ftdichip.com>
32324 * config/ft32/*: New files for FT32 port.
32325 * doc/install.texi: Add FT32 information.
32326 * doc/invoke.texi: Add FT32 information.
32327 * doc/md.texi: Add FT32 information.
32328 * doc/contrib.texi: Self added.
32330 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
32332 PR tree-optimization/64454
32333 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
32334 (-1 - A -> ~A): Remove unnecessary condition.
32336 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
32338 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
32339 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
32340 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
32342 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
32344 * ipa-chkp.h (chkp_wrap_function): New.
32345 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
32346 (chkp_wrap_function_name): New.
32347 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
32348 to get wrapper name.
32349 * lto-cgraph.c: Include ipa-chkp.h.
32350 (input_cgraph_1): Avoid alias chain for wrappers.
32352 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
32354 PR middle-end/66134
32355 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
32356 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
32358 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32360 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
32361 (AARCH64_FL_SLOWMUL): Delete.
32362 (AARCH64_FL_CRC): Redefine to 1<<3.
32363 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
32365 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32367 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
32370 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32372 * config/alpha/alpha.md (extendqidi2): Use general_operand
32373 instead of some_operand for operand[1] predicate.
32374 (extendhidi2): Ditto.
32375 (cbranchdi4): Use general_operand instead of some_operand
32376 for operand[1] and operands[2] predicates.
32377 (cstoredi4): Ditto.
32378 * config/alpha/predicates.md (some_operand): Remove unused predicate.
32379 (some_ni_operand): Ditto.
32381 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32383 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
32384 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
32385 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
32386 low part of the constant using alpha_emit_set_const_1.
32387 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
32389 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
32391 * varasm.c (output_constant_pool_1): Pass down alignment from
32392 constant pool entry's descriptor to output_constant_pool_2.
32393 (output_object_block): Add comment prior to call to
32394 output_constant_pool_1.
32396 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
32398 PR rtl-optimization/65862
32399 * target.def (ira_change_pseudo_allocno_class): New hook.
32400 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
32402 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
32403 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
32405 * ira-costs.c (find_costs_and_classes): Call the hook and change
32406 classes when it is necessary.
32407 * doc/tm.texi: Update.
32409 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
32411 * config/i386/i386.md (sibcall_memory): Check that register with
32412 callee address is not also used as one of the arguments, instead
32413 of checking that it is not live after the sibcall.
32414 (sibcall_pop_memory): Ditto.
32415 (sibcall_value_memory): Ditto.
32416 (sibcall_value_pop_memory): Ditto.
32418 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
32420 * generic-match-head.c (types_match): Handle non-types.
32421 * gimple-match-head.c (types_match): Likewise.
32422 * match.pd: Remove unnecessary TREE_TYPE for types_match.
32424 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
32426 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
32427 (csneg3<mode>_insn): Enable expansion of pattern.
32429 2015-05-14 Nick Clifton <nickc@redhat.com>
32431 * config/rl78/rl78.c (rl78_select_section): Select the correct
32432 default section based upon the category of the decl.
32434 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32436 PR rtl-optimization/30967
32437 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
32438 destination mode for the cost of scc patterns.
32440 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32442 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
32443 using SWIM248 mode iterator.
32444 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
32445 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
32446 for operand[2] constraint.
32447 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
32449 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32451 PR middle-end/66133
32452 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
32453 make sure it is never noreturn, even when the task body does not
32455 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
32456 right before GIMPLE_OMP_RETURN.
32457 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
32458 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
32459 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
32461 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32463 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
32464 * tree-ssa-math-opts.c: Include params.h
32465 (pow_synth_sqrt_info): New struct.
32466 (representable_as_half_series_p): New function.
32467 (get_fn_chain): Likewise.
32468 (print_nested_fn): Likewise.
32469 (dump_fractional_sqrt_sequence): Likewise.
32470 (dump_integer_part): Likewise.
32471 (expand_pow_as_sqrts): Likewise.
32472 (gimple_expand_builtin_pow): Use above to attempt to expand
32473 pow as series of square roots. Removed now unused variables.
32475 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32477 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
32478 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
32479 Remove *p0 and *p1 arguments. Rewrite function.
32480 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
32481 (alpha_split_const_mov): Update calls to alpha_extract_integer and
32482 alpha_emit_set_long_const.
32483 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
32484 (alpha_output_mi_thunk_osf): Ditto.
32485 * config/alpha/alpha.md (movti): Do not check operands[1]
32488 2015-05-13 Richard Biener <rguenther@suse.de>
32490 PR tree-optimization/66129
32491 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
32493 (vect_schedule_slp_instance): Fix typo.
32495 2015-05-13 David Malcolm <dmalcolm@redhat.com>
32497 * common.opt (fdump-internal-locations): New option.
32498 * input.c: Include diagnostic-core.h.
32499 (get_end_location): New function.
32500 (write_digit): New function.
32501 (write_digit_row): New function.
32502 (dump_location_range): New function.
32503 (dump_labelled_location_range): New function.
32504 (dump_location_info): New function.
32505 * input.h (dump_location_info): New prototype.
32506 * toplev.c (compile_file): Handle flag_dump_locations.
32508 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
32510 * gimple-expr.h (is_gimple_constant): Reorder.
32511 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
32513 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32515 * combine.c (simplify_set): When generating a CC set, if the
32516 source already is in the correct mode, do not wrap it in a
32517 compare. Simplify the rest of that code.
32519 2015-05-13 Richard Biener <rguenther@suse.de>
32521 PR tree-optimization/66123
32522 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
32525 2015-05-13 Richard Biener <rguenther@suse.de>
32527 PR middle-end/66110
32528 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
32530 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
32532 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32534 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
32535 * aclocal.m4: Regenerated with automake-1.11.6.
32537 2015-05-13 Tom de Vries <tom@codesourcery.com>
32539 PR tree-optimization/66010
32540 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
32541 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
32542 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
32543 and rval based on do_deref.
32545 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32548 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
32549 link time constants into adress expressions and therefore set
32552 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32555 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
32556 Use SWI248 iterator instead of SWI.
32557 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
32558 Use eq_attr "alternative" "0" instead of match_test in
32559 length_immediate attribute computation.
32560 (*mulvhi4, *mulvhi4_1): New define_insns.
32563 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
32564 SIGNED to get precision of non-negative value.
32566 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32569 * function.c (diddle_return_value_1): Process bounds first.
32570 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
32573 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32575 PR rtl-optimization/64616
32576 * loop-invariant.c (can_move_invariant_reg): New.
32577 (move_invariant_reg): Call above new function to decide whether
32578 instruction can just be moved, skipping creation of temporary
32581 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32583 PR target/pr66047.c
32584 * i386.c (ix86_function_sseregparm): Only return -1 if local function
32585 with implied regparm is called from -mno-sse function.
32586 (init_cumulative_args): Output error if ix86_function_sseregparm
32587 return -1 and SSE register would be needed.
32588 (function_arg_advance_32): Likewise.
32589 (function_arg_32): Likewise.
32590 * i386.h (ix86_args): Add decl field.
32592 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32595 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
32596 inlines across optimization boundary.
32598 2015-05-12 Jason Merrill <jason@redhat.com>
32600 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
32601 string literal and macro name.
32603 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
32605 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
32606 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
32607 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
32609 2015-05-12 David Malcolm <dmalcolm@redhat.com>
32611 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
32612 (-Wmisleading-indentation): New option.
32613 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
32615 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
32617 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
32618 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
32619 (alpha_extract_integer): Ditto.
32620 (alpha_legitimate_constant_p): Ditto.
32621 (alpha_split_tmode_pair): Ditto.
32622 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
32623 (alpha_expand_mov): Ditto.
32624 (print_operand): Remove handling of 'H' modifier.
32625 <case 'm'>: Remove CONST_DOUBLE handling.
32626 (summarize_insn): Handle CONST_WIDE_INT.
32627 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
32629 (movti): Handle CONST_WIDE_INT.
32630 * config/alpha/constraints.md ('H'): Remove constraint definition.
32631 ('G'): Do not match MODE_FLOAT class.
32632 * config/alpha/predicates.md (const0_operand): Also match
32634 (non_add_const_operand): Ditto.
32635 (non_zero_const_operand): Ditto.
32636 (some_operand): Ditto.
32637 (input_operand): Ditto. Handle CONST_WIDE_INT.
32638 (and_operand): Do not match const_double.
32639 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
32641 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
32644 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
32645 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
32646 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
32647 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
32648 is_mm_seq_cst, is_mm_sync): New accessor functions.
32649 * builtins.c (expand_builtin_sync_operation,
32650 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
32651 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
32652 (get_memmodel, expand_builtin_atomic_compare_exchange,
32653 expand_builtin_atomic_load, expand_builtin_atomic_store,
32654 expand_builtin_atomic_clear): Use new accessor routines.
32655 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
32656 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
32657 (maybe_emit_sync_lock_test_and_set): Use new accessors and
32658 MEMMODEL_SYNC_ACQUIRE.
32659 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
32660 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
32661 expand_atomic_store): Use new accessors.
32662 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
32663 * tsan.c (instrument_builtin_call): Update check for memory model beyond
32664 final enum to use MEMMODEL_LAST.
32665 * c-family/c-common.c: Use new accessor for memmodel_base.
32666 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
32668 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
32669 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
32670 mem_thread_fence, *dmb): Likewise.
32671 * config/alpha/alpha.c (alpha_split_compare_and_swap,
32672 alpha_split_compare_and_swap_12): Likewise.
32673 * config/arm/arm.c (arm_expand_compare_and_swap,
32674 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
32675 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
32676 atomic_loaddi): Likewise.
32677 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
32679 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
32680 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
32682 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
32683 atomic_store<mode>, atomic_compare_and_swap<mode>,
32684 atomic_exchange<mode>): Use new accessors.
32685 * config/mips/mips.c (mips_process_sync_loop): Likewise.
32686 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
32687 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
32688 rs6000_post_atomic_barrier): Add new cases.
32689 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
32690 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
32691 (atomic_load<mode>): Add new cases and use new accessors.
32692 (store_quadpti): Add new cases.
32693 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
32695 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
32696 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
32699 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32701 * ipa-devirt.c (type_with_linkage_p): New function.
32702 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
32704 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
32705 (can_be_name_hashed_p): Simplify.
32706 (hash_odr_name): Check that type has linkage before checking if it is
32708 (types_same_for_odr): Likewise.
32709 (odr_name_hasher::equal): Likewise.
32710 (odr_subtypes_equivalent_p): Likewise.
32711 (warn_types_mismatch): Likewise.
32712 (get_odr_type): Likewise.
32713 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
32714 * ipa-utils.h (odr_type_p): Move offline.
32715 * tree.c (need_assembler_name_p): Fix handling of types
32717 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
32719 2015-05-12 David Malcolm <dmalcolm@redhat.com>
32721 * timevar.c (timevar_enable): Delete in favor of...
32722 (g_timer): New global.
32723 (struct timevar_def): Move to timevar.h inside class timer.
32724 (struct timevar_stack_def): Likewise.
32725 (timevars): Delete global in favor of field "m_timevars" within
32726 class timer in timevar.h
32727 (stack): Likewise, in favor of field "m_stack".
32728 (unused_stack_instances): Likewise, in favor of field
32729 "m_unused_stack_instances".
32730 (start_time): Likewise, in favor of field "m_start_time".
32731 (get_time): Eliminate check for timevar_enable.
32732 (timer::timer): New function, built from part of timevar_init.
32733 (timevar_init): Rewrite idempotency test from using
32734 "timevar_enable" bool to using dynamic allocation of "g_timer".
32735 Move rest of implementation into timer's constructor.
32736 (timevar_push_1): Rename to...
32737 (timer::push): ...this, adding "m_" prefixes to variables that
32738 are now fields of timer.
32739 (timevar_pop_1): Likewise, rename to...
32740 (timer::pop): ...this, and add "m_" prefixes.
32741 (timevar_start): Replace test for "timevar_enable" with one for
32742 "g_timer", and move bulk of implementation to...
32743 (timer::start): ...here, adding "m_" prefixes.
32744 (timevar_stop): Likewise, from here...
32745 (timer::stop): ...to here.
32746 (timevar_cond_start): Likewise, from here...
32747 (timer::cond_start): ...to here.
32748 (timevar_cond_stop): Likewise, from here...
32749 (timer::cond_stop): ...to here.
32750 (validate_phases): Rename to...
32751 (timer::validate_phases): ...this, and add "m_" prefixes. Make
32752 locals "total" and "tv" const.
32753 (timevar_print): Rename to...
32754 (timer::print): ...this, and add "m_" prefixes. Make locals
32755 "total" and "tv" const. Eliminate test for timevar_enable.
32756 * timevar.h (timevar_enable): Eliminate.
32757 (g_timer): New declaration.
32758 (timevar_push_1): Eliminate.
32759 (timevar_pop_1): Eliminate.
32760 (timevar_print): Eliminate.
32761 (class timer): New class.
32762 (timevar_push): Rewrite to use g_timer.
32763 (timevar_pop): Likewise.
32764 * toplev.c (toplev::~toplev): Likewise.
32766 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
32768 * arm-protos.h (arm_sched_autopref): Delete.
32769 (tune_params): Re-organize, use enums for flag values.
32770 (FUSE_OPS): New macro.
32771 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
32772 (ARM_PREFETCH_BENEFICIAL): Likewise.
32773 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
32774 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
32775 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
32776 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
32777 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
32778 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
32779 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
32780 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
32782 (arm_option_override, thumb2_reorg, arm_print_tune_info)
32783 (aarch_macro_fusion_pair_p): Update uses of current_tune.
32784 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
32786 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
32788 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
32791 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
32792 Sandra Loosemore <sandra@codesourcery.com>
32794 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
32796 (REG_CLASS_NAMES): Add "IJMP_REGS".
32797 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
32798 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
32799 use new "c" register constraint.
32800 * config/nios2/constraint.md (c): New register constraint
32801 corresponding to IJMP_REGS.
32803 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32805 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
32806 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
32807 define_splits): Delete, revamp, transmogrify into ...
32808 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
32809 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
32810 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
32813 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32815 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
32816 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
32818 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32820 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
32821 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
32822 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
32823 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
32824 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
32825 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
32826 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
32827 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
32828 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
32829 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
32830 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
32831 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
32832 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
32833 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
32834 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
32835 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
32836 and 30 corresponding splitters): Delete.
32838 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32840 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
32843 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32845 * combine.c (recog_for_combine_1): New function, factored out
32846 from recog_for_combine.
32847 (change_zero_ext): New function.
32848 (recog_for_combine): If recog fails, try again with the pattern
32849 modified by change_zero_ext; if that still fails, restore the
32852 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
32854 * combine.c (get_undo_marker): New function.
32855 (undo_to_marker): New function, largely factored out from ...
32856 (undo_all): ... this. Adjust.
32858 2015-05-12 Richard Biener <rguenther@suse.de>
32860 PR tree-optimization/66101
32861 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
32862 fixup if we turn a loop exit edge to a fallthru edge.
32864 2015-05-12 Richard Biener <rguenther@suse.de>
32866 PR tree-optimization/37021
32867 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
32868 (SLP_TREE_TWO_OPERATORS): New define.
32869 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
32870 SLP_TREE_TWO_OPERATORS.
32871 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
32873 (vect_build_slp_tree): Adjust.
32874 (vect_analyze_slp_cost_1): Likewise.
32875 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
32876 emitting two vector stmts and mixing the results.
32878 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
32880 * call.c (print_z_candidates): Remove dead code.
32882 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32884 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
32885 and zEC12_simple_fp.
32886 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
32889 2015-05-12 Tom de Vries <tom@codesourcery.com>
32891 PR tree-optimization/66010
32892 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
32894 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
32895 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
32896 va_lists are passed, and remove corresponding handling.
32897 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
32898 do_deref argument to ifn_va_arg.
32899 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
32902 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32905 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
32906 REG before taking its REGNO.
32908 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
32910 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
32911 rsp->sign_bit_copies and rsp->nonzero_bits into ...
32912 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
32913 present to get more accurate information about the number of sign bit
32914 copies and non zero bits.
32916 2015-05-12 Richard Biener <rguenther@suse.de>
32918 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
32919 do not allow unrolling.
32921 2015-05-11 Richard Henderson <rth@redhat.com>
32923 * config/i386/i386-modes.def (CCP): New.
32924 * config/i386/i386.c (put_condition_code): Handle it.
32925 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
32927 2015-05-11 Richard Henderson <rth@redhat.com>
32929 * target.def (md_asm_clobbers): Replace with...
32930 (md_asm_adjust): this.
32931 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
32932 (TARGET_MD_ASM_ADJUST): New.
32933 * tm.texi: Rebuild.
32934 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
32935 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
32936 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
32938 * cfgexpand.c (check_operand_nalternatives): Accept vector of
32939 constraints instead of lists of outputs and inputs.
32940 (expand_asm_stmt): Save and restore input_location around the
32941 body of the function. Move asm data into vectors instead of
32942 building tree lists. Generate cleanup sequences as needed,
32943 rather than waiting til the end. Use new md_asm_adjust hook.
32945 * config/vxworks.c: Include vec.h before target.h.
32946 * gimple.c: Likewise.
32947 * incpath.c: Likewise.
32948 * mode-switching.c: Likewise.
32950 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
32951 (cris_md_asm_adjust): this.
32952 (TARGET_MD_ASM_CLOBBERS): Remove.
32953 (TARGET_MD_ASM_ADJUST): New.
32954 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
32955 (ix86_md_asm_adjust): this.
32956 (TARGET_MD_ASM_CLOBBERS): Remove.
32957 (TARGET_MD_ASM_ADJUST): New.
32958 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
32959 (mn10300_md_asm_adjust): this.
32960 (TARGET_MD_ASM_CLOBBERS): Remove.
32961 (TARGET_MD_ASM_ADJUST): New.
32962 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
32963 (rs6000_md_asm_adjust): this.
32964 (TARGET_MD_ASM_CLOBBERS): Remove.
32965 (TARGET_MD_ASM_ADJUST): New.
32966 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
32967 (visium_md_asm_adjust): this.
32968 (TARGET_MD_ASM_CLOBBERS): Remove.
32969 (TARGET_MD_ASM_ADJUST): New.
32971 2015-05-11 Richard Henderson <rth@redhat.com>
32973 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
32974 if noutputs is zero.
32975 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
32977 * cfgexpand.c (expand_asm_operands): Merge into...
32978 (expand_asm_stmt): ... here.
32980 * cfgexpand.c (expand_asm_operands): Don't call
32981 resolve_asm_operand_names.
32982 * stmt.c (resolve_asm_operand_names): Clarify block comment.
32984 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
32986 * dwarf2out.c (gen_member_die): Sanity check that we access
32987 TYPE_MAIN_VARIANT for TYPE_METHODS.
32988 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
32989 checking TYPE_METHODS.
32990 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
32992 (build_distinct_type_copy): Clear TYPE_METHODS.
32993 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
32994 (verify_type): Allow TYPE_METHODS to be error_mark_node.
32995 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
32997 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
32999 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
33000 (emit_pattern_before_setloc): Likewise.
33002 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
33004 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
33005 for define_peephole2s.
33006 (get_peephole2_pattern): New function.
33007 (main): Use it. Call validate_pattern.
33009 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
33011 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
33012 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
33013 (Last callee saved reg is different for AVR_TINY architecture)
33015 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
33017 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
33018 when looking for memory references.
33020 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
33023 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
33024 via function pointers.
33026 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
33028 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
33029 indirect call by forcing address into a pseudo with -fno-plt.
33030 * common.opt (flag_plt): New option.
33031 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
33032 ([-fno-plt]): Document.
33034 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
33037 * config/rs6000/option-defaults.h: Add space between string literal
33040 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
33042 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
33043 accross ARM targets.
33045 2015-05-11 Christian Bruel <christian.bruel@st.com>
33047 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
33048 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
33050 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
33052 PR rtl-optimization/66076
33053 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
33054 Don't grow the heap array if it is already big enough from a
33055 previous iteration.
33057 2015-05-11 Christian Bruel <christian.bruel@st.com>
33059 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
33060 (is_called_in_ARM_mode): Remove.
33061 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
33062 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
33063 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
33064 arm_declare_function_name.
33066 2015-05-11 Christian Bruel <christian.bruel@st.com>
33068 * config/arm/arm.c (arm_option_override): Reoganized and split into :
33069 (arm_option_params_internal); New function.
33070 (arm_option_check_internal): New function.
33071 (arm_option_override_internal): New function.
33072 (thumb_code, thumb1_code): Remove.
33073 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
33074 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
33075 (thumb_code, thumb1_code): Remove.
33076 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
33078 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
33080 * config/alpha/alpha.c (alpha_emit_set_const_1)
33081 (alpha_emit_set_long_const, alpha_extract_integer)
33082 (alpha_legitimate_constant_p, alpha_split_const_mov)
33083 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
33084 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33085 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
33087 * config/alpha/predicates.md (mode_mask_operand): Do not match
33089 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33090 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
33091 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
33092 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33093 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
33095 2015-05-11 Jakub Jelinek <jakub@redhat.com>
33098 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
33099 default_binds_local_p_2.
33100 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
33101 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
33103 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33105 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
33107 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33109 Patch by Richard Biener
33110 * coverage.c (coverage_obj_init): Delay building of type variant
33111 until the type is finished.
33113 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33115 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
33116 mismatch between C and C++ type; compoare correctly ARG_TYPES
33117 for non-prototypes and output correctly parameter index for METHOD_TYPE.
33118 (odr_types_equivalent_p): Fix wording of warning about attributes;
33119 it is OK to match prototype and non-prototype.
33121 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33123 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
33124 TYPE_ARG_TYPES list.
33125 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
33126 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
33128 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33130 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
33131 * tree.h (is_lang_specific): Constify.
33133 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
33135 PR tree-optimization/64454
33136 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
33139 2015-05-08 Jason Merrill <jason@redhat.com>
33141 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
33142 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
33143 config/darwin.h, config/darwin9.h, config/elfos.h,
33144 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
33145 config/microblaze/microblaze.h, config/mips/mips.h,
33146 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
33147 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
33148 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
33149 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
33150 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
33151 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
33152 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
33153 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
33154 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
33155 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
33156 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
33157 between string literal and macro name.
33159 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33161 * jump.c: Change argument types to rtx_insn *.
33164 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33166 * lra-constraints.c: Change argument type to rtx_insn *.
33168 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33170 * df-problems.c: Change argument type to rtx_insn *.
33172 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33174 * combine.c: Change argument type to rtx_insn *.
33176 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33179 * rtlanal.c: Change argument type to rtx_insn *.
33181 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33183 * sched-deps.c: Change argument types to rtx_insn *.
33184 * sched-int.h: Adjust.
33186 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33188 * dwarf2cfi.c: Change argument type to rtx_insn *.
33190 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33192 * ira.c (decrease_live_ranges_number): Changetype of local
33193 variable to rtx_insn *.
33194 * recog.c: Change argument types to rtx_insn *.
33197 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33199 * reorg.c: Change argument types to rtx_insn *.
33201 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33203 * ira-color.c: Change argument types to rtx_insn *.
33204 * lra-eliminations.c: Likewise.
33207 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33209 * gcse.c: Change argument types to rtx_insn *.
33211 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33213 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
33215 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33217 * emit-rtl.c (emit_debug_insn_before): Change argument type to
33221 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33223 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
33226 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33228 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
33231 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33233 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
33236 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33238 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
33241 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33243 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
33247 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33249 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
33253 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33255 * except.c (can_nonlocal_goto): Change type of argument to
33259 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33261 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
33264 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33266 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
33267 * cfgrtl.c (can_delete_label_p): Adjust.
33270 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33272 * reorg.c (stop_search_p): Change argument to rtx_insn *.
33274 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33276 * except.c (make_reg_eh_region_note): Change argument to
33278 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
33279 * except.h: Adjust.
33281 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33283 * mode-switching.c (commit_mode_sets): Change type of local
33284 variable from rtx to rtx_insn *.
33286 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
33288 * doc/install.texi (--enable-languages): Add missing jit and lto info.
33289 Add ^ to grep command.
33290 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
33291 arg to last gimple_simplify declaration. Add missing gimple_build
33292 declaration for built-in function case with four tree args.
33294 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33295 Szabolcs Nagy <szabolcs.nagy@arm.com>
33297 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
33298 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
33299 (GNU_USER_DYNAMIC_LINKERN32): Update.
33301 2015-05-08 Richard Biener <rguenther@suse.de>
33303 PR tree-optimization/66036
33304 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33305 Handle strided group loads.
33306 (vect_verify_datarefs_alignment): Likewise.
33307 (vect_enhance_data_refs_alignment): Likewise.
33308 (vect_analyze_group_access): Likewise.
33309 (vect_analyze_data_ref_access): Likewise.
33310 (vect_analyze_data_ref_accesses): Likewise.
33311 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
33312 (vectorizable_load): Likewise.
33314 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
33316 * config/rs6000/rs6000.md: Require operand inequality in one
33319 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
33320 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
33322 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
33324 * config/rx/rx.md (movdi, movdf): Likewise.
33325 Likewise for define_peephole2s.
33327 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33329 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
33330 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
33331 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
33332 vtst_u64): Rewrite using gcc vector extensions.
33334 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33336 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
33337 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
33339 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33341 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
33343 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
33345 * config/glibc-stdint.h (OPTION_MUSL): Define.
33346 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
33347 Change the definition based on OPTION_MUSL for 64 bit targets.
33348 * config/linux.h (OPTION_MUSL): Redefine.
33349 * config/alpha/linux.h (OPTION_MUSL): Redefine.
33350 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
33351 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
33353 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33354 Szabolcs Nagy <szabolcs.nagy@arm.com>
33356 * config.gcc (LIBC_MUSL): New tm_defines macro.
33357 * config/linux.h (OPTION_MUSL): Define.
33358 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
33359 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
33360 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33361 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33362 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33363 * config/linux.opt (mmusl): New option.
33364 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
33365 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33366 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33367 * configure: Regenerate.
33369 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
33370 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33373 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
33374 * config/i386/knetbsd-gnu64.h: New file.
33376 2015-05-08 Marek Polacek <polacek@redhat.com>
33379 * doc/invoke.texi: Document -Woverride-init-side-effects.
33381 2015-05-07 Marek Polacek <polacek@redhat.com>
33384 * doc/invoke.texi: Document -Wshift-negative-value.
33386 2015-05-06 Aditya Kumar <hiraditya@msn.com>
33388 * gcov-tool.c (do_merge): Refactore to remove int ret.
33389 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
33390 !type == FUNC to type != FUNC.
33391 * reload.h (struct target_reload): Changee to type of
33392 x_spill_indirect_levels from bool to unsigned char.
33394 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
33396 * rtl.h (always_void_p): New function.
33397 * gengenrtl.c (always_void_p): Likewise.
33398 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
33399 with code foo are always VOIDmode.
33400 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
33401 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
33402 compare-elim.c, config/aarch64/aarch64.c,
33403 config/aarch64/aarch64.md, config/alpha/alpha.c,
33404 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
33405 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
33406 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
33407 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33408 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
33409 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
33410 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
33411 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
33412 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
33413 config/ia64/vect.md, config/iq2000/iq2000.c,
33414 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
33415 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
33416 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
33417 config/mep/mep.c, config/microblaze/microblaze.c,
33418 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
33419 config/mn10300/mn10300.c, config/msp430/msp430.c,
33420 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
33421 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
33422 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
33423 config/rs6000/altivec.md, config/rs6000/rs6000.c,
33424 config/rs6000/rs6000.md, config/rs6000/vector.md,
33425 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
33426 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
33427 config/sh/sh.md, config/sh/sh_treg_combine.cc,
33428 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
33429 config/spu/spu.md, config/stormy16/stormy16.c,
33430 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
33431 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
33432 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
33433 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
33434 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
33435 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
33436 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
33437 var-tracking.c: Update calls accordingly.
33439 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
33442 PR middle-end/54303
33443 * varasm.c (function_mergeable_rodata_prefix): New function.
33444 (mergeable_string_section): Use it.
33445 (mergeable_constant_section): Use it.
33447 2015-05-07 Jeff Law <law@redhat.com>
33450 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33451 simplifier to narrow arithmetic.
33452 * generic-match-head.c: (types_match, single_use): New functions.
33453 * gimple-match-head.c: (types_match, single_use): New functions.
33455 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33457 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
33460 2015-05-07 Richard Biener <rguenther@suse.de>
33462 PR tree-optimization/66002
33463 * passes.def: Schedule another pass_merge_phi after ifcombine, right
33466 2015-05-07 Marek Polacek <polacek@redhat.com>
33467 Martin Uecker <uecker@eecs.berkeley.edu>
33469 * doc/invoke.texi: Document -fsanitize=bounds-strict.
33470 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
33471 into SANITIZE_NONDEFAULT.
33472 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
33474 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
33477 * config/alpha/alpha.c (alpha_override_options_after_change): New.
33478 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
33479 (alpha_override_options): Move align_loops, align_jumps and
33480 align_functions handling into alpha_override_options_after_change.
33482 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
33483 Chris Jones <chrisj@nvidia.com>
33484 Joshua Conner <jconner@nvidia.com>
33486 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
33487 linking of crtfastmath.o.
33488 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
33490 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
33492 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
33493 (cstore<mode>4_unsigned_imm): New expander.
33494 (cstore<mode>4): Remove empty constraint strings. Use the new
33497 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
33500 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
33503 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
33505 * config/aarch64/geniterators.sh: Use standard BRE in sed.
33507 2015-05-06 Alan Modra <amodra@gmail.com>
33510 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
33511 (UNSPEC_NOP): Define.
33512 (reload_vsx_from_gpr<mode>): Add missing DONE.
33513 (reload_gpr_from_vsx<mode>): Likewise.
33514 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
33515 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
33517 2015-05-06 Christian Bruel <christian.bruel@st.com>
33520 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
33521 align_jumps, align_functions into aarch64_override_options_after_change.
33523 2015-05-06 Richard Biener <rguenther@suse.de>
33525 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
33526 vect_transform_slp_perm_load to check if we support a permutation
33527 for basic-block vectorization.
33529 2015-05-06 Nick Clifton <nickc@redhat.com>
33531 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
33532 used, even if it is not being used as a frame pointer.
33534 2015-05-05 Jason Merrill <jason@redhat.com>
33536 * dwarf2out.c (gen_member_die): Don't emit anything for an
33537 anonymous class constructor.
33539 2015-05-05 David Malcolm <dmalcolm@redhat.com>
33541 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
33542 that it reflects the block structure.
33543 (afdo_propagate_edge): Likewise.
33544 (afdo_calculate_branch_prob): Likewise.
33545 (afdo_annotate_cfg): Likewise.
33546 * cfgcleanup.c (equal_different_set_p): Likewise.
33547 (try_crossjump_to_edge): Likewise.
33548 * cgraph.c (cgraph_node::verify_node): Likewise.
33549 * cgraphunit.c (expand_all_functions): Likewise.
33550 * config/i386/i386.c (ix86_expand_copysign): Likewise.
33551 (exact_dependency_1): Likewise.
33552 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
33553 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
33554 * gensupport.c (process_define_subst): Likewise.
33555 * lto-wrapper.c (merge_and_complain): Likewise.
33556 * tree-if-conv.c (if_convertible_bb_p): Likewise.
33557 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
33558 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
33559 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
33560 * tree-vect-loop.c (vectorizable_reduction): Likewise.
33561 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
33562 * tree-vect-stmts.c (vectorizable_shift): Likewise.
33563 * tree-vrp.c (vrp_finalize): Likewise.
33564 * tree.c (variably_modified_type_p): Likewise.
33566 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
33568 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
33569 on darwin12 and later.
33570 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
33571 file to pass -rdynamic on darwin12 and later.
33572 * config/darwin.opt (rdynamic): Add.
33574 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33576 * doc/extend.texi (C Extensions): Update menu for moved Variable
33577 Attributes and Type Attributes sections.
33579 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33582 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
33583 if rep_8byte stringop strategy was specified for 32-bit target.
33585 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
33588 * config/i386/i386.md (vector convert to float spltiter): Check for
33589 xmm16+, when splitting scalar float conversion.
33590 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
33592 2015-05-05 Nick Clifton <nickc@redhat.com>
33594 * config/msp430/msp430-opts.h (enum msp430_regions): New.
33595 * config/msp430/msp430.c (msp430_override_options): Complain if
33596 -mcode-region or -mdata-region is used on a non MSP430X.
33597 (msp430_section_attr): New function. Checks lower, upper and
33599 (msp430_attribute_table): Add lower, upper and either.
33600 (gen_prefix): New function. Generates a prefix for a section
33602 (msp430_select_section): New function - handles the choice of
33603 section for an object. Takes into account memory region
33604 attributes and options.
33605 (msp430_function_section): Use gen_prefix.
33606 (TARGET_SECTION_TYPE_FLAGS): Define.
33607 (msp430_section_type_flags): New function.
33608 (TARGET_ASM_UNIQUE_SECTION): Define.
33609 (msp430_unique_section): New function.
33610 (msp430_output_aligned_decl_common): New function.
33611 (msp430_do_not_relax_short_jumps): New function.
33612 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
33614 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
33615 * config/msp430/msp430-protos.h
33616 (msp430_do_not_relax_short_jumps): New prototype.
33617 (msp430_output_aligned_decl_common): New prototype.
33618 * config/msp430/msp430.md (length): New attribute.
33619 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
33620 then use a long code sequence for short jumps.
33621 * config/msp430/msp430.opt (mcode-region): New.
33622 (mdata-region): New.
33623 * doc/invoke.texi: Document new options.
33624 * doc/extend.texi: Document new attributes.
33626 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
33628 * config/aarch64-protos.h (struct cpu_branch_cost): New.
33629 (tune_params): Add field branch_costs.
33630 (aarch64_branch_cost): Declare.
33631 * config/aarch64.c (generic_branch_cost): New.
33632 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
33633 (cortexa53_tunings): Likewise.
33634 (cortexa57_tunings): Likewise.
33635 (thunderx_tunings): Likewise.
33636 (xgene1_tunings): Likewise.
33637 (aarch64_branch_cost): Define.
33638 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
33640 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33642 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
33643 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
33644 * config/i386/i386.md: Ditto.
33645 * config/i386/winnt.c: Ditto.
33647 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
33649 * doc/extend.texi (__atomic Builtins): Move implementation details
33650 to the end of the description, rewrite opening paragraphs, state
33651 difference with __sync builtins, state C11/C++11 assumptions,
33652 weaken itemized descriptions, add explanation of memory model
33653 behaviour, expand description of compare-exchange, simplify text.
33655 2015-05-05 Renlin Li <renlin.li@arm.com>
33657 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
33659 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
33661 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
33662 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33663 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
33664 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
33665 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
33666 * configure: Regenerate.
33667 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
33668 * doc/install.texi (aarch64*-*-*): Document new
33669 --enable-fix-cortex-a53-843419 option.
33670 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
33671 and -mno-fix-cortex-a53-843419 options.
33673 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33676 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
33678 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
33680 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
33681 fix overactive TYPE_MIN_VALUE check and add FIXME for type
33682 compatibility problems.
33684 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
33686 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
33688 (cbranchsi4_reg): New.
33689 * config/microblaze/microblaze.c
33690 (microblaze_expand_conditional_branch_reg): New.
33691 * config/microblaze/microblaze-protos.h
33692 (microblaze_expand_conditional_branch_reg): New prototype.
33694 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
33696 * config/microblaze/microblaze.md (peephole2): New.
33698 2015-05-04 Jeff Law <law@redhat.com>
33701 2015-05-04 Jeff Law <law@redhat.com>
33703 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33704 simplifier to narrow arithmetic.
33705 * generic-match-head.c: (types_match, single_use): New functions.
33706 * gimple-match-head.c: (types_match, single_use): New functions.
33708 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
33711 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
33712 (split_branches): Likewise.
33714 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
33716 * common.opt (fdelete-null-pointer-checks): Init to -1.
33717 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
33718 override flag_delete_null_pointer_checks default.
33719 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
33720 behavior re address zero. Better document target-specific behavior.
33721 (-fisolate-errneous-paths-dereference): Mention relationship to
33722 -fdelete-null-pointer-checks.
33724 2015-05-04 Jakub Jelinek <jakub@redhat.com>
33726 PR tree-optimization/65984
33727 * ubsan.c: Include tree-cfg.h.
33728 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
33729 stmt_could_throw_p test, rename can_throw variable to ends_bb.
33731 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
33733 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
33734 to CONST_DOUBLE_P predicate.
33735 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
33736 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
33737 allow only operands that satisfy standard_sse_constant_p predicate.
33738 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
33739 to CONST_DOUBLE_P predicate.
33741 2015-05-04 Jeff Law <law@redhat.com>
33743 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33744 simplifier to narrow arithmetic.
33745 * generic-match-head.c: (types_match, single_use): New functions.
33746 * gimple-match-head.c: (types_match, single_use): New functions.
33748 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
33750 * config/arm/arm.c: Restore bootstrap.
33752 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
33754 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
33755 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
33756 as CONST_WIDE_INT, not CONST_DOUBLE.
33757 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
33758 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
33759 (ix86_find_base_term): Do not check for CONST_DOUBLE.
33760 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
33761 (ix86_build_signbit_mask): Rewrite using wide ints.
33762 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
33763 (ix86_rtx_costs): Handle CONST_WIDE_INT.
33764 (find_constant): Ditto.
33765 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
33766 using gen_int_mode.
33767 * config/i386/predicates.md (x86_64_immediate_operand)
33768 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33769 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
33770 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
33771 (const0_operand): Also match const_wide_int.
33772 (constm1_operand): Ditto.
33773 (const1_operand): Ditto.
33775 2015-05-04 Richard Biener <rguenther@suse.de>
33777 PR tree-optimization/65965
33778 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
33779 store groups at gaps.
33781 2015-05-04 Richard Biener <rguenther@suse.de>
33783 PR tree-optimization/65935
33784 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
33785 then make sure to apply that swapping to the IL.
33787 2015-05-04 Jakub Jelinek <jakub@redhat.com>
33789 * Makefile.in (PATCHLEVEL_c): New variable.
33790 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
33791 expand the same way as if DEVPHASE_c was non-empty.
33793 2015-05-04 Kai Tietz <ktietz@redhat.com>
33796 * lto-wrapper.c (run_gcc): Open filename
33799 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
33801 * doc/extend.texi (Variable Attributes, Type Attributes): Move
33802 sections up in file, to immediately after the Function Attributes
33805 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
33807 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
33809 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33811 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
33812 (insert_partition_copy_on_edge): Adjust.
33813 (insert_rtx_to_part_on_edge): Likewise.
33814 (insert_part_to_rtx_on_edge): Likewise.
33816 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33818 * function.c (set_return_jump_label): Change type of argument to
33820 * function.h (set_return_jump_label): Adjust.
33822 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33824 * reload.h (struct reg_equivs_t): Change type of init to
33826 * ira.c (fix_reg_equiv_init): Adjust.
33827 * reload1.c (eliminate_regs_1): Likewise.
33828 (init_eliminable_invariants): Likewise.
33830 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33832 * cselib.c (fp_setter_insn): Take a rtx_insn *.
33833 * cselib.h (fp_setter_insn): Adjust.
33835 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33837 * recog.c (struct validate_replace_src_data): Change type of
33838 insn field to rtx_insn *.
33839 (validate_replace_src_group): Change type of argument to rtx_insn *.
33840 * recog.h (validate_replace_src_group): Adjust.
33842 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33844 * haifa-sched.c: Change the type of some variables to rtx_insn *.
33845 * sched-deps.c: Likewise.
33846 * sched-int.h: Likewise.
33847 * sched-rgn.c: Likewise.
33848 * sel-sched.c: Likewise.
33850 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33853 * config/i386/i386.c: Change the type of some arguments to
33855 * config/arm/arm.c: Likewise.
33857 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33859 * lra-constraints.c: Change type of some arguments to rtx_insn *.
33861 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33863 * regcprop.c (kill_autoinc_value): Change type of argument to
33866 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33868 * genrecog.c (print_subroutine): Adjust.
33869 * recog.c (get_bool_attr_mask_uncached): Likewise.
33870 * recog.h (struct recog_data_d): Change the type of insn to
33873 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33875 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
33877 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33879 * df-problems.c (df_set_note): Change type of argument to
33882 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33884 * builtins.c (expand_builtin_trap): Change type of local
33885 variable to rtx_insn *.
33886 (add_sched_insns_for_speculation): Likewise.
33887 (ix86_emit_save_regs): Likewise.
33888 (get_scratch_register_on_entry): Likewise.
33889 (ix86_emit_restore_reg_using_pop): Likewise.
33890 (ix86_emit_leave): Likewise.
33891 (ix86_emit_restore_regs_using_mov): Likewise.
33892 (ix86_expand_epilogue): Likewise.
33894 (rl78_alloc_physical_registers_umul): Likewise.
33895 * cselib.c (discard_useless_locs): Likewise.
33896 (cselib_invalidate_regno): Likewise.
33897 (cselib_invalidate_mem): Likewise.
33898 * function.c (expand_function_start): Likewise.
33899 (emit_use_return_register_into_block): Likewise.
33900 * gcse.c: Likewise.
33901 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
33902 * ifcvt.c (noce_get_alt_condition): Likewise.
33903 * loop-doloop.c (doloop_condition_get): Likewise.
33904 * lra-constraints.c (inherit_in_ebb): Likewise.
33905 * modulo-sched.c (sms_schedule_by_order): Likewise.
33906 * recog.c (next_insn_tests_no_inequality): Likewise.
33907 * reorg.c (emit_delay_sequence): Likewise.
33908 (update_reg_dead_notes): Likewise.
33909 (fix_reg_dead_note): Likewise.
33910 (fill_slots_from_thread): Likewise.
33911 (delete_computation): Likewise.
33913 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
33915 * doc/extend.texi (Variable Attributes): Add menu and proper
33916 @nodes to subsections. Move Microsoft Windows attributes to
33917 their own subsection.
33918 (Type Attributes): Reorganize introduction to remove duplicate
33919 list of attributes. Add menu and proper @nodes to subsections.
33920 Alphabetize the main table of common attributes.
33922 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
33924 * match.pd: New simplification patterns.
33925 (x + (x & 1)) -> ((x + 1) & ~1)
33926 (x & ~(x & y)) -> ((x & ~y))
33927 (x | ~(x | y)) -> ((x | ~y))
33929 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33931 * target.def (attribute_table): Mention that struct attribute_spec
33932 is defined in tree-core.h rather than tree.h
33933 * doc/tm.texi: Regenerate.
33935 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
33937 * genrecog.c (test): Rename to rtx_test. Update rest of file
33940 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
33942 PR translation/65959
33943 * params.h (DEFPARAM): Rename msgid to nocmsgid.
33945 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33947 * config/aarch64/aarch64-protos.h (tune_params):
33948 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
33949 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
33950 Return value depending on target.
33951 (generic_tunings): Initialize new target settings.
33952 (cortexa53_tunings): Likewise.
33953 (cortexa57_tunings): Likewise.
33954 (thunderx_tunings): Likewise.
33955 (xgene1_tunings): Likewise.
33957 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33959 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
33960 Make Cortex-A53 shift costs more accurate.
33962 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33964 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
33967 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33969 * config/aarch64/aarch64.c (aarch64_rtx_costs):
33970 Calculate cost of op0 and op1 in PLUS and MINUS cases.
33972 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33974 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33975 Add cost of op0 in the compare-with-fpzero case.
33977 2015-04-30 David Malcolm <dmalcolm@redhat.com>
33979 * builtins.c (fold_builtin_1): Remove spurious second
33981 * cgraph.h (symtab_node::get_availability): Likewise.
33982 * opts.c (common_handle_option): Remove spurious second semicolon.
33983 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
33984 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
33986 2015-04-30 Caroline Tice <cmtice@google.com>
33988 PR gcov-profile/65929
33989 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
33990 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
33991 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
33992 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
33993 * doc/tm.texi: Regenerate.
33994 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
33995 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
33996 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
33997 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
33999 2015-04-30 Marek Polacek <polacek@redhat.com>
34001 * varasm.c (handle_cache_entry): Fix logic.
34003 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34005 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
34006 (*extrsi5_insn_uxtw_alt): Likewise.
34007 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
34008 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
34011 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34013 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
34016 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34018 * config/aarch64/aarch64.md
34019 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
34020 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
34021 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
34022 appropriately. Handle alternative EON form.
34024 2015-04-30 Renlin Li <renlin.li@arm.com>
34026 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
34027 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
34029 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
34032 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
34033 -fstrict-aliasing boundaries.
34035 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34037 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
34038 and [SU]MNEGL patterns.
34040 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34042 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
34043 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
34044 combined arithmetic-shift ops. Properly handle all shift and extend
34045 operations that can occur in combination with PLUS/MINUS.
34046 Rename maybe_fma to compound_p.
34047 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
34048 arithmetic and shift operations.
34050 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34052 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
34053 rather than arith_shift cost when costing ADD/MINUS of an
34056 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
34059 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
34062 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
34064 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
34065 are for the same position.
34067 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
34069 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
34071 (vectorize_loops): Use it.
34073 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34075 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
34076 for aggregate types.
34077 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
34078 type to be non_ODR.
34079 * tree.c (need_assembler_name_p): Compute mangled name for
34080 non-fundamental types and integer types.
34082 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
34084 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
34086 * expr.c (expand_expr_real_2): Likewise.
34088 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34090 * tree.c (build_common_builtin_nodes): Do not build
34091 __builtin_alloca_with_align as equivalent of library alloca.
34093 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34095 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
34096 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
34098 * tree.c: Include print-tree.h and ipa-utils.h
34099 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
34100 (free_lang_data_in_cgraph): Call verify_type.
34101 (verify_type_variant): New function.
34102 (verify_type): New function.
34103 * tree.h (verify_type): Declare.
34105 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
34107 * config/mips/mips-cpus.def: (mips4): Change default processor
34108 from PROCESSOR_R8000 to PROCESSOR_R10000.
34110 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
34112 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
34113 la/jalr instead of jal.
34115 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
34118 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
34119 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
34120 (setcc+movzbl peephole2): Check also clobbered reg.
34121 (setcc+andl peephole2): Ditto.
34123 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34126 * config/nvptx/mkoffload.c (target_ilp32): New variable.
34127 (main): Set it depending on "-foffload-abi=[...]".
34128 (compile_native, main): Use it to pass "-m32" or "-m64" to the
34131 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34134 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
34135 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
34136 Flip lane index back at assembly time for bigendian.
34138 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34140 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
34141 * gimplify.c (gimplify_omp_workshare): Use it.
34143 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34145 * Makefile.in (build/genrecog.o): Depend on inchash.h.
34146 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
34148 * genrecog.c: Rewrite most of the code except for the third page.
34150 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34152 * inchash.h, inchash.c: Include bconfig.h for build objects.
34153 * Makefile.in (build/inchash.o): New rule.
34155 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
34158 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
34159 number in type attribute expression.
34161 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34163 * loop-iv.c (canon_condition): Generalize to all types of integer
34166 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
34168 * gimple-walk.c: Prune duplicate or unneeded includes.
34169 (walk_gimple_asm): Only call parse_input_constraint or
34170 parse_output_constraint if their findings are used.
34171 Honour parse_input_constraint and parse_output_constraint
34174 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34176 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
34178 2015-04-29 Tom de Vries <tom@codesourcery.com>
34180 PR tree-optimization/65893
34181 * passes.def (pass_all_optimizations): Move pass_stdarg to after
34184 2015-04-29 Richard Biener <rguenther@suse.de>
34186 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
34187 compute GROUP_SIZE for basic-block SLP.
34188 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
34189 take into account gaps.
34190 (vect_get_mask_element): Properly reject references to previous
34192 (vect_transform_slp_perm_load): Likewise.
34194 2015-04-29 Christian Bruel <christian.bruel@st.com>
34197 * config/i386/i386.c (ix86_default_align): New function.
34198 (ix86_override_options_after_change): Call ix86_default_align.
34199 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
34200 (ix86_override_options_after_change): New function.
34202 2015-04-28 Jeff Law <law@redhat.com>
34204 * tree-ssa-dom.c (record_equality); Fix comment typos.
34206 2015-04-28 Tom de Vries <tom@codesourcery.com>
34208 PR tree-optimization/65887
34209 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
34211 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
34213 * doc/extend.texi (Declaring Attributes of Functions): Split into
34214 subsections by target. Alphabetize the table of common attributes.
34215 Rewrite some of the introductory text to reflect the new structure.
34216 Update some cross-references to point to the new subsections.
34217 (Attribute Syntax): Put paragraph about "__" naming here. Remove
34218 duplicate copies in the discussion of function, label, and type
34221 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
34224 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
34226 2015-04-28 Jason Merrill <jason@redhat.com>
34229 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
34230 (finalize_type_size): Respect TYPE_USER_ALIGN.
34231 (layout_type) [ARRAY_TYPE]: Likewise.
34233 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
34235 * config/arm/arm.md (*arm_movt): Fix type attribute.
34236 (*cmpsi_shiftsi): Likewise.
34237 (*cmpsi_shiftsi_swp): Likewise.
34238 (*movsicc_insn): Likewise.
34239 (*cond_move): Likewise.
34240 (*if_plus_move): Likewise.
34241 (*if_move_plus): Likewise.
34242 (*if_arith_move): Likewise.
34243 (*if_move_arith): Likewise.
34244 (*if_shift_move): Likewise.
34245 (*if_move_shift): Likewise.
34246 (*arm_movtas_ze): Likewise.
34247 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
34248 redundancy and type attribute.
34249 (*thumb2_movsi_insn): Fix type attribute.
34250 (*thumb2_addsi_short): Likewise.
34251 (thumb2_addsi3_compare0): Likewise.
34252 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
34253 attributes accordingly.
34255 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
34258 * function.c (pad_to_arg_alignment): Add parentheses.
34260 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
34262 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
34263 libgcc/config/frv/elf-lib.h.
34265 2015-04-28 Tom de Vries <tom@codesourcery.com>
34267 * tree-call-cdce.c: Fix example in header comment.
34269 2015-04-28 Richard Biener <rguenther@suse.de>
34271 PR tree-optimization/62283
34272 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
34273 fails fatally and we are vectorizing a basic-block simply
34274 cause the child to be constructed piecewise.
34275 (vect_analyze_slp_cost_1): Adjust.
34276 (vect_detect_hybrid_slp_stmts): Likewise.
34277 (vect_bb_slp_scalar_cost): Likewise.
34278 (vect_get_constant_vectors): For piecewise constructed
34279 constants place them after the last def.
34280 (vect_get_slp_defs): Adjust.
34281 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
34282 externals for basic-block vectorization.
34284 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34287 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
34289 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
34290 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
34291 (AARCH64_TUNE_FMA_STEERING): Likewise.
34292 * config/aarch64/aarch64-cores.def: Set
34293 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
34294 FMUL/FMADD instructions.
34295 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
34296 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
34297 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
34298 * config/aarch64/cortex-a57-fma-steering.h: New file.
34299 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
34301 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
34303 * gensupport.c (std_preds): Add missing codes to address_operand entry.
34305 2015-04-28 Richard Biener <rguenther@suse.de>
34307 PR tree-optimization/65851
34308 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
34309 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
34310 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
34311 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
34312 (ccp_visit_phi_node): Adjust.
34313 (evaluate_stmt): For simplifications to SSA names return its
34314 lattice value if that isn't VARYING. Return immediately when
34315 simplified to a constant.
34316 (visit_assignment): Adjust.
34317 (ccp_visit_stmt): Likewise.
34319 2015-04-28 Tom de Vries <tom@codesourcery.com>
34321 PR tree-optimization/65818
34322 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
34325 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34327 * calls.c (save_fixed_argument_area): Don't check
34328 ARGS_GROW_DOWNWARD with the preprocessor.
34329 (restore_fixed_argument_area): Likewise.
34330 (mem_overlaps_already_clobbered_arg_p): Likewise.
34331 (check_sibcall_argument_overlap): Likewise.
34332 (expand_call): Likewise.
34333 (emit_library_call_value_1): Likewise.
34334 (store_one_arg): Likewise.
34335 * function.c (assign_parms): Likewise.
34336 (locate_and_pad_parm): Likewise.
34337 (pad_to_arg_alignment): Likewise.
34338 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34340 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34342 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
34343 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
34344 * calls.c (save_fixed_argument_area): Don't chekc if
34345 ARGS_GROW_DOWNWARD is defined.
34346 (restore_fixed_argument_area): Likewise.
34347 (mem_overlaps_already_clobbered_arg_p): Likewise.
34348 (check_sibcall_argument_overlap): Likewise.
34349 (expand_call): Likewise.
34350 (emit_library_call_value_1): Likewise.
34351 (store_one_arg): Likewise.
34352 * function.c (assign_parms): Likewise.
34353 (locate_and_pad_parm): Likewise.
34354 (pad_to_arg_alignment): Likewise.
34355 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34357 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34359 * defaults.h (gen_epilogue): New function.
34360 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
34362 * cfgrtl.c (cfg_layout_finalize): Likewise.
34363 * df-scan.c: Likewise.
34364 * function.c (thread_prologue_and_epilogue_insns): Likewise.
34365 (reposition_prologue_and_epilogue_notes): Likewise.
34366 * reorg.c (find_end_label): Likewise.
34367 * toplev.c: Likewise.
34369 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34371 * bb-reorder.c (HAVE_return): Don't check if its undefined.
34372 * defaults.h (gen_simple_return): New function.
34373 (gen_simple_return): Likewise.
34374 (HAVE_return): Add default definition to false.
34375 (HAVE_simple_return): Likewise.
34376 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
34377 HAVE_return and HAVE_simple_return are defined.
34378 * function.c (gen_return_pattern): Likewise.
34379 (convert_jumps_to_returns): Likewise.
34380 (thread_prologue_and_epilogue_insns): Likewise.
34381 * reorg.c (find_end_label): Likewise.
34382 (dbr_schedule): Likewise.
34383 * shrink-wrap.c: Likewise.
34384 * shrink-wrap.h: Likewise.
34386 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34388 * defaults.h (EPILOGUE_USES): Add default definition of false.
34389 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
34390 * resource.c (init_resource_info): Likewise.
34392 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34394 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
34396 * dwarf2out.c (field_byte_offset): REmove check if
34397 PCC_BITFIELD_TYPE_MATTERS is defined.
34398 * stor-layout.c (layout_decl): Likewise.
34399 (update_alignment_for_field): Likewise.
34400 (place_field): Likewise.
34402 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34404 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
34406 * regrename.c (check_new_reg_p): Remove check if
34407 HARD_REGNO_RENAME_OK is defined.
34408 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
34410 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34412 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
34413 * cse.c (fold_rtx): Likewise.
34414 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
34415 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
34416 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
34417 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
34418 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
34419 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
34420 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
34421 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
34422 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
34423 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
34425 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
34426 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
34427 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
34428 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
34429 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
34430 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
34431 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
34432 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
34433 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
34434 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
34435 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
34436 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
34437 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
34438 * doc/tm.texi: Regenerate.
34439 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
34440 either true or false.
34442 2015-04-27 Jeff Law <law@redhat.com>
34444 PR tree-optimization/65217
34445 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
34446 of them has a single use, make sure it is the LHS of the implied
34449 2015-04-28 Alan Modra <amodra@gmail.com>
34452 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
34453 (offsettable_ok_by_alignment): Use minimum of decl and toc
34454 pointer alignment. Replace dead code with assertion.
34455 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
34456 case if size exceeds toc pointer alignment.
34457 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
34458 (rs6000_emit_move): Likewise.
34459 * configure.ac: Add linker toc pointer alignment check.
34460 * configure: Regenerate.
34461 * config.in: Regenerate.
34463 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
34465 * config.gcc: Add h8300-*-linux.
34466 * config/h8300/linux.h: New.
34467 * config/h8300/t-linux: New.
34468 * config/h8300/h8300.c (h8300_option_override): Normal mode
34469 is not supported for h8300-*-linux.
34470 (h8300_file_start): Target priority change.
34471 (get_shift_alg): Likewise.
34472 (h8300_shift_need_scratch_p): Likewise.
34473 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
34474 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
34476 2015-04-27 Caroline Tice <cmtice@google.com>
34478 * final.c (final_scan_insn): Output cold_function_name as function
34480 * varasm.c (cold_function_name): Make global.
34481 (assemble_start_function): Re-set cold_function_name.
34482 (assemble_end_function): Output cold partition size.
34483 * varasm.h (cold_function_name): Declare global.
34485 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
34487 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
34488 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
34490 (*movxi_internal_avx512f): Ditto.
34491 (define_split): Check for xmm16+, when splitting scalar float_extend.
34492 (*extendsfdf2_mixed): Use "v" constraint.
34493 (define_split): Check for xmm16+, when splitting scalar float_truncate.
34494 (*truncdfsf_fast_sse): Use "v" constraint.
34495 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
34496 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
34497 (define_peephole2): Check for xmm16+, when converting scalar
34499 (define_peephole2): Check for xmm16+, when converting scalar
34501 (*fop_<mode>_comm_mixed): Use "v" constraint.
34502 (*fop_<mode>_comm_sse): Ditto.
34503 (*fop_<mode>_1_mixed): Ditto.
34504 (*sqrt<mode>2_sse): Ditto.
34505 (*ieee_s<ieee_maxmin><mode>3): Ditto.
34507 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34509 * combine.c (simplify_if_then_else): Use std::swap instead
34510 of manually swapping.
34511 (known_cond): Likewise.
34512 (simplify_comparison): Likewise.
34514 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
34517 * config/rs6000/htm.md: Remove all define_expands.
34518 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
34519 UNSPECV_HTM_TABORTWCI): Remove.
34520 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
34521 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
34522 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
34523 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
34524 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
34525 tabortwci_internal): Remove define_insns.
34526 (tabort<wd>c, tabort<wd>ci): New define_insns.
34527 (tabort): Use gpc_reg_operand.
34528 (tcheck): Remove operand.
34529 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
34530 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
34532 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
34533 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
34534 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
34535 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
34536 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
34537 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
34538 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
34539 (tcheck): Remove builtin argument.
34540 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
34542 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
34543 tabortdc and tabortdci builtins when not in 64-bit mode.
34544 Modify code to handle the loss of the HTM define_expands.
34545 Emit code to copy the CR register to TARGET.
34546 (htm_init_builtins): Modify code to handle the loss of the HTM
34548 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
34549 (RS6000_BTC_64BIT): Likewise.
34550 (RS6000_BTC_CR): New macro.
34551 * doc/extend.texi: Update documentation for htm builtins.
34553 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34555 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
34556 of manually swapping.
34557 (simplify_associative_operation): Likewise.
34558 (simplify_binary_operation): Likewise.
34559 (simplify_plus_minus): Likewise.
34560 (simplify_relational_operation): Likewise.
34561 (simplify_ternary_operation): Likewise.
34563 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34565 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
34566 (xs_hi_nonmemory_operand): Remove error.
34567 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
34568 general_operand rather than xs_hi_general_operand.
34570 2015-04-27 Richard Biener <rguenther@suse.de>
34572 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
34573 (record_equivalences_from_stmt): Valueize rhs.
34574 (record_equality): Canonicalize x and y order via
34575 tree_swap_operands_p. Do not swap operands for same loop depth.
34577 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
34581 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
34582 Add hint how to use own spec file.
34584 2015-04-27 Jakub Jelinek <jakub@redhat.com>
34586 PR tree-optimization/65875
34587 * tree-vrp.c (update_value_range): If in is_new case setting
34588 old_vr to VR_VARYING, also set new_vr to it. Remove
34589 old_vr->type == VR_VARYING test.
34590 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
34591 SSA_PROP_INTERESTING if update_value_range returned true,
34592 but new range is VR_VARYING.
34594 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
34596 * combine.c (sign_extend_short_imm): New.
34597 (set_nonzero_bits_and_sign_copies): Use above new function for sign
34598 extension of src short immediate.
34599 (reg_nonzero_bits_for_combine): Likewise for tem.
34601 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
34603 * stor-layout.c (self_referential_component_ref_p): New predicate.
34604 (copy_self_referential_tree_r): Use it.
34605 (self_referential_size): Punt for simple operations directly involving
34606 self-referential component references.
34607 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
34609 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
34611 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
34613 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34615 * vec.h (vec): Make splice arguments const. Update definitions
34618 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
34620 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
34623 2015-04-26 Tom de Vries <tom@codesourcery.com>
34625 PR tree-optimization/65826
34626 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
34628 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
34630 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
34631 (*madd3<mode>): Ditto.
34632 (*msub4<mode>): Ditto.
34633 (*msub3<mode>): Ditto.
34634 (*nmadd4<mode>): Ditto.
34635 (*nmadd3<mode>): Ditto.
34636 (*nmadd4<mode>_fastmath): Ditto.
34637 (*nmadd3<mode>_fastmath): Ditto.
34638 (*nmsub4<mode>): Ditto.
34639 (*nmsub3<mode>): Ditto.
34640 (*nmsub4<mode>_fastmath): Ditto.
34641 (*nmsub3<mode>_fastmath): Ditto.
34643 2015-04-24 Jason Merrill <jason@redhat.com>
34646 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
34647 down when building TYPE_CANONICAL.
34648 (build_pointer_type_for_mode): Likewise.
34650 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
34652 * genrecog.c (validate_pattern): Check matching constraint refers
34653 to a lower numbered operand.
34655 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
34658 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
34659 save to independent variables use the Save attribute. This will
34660 allow these options to be modified with the #pragma/attribute
34662 (-mallow-movmisalign): Likewise.
34663 (-mallow-df-permute): Likewise.
34664 (-msched-groups): Likewise.
34665 (-malways-hint): Likewise.
34666 (-malign-branch-targets): Likewise.
34667 (-mvectorize-builtins): Likewise.
34668 (-msave-toc-indirect): Likewise.
34670 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
34671 can be set via the #pragma/attribute target support.
34672 (rs6000_opt_vars): Likewise.
34673 (rs6000_inner_target_options): If VSX was set, also set
34674 -mno-avoid-indexed-addresses.
34676 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34678 * config/arm/iterators.md (shiftable_ops): Rename to...
34679 (SHIFTABLE_OPS): ... This. Update use in comments.
34680 (ior_xor): Rename to...
34681 (IOR_XOR): ... This.
34682 (vqh_ops): Rename to...
34683 (VQH_OPS): ... This.
34684 (vqhs_ops): Rename to...
34685 (VQHS_OPS): ... This.
34686 (rshifts): Rename to...
34687 (RSHIFTS): ... This.
34688 (returns): Rename to...
34689 (RETURNS): ... This.
34690 * config/arm/arm.md: Update uses of the above.
34691 * config/arm/neon.md: Likewise.
34693 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34695 * config.host (case ${host}): Add aarch64*-*-linux case.
34696 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
34697 fields to all the cores.
34698 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
34699 Add MCPU_MTUNE_NATIVE_SPECS.
34700 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
34701 field to all extensions.
34702 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
34703 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
34704 Adjust definition of AARCH64_OPT_EXTENSION.
34705 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
34706 (MCPU_MTUNE_NATIVE_SPECS): Define.
34707 * config/aarch64/driver-aarch64.c: New file.
34708 * config/aarch64/x-arch64: New file.
34709 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
34712 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34713 Wei Mi <wmi@google.com>
34715 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
34716 * config/i386/i386.c (extract_base_offset_in_addr): New function.
34717 (ix86_operands_ok_for_move_multiple): Ditto.
34718 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
34719 (movlpd/movhpd to movupd peephole2): Ditto.
34721 2015-04-24 Marek Polacek <polacek@redhat.com>
34724 * input.h (from_macro_expansion_at): Define.
34727 * doc/invoke.texi: Update description of -Wlogical-op.
34729 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
34731 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
34732 ternary operator in fprintf and harmonize spacing.
34734 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34736 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
34737 Mark operand1 commutative.
34739 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
34741 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
34742 input operands in memory.
34743 (*vec_concatv2si_sse4_1): Ditto.
34744 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
34745 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
34747 (vec_extract_hi_v32hi): Ditto.
34748 (vec_extract_hi_v64hi): Ditto.
34749 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
34751 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
34752 Steven Bosscher <steven@gcc.gnu.org>
34754 PR rtl-optimization/34503
34755 * cprop.c (cprop_reg_p): New.
34756 (hash_scan_set): Use above function to check if register can be
34758 (find_avail_set): Return up to two sets, one whose source is a
34759 register and one whose source is a constant. Sets are returned in an
34760 array passed as parameter rather than as a return value.
34761 (cprop_insn): Use a do while loop rather than a goto. Try each of the
34762 sets returned by find_avail_set, starting with the one whose source is
34763 a constant. Use cprop_reg_p to check if register can be propagated.
34764 (do_local_cprop): Use cprop_reg_p to check if register can be
34766 (implicit_set_cond_p): Likewise.
34768 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34770 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
34771 (sem_function::equals): IGNORED_NODES parameter is now unused;
34772 update call of equals_private.
34773 (sem_function::equals_private): Do not call equals_wpa; skip
34774 gimple body matching if there is no body.
34775 (sem_function::init): Add logic to hash tthunk info.
34776 (sem_function::parse): Also parse thunks.
34777 * ipa-icf.h (equals_private): Update declaration.
34779 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34781 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
34782 asterisk from name so this can be generated directly.
34783 (*altivec_stvx_<mode>_internal): Likewise.
34784 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
34785 that this is never called during or after reload/lra.
34786 (rs6000_frame_related): Remove split_reg
34787 argument and logic that references it.
34788 (emit_frame_save): Remove last parameter from call to
34789 rs6000_frame_related.
34790 (rs6000_emit_prologue): Remove last parameter from eight calls to
34791 rs6000_frame_related. Force generation of stvx instruction for
34792 Altivec register saves. Remove split_reg handling, which is no
34794 (rs6000_emit_epilogue): Force generation of lvx instruction for
34795 Altivec register restores.
34797 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34799 * config/rs6000/rs6000.opt (mcrypto): Change option description to
34800 match category changes in ISA 2.07B.
34802 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34804 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
34806 (cmp_op, cmp_type): New code attributes.
34807 (NEON_VCMP, NEON_VACMP): New int iterators.
34808 (cmp_op_unsp): New int attribute.
34809 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
34810 (neon_vceq<mode>): Delete.
34811 (neon_vc<cmp_op><mode>_insn): New pattern.
34812 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
34813 (neon_vcgeu<mode>): Delete.
34814 (neon_vcle<mode>): Likewise.
34815 (neon_vclt<mode>: Likewise.
34816 (neon_vcage<mode>): Likewise.
34817 (neon_vcagt<mode>): Likewise.
34818 (neon_vca<cmp_op><mode>): New define_expand.
34819 (neon_vca<cmp_op><mode>_insn): New pattern.
34820 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
34822 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34824 * tree.h (attribute_value_equal): Declare.
34825 * tree.c (attribute_value_equal): Export.
34827 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34829 * ipa-icf.c (sem_item::compare_attributes): New function.
34830 (sem_item::compare_referenced_symbol_properties): Compare variable
34832 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
34833 (sem_function::param_used_p): New function.
34834 (sem_function::equals_wpa): Fix attribute comparsion; match
34835 parameter type codes; do not compare paremter flags when
34836 they are not used; compare edge flags; compare indirect calls.
34837 (sem_item::update_hash_by_addr_refs): Hash reference type.
34838 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
34839 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
34840 reference use type.
34841 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
34842 * ipa-icf.h (compare_attributes, param_used_p): Declare.
34844 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
34846 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
34848 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
34849 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
34850 (sem_item::compare_referenced_symbol_properties): New.
34851 (sem_item::hash_referenced_symbol_properties): New.
34852 (sem_item::compare_cgraph_references): Rename to ...
34853 (sem_item::compare_symbol_references): ... this one; use
34854 compare_referenced_symbol_properties.
34855 (sem_function::equals_wpa): Do not compare
34856 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
34857 DECL_IS_OPERATOR_NEW; compare pointer sizes.
34858 (sem_item::update_hash_by_addr_refs): Call
34859 hash_referenced_symbol_properties.
34860 (sem_item::update_hash_by_local_refs): Cleanup.
34861 (sem_function::merge): Do not mix up symbol properties.
34862 (sem_variable::equals_wpa): Use compare_symbol_references.
34863 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
34864 (sem_item::hash_referenced_symbol_properties): New.
34865 (sem_item::compare_symbol_references): New.
34866 (sem_item::compare_cgraph_references): Remove.
34868 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
34871 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
34872 Emit size of local.
34874 2015-04-23 Nick Clifton <nickc@redhat.com>
34876 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
34877 ATTRIBUTE_UNUSED to x parameter.
34878 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
34880 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34882 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
34883 TARGET_CRYPTO to TARGET_P8_VECTOR>
34884 (crypto_vpermxor_<mode>): Likewise.
34885 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
34886 (BU_CRYPTO_3A): Likewise.
34887 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
34888 (BU_CRYPTO_OVERLOAD_3A): New #define.
34889 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
34890 (VPMSUMH): Likewise.
34891 (VPMSUMW): Likewise.
34892 (VPMSUMD): Likewise.
34893 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
34894 (VPERMXOR_V4SI): Likewise.
34895 (VPERMXOR_V8HI): Likewise.
34896 (VPERMXOR_V16QI): Likewise.
34897 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
34898 BU_CRYPTO_OVERLOAD_2A.
34899 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
34900 BU_CRYPTO_OVERLOAD_3A.
34901 * config/rs6000/rs6000.opt (mcrypto): Change description of
34904 2015-04-23 Richard Biener <rguenther@suse.de>
34906 * passes.def: Remove copy propagation passes run directly after CCP.
34907 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
34909 (ccp_visit_phi_node): Rework to handle first executable edge
34912 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
34914 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34915 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34916 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34917 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
34918 (thumb_legimitimize_reload_address): Remove.
34919 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
34921 (thumb_legimitimize_reload_address): Remove.
34923 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34925 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
34927 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34929 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
34931 (store_multiple): Likewise.
34933 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34935 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
34936 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
34937 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
34938 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
34939 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
34940 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
34941 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
34942 Specify issue_rate value.
34943 (arm_issue_rate): Look up issue rate from tuning structs. Remove
34944 large switch statement.
34945 (arm_marvell_pj4_tune): New struct.
34946 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
34949 2015-04-23 Richard Biener <rguenther@suse.de>
34951 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
34952 (vect_find_last_store_in_slp_instance): Rename to ...
34953 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
34954 (vect_analyze_slp_cost_1): Use vector_load for constant defs
34955 and vec_construct for external defs when estimating prologue cost.
34956 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
34957 Compute costs here only when vectorizing loops.
34958 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
34959 have been determined.
34960 (vect_schedule_slp_instance): Simplify vectorized code placement
34961 and prepare for in-BB external defs.
34962 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
34963 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
34964 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
34966 (vect_model_load_cost): Likewise.
34967 (vectorizable_store): Instead add it here.
34968 (vectorizable_load): Likewise.
34969 (vect_is_simple_use): Dump def type textually.
34971 2015-04-23 Richard Biener <rguenther@suse.de>
34973 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
34974 * cfgloop.c (verify_loop_structure): Verify the root loop node.
34975 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
34976 instead of get_eh_region_from_lp_number.
34977 * loop-init.c (fix_loop_structure): If we removed a loop, reset
34980 2015-04-23 Anton Blanchard <anton@samba.org>
34982 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
34983 need for -mprofile-kernel to save LR to stack.
34985 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34987 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
34989 (insn_is_swappable_p): Return 1 for a convert from double to
34990 single precision when all of its uses are splats of BE element
34993 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
34995 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
34997 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35000 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
35001 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
35002 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
35004 (rs6000_builtin_mask_for_load): Return 0 for targets with
35005 efficient unaligned VSX accesses so that the vectorizer will use
35006 direct unaligned loads.
35007 (rs6000_builtin_support_vector_misalignment): Always return true
35008 for targets with efficient unaligned VSX accesses.
35009 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
35010 stores on targets with efficient unaligned VSX accesses is almost
35011 always the same as the cost of an aligned load or store, so model
35013 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
35014 unaligned vectors if we have efficient unaligned VSX accesses.
35015 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
35016 undocumented option.
35018 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35021 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
35023 * config.gcc (LIBC_MUSL): New tm_defines macro.
35024 * config/linux.h (OPTION_MUSL): Define.
35025 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
35026 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
35027 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
35029 * config/linux.opt (mmusl): New option.
35030 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
35031 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
35033 * configure: Regenerate.
35035 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
35037 * config.gcc (LIBC_MUSL): New tm_defines macro.
35038 * config/linux.h (OPTION_MUSL): Define.
35039 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
35040 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
35041 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
35043 * config/linux.opt (mmusl): New option.
35044 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
35045 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
35047 * configure: Regenerate.
35049 2015-04-22 Yury Gribov <y.gribov@samsung.com>
35051 * doc/invoke.texi (-fsanitize-sections): Update description.
35052 * asan.c (set_sanitized_sections): Parse incoming arg.
35053 (section_sanitized_p): Support wildcards.
35055 2015-04-22 Tom de Vries <tom@codesourcery.com>
35057 PR tree-optimization/65823
35058 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
35059 equality between ap_copy and ap.
35061 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35064 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
35066 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35069 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
35071 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35074 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
35075 remove already contained t-files.
35077 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35079 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
35080 Remove unneeded forward declarations.
35081 (suitable_for_tail_call_opt_p): Commentary typo fix.
35083 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35085 * varasm.c (emit_bss): Remove redundant guard.
35087 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35089 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
35091 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35093 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
35095 2015-04-22 Hale Wang <hale.wang@arm.com>
35096 Terry Guo <terry.guo@arm.com>
35098 PR rtl-optimization/64818
35099 * combine.c (can_combine_p): Don't combine user-specified
35100 register if it is in an asm input.
35102 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
35105 * passes.def (early_optimizations): Add pass_dse.
35107 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35109 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
35110 * reorg.c (redundant_insn): Remove ifdef
35111 INSN_REFERENCES_ARE_DELAYED.
35112 * resource.c (mark_referenced_resources): Likewise.
35114 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35116 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
35117 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
35118 * resource.c (mark_set_resources): Likewise.
35120 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35122 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
35123 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35124 (flow_find_head_matching_sequence): Likewise.
35125 (try_head_merge_bb): Likewise.
35126 * combine.c (can_combine_p): Likewise.
35127 (try_combine): Likewise.
35128 (distribute_notes): Likewise.
35129 * df-problems.c (can_move_insns_across): Likewise.
35130 * final.c (final): Likewise.
35131 * gcse.c (insert_insn_end_basic_block): Likewise.
35132 * ira.c (find_moveable_pseudos): Likewise.
35133 * reorg.c (try_merge_delay_insns): Likewise.
35134 (fill_simple_delay_slots): Likewise.
35135 (fill_slots_from_thread): Likewise.
35136 * sched-deps.c (sched_analyze_2): Likewise.
35138 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35140 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
35141 PIC_OFFSET_TABLE_REGNUM.
35143 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35145 * alias.c (init_alias_target): Remove ifdef
35146 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
35147 * df-scan.c (df_insn_refs_collect): Likewise.
35148 (df_get_regular_block_artificial_uses): Likewise.
35149 (df_get_eh_block_artificial_uses): Likewise.
35150 (df_get_entry_block_def_set): Likewise.
35151 (df_get_exit_block_use_set): Likewise.
35152 * emit-rtl.c (gen_rtx_REG): Likewise.
35153 * ira.c (ira_setup_eliminable_regset): Likewise.
35154 * reginfo.c (init_reg_sets_1): Likewise.
35155 * regrename.c (rename_chains): Likewise.
35156 * reload1.c (reload): Likewise.
35157 (eliminate_regs_in_insn): Likewise.
35158 * resource.c (mark_referenced_resources): Likewise.
35159 (init_resource_info): Likewise.
35161 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35163 * defaults.h (MASK_RETURN_ADDR): New definition.
35164 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35167 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35169 * defaults.h (RETURN_ADDR_OFFSET): New definition.
35170 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35171 RETURN_ADDR_OFFSET.
35172 (expand_builtin_frob_return_addr): Likewise.
35174 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35176 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
35177 (try_redirect_by_replacing_jump): Likewise.
35178 (rtl_tidy_fallthru_edge): Likewise.
35179 * combine.c (insn_a_feeds_b): Likewise.
35180 (find_split_point): Likewise.
35181 (simplify_set): Likewise.
35182 * cprop.c (cprop_jump): Likewise.
35183 * cse.c (cse_extended_basic_block): Likewise.
35184 * df-problems.c (can_move_insns_across): Likewise.
35185 * function.c (emit_use_return_register_into_block): Likewise.
35186 * haifa-sched.c (sched_init): Likewise.
35187 * ira.c (find_moveable_pseudos): Likewise.
35188 * loop-invariant.c (find_invariant_insn): Likewise.
35189 * lra-constraints.c (curr_insn_transform): Likewise.
35190 * postreload.c (reload_combine_recognize_const_pattern):
35192 * reload.c (find_reloads): Likewise.
35193 * reorg.c (delete_scheduled_jump): Likewise.
35194 (steal_delay_list_from_target): Likewise.
35195 (steal_delay_list_from_fallthrough): Likewise.
35196 (redundant_insn): Likewise.
35197 (fill_simple_delay_slots): Likewise.
35198 (fill_slots_from_thread): Likewise.
35199 (delete_computation): Likewise.
35200 * sched-rgn.c (add_branch_dependences): Likewise.
35202 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35204 * genconfig.c (main): Always define HAVE_cc0.
35205 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
35207 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35208 (flow_find_head_matching_sequence): Likewise.
35209 (try_head_merge_bb): Likewise.
35210 * cfgrtl.c (rtl_merge_blocks): Likewise.
35211 (try_redirect_by_replacing_jump): Likewise.
35212 (rtl_tidy_fallthru_edge): Likewise.
35213 * combine.c (do_SUBST_MODE): Likewise.
35214 (insn_a_feeds_b): Likewise.
35215 (combine_instructions): Likewise.
35216 (can_combine_p): Likewise.
35217 (try_combine): Likewise.
35218 (find_split_point): Likewise.
35220 (simplify_set): Likewise.
35221 (distribute_notes): Likewise.
35222 * cprop.c (cprop_jump): Likewise.
35223 * cse.c (cse_extended_basic_block): Likewise.
35224 * df-problems.c (can_move_insns_across): Likewise.
35225 * final.c (final): Likewise.
35226 (final_scan_insn): Likewise.
35227 * function.c (emit_use_return_register_into_block): Likewise.
35228 * gcse.c (insert_insn_end_basic_block): Likewise.
35229 * haifa-sched.c (sched_init): Likewise.
35230 * ira.c (find_moveable_pseudos): Likewise.
35231 * loop-invariant.c (find_invariant_insn): Likewise.
35232 * lra-constraints.c (curr_insn_transform): Likewise.
35233 * optabs.c (prepare_cmp_insn): Likewise.
35234 * postreload.c (reload_combine_recognize_const_pattern):
35236 * reload.c (find_reloads): Likewise.
35237 (find_reloads_address_1): Likewise.
35238 * reorg.c (delete_scheduled_jump): Likewise.
35239 (steal_delay_list_from_target): Likewise.
35240 (steal_delay_list_from_fallthrough): Likewise.
35241 (try_merge_delay_insns): Likewise.
35242 (redundant_insn): Likewise.
35243 (fill_simple_delay_slots): Likewise.
35244 (fill_slots_from_thread): Likewise.
35245 (delete_computation): Likewise.
35246 (relax_delay_slots): Likewise.
35247 * sched-deps.c (sched_analyze_2): Likewise.
35248 * sched-rgn.c (add_branch_dependences): Likewise.
35250 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35252 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
35253 that is trivially ded on non cc0 targets.
35254 (simplify_set): Likewise.
35255 (mark_used_regs_combine): Likewise.
35256 * cse.c (new_basic_block): Likewise.
35257 (fold_rtx): Likewise.
35258 (cse_insn): Likewise.
35259 (cse_extended_basic_block): Likewise.
35260 (set_live_p): Likewise.
35261 * rtlanal.c (canonicalize_condition): Likewise.
35262 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
35264 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35266 * conditions.h: Define macros even if HAVE_cc0 is undefined.
35267 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
35268 * final.c: Likewise.
35269 * jump.c: Likewise.
35270 * recog.c: Likewise.
35271 * recog.h: Declare functions even when HAVE_cc0 is undefined.
35272 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
35274 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35276 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
35277 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
35278 * builtins.c (expand_builtin): Remove check if
35279 EH_RETURN_DATA_REGNO is defined.
35280 * df-scan.c (df_bb_refs_collect): Likewise.
35281 (df_get_exit_block_use_set): Likewise.
35282 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
35283 * ira-lives.c (process_bb_node_lives): Likewise.
35284 * lra-lives.c (process_bb_lives): Likewise.
35286 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35288 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
35289 FIRST_PSEUDO_REG): New.
35290 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
35291 (ARG_POINTER_REGNUM): Define to ARGP_REG.
35292 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
35293 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
35294 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
35295 (FIRST_INT_REG): New.
35296 (LAST_INT_REG): New.
35297 (FIRST_*_REG): Define using *_REG.
35298 (LAST_*_REG): Ditto.
35299 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
35300 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
35301 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
35303 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35305 * expmed.c: (synth_mult): Only assume overlapping
35306 shift with previous steps in alg_sub_t_m2 case.
35308 2015-04-21 Richard Biener <rguenther@suse.de>
35310 PR tree-optimization/65650
35311 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
35312 transitions involving copies.
35313 (set_lattice_value): Adjust for copy lattice state.
35314 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
35315 if that doesn't dominate the merge point.
35316 (bit_value_unop): Adjust what we treat as varying mask.
35317 (bit_value_binop): Likewise.
35318 (bit_value_assume_aligned): Likewise.
35319 (evaluate_stmt): When we simplified to a SSA name record a copy
35320 instead of dropping to varying.
35321 (visit_assignment): Simplify.
35323 * gimple-match.h (gimple_simplify): Add another callback.
35324 * gimple-fold.c (fold_stmt_1): Adjust caller.
35325 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
35326 for the 2nd callback.
35327 * gimple-match-head.c (gimple_simplify): Add a callback that is
35328 used to valueize the stmt operands and use it that way.
35330 2015-04-21 Richard Biener <rguenther@suse.de>
35332 PR tree-optimization/65788
35333 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
35335 2015-04-21 Richard Biener <rguenther@suse.de>
35337 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
35338 vec_construct cost by vec_stmt_cost.
35340 2015-04-21 Richard Biener <rguenther@suse.de>
35342 * cfghooks.h (create_basic_block): Replace with two overloads
35343 for RTL and GIMPLE.
35344 (split_block): Likewise.
35345 * cfghooks.c (split_block): Rename to ...
35346 (split_block_1): ... this.
35347 (split_block): Add two type-safe overloads for RTL and GIMPLE.
35348 (split_block_after_labels): Call split_block_1.
35349 (create_basic_block): Rename to ...
35350 (create_basic_block_1): ... this.
35351 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
35352 (create_empty_bb): Call create_basic_block_1.
35353 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
35354 split_block_after_labels.
35355 * omp-low.c (expand_parallel_call): Likewise.
35356 (expand_omp_target): Likewise.
35357 (simd_clone_adjust): Likewise.
35358 * tree-chkp.c (chkp_get_entry_block): Likewise.
35359 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
35360 create_basic_block overload.
35361 (cgraph_node::expand_thunk): Likewise.
35362 * tree-cfg.c (make_blocks): Likewise.
35363 (handle_abnormal_edges): Likewise.
35364 * tree-inline.c (copy_bb): Likewise.
35366 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35368 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
35370 (*xor_one_cmplsidi3_ze): Likewise.
35372 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
35374 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
35375 use df_remove_problem rather than manually removing problems, leaving
35376 holes in df->problems_in_order[].
35378 2015-04-21 Tom de Vries <tom@codesourcery.com>
35380 PR tree-optimization/65802
35381 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
35383 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35385 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
35387 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
35388 at '.'. Assert that there's enough space for everything.
35390 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35392 PR tree-optimization/64950
35394 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
35397 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
35400 2015-04-20 Shiva Chen <shiva0217@gmail.com>
35402 PR rtl-optimization/64916
35403 * cfgcleanup.c (values_equal_p): New function.
35404 (can_replace_by): Use it.
35406 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
35409 * doc/invoke.texi ([-Wnarrowing]): Update.
35411 2015-04-20 Jeff Law <law@redhat.com>
35413 PR tree-optimization/65658
35414 * tree-ssa-threadupdate.c (redirection_block_p): Remove
35415 redundant test for GIMPLE_ASSIGN in last change.
35417 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
35419 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
35420 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
35421 (legitimize_tls_address): Ditto.
35422 (ix86_expand_move): Ditto.
35423 (ix86_expand_binary_operator): Remove reload_in_progress checks.
35424 (ix86_expand_unary_operator): Ditto.
35425 * config/i386/predicates.md (index_register_operand): Ditto.
35427 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
35429 * reorg.c (try_merge_delay_insns): Improve correctness checking
35430 for targets with multiple delay slots.
35432 2015-04-20 Jeff Law <law@redhat.com>
35434 PR tree-optimization/65658
35435 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
35438 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35440 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
35441 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
35444 2015-04-20 Jakub Jelinek <jakub@redhat.com>
35447 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
35449 2015-04-20 Richard Biener <rguenther@suse.de>
35451 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
35452 * gimple-fold.c (gimple_build_valueize): New function.
35453 (gimple_build): Always use gimple_build_valueize as valueize hook.
35455 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35458 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
35459 and overwrite variable parts if <= 1/2 the elements are variable.
35461 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
35463 PR rtl-optimization/65805
35464 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
35465 Don't use difference of offset and previous offset if
35466 update_sp_offset is non-zero.
35467 (eliminate_regs_in_insn): Ditto.
35468 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
35469 lra_eliminate_regs_1 call.
35470 * lra-constraints.c (get_equiv_with_elimination): Ditto.
35472 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
35474 * hash-table.h: Remove version of hash_table that stored value_type *.
35475 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
35476 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
35477 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
35478 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
35479 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
35480 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
35481 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
35482 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
35483 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
35484 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
35485 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
35486 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
35487 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
35488 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
35489 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
35490 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
35492 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35493 Jakub Jelinek <jakub@redhat.com>
35496 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
35497 subsequent SH_NONE operand does not overwrite an existing *special
35499 (adjust_extract): Handle case where a vec_extract operation is
35500 wrapped in a PARALLEL.
35502 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35505 * config/i386/i386.c (ix86_binds_local_p): Define only if
35506 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
35508 2015-04-17 Jeff Law <law@redhat.com>
35510 PR tree-optimization/47679
35511 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
35512 * tree-ssa-scopedtables.c: New file.
35513 * tree-ssa-scopedtables.h: New file.
35514 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
35515 (const_and_copies): Change name/type.
35516 (record_const_or_copy): Move into tree-ssa-scopedtables.c
35517 (record_const_or_copy_1): Similarly.
35518 (restore_vars_to_original_value): Similarly.
35519 (pass_dominator::execute): Create and destroy const_and_copies table.
35520 (thread_across_edge): Update passing of const_and_copies.
35521 (record_temporary_equivalence): Use method calls rather than
35522 manipulating const_and_copies directly.
35523 (record_equality, cprop_into_successor_phis): Similarly.
35524 (dom_opt_dom_walker::before_dom_children): Similarly.
35525 (dom_opt_dom_walker::after_dom_children): Similarly.
35526 (eliminate_redundant_computations): Similarly.
35527 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
35528 (record_temporary_equivalence): Likewise.
35529 (invalidate_equivalences): Likewise.
35530 (record_temporary_equivalences_from_phis): Update due to type
35531 change of const_and_copies. Use method calls rather than
35532 manipulating the stack directly.
35533 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
35534 (thread_through_normal_block, thread_across_edge): Likewise.
35535 (thread_across_edge): Likewise.
35536 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
35537 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
35539 (identify_jump_threads): Update due to type change of equiv_stack.
35540 (finalize_jump_threads): Delete the equiv_stack when complete.
35542 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
35544 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35545 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
35546 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
35548 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
35551 * config.gcc: Exit with a comment when we do not have a major version
35552 number for the FreeBSD target.
35554 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35557 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
35558 maybe_allows_mem bitfields.
35559 (maybe_allows_none_start, maybe_allows_none_end,
35560 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
35561 maybe_allows_mem_end): New variables.
35562 (compute_maybe_allows): New function.
35563 (add_constraint): Use it to initialize maybe_allows_reg and
35564 maybe_allows_mem fields.
35565 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
35566 is_address constraints such that those that allow neither mem nor
35567 reg come first, then those that only allow reg but not mem, then
35568 those that only allow mem but not reg, then the rest.
35569 (write_allows_reg_mem_function): New function.
35570 (write_tm_preds_h): Call it.
35571 * stmt.c (parse_output_constraint, parse_input_constraint): Use
35572 the generated insn_extra_constraint_allows_reg_mem function
35573 instead of always setting *allows_reg = true; *allows_mem = true;
35574 for unknown extra constraints.
35576 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35579 * output.h (default_binds_local_p_3): New.
35580 * varasm.c (default_binds_local_p_3): Make it public. Take an
35581 argument to indicate if common symbol may be local. If common
35582 symbol may be local, treat non-external variable as defined
35584 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
35585 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
35586 * config/i386/i386.c (ix86_binds_local_p): New.
35587 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
35588 ix86_binds_local_p.
35590 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35593 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
35594 trying mem_loc_descriptor on XEXP (rtl, 0).
35596 2015-04-17 Martin Liska <mliska@suse.cz>
35598 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
35599 Release symbol_compare_collection.
35600 * ipa-reference.c: Add TODO that a vector should be released.
35602 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
35605 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
35606 to new AVR-LibC file layout (bug #44574).
35607 (*avrlibc_devicelib): Same.
35608 * config/avr/avr-mcus.def: Adjust comments.
35609 * config/avr/avr.opt (nodevicelib): Adjust help.
35611 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
35613 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
35615 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
35618 * gimplify.c (gimplify_init_constructor): Always emit a
35619 side-effecting constructor.
35621 2015-04-17 Tom de Vries <tom@codesourcery.com>
35623 PR tree-optimization/64950
35624 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
35625 in cfun->curr_properties.
35626 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
35627 if we generate an IFN_VA_ARG.
35628 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
35629 function if PROP_gimple_lva is not set in src function.
35631 2015-04-17 Tom de Vries <tom@codesourcery.com>
35632 Michael Matz <matz@suse.de>
35634 PR tree-optimization/64950
35635 * gimple-iterator.c (update_modified_stmts): Remove static.
35636 * gimple-iterator.h (update_modified_stmts): Declare.
35637 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
35638 (gimplify_va_arg_internal): New function.
35639 (gimplify_va_arg_expr): Use IFN_VA_ARG.
35640 * gimplify.h (gimplify_va_arg_internal): Declare.
35641 * internal-fn.c (expand_VA_ARG): New unreachable function.
35642 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
35643 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
35644 (expand_ifn_va_arg): New function.
35645 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
35646 (pass_stdarg::execute): Call expand_ifn_va_arg.
35647 (pass_data_lower_vaarg): New pass_data.
35648 (pass_lower_vaarg): New gimple_opt_pass.
35649 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
35650 (make_pass_lower_vaarg): New function.
35651 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
35652 properties_required field.
35653 * passes.def (all_passes): Add pass_lower_vaarg.
35654 * tree-pass.h (PROP_gimple_lva): Add define.
35655 (make_pass_lower_vaarg): Declare.
35657 2015-04-17 Tom de Vries <tom@codesourcery.com>
35659 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
35660 * calls.c (call_expr_flags): Same.
35662 2015-04-17 Tom de Vries <tom@codesourcery.com>
35664 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
35665 (pass_stdarg::execute): ... here.
35667 2015-04-17 Tom de Vries <tom@codesourcery.com>
35668 Michael Matz <matz@suse.de>
35670 * tree-cfg.c (make_blocks_1): Factor out of ...
35671 (make_blocks): ... here.
35672 (make_edges_bb): Factor out of ...
35673 (make_edges): ... here.
35674 (gimple_find_sub_bbs): New function.
35675 * tree-cfg.h (gimple_find_sub_bbs): Declare.
35677 2015-04-17 Tom de Vries <tom@codesourcery.com>
35679 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
35681 2015-04-17 Yury Gribov <y.gribov@samsung.com>
35683 * asan.c (set_sanitized_sections): New function.
35684 (section_sanitized_p): Ditto.
35685 (asan_protect_global): Optionally sanitize user-defined
35687 * asan.h (set_sanitized_sections): Declare new function.
35688 * common.opt (fsanitize-sections): New option.
35689 * doc/invoke.texi (-fsanitize-sections): Document new option.
35690 * opts-global.c (handle_common_deferred_options): Handle new
35693 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35696 * dwarf2out.c (loc_list_from_tree): Return NULL
35697 for DEBUG_EXPR_DECL.
35699 2015-04-17 Christian Bruel <christian.bruel@st.com>
35701 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
35704 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35706 * ira-color.c (setup_left_conflict_sizes_p): Do not process
35707 node itself when computing left conflict subnode size.
35709 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
35711 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
35712 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
35713 *fop_<mode>_1_sse using enabled attribute. Use
35714 register_mixssei387nonimm_operand operand 1 predicate. Change
35715 alternative 3 constraints from "x" to "v".
35717 2015-04-16 Richard Biener <rguenther@suse.de>
35719 PR tree-optimization/65774
35720 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
35721 bit-value tracking on.
35723 2015-04-16 Richard Biener <rguenther@suse.de>
35725 PR tree-optimization/64277
35726 * tree-vrp.c (check_array_ref): Fix anti-range handling,
35727 simplify upper bound handling.
35728 (search_for_addr_array): Simplify.
35729 (check_array_bounds): Handle ADDR_EXPRs here.
35730 (check_all_array_refs): Simplify.
35732 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
35734 * config/i386/i386.c (print_reg): Rewrite function.
35736 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35738 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
35739 Invert the condition.
35741 2015-04-16 Renlin Li <renlin.li@arm.com>
35743 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
35744 simplifications for UNSIGNED_FLOAT.
35746 2015-04-16 Nick Clifton <nickc@redhat.com>
35748 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
35750 (enum rl78_cpu_type): New.
35751 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
35752 (umulhi3_shift_virt): Remove m constraint from operand 1.
35753 (umulqihi3_virt): Likewise.
35754 * config/rl78/rl78.c (rl78_option_override): Add code to process
35755 -mcpu and -mmul options.
35756 (rl78_alloc_physical_registers): Add code to handle divhi and
35757 divsi valloc attributes.
35758 (set_origin): Likewise.
35759 * config/rl78/rl78.h (RL78_MUL_G14): Define.
35760 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
35761 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
35763 (ASM_SPEC): Pass -mcpu on to assembler.
35764 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
35765 (mulqi3_rl78): Likewise.
35766 (mulhi3_g13): Likewise.
35767 (mulhi3): Generate the G13 or G14 versions of the insn directly.
35768 (mulsi3): Likewise.
35769 (mulhi3_g14): Add clobbers of AX and BC.
35770 (mulsi3_g14): Likewise.
35771 (mulsi3_g13): Likewise.
35772 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
35773 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
35774 * config/rl78/rl78.opt (mmul): Initialise value to
35776 (mcpu): New option.
35777 (m13, m14, mrl78): New option aliases.
35778 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
35779 (MULTILIB_DIRNAMES): Add g13 and g14.
35780 * doc/invoke.texi: Document -mcpu and -mmul options.
35782 2015-04-16 Richard Biener <rguenther@suse.de>
35784 * tree-ssa-ccp.c (likely_value): See if we have operands that
35785 are marked as never simulate again and return CONSTANT in this
35787 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
35788 not have any operands that will be simulated again as
35789 not being simulated again.
35791 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
35793 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
35794 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
35795 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
35797 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
35799 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
35800 *float<SWI48:mode><MODEF:mode>2_sse.
35801 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
35803 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
35806 2015-04-15 Tom de Vries <tom@codesourcery.com>
35809 * function.c (push_dummy_function): New function.
35810 (init_dummy_function_start): Use push_dummy_function.
35811 (pop_dummy_function): New function. Factored out of ...
35812 (expand_dummy_function_end): ... here.
35813 * function.h (push_dummy_function, pop_dummy_function): Declare.
35814 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
35815 pop_dummy_function.
35816 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
35818 2015-04-15 Jeff Law <law@redhat.com>
35820 PR tree-optimization/47679
35821 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
35822 need for forward declaration in upcoming changes.
35823 (record_conditions, record_edge_info): Likewise.
35825 PR rtl-optimization/42522
35826 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
35827 SIGN_EXTRACT as a whole object rather than simplifying
35830 2015-04-15 Jakub Jelinek <jakub@redhat.com>
35833 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
35834 and GIMPLE_PREDICT use break instead of return true. For
35835 GIMPLE_EH_DISPATCH, compare dispatch region.
35837 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
35839 * doc/extend.texi (__sync Builtins): Simplify some text. Update
35840 details about the implementation. Make clear preference for
35841 __atomic builtins. Reduce possibility of future change.
35843 2015-04-15 Nick Clifton <nickc@redhat.com>
35845 * config/rx/rx.opt (mallow-string-insns): New option.
35846 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
35847 builtin if string instructions are denied.
35848 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
35849 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
35851 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
35852 * config/rx/rx.md (movstr): Enable pattern only if string
35853 instructions are allowed.
35854 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
35855 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
35856 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
35857 (MULTILIB_DIRNAMES): Add no-strings.
35858 * doc/invoke.texi: Document -mno-allow-string-insns.
35860 2015-04-15 Alan Modra <amodra@gmail.com>
35864 PR middle-end/36043
35865 * calls.c (load_register_parameters): Don't load past end of
35866 mem unless suitably aligned.
35868 2015-04-15 Nick Clifton <nickc@redhat.com>
35870 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
35871 decrement instruction as being frame related.
35872 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
35874 If zero extending a function address enclose the operation in
35876 (rl78_preferred_reload_class): New function.
35877 (TARGET_PREFERRED_RELOAD_CLASS): Define.
35878 * config/rl78/rl78.md: Remove useless constraints in expanders.
35879 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
35880 (mulhi3_rl78): Likewise.
35881 (mulhi3_g13): Likewise.
35882 (mulsi3_rl78): Likewise.
35883 (es_addr): Move to before the multiply patterns.
35885 2015-04-15 Alan Modra <amodra@gmail.com>
35887 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
35888 and sequence_stack. Add seq.
35889 (seq_stack): Delete.
35890 * function.c (prepare_function_start): Don't access x_last_insn.
35891 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
35892 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
35893 * emit_rtl.c (start_sequence, push_topmost_sequence,
35894 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
35895 sequence accessors.
35896 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
35897 remove_insn): Likewise. Simplify.
35898 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
35899 and pop_topmost_sequence.
35900 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
35902 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
35904 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
35907 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
35910 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
35912 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
35913 (LEGACY_INT_REGNO_P): Ditto.
35914 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
35915 (ANY_MASK_REG_P): Remove.
35916 (BND_REG_P): Rename from ANY_BND_REG_P.
35917 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
35918 legacy integer registers. Do not handle MMX_REG_P in a special way.
35919 Merge 64byte and 32byte SSE handling.
35921 2015-04-14 Nick Clifton <nickc@redhat.com>
35923 * expr.c (expand_assignment): Force an address offset computation
35924 into a register before changing its mode.
35925 (expand_expr_real_1): Likewise.
35927 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
35929 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
35930 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
35931 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
35932 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
35933 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
35934 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
35935 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
35936 and __aarch64_vget_lane_any.
35938 2015-04-14 Jakub Jelinek <jakub@redhat.com>
35940 PR rtl-optimization/65761
35941 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
35942 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
35944 2015-04-14 Richard Biener <rguenther@suse.de>
35946 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
35947 (graphite_can_represent_scev): Use POINTER_TYPE_P.
35949 2015-04-14 Richard Biener <rguenther@suse.de>
35951 PR tree-optimization/65758
35952 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
35954 (ccp_lattice_meet): Likewise.
35955 (bit_value_unop): Likewise.
35956 (bit_value_binop): Likewise.
35957 (bit_value_assume_aligned): Likewise.
35959 2015-04-14 Christian Bruel <christian.bruel@st.com>
35961 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
35964 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
35966 PR tree-optimization/63387
35967 * match.pd ((x unord x) | (y unord y) -> (x unord y),
35968 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
35970 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
35972 * config/i386/predicates.md (any_QIreg_operand): Rename from
35973 q_regs_operand. Do not process subregs.
35974 (QIreg_operand): Use QI_REGNO_P predicate.
35975 (ext_QIreg_operand): Ditto.
35976 (ext_register_operand): Ditto.
35977 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
35978 (AND splitters): Ditto.
35979 (AND with -65536 splitter): Add SWI48 mode for operand 0.
35980 (AND with -256 splitter): Use any_QIreg_operand predicate and
35981 SWI248 mode for operand 0.
35982 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
35983 mode for operand 0.
35984 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
35986 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
35988 * doc/plugins.texi: Rewrite first introductory paragraph.
35990 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35992 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
35993 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
35995 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35997 * ipa-profie.c (ipa_profile): Check number of parameters
35998 and possible polymorphic call targets before
36001 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
36003 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
36004 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
36006 2015-04-13 Richard Biener <rguenther@suse.de>
36008 PR tree-optimization/65204
36009 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
36010 takens for bit-CCP.
36012 2015-04-13 Richard Biener <rguenther@suse.de>
36015 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
36016 and cond_not_taken_branch_cost to 4 and 2.
36017 (bdver2_cost): Likewise.
36018 (bdver3_cost): Likewise.
36019 (bdver4_cost): Likewise.
36021 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36023 * hash-table.h (hash_table constructor): Add mem stats.
36024 (alloc_entries): Likewise.
36026 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36028 * ipa-cp.c (ipcp_driver): Relase prev_edge.
36029 * passes.c (execute_one_pass): Only add transform if pass has one.
36031 2015-04-12 Joseph Myers <joseph@codesourcery.com>
36033 * config/i386/i386.c (ix86_option_override_internal): Don't set
36034 -fprefetch-loop-arrays if optimizing for size.
36036 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36037 Gerald Pfeifer <gerald@pfeifer.com>
36039 * doc/contrib.texi (Contributors): Add Martin Jambor and
36042 2015-04-12 Jakub Jelinek <jakub@redhat.com>
36044 * BASE-VER: Set to 6.0.0.
36046 PR tree-optimization/65747
36047 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
36048 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
36050 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36052 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
36053 sentence. Improve grammar.
36055 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36057 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
36059 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36062 * ipa-inline-transform.c (speculation_removed): Remove static var.
36063 (check_speculations): New function.
36064 (clone_inlined_nodes): Do not check spculations.
36065 (inline_call): Call check_speculations.
36066 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
36067 consider non-invariants.
36069 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36070 Martin Liska <mliska@suse.cz>
36073 * ipa-icf.c (sem_item::compare_cgraph_references): function and
36074 variable can not match.
36075 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
36076 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
36078 2015-04-11 Jakub Jelinek <jakub@redhat.com>
36080 PR tree-optimization/65735
36081 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
36082 Remove visited_phis argument, add visited_bbs, avoid recursing into the
36083 same bb rather than just into the same phi node.
36084 (thread_through_normal_block): Adjust caller.
36086 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36088 * doc/contrib.texi (Contributors): Add Ira Rosen.
36090 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
36092 * gcov.c (find_source): Fix miswording in error message.
36093 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
36094 (ix86_expand_sse_comi_round): Fix typo in error message.
36096 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36098 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
36100 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
36102 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
36104 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36107 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
36108 Print bad_spills_num and insn_pseudos_num.
36110 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36113 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
36114 when creating +1 values for SImode.
36116 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36119 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
36122 2015-04-10 Jakub Jelinek <jakub@redhat.com>
36123 Iain Sandoe <iain@codesourcery.com>
36126 * configure: Regenerate.
36128 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36131 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
36133 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
36135 * doc/contrib.texi (Contributors): Add John Marino.
36137 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36139 PR tree-optimization/65709
36140 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
36141 TREE_TYPE (TREE_TYPE (t)).
36143 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
36146 * lra-int.h (lra_bad_spill_regno_start): New.
36147 * lra.c (lra_bad_spill_regno_start): New.
36148 (lra): Set up lra_bad_spill_regno_start. Set up
36149 lra_constraint_new_regno_start unconditionally.
36150 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
36153 2015-04-09 Marek Polacek <polacek@redhat.com>
36154 Jakub Jelinek <jakub@redhat.com>
36156 PR middle-end/65554
36157 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
36158 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
36161 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
36163 PR rtl-optimization/65693
36164 * combine.c (is_parallel_of_n_reg_sets): Move outside of
36167 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
36170 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
36171 device specs file if "device-specs%s" didn't resolve to a path.
36173 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36176 * config/i386/i386.c (fixup_modeless_constant): New.
36177 (ix86_expand_args_builtin): Fixup modeless constant operand.
36178 (ix86_expand_round_builtin): Ditto.
36179 (ix86_expand_special_args_builtin): Ditto.
36180 (ix86_expand_builtin): Ditto.
36182 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36185 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
36186 any pow2 integer in between 2 and 0x80000000U inclusive.
36188 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
36190 PR rtl-optimization/65693
36191 * combine.c (is_parallel_of_n_reg_sets): Change first argument
36192 from an rtx_insn * to an rtx.
36193 (try_combine): Adjust both callers. Use it once more.
36195 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36197 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
36198 (chkp_make_static_const_bounds): Search existing
36199 symbol by assembler name. Use make_decl_one_only.
36200 (chkp_get_zero_bounds_var): Remove node search which
36201 is now performed in chkp_make_static_const_bounds.
36202 (chkp_get_none_bounds_var): Likewise.
36204 2015-04-08 Michael Witten <mfwitten@gmail.com>
36206 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
36209 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36211 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
36213 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36215 * doc/extend.texi (__sync Builtins): Fix grammar.
36217 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36219 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
36221 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36223 * varasm.c (emit_local): Move definition of align.
36225 2015-04-08 Julian Brown <julian@codesourcery.com>
36227 * config/nvptx/mkoffload.c (process): Support variable mapping.
36229 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
36231 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
36233 (alpha_write_one_linkage): Correct typo.
36235 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36237 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
36239 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36241 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
36243 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36245 * tree-chkp.h (chkp_insert_retbnd_call): New.
36246 * tree-chkp.c (chkp_insert_retbnd_call): New.
36247 * ipa-split.c (insert_bndret_call_after): Remove.
36248 (split_function): Use chkp_insert_retbnd_call.
36249 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
36250 bounds for instrumented functions.
36252 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
36255 * calls.c (initialize_argument_information): When producing tail
36256 call also turn SSA_NAMES passed by references to original PARM_DECLs
36258 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
36261 * lra-remat.c (do_remat): Process input and non-input insn
36262 registers separately.
36264 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36267 * valtrack.c (debug_lowpart_subreg): New function.
36268 (dead_debug_insert_temp): Use it.
36270 PR middle-end/65680
36271 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
36272 into signed HOST_WIDE_INT the same as negative bit_offset.
36274 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
36276 * ipa-comdats.c (ipa_comdats): Visit all thunks
36277 to set proper comdat group.
36279 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36282 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
36283 on constants for NEON VSTRUCT modes.
36285 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36286 Iain Sandoe <iain@codesourcery.com>
36289 * configure: Regenerate.
36291 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36294 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
36295 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
36296 that LFD is used to load double constants instead of LFS. Add
36297 defaults for all costs structures. Add comments for missing
36298 initialization fields.
36299 (size32_cost): Likewise.
36300 (size64_cost): Likewise.
36301 (rs64a_cost): Likewise.
36302 (mpccore_cost): Likewise.
36303 (ppc403_cost): Likewise.
36304 (ppc405_cost): Likewise.
36305 (ppc440_cost): Likewise.
36306 (ppc476_cost): Likewise.
36307 (ppc601_cost): Likewise.
36308 (ppc603_cost): Likewise.
36309 (ppc604_cost): Likewise.
36310 (ppc604e_cost): Likewise.
36311 (ppc620_cost): Likewise.
36312 (ppc630_cost): Likewise.
36313 (ppccell_cost): Likewise.
36314 (ppc750_cost): Likewise.
36315 (ppc7450_cost): Likewise.
36316 (ppc8540_cost): Likewise.
36317 (ppce300c2c3_cost): Likewise.
36318 (ppce500mc_cost): Likewise.
36319 (ppce500mc64_cost): Likewise.
36320 (ppce5500_cost): Likewise.
36321 (ppce6500_cost): Likewise.
36322 (titan_cost): Likewise.
36323 (power4_cost): Likewise.
36324 (power6_cost): Likewise.
36325 (power7_cost): Likewise.
36326 (power8_cost): Likewise.
36327 (ppca2_cost): Likewise.
36328 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
36330 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
36331 instead of XXLOR to copy SFmode to clear out dirty bits created
36332 when SFmode denormals are generated.
36333 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
36334 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
36336 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36338 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
36339 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
36340 * config/aarch64/aarch64-tune.md: Regenerate.
36342 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36344 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
36345 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
36346 * config/arm/arm-cores.def (exynos-m1): New core.
36347 * config/arm/arm-tune.md: Regenerate.
36348 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
36349 * config/arm/bpabi.h: Likewise.
36351 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36353 * ipa-cp (set_single_call_flag): Remove too
36354 restrictive assert.
36356 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
36358 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
36359 GOMP_offload_unregister from the destructor.
36361 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36363 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
36364 flags for instrumentation thunk.
36365 (chkp_produce_thunks): Likewise.
36367 2015-04-05 Martin Liska <mliska@suse.cz>
36370 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
36371 has computed data structure.
36372 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36374 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
36376 * invoke.texi (inline-unit-growth): Increase growth to 20%
36377 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
36379 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
36382 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
36384 (lra_rematerialization_iter): New.
36385 * lra.c (lra): Initialize lra_rematerialization_iter.
36386 Stop updating lra_constraint_new_regno_start after switching of
36387 inheritance and rematerialization.
36388 * lra-remat.c (lra_rematerialization_iter): New.
36389 (lra_remat): Add printing pass iteration. Do rematerialization
36390 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
36392 2015-04-04 Richard Biener <rguenther@suse.de>
36394 PR tree-optimization/64909
36395 PR tree-optimization/65660
36396 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
36397 to take a cost vector for scalar iteration cost.
36398 (vect_get_single_scalar_iteration_cost): Likewise.
36399 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
36400 Compute the scalar iteration cost into a cost vector.
36401 (vect_get_known_peeling_cost): Use the scalar cost vector to
36402 account for the cost of the peeled iterations.
36403 (vect_estimate_min_profitable_iters): Likewise.
36404 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
36407 2015-04-04 Alan Modra <amodra@gmail.com>
36411 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
36412 0.0 constant unless TARGET_VSX.
36413 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
36416 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36419 * ipa-inline-transform.c (inline_call): Skip sanity check to work
36422 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36425 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
36426 speculative indirect edges to avoid ordering issue.
36428 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36431 * ipa-inline.c (edge_badness): Add combined size to the denominator.
36433 2015-04-03 Jakub Jelinek <jakub@redhat.com>
36435 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
36436 TYPE_ARTIFICIAL on the .omp_data* types.
36438 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36440 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
36441 instrumentation thunks.
36443 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36445 * config/i386/i386.c (ix86_expand_call): Avoid nested
36446 PARALLEL in returned call value.
36448 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36450 * lto-cgraph.c (input_cgraph_1): Always link instrumented
36451 assembler name with original one.
36453 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36455 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
36457 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36459 Revert parts of r216820.
36460 * config/i386/i386.md (movqi_internal): Correct type calculation
36461 for alternatives 3 and 5.
36463 2015-04-02 Jakub Jelinek <jakub@redhat.com>
36465 PR preprocessor/61977
36466 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
36467 predefine __vector/__bool/__pixel macros nor context sensitive
36468 macros for CLK_ASM.
36469 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
36471 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
36473 * config/pa/pa.c (pa_output_move_double): Directly handle register
36474 indexed memory operand. Simplify handling of scaled register indexed
36477 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36480 * config/i386/linux-common.h (MPX_SPEC): New.
36481 (CHKP_SPEC): Add MPX_SPEC.
36482 * doc/invoke.texi (-fcheck-pointer-boudns): Document
36483 possible issues with '-z bndplt' support in linker.
36485 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36487 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
36488 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
36489 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
36490 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
36491 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
36493 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
36495 * config/i386/sync.md (UNSPEC_MOVA): Remove.
36496 (atomic_load<mode>): Change operand 0 predicate to
36497 nonimmediate_operand and fix up the destination when needed.
36499 (atomic_loaddi_fpu): Use UNSPEC_LDA.
36500 (atomic_store<mode>): Change operand 1 predicate to
36501 nonimmendate_operand and move the source to register when needed.
36503 (atomic_store<mode>_1): Use UNSPEC_STA.
36504 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
36505 Fix moves from memory operand. Use UNSPEC_STA.
36507 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
36509 * expmed.c (strict_volatile_bitfield_p): Check that the access will
36510 not cross a MODESIZE boundary.
36511 (store_bit_field, extract_bit_field): Added assertions in the
36512 strict volatile bitfields code path.
36514 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
36517 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
36518 Increase args array size by one to avoid buffer overflow.
36520 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36522 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
36524 * ipa-inline.c (edge_badness): Add wrapper penalty.
36525 (sum_callers): Move up.
36526 (inline_small_functions): Set single_caller.
36527 * ipa-inline.h (inline_summary): Add single_caller.
36528 * ipa-split.c (split_function): Set split_part.
36529 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
36530 * cgraph.h (cgraph_node): Add split_part.
36532 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
36535 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
36536 Do not split operands 0 and operands 2 to halfmode.
36537 (atomic_compare_and_swap<mode>): Update for
36538 atomic_compare_and_swap<dwi>_doubleword changes.
36540 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36542 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
36543 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
36544 no caching is done.
36546 2015-03-31 Martin Liska <mliska@suse.cz>
36549 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
36550 has already filled up function summary.
36551 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36553 2015-03-31 Richard Biener <rguenther@suse.de>
36555 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
36558 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
36560 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
36562 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
36563 (s390_asm_output_function_label): Adapt to new signature of
36564 s390_function_num_hotpatch_hw
36565 Optimise the code generating assembler output.
36566 Add comments to assembler file.
36568 2015-03-31 Richard Biener <rguenther@suse.de>
36570 PR middle-end/65626
36571 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
36572 of the noreturn call so it is last and cleanup_control_flow_bb
36573 can do the CFG part.
36575 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
36578 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
36579 same_comdat_group for external symbols.
36580 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
36581 infinite same_comdat_group traversal loop.
36583 2015-03-31 Jakub Jelinek <jakub@redhat.com>
36586 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
36587 automatically to $headers.
36589 2015-03-30 Jakub Jelinek <jakub@redhat.com>
36592 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
36593 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
36595 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
36597 * ipa-prop.c (param_type_may_change_p): Likewise.
36598 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
36599 (remove_unused_scope_block_p): Add in_ctor_dtor_block
36600 argument. Before inlining, preserve
36601 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
36602 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
36604 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
36606 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36609 * ipa-inline.c (edge_badness): Base denominator on callee's
36612 2015-03-27 Martin Jambor <mjambor@suse.cz>
36615 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
36616 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
36617 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
36618 node_calling_single_call.
36619 * ipa-cp.c (count_callers): New function.
36620 (set_single_call_flag): Likewise.
36621 (initialize_node_lattices): Count callers and set single_flag_call if
36623 (incorporate_penalties): New function.
36624 (good_cloning_opportunity_p): Use it, dump new flags.
36625 (propagate_constants_topo): Set node_within_scc flag if appropriate.
36626 * doc/invoke.texi (ipa-cp-recursion-penalty,
36627 ipa-cp-single-call-pentalty): Document.
36629 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36632 * symtab.c (symtab_node::get_partitioning_class): Register vars
36634 * varpool.c (symbol_table::output_variables) Do not assemble unefined
36635 decls for non-symbols.
36637 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
36640 * output.h (default_binds_local_p_2): New.
36641 * varasm.c (default_binds_local_p_2): Renamed to ...
36642 (default_binds_local_p_3): This. Don't return true on protected
36643 data symbol if protected data may be external.
36644 (default_binds_local_p): Use default_binds_local_p_3.
36645 (default_binds_local_p_1): Likewise.
36646 (default_binds_local_p_2): New.
36647 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
36648 default_binds_local_p_2 if TARGET_MACHO is undefined.
36650 2015-03-27 Jakub Jelinek <jakub@redhat.com>
36653 * config/i386/i386.c (legitimize_pic_address): If base
36654 is SYMBOL_REF or LABEL_REF using %rip addressing, force
36655 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
36657 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36660 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
36663 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
36666 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
36667 of optimized out indirect call.
36668 (redirect_to_unreachable): Always build symbol table node for
36669 BUILT_IN_UNREACHABLE
36671 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
36674 * ira-costs.c (record_reg_classes): Process all constraint string
36677 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
36679 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
36683 * config/c6x/constraints.md (S3): New constraint.
36684 * config/c6x/c6x.md (real_jump): Use it.
36686 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36688 PR middle-end/65595
36689 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
36690 do redirection if the call is not optimized out.
36692 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
36695 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
36696 (fchkp-check-incomplete-type): Add LTO.
36697 (fchkp-zero-input-bounds-for-main): Likewise.
36698 (fchkp-first-field-has-own-bounds): Likewise.
36699 (fchkp-narrow-bounds): Likewise.
36700 (fchkp-narrow-to-innermost-array): Likewise.
36701 (fchkp-use-static-bounds): Likewise.
36702 (fchkp-use-static-const-bounds): Likewise.
36703 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36705 2015-03-27 Marek Polacek <polacek@redhat.com>
36707 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
36709 2015-03-27 Marek Polacek <polacek@redhat.com>
36712 * ubsan.c (ubsan_create_edge): New function.
36713 (instrument_bool_enum_load): Call it.
36714 (instrument_nonnull_arg): Likewise.
36715 (instrument_nonnull_return): Likewise.
36716 (instrument_object_size): Likewise.
36718 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36720 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
36723 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36726 * lto-streamer.h (class lto_location_cache): New.
36727 (struct data_in): Add location_cache.
36728 (lto_input_location): Update prototype.
36729 (stream_input_location_now): New.
36730 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
36731 pointer to location.
36732 (stream_input_location): Update.
36733 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
36734 (warn_odr): Apply location cache before warning.
36735 (lto_input_location): Update prototype.
36736 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
36737 Use stream_input_location_now.
36738 * lto-streamer-in.c (lto_location_cache::current_cache): New static
36740 (lto_location_cache::cmp_loc): New function.
36741 (lto_location_cache::apply_location_cache): New function.
36742 (lto_location_cache::accept_location_cache): New function.
36743 (lto_location_cache::revert_location_cache): New function.
36744 (lto_location_cache::input_location): New function.
36745 (lto_input_location): Do location caching.
36746 (stream_input_location_now): New function.
36747 (input_eh_region, input_struct_function_base): Use
36748 stream_input_location_now.
36749 (lto_data_in_create): use new.
36750 (lto_data_in_delete): Use delete.
36751 * tree-streamer-in.c (unpack_ts_block_value_fields,
36752 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
36753 lto_input_ts_exp_tree_pointers): Update for cached location api.
36755 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36758 * passes.def: Add pass_nothrow.
36759 * ipa-pure-const.c: (pass_data_nothrow): New.
36760 (pass_nothrow): New.
36761 (pass_nothrow::execute): New.
36762 (make_pass_nothrow): New.
36763 * tree-pass.h (make_pass_nothrow): Declare.
36765 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36767 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
36768 edge to change by speculation resolution or redirection.
36769 (edge_set_predicate): Likewise.
36770 (inline_summary_t::duplicate): Likewise.
36771 (remap_edge_summaries): Likewise.
36773 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36775 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
36777 (can_inline_edge_p): Relax option matching for always inline functions.
36779 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
36782 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
36783 Check operand 4 and operand 0 for equality.
36784 (avx512f_vextract<shuffletype>32x4_1_maskm):
36785 Check operand 6 and operand 0 for equality.
36786 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
36788 (vec_extract_hi_<mode>_maskm): Ditto.
36790 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36792 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
36793 dead calls back to live.
36794 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
36796 (cgraph_node::verify_node): ... here; verify only callee edges,
36798 * cif-code.def (CILK_SPAWN): New code.
36800 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
36802 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
36803 (edge_set_predicate): Use it to mark unreachable edges.
36804 (inline_summary_t::duplicate): Remove unnecesary code.
36805 (remap_edge_summaries): Likewise.
36806 (dump_inline_summary): Report contains_cilk_spawn.
36807 (compute_inline_parameters): Compute contains_cilk_spawn.
36808 (inline_read_section, inline_write_summary): Stream
36809 contains_cilk_spawn.
36810 * ipa-inline.c (can_inline_edge_p): Do not touch
36811 DECL_STRUCT_FUNCTION that may not be available;
36812 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
36813 remove check for callee_fun->can_throw_non_call_exceptions and
36814 replace it by optimization attribute check; check for flag_exceptions.
36815 * ipa-inline-transform.c (inline_call): Maintain
36816 DECL_FUNCTION_PERSONALITY
36817 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
36819 2015-03-26 Jakub Jelinek <jakub@redhat.com>
36821 PR tree-optimization/65551
36822 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
36823 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
36825 2015-03-26 Richard Biener <rguenther@suse.de>
36827 PR middle-end/65555
36828 * tree-cfg.c (verify_gimple_call): Do not require a call to
36829 have no LHS if it wasn't recognized as control altering yet.
36831 2015-03-26 Jakub Jelinek <jakub@redhat.com>
36833 PR tree-optimization/64715
36834 * passes.def: Add another instance of pass_object_sizes before ccp1.
36835 * tree-object-size.c (pass_object_sizes::execute): In
36836 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
36837 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
36838 __bos result and the computed constant. Remove redundant
36839 checks, obsoleted by gimple_call_builtin_p test.
36841 * var-tracking.c (variable_tracking_main_1): Don't track
36842 variables for targetm.no_register_allocation targets.
36844 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
36846 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
36847 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
36849 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
36852 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
36853 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
36854 0.0 is correctly setup.
36855 (extenddftf2_internal): Likewise.
36857 2015-03-25 Sebastian Pop <s.pop@samsung.com>
36859 PR tree-optimization/65177
36860 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
36862 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
36863 edges not adjacent on the path to the original code.
36865 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
36868 * doc/install.texi (Building a native compiler): Document new
36869 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
36870 configuration assumes that the host supports the linker plugin.
36872 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
36875 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
36876 chain for generated call.
36878 2015-03-25 Richard Biener <rguenther@suse.de>
36880 * passes.c (pass_manager::execute_early_local_passes): Guard
36881 execution of pass_chkp_instrumentation_passes with
36882 flag_check_pointer_bounds.
36883 (pass_chkp_instrumentation_passes::gate): Likewise.
36885 2015-03-25 Martin Liska <mliska@suse.cz>
36887 PR tree-optimization/65538
36888 * symbol-summary.h (function_summary::~function_summary):
36889 Relese memory for allocated summaries.
36890 (function_summary::release): New function.
36892 2015-03-25 Jakub Jelinek <jakub@redhat.com>
36895 * lto-streamer-out.c (DFS::worklist): New struct.
36896 (DFS::worklist_vec): New data member.
36897 (DFS::next_dfs_num): Remove.
36898 (DFS::DFS): Rewritten using worklist instead of recursion,
36899 using most of code from DFS::DFS_write_tree.
36900 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
36901 pass it to DFS_write_tree calls.
36902 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
36903 quick initial checks push it into worklist_vec and return.
36905 2015-03-25 Richard Biener <rguenther@suse.de>
36907 PR middle-end/65519
36908 * genmatch.c (expr::gen_transform): Re-write to avoid
36909 using gimple_build.
36911 2015-03-25 Bin Cheng <bin.cheng@arm.com>
36913 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
36915 2015-03-25 Bin Cheng <bin.cheng@arm.com>
36917 * config/arm/arm.opt (print_tune_info): New option.
36918 * config/arm/arm.c (arm_print_tune_info): New function.
36919 (arm_file_start): Call arm_print_tune_info.
36920 * config/arm/arm-protos.h (struct tune_params): Add comment.
36921 * doc/invoke.texi (@item -mprint-tune-info): New item.
36922 (-mtune): mention it in ARM Option Summary.
36924 2015-03-25 DJ Delorie <dj@redhat.com>
36926 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
36929 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
36930 Martin Liska <mliska@suse.cz>
36932 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
36933 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
36934 (sem_item::add_type): New function.
36935 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
36936 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
36937 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
36938 (sem_function::equals_wpa): Fix typo.
36939 * ipa-icf.h (sem_item::add_type): New function.
36940 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
36943 2015-03-24 Jakub Jelinek <jakub@redhat.com>
36945 PR tree-optimization/65533
36946 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
36947 with swapped operands, call vect_free_slp_tree on
36948 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
36951 2015-03-24 Richard Biener <rguenther@suse.de>
36953 PR middle-end/65517
36954 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
36955 for fixup if necessary.
36957 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
36959 * doc/extend.texi (Function Attributes): Add @cindex entries
36960 for all attributes and regularize their format. Delete text
36961 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
36962 information about "eightbit_data", "tiny_data", and "model"
36963 variable attributes to the Variable Attributes section. Fix
36964 some obvious typos and copy-editing issues.
36965 (Variable Attributes, Type Attributes): Likewise add/fix
36966 @cindex entries for all attributes.
36968 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36971 * tree-chkp.c (chkp_build_returned_bound): Ignore
36972 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
36974 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
36977 * config/sh/predicates.md (simple_mem_operand,
36978 displacement_mem_operand): Add test for reg.
36979 (short_displacement_mem_operand): Test for displacement_mem_operand
36980 before invoking sh_disp_addr_displacement.
36981 * config/sh/constraints.md (Sdd, Sra): Simplify.
36982 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
36983 Remove redundant displacement_mem_operand tests.
36985 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
36988 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
36989 the same -mmcu=MCU more than once.
36991 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36994 * ipa-devirt.c: Remove duplicate demangle.h include.
36997 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
36999 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
37000 REG_POINTER on *destptr after adjusting it for prologue size.
37003 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
37004 ultimate_alias_target ()->order ints instead of
37005 ultimate_alias_target () pointers.
37007 2015-03-23 Richard Biener <rguenther@suse.de>
37009 PR tree-optimization/65518
37010 * tree-vect-stmts.c (vectorizable_load): Reject single-element
37011 interleaving cases we generate absymal code for.
37013 2015-03-23 Richard Biener <rguenther@suse.de>
37015 PR tree-optimization/65494
37016 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
37018 (vect_analyze_slp_instance): But do that here, always and once.
37020 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37022 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
37023 adding T or multiplying by T+1 and subracting T.
37025 2015-03-22 Jeff Law <law@redhat.com>
37027 PR rtl-optimization/64317
37028 * Makefile.in (OBJS): Add gcse-common.c
37029 * gcse.c: Include gcse-common.h
37030 (struct modify_pair_s): Move structure definition to gcse-common.h
37031 (compute_transp): Move function to gcse-common.c.
37032 (canon_list_insert): Similarly.
37033 (record_last_mem_set_info): Break out some code and put it into
37034 gcse-common.c. Call into the new common code.
37035 (compute_local_properties): Pass additional arguments to compute_transp.
37036 * postreload-gcse.c: Include gcse-common.h and df.h
37037 (modify_mem_list_set, blocks_with_calls): New variables.
37038 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
37039 (get_bb_avail_insn): Pass in the expression index too.
37040 (alloc_mem): Allocate memory for the new bitmaps and lists.
37041 (free_mem): Free memory for the new bitmaps and lists.
37042 (insert_expr_in_table): Record a bitmap index for each entry we
37044 (record_last_mem_set_info): Call into common code in gcse-common.c.
37045 (get_bb_avail_insn): If no available insn was found in the requested
37046 BB. If BB has a single predecessor, see if the expression is
37047 transparent in BB and available in that single predecessor.
37048 (compute_expr_transp): New wrapper for compute_transp.
37049 (eliminate_partially_redundant_load): Pass expression's bitmap_index
37050 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
37051 (gcse_after_reload_main): If there are elements in the hash table,
37052 then compute transparency for all the elements in the hash table.
37053 * gcse-common.h: New file.
37054 * gcse-common.c: New file.
37056 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
37058 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
37060 (System Headers): Likewise.
37062 (Traditional macros): Likewise.
37063 (Invocation): Likewise.
37064 (Option Index): Likewise.
37065 * doc/cppopts.texi (-M): Likewise.
37066 (-finput-charset): Likewise.
37067 (--help): Likewise.
37068 * doc.invoke.texi (AVR Options): Likewise.
37069 (V850 Options): Likewise.
37071 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
37074 * ipa-devirt.c: Include demangle.h
37075 (odr_type_d): Add field rtti_broken.
37076 (odr_subtypes_equivalent_p): Do not require name to match.
37077 (compare_virtual_tables): Fix typo; if type already has ODR violation,
37078 bypass the tests; be ready for function referneces in vtables that are
37079 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
37080 (warn_odr): Give up for nameless types.
37081 (warn_types_mismatch): Report mismatch in mangled names;
37082 report mismatch in anonymous namespaces; look into component types to
37083 give useful error; report when mismatch is dragged in from other ODR
37085 (odr_types_equivalent_p): Match types for being polymorphic; avoid
37086 duplicated diagnostics.
37087 (add_type_duplicate): Reorder checks so more informative ones come
37088 first; fix typo; do not output "the extra base is defined here" when
37090 (BINFO_N_BASE_BINFOS): Relax sanity check.
37092 2015-03-22 Martin Liska <mliska@suse.cz>
37093 Jakub Jelinek <jakub@redhat.com>
37095 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
37096 masks that can potentially include a builtin.
37097 (ix86_add_new_builtins): Introduce fast filter for isa values
37098 that cannot trigger builtin inclusion.
37100 2015-03-22 Martin Liska <mliska@suse.cz>
37102 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
37103 (sem_item::update_hash_by_local_refs): Likewise.
37104 (sem_variable::get_hash): Empty line is fixed.
37105 (sem_item_optimizer::execute): Include adding of hash references.
37106 (sem_item_optimizer::update_hash_by_addr_refs): New function.
37107 (sem_item_optimizer::build_hash_based_classes): Use local hash.
37108 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
37109 (sem_item::update_hash_by_local_refs): Likewise.
37111 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37114 * ipa-comdats.c (enqueue_references): Walk through thunks.
37115 (ipa_comdats): Likewise.
37116 (set_comdat_group_1): New function.
37118 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37121 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
37124 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
37125 Gerald Pfeifer <gerald@pfeifer.com>
37127 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
37129 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
37130 Sandra Loosemore <sandra@codesourcery.com>
37132 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
37133 function parameter declaration.
37134 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
37135 Update arguments to nios2_adjust_call_address().
37136 (sibcall_internal): Rename from *sibcall.
37137 (sibcall_value_internal): Rename from *sibcall_value.
37138 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
37139 (nios2_large_got_address): Add target temp reg parameter.
37140 (nios2_got_address): Adjust call to nios2_large_got_address, add
37141 force_reg around it.
37142 (nios2_load_pic_address): Add target temp reg parameter, replace call
37143 to nios2_got_address with corresponding code.
37144 (nios2_legitimize_constant_address): Update call to
37145 nios2_load_pic_address.
37146 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
37147 to use temp reg for PIC loading purposes.
37148 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
37149 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
37150 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
37152 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37154 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
37155 usage of "the @option{...}".
37156 (-Wopenmp-simd): Likewise.
37157 (-fsanitize-recover): Likewise.
37158 (-fsanitize-undefined-trap-on-error): Likewise.
37160 (tracer-dynamic-coverage-feedback): Likewise.
37161 (reorder-block-duplicate-feedback): Likewise.
37162 (loop-unroll-jam-size): Likewise.
37165 (-mabs=legacy): Likewise.
37166 (-mupper-regs-df): Likewise.
37167 (-mupper-regs-sf): Likewise.
37168 (-mpointers-to-nested-functions): Likewise.
37170 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37172 * doc/extend.texi (Cilk Plus Builtins): Add markup.
37174 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37176 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
37177 additional index entries and cross-references.
37178 (-fchkp-check-incomplete-type): Likewise.
37179 (-fchkp-first-field-has-own-bounds): Likewise.
37180 (-fchkp-narrow-to-innermost-array): Likewise.
37181 (-fchkp-use-fast-string-functions): Likewise.
37182 (-fchkp-use-nochk-string-functions): Likewise.
37183 (-fchkp-use-static-const-bounds): Likewise.
37184 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37185 (-fchkp-instrument-marked-only): Likewise.
37186 (-fchkp-use-wrappers): Likewise.
37187 (-static-libmpx): Likewise.
37188 (-static-libmpxwrappers): Likewise.
37189 * doc/extend.texi (bnd_legacy): Likewise.
37190 (bnd_instrument): Likewise.
37191 (bnd_variable_size): Likewise.
37192 (Pointer Bounds Checker builtins): Likewise.
37194 2015-03-21 Tom de Vries <tom@codesourcery.com>
37196 PR tree-optimization/65458
37197 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
37198 * cgraph.h (cgraph_node): Add parallelized_function field.
37199 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
37200 (input_overwrite_node): Read parallelized_function field.
37201 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
37202 parallelized_function on cgraph_node for child_fn.
37203 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
37204 Remove include of gt-tree-parloops.h.
37205 (parallelized_functions): Remove static variable.
37206 (parallelized_function_p): Rewrite using parallelized_function field of
37208 (create_loop_fn): Remove adding to parallelized_functions.
37209 * Makefile.in (GTFILES): Remove tree-parloops.c
37211 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
37213 PR rtl-optimization/64366
37214 * lra.c (lra_update_insn_regno_info): Consider regs in
37215 CALL_INSN_FUNCTION_USAGE memory.
37217 2015-03-20 Richard Biener <rguenther@suse.de>
37219 PR middle-end/64715
37220 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
37221 for type comparison and gcc_checking_assert.
37222 (chrec_fold_plus_poly_poly): Likewise.
37223 (chrec_fold_multiply_poly_poly): Likewise.
37224 (chrec_convert_1): Likewise.
37225 * gimplify.c (gimplify_expr): Remove premature folding of
37226 &X + CST to &MEM[&X, CST].
37228 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37230 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
37232 (ipa_inline): Recompute inline_failed codes.
37233 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
37234 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
37237 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
37239 PR rtl-optimization/60851
37240 * recog.c (constrain_operands): Accept a pseudo register before reload
37241 for LRA enabled targets.
37243 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
37246 * config/rs6000/predicates.md (easy_fp_constant): Remove special
37247 -ffast-math handling that kept non-0 constants live in the RTL
37248 until reload. Remove logic testing the number of instructions it
37249 took to create a constant in a GPR that was never used, due to a
37250 test for soft-float earlier.
37251 (memory_fp_constant): Delete, no longer used.
37253 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
37254 alternatives for loading non-0 constants into GPRs for hard
37255 floating point that is no longer needed due to changes in
37256 easy_fp_constant. Add support for loading 0.0 into GPRs.
37257 (mov<mode>_hardfloat32): Likewise.
37258 (mov<mode>_hardfloat64): Likewise.
37259 (mov<mode>_64bit_dm): Likewise.
37260 (movtd_64bit_nodm): Likewise.
37261 (pre-reload move FP constant define_split): Delete define_split,
37262 since it is no longer used.
37263 (extenddftf2_internal): Remove GHF constraints that are not valid
37266 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
37268 PR rtl-optimization/63491
37269 * lra-constraints.c (check_and_process_move): Use src instead of
37270 sreg. Remove some dead code.
37272 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
37275 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
37276 (sem_variable::merge): Likewise.
37278 2015-03-19 Martin Liska <mliska@suse.cz>
37281 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
37282 all fields of cgraph_thunk_info.
37284 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
37286 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
37287 clone instrumented thunks.
37289 2015-03-19 Richard Biener <rguenther@suse.de>
37292 2015-03-10 Richard Biener <rguenther@suse.de>
37294 PR middle-end/63155
37295 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37296 * tree-ssa-coalesce.c: Include timevar.h.
37297 (attempt_coalesce): Handle graph being NULL.
37298 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37299 Split out abnormal coalescing to ...
37300 (perform_abnormal_coalescing): ... this function.
37301 (coalesce_ssa_name): Perform abnormal coalescing without computing
37303 (verify_ssa_coalescing_worker): New function.
37304 (verify_ssa_coalescing): Likewise.
37306 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
37307 Jakub Jelinek <jakub@redhat.com>
37310 * tsan.c (instrument_gimple): Clear tail call flag on
37313 2015-03-19 Jakub Jelinek <jakub@redhat.com>
37316 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
37317 call in the return bb.
37318 (find_split_points): Add RETURN_BB argument, don't call
37320 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
37321 if true append TSAN_FUNC_EXIT internal call after the call to
37322 the split off function.
37323 (execute_split_functions): Call find_return_bb here.
37324 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
37325 Adjust find_split_points and split_function calls.
37327 2015-03-18 DJ Delorie <dj@redhat.com>
37329 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
37330 (iorqi3_virt): Likewise.
37332 2015-03-18 Tom de Vries <tom@codesourcery.com>
37334 * tree-parloops.c (parallelize_loops): Make static.
37335 * tree-parloops.h (parallelize_loops): Remove extern declaration.
37337 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
37339 PR middle-end/64491
37341 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
37343 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
37344 condition would be removed due to undefined behaviour.
37346 2015-03-18 Martin Liska <mliska@suse.cz>
37349 * cgraph.c (cgraph_node::get_create): Remove unnecessary
37350 xstrdup_for_dump wrapper.
37351 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
37353 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
37354 with xstrdup_for_dump.
37355 (sem_variable::equals): Likewise.
37356 (sem_item_optimizer::read_section): Use symtab_node::name instead of
37358 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
37359 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
37360 symtab_node::asm_name with xstrdup_for_dump.
37361 (congruence_class::dump): Use symtab_node::name instead of
37363 * ipa-icf.h (symtab_node::name): Remove.
37364 (symtab_node::asm_name): Likewise.
37366 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37368 PR tree-optimization/65450
37369 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
37371 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
37372 it instead of duplicate_ssa_name_ptr_info.
37375 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
37377 2015-03-18 Richard Biener <rguenther@suse.de>
37379 * tree-data-ref.h (struct access_matrix): Remove.
37380 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
37381 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
37382 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
37383 (am_vector_index_for_loop): Likewise.
37384 (struct data_reference): Remove access_matrix member.
37385 (DR_ACCESS_MATRIX): Remove.
37386 (lambda_vector_new): Add comment.
37387 (lambda_matrix_new): Use XOBNEWVEC.
37389 2015-03-18 Richard Biener <rguenther@suse.de>
37391 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
37392 (pass_ch::execute): Cleanup the CFG only if we did sth.
37393 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
37395 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37397 * expmed.c (synth_mult): Use std::swap instead of manually
37398 swapping algorithms.
37400 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37403 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
37405 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
37408 * config/avr/avr.opt (-nodevicelib): New option.
37409 * doc/invoke.texi (AVR Options): Document it.
37410 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
37411 libgcc.a, libc.a, libm.a.
37412 * config/avr/specs.h: Same.
37413 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
37414 which don't (directly) depend on the device. Print more help.
37415 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
37416 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
37417 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
37419 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
37420 for specs file name.
37421 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
37422 * config/avr/avr-mcus.def: Adjust initializers and comments.
37424 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
37426 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
37427 DECL_ONE_ONLY to check if decl is one only.
37428 * ipa-split.c (consider_split): Limit splitt of one only functions.
37430 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37432 PR tree-optimization/65427
37433 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
37435 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
37437 2015-03-16 Marek Polacek <polacek@redhat.com>
37439 * cgraph.h (add_new_static_var): Remove declaration.
37440 * varpool.c (add_new_static_var): Remove function.
37442 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37444 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
37445 instead of vec<tree> * with vec_alloc and release for args.
37448 PR middle-end/65431
37449 * omp-low.c (delete_omp_context): Only splay_tree_delete
37450 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
37451 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
37453 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
37456 * cfgexpand.c (align_base): New function.
37457 (alloc_stack_frame_space): Call it.
37458 (expand_stack_vars): Align prev_frame to be sure
37459 data->asan_vec elements aligned properly.
37461 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
37463 PR middle-end/65409
37464 * expr.c (store_field): Do not do a direct block copy if the source is
37465 a PARALLEL with BLKmode.
37467 2015-03-16 Tom de Vries <tom@codesourcery.com>
37469 PR middle-end/65414
37471 2015-03-12 Tom de Vries <tom@codesourcery.com>
37473 PR rtl-optimization/64895
37474 * lra-lives.c (check_pseudos_live_through_calls): Use
37475 actual_call_used_reg_set instead of call_used_reg_set, if available.
37477 2015-03-16 Alan Modra <amodra@gmail.com>
37480 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
37481 Modify Z->r bswapdi splitter to use dest in place of scratch.
37482 In r->Z and Z->r bswapdi splitter rename word_high, word_low
37483 to word1, word2 and rearrange logic to suit.
37484 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
37485 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
37486 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
37487 Add one '?' on r->r. Modify Z->r splitter to avoid need for
37490 2015-03-14 Jakub Jelinek <jakub@redhat.com>
37492 PR tree-optimization/65369
37493 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
37494 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
37495 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
37497 PR tree-optimization/65418
37498 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
37499 are casts in the first PLUS_EXPR operand, ensure tbias and
37500 *totallowp are in the inner type.
37502 PR rtl-optimization/65401
37503 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
37504 argument. If true, adjust_address_nv of x with big-endian
37505 correction for the mode widening to GET_MODE (y).
37506 (make_field_assignment): Don't do MEM mode widening here.
37507 Use MEM_P instead of GET_CODE == MEM.
37509 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
37511 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
37512 the external decls.
37514 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37517 * config/arm/arm.c (arm_gen_constant, AND case): Use
37518 ARM_SIGN_EXTEND when constructing AND mask.
37520 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37522 * graph.c (print_graph_cfg): Make function names visible and append
37523 parenthesis to it. Also make groups of basic blocks belonging to the
37524 same function visible.
37526 2015-03-12 Richard Biener <rguenther@suse.de>
37528 PR middle-end/44563
37529 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
37530 to avoid quadratic behavior with inline expansion splitting blocks.
37531 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
37532 with the successor if the predecessor will be merged with it.
37533 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
37534 entry block with its successor.
37536 2015-03-13 Richard Biener <rguenther@suse.de>
37538 PR middle-end/44563
37539 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
37540 (cleanup_tree_cfg_1): Do not call it.
37541 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
37542 (fixup_noreturn_call): Mark the stmt as control altering.
37543 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
37545 (pass_data_fixup_cfg): Produce a dump file.
37546 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
37547 (need_noreturn_fixup): New global.
37548 (pass_dominator::execute): Fixup queued noreturn calls.
37549 (optimize_stmt): Queue calls that became noreturn for fixup.
37550 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
37551 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
37552 (el_to_fixup): New global.
37553 (eliminate_dom_walker::before_dom_childre): Queue calls that
37554 became noreturn for fixup.
37555 (eliminate): Fixup queued noreturn calls.
37556 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
37557 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
37558 (substitute_and_fold_dom_walker::before_dom_children): Queue
37559 alls that became noreturn for fixup.
37560 (substitute_and_fold): Fixup queued noreturn calls.
37562 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
37564 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
37565 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
37566 are building; for methods check ODR type of class they belong to if
37567 they may lead to a polymorphic call.
37568 (sem_function::compare_polymorphic_p): Be bit smarter about testing
37569 when function may lead to a polymorphic call.
37570 (sem_function::compare_type_list): Remove.
37571 (sem_variable::equals): Update use of compatible_types_p.
37572 (sem_variable::parse_tree_refs): Remove.
37573 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
37575 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
37577 (func_checker::compatible_polymorphic_types_p): Break out from ...
37578 (unc_checker::compatible_types_p): ... here.
37579 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
37581 (unc_checker::compatible_types_p): Update.
37582 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
37585 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37587 PR rtl-optimization/65235
37588 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
37589 When first element of vec_concat is const_int, calculate its size
37590 using second element.
37592 2015-03-12 Richard Biener <rguenther@suse.de>
37594 PR middle-end/65270
37595 * fold-const.c (operand_equal_p): Fix ordering of resetting
37596 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
37598 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
37600 * config/s390/s390.c (s390_reorg): Move code to output nops after label
37602 (s390_asm_output_function_label): Likewise.
37603 * config/s390/s390.c (s390_asm_output_function_label):
37604 Fix function label alignment with -mhtopatch.
37605 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
37606 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
37607 ("nop_2_byte"): New define_insn.
37608 ("nop_4_byte"): Likewise.
37609 ("nop_6_byte"): Likewise.
37610 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
37611 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
37613 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
37616 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
37619 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
37622 * toplev.c (process_options): Restrict Pointer Bounds Checker
37623 usage with Address Sanitizer.
37625 2015-03-12 Richard Biener <rguenther@suse.de>
37627 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
37629 * omp-low.c (expand_omp_taskreg): Split block before removing
37631 (expand_omp_target): Likewise.
37632 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
37633 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
37634 stmt to split_block.
37636 2015-03-12 Tom de Vries <tom@codesourcery.com>
37638 PR rtl-optimization/64895
37639 * lra-lives.c (check_pseudos_live_through_calls): Use
37640 actual_call_used_reg_set instead of call_used_reg_set, if available.
37642 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37644 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
37645 (cgraph_node::remove): Likewise.
37646 (cgraph_node::get_untransformed_body): Likewise.
37647 * varpool.c (varpool_node::remove): Likewise.
37648 (varpool_node::get_constructor): Add sanity check.
37650 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
37652 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
37654 (-fabi-compat-version): Likewise.
37655 (-ffriend-injection): Likewise.
37656 (-Wdeclaration-after-statement): Likewise.
37657 (-fomit-frame-pointer): Likewise.
37658 (-ftree-coalesce-inlined-vars): Likewise.
37659 (-fvisibility=): Likewise.
37660 * doc/extend.texi (Typeof): Likewise.
37661 (Zero Length): Likewise.
37662 (Escaped Newlines): Likewise.
37663 (Compound Literals): Likewise.
37664 (Function Attributes): Likewise.
37665 (Label Attributes): Likewise.
37666 (Type Attributes): Likewise.
37667 (Function Names): Likewise.
37668 (Other Builtins): Likewise.
37669 (Function Specific Option Pragmas): Likewise.
37670 (C++ Interface): Likewise.
37672 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
37674 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
37676 2015-03-11 Marek Polacek <polacek@redhat.com>
37678 PR tree-optimization/65388
37679 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
37681 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
37684 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
37685 * configure: Regenerate.
37686 * config.in: Regenerate.
37687 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
37688 [-mn-flash]: Document it.
37689 [__AVR_ARCH__]: Document avrtiny.
37691 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
37692 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
37693 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
37695 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
37697 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
37699 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
37702 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
37703 allow reloads of PLUS in floating point/VSX registers.
37705 2015-03-11 Junmo Park <junmoz.park@samsung.com>
37707 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
37708 crypto_sha256_fast.
37709 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
37711 2015-03-11 Richard Biener <rguenther@suse.de>
37713 PR tree-optimization/65310
37714 * tree-sra.c (build_ref_for_offset): Also preserve larger
37717 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
37719 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
37721 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37724 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
37726 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
37728 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37730 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
37731 (sem_function::equals_wpa): ... here.
37733 2015-03-10 Marek Polacek <polacek@redhat.com>
37734 Jakub Jelinek <jakub@redhat.com>
37737 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
37738 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
37741 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37744 * config/rs6000/t-linux: For powerpc64* target set
37745 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
37747 2015-03-10 Richard Biener <rguenther@suse.de>
37749 PR middle-end/44563
37750 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
37751 for redirect_all_calls.
37753 2015-03-10 Marek Polacek <polacek@redhat.com>
37755 * gdbinit.in (pcfun): Define and document.
37757 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
37759 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
37760 of libgomp-plugin.h.
37761 (find_target_compiler): Support a case when the path to gcc is
37762 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
37763 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
37764 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
37766 (main): Use GCC_INSTALL_NAME as target_driver_name.
37767 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
37769 (mkoffload.o): Remove obsolete include path and defines.
37770 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
37772 2015-03-10 Richard Biener <rguenther@suse.de>
37774 PR middle-end/63155
37775 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37776 * tree-ssa-coalesce.c: Include timevar.h.
37777 (attempt_coalesce): Handle graph being NULL.
37778 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37779 Split out abnormal coalescing to ...
37780 (perform_abnormal_coalescing): ... this function.
37781 (coalesce_ssa_name): Perform abnormal coalescing without computing
37783 (verify_ssa_coalescing_worker): New function.
37784 (verify_ssa_coalescing): Likewise.
37786 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
37789 * config.gcc (extra_options) [avr]: Remove.
37790 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
37791 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
37792 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
37794 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
37795 (-mmcu=): Add Var and MissingArgError properties.
37797 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
37798 * config/avr/t-multilib: Regenerate.
37799 * config/avr/specs.h: New file.
37800 * config/avr/driver-avr.c: New file.
37801 * config/avr/genopt.sh: Remove file.
37802 * config/avr/avr-tables.opt: Remove file.
37803 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
37804 * config/avr/avr-c.c: Same.
37805 * avr-arch.h: Same.
37806 (avr_current_device): Remove proto.
37807 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
37808 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
37809 (EXTRA_SPEC_FUNCTIONS): Define.
37810 (avr_devicespecs_file): New specs function proto.
37811 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
37812 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
37813 (avr_current_device): Remove definition and usage.
37814 (avr_set_core_architecture): New static function.
37815 (avr_option_override): Use it.
37816 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
37817 (mcu_name): New static array.
37818 (comparator, avr_archs_str, avr_mcus_str): New static functions.
37819 (avr_inform_devices, avr_inform_core_architectures): New functions.
37820 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
37821 (avrlibc.h) [WITH_AVRLIBC]: Include.
37822 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
37823 (print_mcu): Rewrite from scratch.
37824 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
37825 Forward to avr-specific specs defined in device-specs file.
37826 * config/avr/t-avr (driver-avr.o): New rule.
37827 (avr-devices.o): Depend on avr-arch.h.
37828 (avr-mcus): No more depend on avr-tables.opt.
37829 (avr-tables.opt): Remove rule.
37830 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
37832 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37834 * c-family/c.opt (fchkp-use-wrappers): New.
37835 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
37836 (chkp_wrap_function): New.
37837 (chkp_build_instrumented_fndecl): Support wrapped
37839 * doc/invoke.texi (-fcheck-pointer-bounds): New.
37840 (-fchkp-check-incomplete-type): New.
37841 (-fchkp-first-field-has-own-bounds): New.
37842 (-fchkp-narrow-bounds): New.
37843 (-fchkp-narrow-to-innermost-array): New.
37844 (-fchkp-optimize): New.
37845 (-fchkp-use-fast-string-functions): New.
37846 (-fchkp-use-nochk-string-functions): New.
37847 (-fchkp-use-static-bounds): New.
37848 (-fchkp-use-static-const-bounds): New.
37849 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
37850 (-fchkp-check-read): New.
37851 (-fchkp-check-write): New.
37852 (-fchkp-store-bounds): New.
37853 (-fchkp-instrument-calls): New.
37854 (-fchkp-instrument-marked-only): New.
37855 (-fchkp-use-wrappers): New.
37856 (-static-libmpx): New.
37857 (-static-libmpxwrappers): New.
37859 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37861 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
37862 (CHKP_SPEC): Add wrappers library.
37863 * c-family/c.opt (static-libmpxwrappers): New.
37865 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
37867 * config/i386/linux-common.h (LIBMPX_LIBS): New.
37868 (LIBMPX_SPEC): New.
37870 * gcc.c (CHKP_SPEC): New.
37871 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
37872 * c-family/c.opt (static-libmpx): New.
37874 2015-03-10 Richard Biener <rguenther@suse.de>
37876 PR middle-end/44563
37877 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
37879 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
37880 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
37881 (cgraph_add_edge_to_call_site_hash): Likewise.
37882 (cgraph_node::get_edge): Likewise.
37883 (cgraph_edge::set_call_stmt): Likewise.
37884 (cgraph_edge::remove_caller): Likewise.
37886 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
37888 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
37889 (callee_saved_gpr_regs_size): ... this.
37890 (callee_saved_regs_first_regno): Rename to ...
37891 (callee_saved_first_gpr_regno): ... this.
37892 (callee_saved_regs_last_regno) Rename to ...
37893 (callee_saved_last_gpr_regno): ... this.
37894 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
37896 (nds32_initial_elimination_offset): Likewise.
37897 (nds32_expand_prologue): Likewise.
37898 (nds32_expand_epilogue): Likewise.
37899 (nds32_expand_prologue_v3push): Likewise.
37900 (nds32_expand_epilogue_v3pop): Likewise.
37901 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
37902 Adjust renamed variables.
37903 (nds32_output_stack_pop): Likewise.
37905 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
37907 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
37910 2015-03-10 Jakub Jelinek <jakub@redhat.com>
37912 PR rtl-optimization/65321
37913 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
37915 * var-tracking.c (use_narrower_mode): Likewise.
37917 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
37919 PR tree-optimization/65355
37920 * varasm.c (notice_global_symbol): Do not produce RTL.
37921 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
37923 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
37924 check for section anchors.
37926 2015-03-10 Alan Modra <amodra@gmail.com>
37929 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
37930 to be single-arch by default. Set cpu_is_64bit for powerpc64
37931 given --with-cpu=native.
37932 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
37933 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
37935 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
37936 rs6000_isa_flags rather than TARGET_64BIT.
37938 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
37939 Kaz Kojima <kkojima@gcc.gnu.org>
37941 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
37943 2015-03-09 Jakub Jelinek <jakub@redhat.com>
37946 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
37947 on a TREE_BINFO, instead use BINFO_TYPE.
37949 2015-03-09 Richard Biener <rguenther@suse.de>
37951 PR middle-end/65270
37952 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
37953 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
37954 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
37955 of that. When comparing dereferences compare alignment.
37956 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
37958 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37960 * ipa-inline-analysis.c (check_callers): Check
37961 node->can_remove_if_no_direct_calls_and_refs_p.
37962 (growth_likely_positive): Reorganize to call
37963 can_remove_if_no_direct_calls_p later.
37964 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
37965 will_be_removed_from_program_if_no_direct_calls_p): Add
37966 will_inline parameter.
37967 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
37968 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37969 Handle inliner case correctly.
37971 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
37973 PR tree-optimization/63743
37974 * cfgexpand.c (reorder_operands): Also reorder if only second operand
37975 had its definition forwarded by TER.
37977 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37980 * ipa-utils.h (types_odr_comparable): Add strict argument.
37981 * ipa-devirt.c: Fix whitespace;
37982 (odr_hasher): Remove.
37983 (odr_name_hasher, odr_vtable_hasher): New hashers.
37984 (can_be_name_hashed_p): New predicate.
37985 (hash_type_name): remove.
37986 (hash_odr_name): New.
37987 (odr_name_hasher::hash): new.
37988 (can_be_vtable_hashed_p): New.
37989 (hash_odr_vtable): New.
37990 (odr_vtable_hasher::hash): New.
37991 (types_same_for_odr): Add strict parameter.
37992 (types_odr_comparable): Likewise.
37993 (odr_name_hasher::equal): New.
37994 (odr_vtable_hasher::equal): New.
37995 (odr_name_hasher::remove): New.
37996 (odr_hash_type): Change to hash_table<odr_name_hasher>.
37997 (odr_vtable_hash_type): New.
37998 (odr_vtable_hash): New.
37999 (odr_subtypes_equivalent_p): Do strict comparsion.
38000 (add_type_duplicate): Merge type names; cleanup; avoid type
38002 (register_odr_type): Initialize vtable hash.
38003 (build_type_inheritance_graph): Likewise
38004 (get_odr_type): Reorg to use two hashes.
38005 (dump_possible_polymorphic_call_targets): Move sanity check after debug
38007 (ipa_devirt): Dump type_inheritance_graph.
38008 (types_same_for_odr): Add strict mode.
38010 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38013 * cgraph.h (symtab_node): Add definition_alignment,
38014 can_increase_alignment_p and increase_alignment.
38015 * symtab.c (symtab_node::can_increase_alignment_p,
38016 increase_alignment_1, symtab_node::increase_alignment,
38017 symtab_node::definition_alignment): New.
38018 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
38019 can_increase_alignment_p.
38020 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
38021 * tree-vect-stmts.c (ensure_base_align): Likewise.
38022 * varasm.c (function_section_1): Use definition_alignment.
38023 (assemble_start_function): Likewise.
38024 (emit_local): likewise.
38025 (build_constant_desc): Likewsie.
38026 (output_constant_def_contents): Likewise.
38027 (place_block_symbol): Likewise.
38028 (output_object_block): Likewise.
38030 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38033 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
38034 when outputting debug.
38036 2015-03-07 Marek Polacek <polacek@redhat.com>
38037 Martin Uecker <uecker@eecs.berkeley.edu>
38040 * doc/invoke.texi: Update description of -fsanitize=bounds.
38042 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
38044 * tree-ssa-phiopt.c (neg_replacement): Remove.
38045 (tree_ssa_phiopt_worker): Remove negate optimization.
38047 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38050 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
38052 2015-03-06 Richard Biener <rguenther@suse.de>
38054 PR middle-end/64928
38055 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
38056 and liveout_obstack members.
38057 (calculate_live_on_exit): Remove.
38058 (calculate_live_ranges): Change declaration.
38059 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
38060 (new_tree_live_info): Adjust.
38061 (calculate_live_ranges): Delete livein when not wanted.
38062 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
38063 Deal with partly deleted live info.
38064 (loe_visit_block): Remove temporary bitmap by using
38065 bitmap_ior_and_compl_into.
38066 (live_worklist): Adjust accordingly.
38067 (calculate_live_on_exit): Make static.
38068 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
38069 we do not need livein.
38071 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
38073 * real.c (real_from_string): Fix typo in assertion.
38075 2015-03-06 Alex Velenko <alex.velenko@arm.com>
38077 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
38080 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38082 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
38084 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
38087 * lra-assigns.c (find_hard_regno_for): Rename to
38088 find_hard_regno_for_1. Add a new parameter.
38089 (find_hard_regno_for): New function using find_hard_regno_for_1.
38091 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38093 PR rtl-optimization/65067
38094 * expmed.c (store_bit_field, extract_bit_field): Reworked the
38095 strict volatile bitfield handling.
38097 2015-03-05 Martin Liska <mliska@suse.cz>
38100 * ipa-icf.c (sem_variable::equals): Compare variables types.
38102 2015-03-05 Richard Henderson <rth@redhat.com>
38105 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
38106 correctly check weak symbol binding.
38108 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
38110 PR middle-end/65315
38111 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
38114 2015-03-05 Martin Liska <mliska@suse.cz>
38116 * ipa-inline.c (inline_small_functions): Set default value to
38117 prevent warning during bootstrap.
38118 * tree.h: Add pragma guard that ignores false positives during
38121 2015-03-05 Richard Biener <rguenther@suse.de>
38123 PR tree-optimization/65310
38124 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
38125 Properly preserve alignment of the base of the access.
38127 2015-03-05 Richard Biener <rguenther@suse.de>
38130 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
38131 Compare dependence info.
38133 2015-03-05 Richard Biener <rguenther@suse.de>
38135 PR middle-end/65233
38136 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
38138 (walk_ssa_copies): Revert last chage. Instead do not walk
38139 SSA names registered for SSA update.
38141 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38144 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
38145 vtable references for their containing type.
38146 (sem_function::equals_wpa): Compare TYPE_RESTRICT
38147 and type attributes.
38149 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
38151 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
38152 before negating it.
38153 * stor-layout.c (finalize_record_size): Revert latest change.
38155 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
38157 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
38159 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38161 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
38162 for correct comdat handling.
38163 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
38165 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
38166 (used_from_object_file_p_worker): Remove.
38167 (cgraph_node::only_called_directly_or_alised): Add
38168 used_from_object_file_p.
38169 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
38170 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
38171 can_remove_if_no_direct_calls_and_refs_p.
38173 2015-03-04 Nick Clifton <nickc@redhat.com>
38175 * config/rl78/rl78.h (enum reg_class): Remove real registers from
38176 General register class.
38177 * config/rl78/rl78-real.md: Replace general register constraints
38178 with real+virtual register constraints.
38180 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38182 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
38183 from checking for -mhtm option.
38185 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38187 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
38188 (struct ipa_sra_check_caller_data): Add has_thunk field.
38189 (ipa_sra_check_caller): Check for thunk.
38190 (ipa_sra_preliminary_function_checks): Give up on function with
38192 (ipa_early_sra): Use call_for_symbol_and_aliases.
38194 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
38197 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
38198 called for __stack_chk_guard symbol.
38200 2015-03-03 DJ Delorie <dj@redhat.com>
38202 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
38204 (*addhi3_real): Likewise.
38205 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
38206 pattern to match incrementing memory.
38207 * config/rl78/predicates.md (rl78_1_2_operand): New.
38208 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
38209 it's the same and only mem.
38210 (rl78_alloc_physical_registers_op2): If there's effectively only
38211 one MEM, transcode it into HL.
38212 (rl78_far_p): Reject addresses that aren't legitimate.
38214 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38216 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
38219 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
38221 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38223 Implement call0 ABI for xtensa
38224 * config/xtensa/constraints.md ("a" constraint): Include stack
38225 pointer in case of call0 ABI.
38226 ("q" constraint): Make empty in case of call0 ABI.
38227 ("D" constraint): Include stack pointer in case of call0 ABI.
38228 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
38229 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
38231 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
38233 (xtensa_regno_to_class): Make it a local variable in the
38234 function xtensa_regno_to_class.
38235 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
38236 macro, function prototype and implementation.
38237 (reg_nonleaf_alloc_order): Make it a local variable in the
38238 function order_regs_for_local_alloc.
38239 (xtensa_conditional_register_usage): New function.
38240 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
38241 (xtensa_valid_move): Allow direct moves to stack pointer
38242 register in call0 ABI.
38243 (xtensa_setup_frame_addresses): Only spill register windows in
38245 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
38246 call0 ABI respectively.
38247 (xtensa_function_arg_1): Only mark a7 register for copying in
38249 (xtensa_call_save_reg): New function.
38250 (compute_frame_size): Add space for callee saved register
38251 storage to the frame size in call0 ABI.
38252 (xtensa_expand_prologue): Generate code to set up stack frame
38253 and save callee-saved registers in call0 ABI.
38254 (xtensa_expand_epilogue): New function.
38255 (xtensa_set_return_address): New function.
38256 (xtensa_return_addr): Calculate return address in call0 ABI.
38257 (xtensa_builtin_saveregs): Only mark a7 register for copying and
38258 emit copying code in windowed ABI.
38259 (order_regs_for_local_alloc): Add preferred register allocation
38260 order for non-leaf function in call0 ABI.
38261 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
38262 (xtensa_asm_trampoline_template): Add trampoline generation for
38264 (xtensa_trampoline_init): Add trampoline initialization for
38266 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
38268 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
38269 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
38270 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
38271 ABI call-used registers.
38272 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
38273 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
38275 (REG_CLASS_CONTENTS): Include all registers into the preferred
38276 reload registers set, adjust the set in the
38277 xtensa_conditional_register_usage.
38278 (xtensa_regno_to_class): Drop variable declaration.
38279 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
38281 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
38283 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
38284 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
38285 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
38286 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
38287 location in call0 ABI.
38288 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
38289 stack adjustment size when handling exception.
38290 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
38291 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
38293 ("return" pattern): Generate ret.n/ret in call0 ABI.
38294 ("epilogue" pattern): Expand epilogue.
38295 ("nonlocal_goto" pattern): Use default in call0 ABI.
38296 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
38297 emit eh_set_a0_* depending on ABI.
38298 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
38299 ("eh_set_a0_call0", "blockage"): New patterns.
38301 2015-03-03 Martin Liska <mliska@suse.cz>
38304 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
38306 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
38309 * config/rs6000/rs6000-tables.opt: Regenerate table.
38311 2015-03-03 Renlin Li <renlin.li@arm.com>
38313 * doc/md.texi (@item ^): Change ? into ^.
38315 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
38317 * doc/tm.texi: Regenerated.
38319 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38321 * builtins.c (expand_builtin_return_addr): Add
38322 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
38323 surrounding #ifdef.
38324 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
38326 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
38328 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
38330 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
38333 2015-03-03 Martin Jambor <mjambor@suse.cz>
38334 Eric Botcazou <ebotcazou@adacore.com>
38336 * tree-sra.c (ipa_sra_check_caller_data): New type.
38337 (has_caller_p): Removed.
38338 (ipa_sra_check_caller): New function.
38339 (ipa_sra_preliminary_function_checks): Use it.
38341 2015-03-03 Martin Liska <mliska@suse.cz>
38343 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
38344 instead of if branch.
38346 2015-03-03 Martin Liska <mliska@suse.cz>
38349 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
38351 2015-03-23 Jeff Law <law@redhat.com>
38353 PR tree-optimization/65241
38354 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
38355 hash table if INSERT is true.
38357 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38360 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
38362 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38365 * config/avr/avr.c (context.h, tree-pass.h): Include them.
38366 (avr_pass_data_recompute_notes): New static variable.
38367 (avr_pass_recompute_notes): New class.
38368 (avr_register_passes): New static function.
38369 (avr_option_override): Call it.
38371 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38373 Fix various problems with specs file generation.
38376 * config.gcc (extra_gcc_objs) [avr]: Remove.
38377 * config/avr/driver-avr.c: Remove file.
38378 * config/avr/t-avr (driver-avr.o): Remove rule.
38379 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
38380 INCLUDES to build. Depend on TM_H.
38381 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
38382 build warnings. Fix non-matching types and non-existing %-codes.
38384 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
38385 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
38386 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
38387 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
38388 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
38389 (LIBGCC_SPEC): Remove definitions.
38391 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38393 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
38394 to create a register in testing mode.
38396 2015-03-03 Martin Liska <mliska@suse.cz>
38397 Jan Hubicka <hubicka@ucw.cz>
38400 * cgraph.c (cgraph_node::has_thunk_p): New function.
38401 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
38402 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
38403 (sem_function::merge): Assert is changed.
38405 2015-03-03 Martin Liska <mliska@suse.cz>
38406 Martin Jambor <mjambor@suse.cz>
38409 * ipa-icf.c (sem_item_optimizer::execute): Change function
38410 return value to boolean.
38411 (sem_item_optimizer::merge_classes): Likewise.
38412 (ipa_icf_driver): Return TODO_remove_functions in case there's
38413 a merge operation processed.
38414 * ipa-icf.h: Change function return value to boolean.
38416 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
38419 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
38420 processor type for 64-bit little endian PowerPC.
38422 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
38423 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
38424 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
38425 printing built-in mask so it does not pass NULL pointers.
38427 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
38430 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
38433 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
38434 !ISA_HAS_FP_CONDMOVE.
38436 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
38438 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
38441 2015-03-02 Ulrich Drepper <drepper@gmail.com>
38443 * doc/invoke.texi (Options for Code Generation Conventions):
38444 Fix URL of DSO paper.
38446 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38449 * ipa-inline.c (check_callers): Looks for recursion.
38450 (inline_to_all_callers): Give up on uninlinable or recursive edges.
38451 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
38452 summary of inline clones.
38453 (do_estimate_growth_1): Fix recursion check.
38455 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38458 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
38461 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38462 Aldy Hernandez <aldyh@redhat.com>
38465 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
38466 when checking TYPE_BINFO.
38468 2015-03-02 Richard Biener <rguenther@suse.de>
38471 * ipa-icf-gimple.c: Include builtins.h.
38472 (func_checker::compare_memory_operand): Compare base alignment.
38474 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38477 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
38478 passed by reference.
38480 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38483 * tree-chkp.c (chkp_check_lower): Don't check against
38484 zero bounds for already instrumented functions.
38485 (chkp_check_upper): Likewise.
38486 (chkp_fini): Clean pass local data to avoid wrong reusage.
38488 2015-02-28 Martin Liska <mliska@suse.cz>
38489 Jan Hubicka <hubicka@ucw.cz>
38491 * ipa-icf.c (sem_variable::equals): Improve debug output;
38492 get variable constructor.
38493 (sem_variable::parse): Do not filter out too early; give up on
38494 volatile and register vars.
38495 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
38497 * ipa-icf.h (sem_variable::init): Do not set ctor.
38498 (sem_variable::ctor): Remove.
38500 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
38502 PR middle-end/65233
38503 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
38505 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38507 * ipa-icf.c: Include stor-layout.h
38508 (sem_function::compare_cgraph_references): Rename to ...
38509 (sem_item::compare_cgraph_references): ... this one.
38510 (sem_variable::equals_wpa): New function
38511 (sem_variable::equals): Do not check stuff already verified by
38513 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
38514 * ipa-icf.h (sem_item): Add compare_cgraph_references.
38515 (sem_function): Remove compare_cgraph_references.
38516 (sem_variable): Turns equals_wpa into non-inline.
38518 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38520 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
38521 (sem_item::add_expr): New function.
38522 (sem_function::hash_stmt): Handle operands of most statements.
38523 (sem_variable::get_hash): Hash the actual constructor.
38524 * ipa-icf.h (sem_item): Add add_expr.
38525 (sem_function): Update prototype of hash_stmt
38527 2015-02-28 Martin Liska <mliska@suse.cz>
38528 Jan Hubicka <hubicka@ucw.cz>
38531 * ipa-icf-gimple.c (func_checker::compare_function_decl):
38533 (func_checker::compare_variable_decl): Skip symtab vars.
38534 (func_checker::compare_cst_or_decl): Update.
38535 * ipa-icf.c (sem_function::parse): Do not consider aliases.
38536 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
38537 use correct symtab predicates.
38538 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
38539 (sem_variable::parse): Update comment.
38540 (sem_item_optimizer::build_graph): Consider ultimate aliases
38543 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38545 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
38548 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38550 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
38551 (sem_variable::merge) Likewise.
38553 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38555 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
38556 target; also match flag_ipa_devirt.
38558 2015-03-01 Martin Liska <mliska@suse.cz>
38559 Jan Hubicka <hubicka@ucw.cz>
38561 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
38562 Validate variable alignment.
38563 * ipa-icf.c (sem_function::equals_private): Be more precise
38564 about non-common function attributes.
38565 (sem_variable::equals): Likewise.
38567 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38570 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
38571 across COMDAT group boundary.
38573 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38576 * ipa-icf.c (clear_decl_rtl): New function.
38577 (sem_function::merge): Clear RTL before forming alias.
38578 (sem_variable::merge): Clear RTL before forming alias.
38580 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38583 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
38585 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
38587 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
38590 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38592 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
38593 a typo in the description.
38595 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38598 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38599 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38600 * lra-constraints.c: Include "params.h".
38601 (EBB_PROBABILITY_CUTOFF): Use
38602 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
38603 (lra_inheritance): Use '<' instead of '<=' for
38604 EBB_PROBABILITY_CUTOFF.
38605 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
38608 2015-02-27 Martin Liska <mliska@suse.cz>
38610 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
38611 vector length condition.
38613 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
38615 * doc/extend.texi (x86 transactional memory intrinsics):
38616 Reorganize discussion of _xbegin. Clarify that the return
38617 value is a bit mask. Expand example and move to end of section.
38619 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38620 Aldy Hernandez <aldyh@redhat.com>
38622 PR rtl-optimization/65220
38623 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
38625 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38628 * lra-remat.c (update_scratch_ops): New.
38629 (do_remat): Call it.
38630 * lra.c (lra_register_new_scratch_op): New. Take code from ...
38631 (remove_scratches): ... here.
38632 * lra-int.h (lra_register_new_scratch_op): New prototype.
38634 2015-02-27 Marek Polacek <polacek@redhat.com>
38637 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
38638 -Wformat-signedness anymore.
38640 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38642 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
38644 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
38646 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38648 * config/s390/s390.c (enum s390_builtin):
38649 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
38650 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
38651 (s390_init_builtins): Generate new builtin functions.
38652 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
38653 (s390_sfpc, s390_efpc): New pattern definitions.
38655 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38657 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
38658 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
38659 (s390_builtin_decls): New array.
38660 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
38661 (s390_builtin_decl): New function.
38662 (TARGET_BUILTIN_DECL): Define macro.
38664 2015-02-27 Richard Biener <rguenther@suse.de>
38666 PR middle-end/63175
38667 * builtins.c (get_object_alignment_2): Make sure to re-apply
38668 the ANDed mask after recursing to its operand gets us a new
38669 misalignment bit position.
38671 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
38672 Martin Liska <mliska@suse.cz>
38675 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
38676 Use address_matters_p.
38677 (redirect_all_callers, set_addressable): New functions.
38678 (sem_function::merge): Reorganize and fix merging issues.
38679 (sem_variable::merge): Likewise.
38680 (sem_variable::compare_sections): Remove.
38681 * common.opt (fmerge-all-constants, fmerge-constants): Remove
38683 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
38685 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
38687 (address_matters_1): New function.
38688 (symtab_node::address_matters_p): New function.
38689 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
38690 check for merged flag.
38691 * cgraph.h (address_matters_p): Declare.
38692 (symtab_node::address_taken_from_non_vtable_p): Remove.
38693 (symtab_node::address_can_be_compared_p): New method.
38694 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
38695 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
38697 (comdat_can_be_unshared_p_1) Use address_matters_p.
38698 (update_vtable_references): Fix formating.
38699 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
38700 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
38701 * cgraphclones.c: Preserve merged and icf_merged flags.
38703 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
38705 * doc/extend.texi (Function Attributes): Fix spelling and typos.
38706 (Label Attributes): Likewise.
38707 (Cilk Plus Builtins): Likewise.
38708 (ARC SIMD Built-in Functions): Likewise.
38709 (ARM C Language Extensions (ACLE)): Likewise.
38710 (PowerPC Built-in Functions): Likewise.
38711 (PowerPC Hardware Transactional Memory Built-in Functions):
38714 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38716 PR tree-optimization/65216
38717 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
38718 new stmt and new SSA_NAME for lhs whenever the arguments have
38719 changed and weren't just swapped. Fix comment typo.
38721 PR tree-optimization/65215
38722 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
38723 for PDP endian targets.
38724 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
38725 Fix up formatting issues.
38726 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
38727 size is smaller than the original, adjust MEM_REF offset by the
38728 difference of sizes. Use is_gimple_mem_ref_addr instead of
38729 is_gimple_min_invariant test to avoid adding address temporaries.
38731 2015-02-26 Martin Liska <mliska@suse.cz>
38732 Jan Hubicka <hubicka@ucw.cz>
38735 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
38736 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
38737 (sem_item_optimizer::process_cong_reduction): Include division by
38738 sensitive references.
38739 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
38740 * ipa-ref.c (ipa_ref::address_matters_p): New function.
38741 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
38743 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
38746 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
38748 * config/avr/avr.c: Same.
38749 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
38750 Refuse any constant address not in 0..0xbf.
38751 * config/avr/avr.md (*mov<mode>, *movsf): Remove
38752 tiny_valid_direct_memory_access_range from insn conditions.
38753 (mov<mode>): Don't special-case expansion of avrtiny addresses.
38755 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
38758 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
38759 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
38760 * config/sh/predicates.md (const_logical_operand): New predicate.
38761 * config/sh/sh.md: Add new peephole2 patterns.
38763 2015-02-26 Marek Polacek <polacek@redhat.com>
38766 * ipa-inline.c (early_inliner): Recompute inline parameters.
38768 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38771 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
38772 instructions with TImode operands are included in the analysis.
38774 2015-02-26 Sebastian Pop <s.pop@samsung.com>
38776 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
38777 of an EDGE_FSM_THREAD.
38779 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
38781 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
38783 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
38786 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
38788 2015-02-26 Sebastian Pop <s.pop@samsung.com>
38790 PR tree-optimization/65048
38791 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
38792 (thread_through_all_blocks): Call valid_jump_thread_path.
38793 Remove invalid FSM jump-thread paths.
38795 2015-02-26 Jakub Jelinek <jakub@redhat.com>
38797 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
38798 (ipa_write_optimization_summaries): Likewise.
38799 * tree-streamer.h: Include data-streamer.h.
38800 (streamer_mode_table): Declare extern variable.
38801 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
38802 * lto-streamer-out.c (lto_output_init_mode_table,
38803 lto_write_mode_table): New functions.
38804 (produce_asm_for_decls): Call lto_write_mode_table when streaming
38806 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
38807 (lto_create_simple_input_block): Add mode_table argument to the
38808 lto_input_block constructors.
38809 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
38811 * data-streamer-in.c (string_for_index): Likewise.
38812 * ipa-inline-analysis.c (inline_read_section): Likewise.
38813 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
38814 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
38815 * lto-streamer-in.c (lto_read_body_or_constructor,
38816 lto_input_toplevel_asms): Likewise.
38817 (lto_input_mode_table): New function.
38818 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
38819 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
38820 Use bp_pack_machine_mode.
38821 * real.h (struct real_format): Add name field.
38822 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
38823 (class lto_input_block): Add mode_table member.
38824 (lto_input_block::lto_input_block): Add mode_table_ argument,
38825 initialize mode_table.
38826 (struct lto_file_decl_data): Add mode_table field.
38827 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
38828 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
38829 unpack_ts_decl_common_value_fields,
38830 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
38831 * tree-streamer.c (streamer_mode_table): New variable.
38832 * real.c (ieee_single_format, mips_single_format,
38833 motorola_single_format, spu_single_format, ieee_double_format,
38834 mips_double_format, motorola_double_format,
38835 ieee_extended_motorola_format, ieee_extended_intel_96_format,
38836 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
38837 ibm_extended_format, mips_extended_format, ieee_quad_format,
38838 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
38839 decimal_single_format, decimal_double_format, decimal_quad_format,
38840 ieee_half_format, arm_half_format, real_internal_format): Add name
38842 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
38844 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
38847 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
38848 reordering for selective scheduling.
38850 2015-02-26 Terry Guo <terry.guo@arm.com>
38852 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
38853 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
38854 (arm_arch_no_volatile_ce): Declare new global variable.
38855 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
38856 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
38857 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
38858 (TARGET_NO_VOLATILE_CE): New macro.
38859 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
38860 volatile memory access in IT block
38862 2015-02-25 Kai Tietz <ktietz@redhat.com>
38864 PR tree-optimization/61917
38865 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
38866 that reduc_def_stmt is null.
38868 2015-02-25 Martin Liska <mliska@suse.cz>
38870 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
38871 hard register variables.
38873 2015-02-25 Kai Tietz <ktietz@redhat.com>
38876 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
38877 (symtab::noninterposable_alias): Likewise.
38879 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
38882 * config/i386/i386.c (ix86_function_arg_regno_p): Support
38884 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
38886 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
38889 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
38890 as split condition; force split via '#' in output pattern.
38892 2015-02-25 Richard Biener <rguenther@suse.de>
38893 Kai Tietz <ktietz@redhat.com>
38895 PR tree-optimization/61917
38896 * tree-vect-loop.c (vectorizable_reduction): Allow
38897 vect_internal_def without reduction to exit graceful.
38899 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
38902 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
38903 only with NONDEBUG_INSN_P.
38905 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
38907 Use variadic macros with avr-log.c.
38909 * config/avr/avr-protos.h (avr_vdump): New prototype.
38910 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
38911 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
38912 * config/avr/avr-log.c: Adjust comments.
38913 (avr_vdump): New function.
38914 (avr_vadump): Pass caller as 2nd argument instead of format string.
38915 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
38916 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
38918 2015-02-25 Jakub Jelinek <jakub@redhat.com>
38921 * target.def (target_option_stream_in): New target hook.
38922 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
38923 targetm.target_option.post_stream_in if non-NULL.
38924 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
38925 * doc/tm.texi: Updated.
38926 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
38928 (TARGET_OPTION_POST_STREAM_IN): Redefine.
38930 2015-02-24 Jeff Law <law@redhat.com>
38933 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
38934 of operand 0 and operand 2.
38935 (zero_cost_loop_end, loop_end): Similarly.
38937 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
38939 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
38942 2015-02-24 DJ Delorie <dj@redhat.com>
38944 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
38945 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
38946 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
38947 instead of hardcoding SImode.
38949 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
38951 * omp-low.c (create_omp_child_function): Tag entrypoint
38952 functions with a special attribute.
38954 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38957 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
38959 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
38961 PR rtl-optimization/65123
38962 * lra-remat.c (operand_to_remat): Check hard regs in insn
38965 2015-02-24 Nick Clifton <nickc@redhat.com>
38967 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
38970 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
38973 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
38974 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
38975 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
38976 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
38977 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
38978 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
38979 (BUILT_IN_GOACC_PARALLEL): Specify as
38980 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
38981 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
38982 * builtin-types.def
38983 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38984 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38985 Remove function types.
38986 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
38987 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38988 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38989 New function types.
38991 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
38993 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
38995 2015-02-24 Jakub Jelinek <jakub@redhat.com>
38997 PR tree-optimization/65170
38998 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
38999 if val[1] < 0, clear also val[2] and return 3.
39001 2015-02-24 Alan Modra <amodra@gmail.com>
39004 * config/rs6000/rs6000.c (get_memref_parts): Only return true
39005 when *base is a reg. Handle nested plus addresses. Simplify
39008 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
39010 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
39011 use natural alignment when optimizing for size.
39013 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
39016 * config/sh/sh.md (movsicc_true+3): Remove peephole.
39017 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
39018 * config/sh/sh.c (replace_n_hard_rtx): Remove.
39020 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
39023 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
39024 too big for a wide_int. Implement missing wrapping operation.
39026 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
39029 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
39030 instead of const_int 4294901760.
39032 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
39034 * config/avr/t-avr: Fix typo in comment.
39036 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
39038 * doc/rtl.texi (fma): Clarify documentation.
39040 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
39043 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
39044 over input_location.
39046 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39048 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
39049 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
39050 restrict alignments to absolute_biggest_alignment.
39051 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
39053 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
39054 * doc/tm.texi: Regenerate.
39055 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
39057 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
39060 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
39062 2015-02-20 Richard Biener <rguenther@suse.de>
39064 PR tree-optimization/65136
39065 * tree-ssa-propagate.c: Include cfgloop.h.
39066 (replace_phi_args_in): Avoid replacing loop latch edge PHI
39067 arguments with constants.
39069 2015-02-20 Jakub Jelinek <jakub@redhat.com>
39070 Martin Liska <mliska@suse.cz>
39073 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
39074 don't try to create_thunk if stdarg_p. If
39075 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
39076 redirect_callers if possible.
39077 (sem_item_optimizer::execute): Call unregister_hooks here...
39078 (ipa_icf_driver): ... instead of here.
39080 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39082 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
39083 Mark operand 0 as earlyclobber in 2nd alternative.
39084 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
39085 Write negated shift amount into QI lowpart operand 0 and use it
39087 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
39089 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39091 * cgraph.h (clone_function_name_1): Declare.
39092 * cgraphclones.c (clone_function_name_1): New function.
39093 (clone_function_name): Use it.
39094 * lto-partition.c: Include "stringpool.h".
39095 (must_not_rename, maybe_rewrite_identifier)
39096 (validize_symbol_for_target): New static functions.
39097 (privatize_symbol_name): Use must_not_rename.
39098 (promote_symbol): Call validize_symbol_for_target.
39099 (lto_promote_cross_file_statics): Likewise.
39100 (lto_promote_statics_nonwpa): Likewise.
39102 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
39105 * config/avr/avr.md (pushhi_insn): New insn.
39106 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
39108 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39109 Jakub Jelinek <jakub@redhat.com>
39111 * tree-streamer.c (preload_common_nodes): Don't preload
39112 TI_VA_LIST* for offloading.
39113 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
39116 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
39118 * config/pa/pa.c (pa_emit_move_sequence): Always force
39119 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
39122 * config/pa/pa.c (pa_reloc_rw_mask): New function.
39123 (TARGET_ASM_RELOC_RW_MASK): Define.
39124 (pa_cannot_force_const_mem): Revert previous change.
39126 2015-02-19 Martin Jambor <mjmabor@suse.cz>
39127 Jan Hubicka <hubicka@ucw.cz>
39130 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
39131 across jump functions.
39133 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
39135 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
39137 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
39139 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
39141 2015-02-19 Richard Henderson <rth@redhat.com>
39143 PR middle-end/65074
39144 * varasm.c (default_binds_local_p_2): Don't test node->definition;
39145 test DECL_EXTERNAL independent of symtab_node.
39147 2015-02-19 Jakub Jelinek <jakub@redhat.com>
39150 * varpool.c (varpool_node::get_constructor): Return early
39151 if this->lto_file_data is NULL.
39153 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39155 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
39156 (rank_for_schedule_debug): Update.
39157 (ready_sort): Make static. Move sorting logic to ...
39158 (ready_sort_debug, ready_sort_real): New static functions.
39159 (schedule_block): Sort both debug insns and real insns in preparation
39160 for ready list trimming. Improve debug output.
39161 * sched-int.h (ready_sort): Remove global declaration.
39163 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
39165 * ipa-icf.c (sem_function::equals_private): Adjust.
39166 (sem_function::bb_dict_test): Take a vec<int> * instead of
39168 * ipa-icf.h (bb_dict_test): Likewise.
39170 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39172 PR gcov-profile/64634
39173 * tree-eh.c (frob_into_branch_around): Fix up typos
39174 in function comment.
39175 (lower_catch): Put eh_seq resulting from EH lowering of
39176 the cleanup sequence after the cleanup rather than before it.
39178 2015-02-18 Tom de Vries <tom@codesourcery.com>
39180 * common.opt (fstdarg-opt): New option.
39181 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
39182 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
39183 (@item -fstdarg-opt): New item.
39185 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
39188 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
39189 for common symbols.
39191 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39193 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
39195 (ALL_HOST_OBJS): Add mkoffload.o.
39196 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
39198 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
39200 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
39201 (compare_virtual_tables): Be smarter about skipping typeinfos;
39202 do sane output on virtual table table mismatch.
39203 (warn_odr): Be ready for forward declarations of enums;
39204 output sane info on base mismatch and virtual table mismatch.
39205 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
39206 when only one type is polymorphic.
39207 (get_odr_type): Fix hashtable corruption.
39208 (dump_odr_type): Dump mangled names.
39210 2015-02-18 Richard Biener <rguenther@suse.de>
39212 PR tree-optimization/65063
39213 * tree-predcom.c (determine_unroll_factor): Return 1 if we
39214 have replaced looparound PHIs.
39216 2015-02-18 Martin Liska <mliska@suse.cz>
39218 * lto-streamer.c (lto_streamer_init): Encapsulate
39219 streamer_check_handled_ts_structures with checking macro.
39221 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39224 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
39225 section if !implicit_section.
39226 (cgraph_node::create_version_clone_with_body): Likewise.
39227 * trans-mem.c (ipa_tm_create_version): Likewise.
39229 2015-02-18 Richard Biener <rguenther@suse.de>
39231 PR tree-optimization/62217
39232 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
39235 2015-02-18 Marek Polacek <polacek@redhat.com>
39238 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
39239 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
39240 is in range [-16K, -1]. Don't issue run-time error if
39241 (ptr > ptr + offset).
39243 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
39245 * doc/install.texi (nvptx-*-none): New section.
39246 * doc/invoke.texi (Nvidia PTX Options): Likewise.
39247 * config/nvptx/nvptx.opt: Update.
39249 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
39250 (access_check): New functions, copied from
39251 config/i386/intelmic-mkoffload.c.
39252 (main): For non-installed testing, look in all COMPILER_PATHs for
39255 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
39257 2015-02-18 Andrew Pinski <apinski@cavium.com>
39258 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39260 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
39261 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
39263 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39265 * ipa-visibility.c (function_and_variable_visibility): Only
39266 check locality if node is not already local.
39267 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39268 call_for_symbol_and_aliases instead of
39269 call_for_symbol_thunks_and_aliases.
39270 (ipa_inline): Likewise.
39271 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39272 first walk aliases.
39273 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39274 call_for_symbol_and_aliases.
39275 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39276 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39277 (ipa_propagate_frequency): Update.
39278 (ipa_profile): Add opt_for_fn gueards.
39280 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39282 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
39283 * doc/invoke.texi (SH options): Document it.
39284 * config/sh/sh.c (sh_insn_length_adjustment): Check
39285 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
39287 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
39289 * common.opt (fipa-cp-alignment): New.
39290 * ipa-cp.c (ipcp_store_alignment_results): Check
39291 flag_ipa_cp_alignment.
39292 * opts.c (default_options_table): Enable -fipa-cp-alignment for
39294 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
39295 * doc/invoke.texi: Document -fipa-cp-alignment.
39297 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39300 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
39301 to nil. Adjust comments.
39303 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39305 * ipa-visibility.c (function_and_variable_visibility): Only
39306 check locality if node is not already local.
39307 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39308 call_for_symbol_and_aliases instead of
39309 call_for_symbol_thunks_and_aliases.
39310 (ipa_inline): Likewise.
39311 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39312 first walk aliases.
39313 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39314 call_for_symbol_and_aliases.
39315 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39316 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39317 (ipa_propagate_frequency): Update.
39318 (ipa_profile): Add opt_for_fn guards.
39320 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
39322 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
39323 skipping of "strange" tokens.
39325 2015-02-17 Jeff Law <law@redhat.com>
39327 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
39330 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
39332 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
39333 as forcing a HARD_DEP between instructions, thereby
39334 disallowing rewriting to break dependencies.
39336 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39338 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
39339 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
39340 variables in boundary that have no inlitalizer encoded and are
39342 * varasm.c (default_binds_local_p_2): External definitions do not
39343 count as definitions here.
39345 2015-02-16 Jeff Law <law@redhat.com>
39347 PR tree-optimization/64823
39348 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
39350 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39351 threading through blocks with PHIs, but no statements.
39352 (thread_through_normal_block): Distinguish between blocks where
39353 we did not process all the statements and blocks with no statements.
39355 2015-02-16 Jakub Jelinek <jakub@redhat.com>
39356 James Greenhalgh <james.greenhalgh@arm.com>
39359 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
39360 section if not linkonce. Fix up formatting.
39361 (cgraph_node::create_version_clone_with_body): Copy section.
39362 * trans-mem.c (ipa_tm_create_version): Likewise.
39364 2015-02-16 Richard Biener <rguenther@suse.de>
39366 PR tree-optimization/65077
39367 * tree-ssa-structalias.c (get_constraint_for_1): Handle
39368 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
39369 (find_func_aliases): Allow float values to carry pointers again.
39371 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
39373 * doc/install.texi (Specific): Reorder targets list to put
39374 aarch64 in alphabetical order. Add a link to aarch64*-*-*
39377 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39378 David Edelsohn <dje.gcc@gmail.com>
39381 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
39382 mapping class to external variable or function reference.
39383 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
39386 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
39389 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
39390 ASM_WEAKEN_DECL if defined.
39392 2015-02-16 Richard Biener <rguenther@suse.de>
39395 * varasm.c (default_file_start): For LTO produced units
39396 emit <artificial> as file directive.
39398 2015-02-16 Richard Biener <rguenther@suse.de>
39400 PR tree-optimization/63593
39401 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
39402 stmts and releasing SSA names until...
39403 (execute_pred_commoning): ... after processing all chains.
39405 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39408 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
39409 external functions.
39411 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
39413 * doc/bugreport.texi: Adjust section titles throughout the file
39414 to use "Title Case".
39415 * doc/extend.texi: Likewise.
39416 * doc/gcov.texi: Likewise.
39417 * doc/implement-c.texi: Likewise.
39418 * doc/implement-cxx.texi: Likewise.
39419 * doc/invoke.texi: Likewise.
39420 * doc/objc.texi: Likewise.
39421 * doc/standards.texi: Likewise.
39422 * doc/trouble.texi: Likewise.
39424 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
39426 * cgraph.h (symtab_node::has_aliases_p): Simplify.
39427 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
39428 * tree.c (lookup_binfo_at_offset): Make static.
39429 (get_binfo_at_offset): Do not shadow offset; add explanatory
39432 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
39434 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
39435 for all floading point loads and stores except those using a register
39437 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
39440 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39442 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
39443 (do_estimate_growth_1): Record if any uninlinable edge was seen.
39444 (estimate_growth): Handle uninlinable edges correctly.
39445 (check_callers): New.
39446 (growth_likely_positive): Handle aliases correctly.
39448 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39450 * ipa-chkp.c: Use iterate_direct_aliases.
39451 * symtab.c (resolution_used_from_other_file_p): Move inline.
39452 (symtab_node::create_reference): Fix formating.
39453 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39454 (symtab_node::iterate_reference): Move inline.
39455 (symtab_node::iterate_referring): Move inline.
39456 (symtab_node::iterate_direct_aliases): Move inline.
39457 (symtab_node::used_from_object_file_p_worker): Inline into ...
39458 (symtab_node::used_from_object_file_p): ... this one; move inline.
39459 (symtab_node::call_for_symbol_and_aliases): Move inline;
39460 use iterate_direct_aliases.
39461 (symtab_node::call_for_symbol_and_aliases_1): New method.
39462 (cgraph_node::call_for_symbol_and_aliases): Move inline;
39463 use iterate_direct_aliases.
39464 (cgraph_node::call_for_symbol_and_aliases_1): New method.
39465 (varpool_node::call_for_node_and_aliases): Rename to ...
39466 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
39467 use iterate_direct_aliases.
39468 (varpool_node::call_for_symbol_and_aliases_1): New method.
39469 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
39470 (ipa_discover_readonly_nonaddressable_var): Update.
39471 * ipa-devirt.c: Fix formating.
39472 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
39474 (cgraph_node::call_for_symbol_and_aliases): Move inline.
39475 (cgraph_node::call_for_symbol_and_aliases_1): New function..
39476 * cgraph.h (used_from_object_file_p_worker): Remove.
39477 (resolution_used_from_other_file_p): Move inline.
39478 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39479 (symtab_node::iterate_reference): Move inline.
39480 (symtab_node::iterate_referring): Move inline.
39481 (symtab_node::iterate_direct_aliases): Move inline.
39482 (symtab_node::used_from_object_file_p_worker): Inline into ...
39483 (symtab_node::used_from_object_file_p): Move inline.
39484 * tree-emutls.c (ipa_lower_emutls): Update.
39485 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
39486 (varpool_node::call_for_node_and_aliases): Remove.
39488 2015-02-14 Jakub Jelinek <jakub@redhat.com>
39490 PR tree-optimization/62209
39491 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
39492 op == range->exp, insert seq and gimplified code after labels
39493 instead of after the phi.
39495 2015-02-13 Jeff Law <law@redhat.com>
39498 Revert my change for tree-optimization/64823.
39500 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39502 PR tree-optimization/65053
39503 * tree-ssa-phiopt.c (value_replacement): When moving assign before
39504 cond, either reset VR on lhs or set it to phi result VR.
39506 2015-02-13 Jeff Law <law@redhat.com>
39508 PR tree-optimization/64823
39509 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
39510 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39511 threading through blocks with PHIs, but no statements.
39512 (thread_through_normal_block): Distinguish between blocks where
39513 we did not process all the statements and blocks with no statements.
39515 PR rtl-optimization/47477
39516 * match.pd (convert (plus/minus (convert @0) (convert @1): New
39517 simplifier to narrow arithmetic.
39519 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
39522 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
39523 polymorphic call info when type is not known to be preserved.
39525 2015-02-13 Maritn Jambor <mjambor@suse.cz>
39528 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
39529 (inline_call): Use it.
39531 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
39533 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
39534 GOMP_DEVICE_NVIDIA_PTX.
39536 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39539 * stmt.c (emit_case_nodes): Use void_type_node instead of
39540 NULL_TREE as LABEL_DECL type.
39542 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
39544 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
39546 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
39547 symbolic references to data to be forced to constant memory on the
39550 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
39552 PR tree-optimization/65002
39553 * tree-cfg.c (pass_data_fixup_cfg): Don't update
39555 * tree-sra.c (some_callers_have_no_vuse_p): New.
39556 (ipa_early_sra): Reject functions whose callers
39557 assume function is read only.
39559 2015-02-13 Richard Biener <rguenther@suse.de>
39562 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
39563 for LTO produced CUs.
39565 2015-02-13 Bin Cheng <bin.cheng@arm.com>
39567 PR tree-optimization/64705
39568 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
39569 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
39570 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
39571 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
39572 expand_simple_operations.
39574 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
39575 Richard Henderson <rth@redhat.com>
39578 * cgraphunit.c (cgraph_node::finalize_function): Set definition
39579 before notice_global_symbol.
39580 (varpool_node::finalize_decl): Likewise.
39581 * varasm.c (default_binds_local_p_2): Rename from
39582 default_binds_local_p_1, add weak_dominate argument. Use direct
39583 returns instead of assigning to local variable. Unify varpool and
39584 cgraph paths via symtab_node. Reject undef weak variables before
39585 testing visibility. Reorder tests for simplicity.
39586 (default_binds_local_p): Use default_binds_local_p_2.
39587 (default_binds_local_p_1): Likewise.
39588 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
39590 (default_elf_asm_output_external): Emit visibility when specified.
39592 2015-02-13 Alan Modra <amodra@gmail.com>
39594 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
39595 code setting up r11 for out-of-line fp restore.
39597 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
39599 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
39600 (muser-mode): Likewise.
39602 2015-02-13 Alan Modra <amodra@gmail.com>
39604 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
39605 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
39607 2015-02-12 David Howells <dhowells@redhat.com>
39609 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
39611 * tree-ssa-uninit.c (dump_predicates): Likewise.
39612 * opts.c (print_filtered_help): Likewise.
39614 2015-02-12 Jakub Jelinek <jakub@redhat.com>
39616 * dwarf2out.c (output_die): Use "%s", name instead of name to
39617 avoid -Wformat-security warning.
39619 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
39620 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39621 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
39622 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
39624 2015-02-12 Jason Merrill <jason@redhat.com>
39626 * common.opt (-flifetime-dse): New.
39628 2015-02-12 Jakub Jelinek <jakub@redhat.com>
39631 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
39633 PR tree-optimization/65014
39634 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
39635 use original second operand of arg0 or arg1 instead of
39636 that adjusted by STRIP_NOPS.
39638 2015-02-11 Jeff Law <law@redhat.com>
39641 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
39642 that needs to be queued, just queue it for a single cycle.
39644 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
39646 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
39647 bodies of thunks; comment on why.
39648 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
39649 symbols are extern.
39651 2015-02-11 Richard Henderson <rth@redhat.com>
39654 * tree-eh.c (mark_reachable_handlers): Mark source and destination
39655 regions of __builtin_eh_copy_values.
39657 2015-02-11 Jakub Jelinek <jakub@redhat.com>
39659 PR middle-end/65003
39660 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
39661 ultimate alias is MEM with SYMBOL_REF satisfying
39662 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
39663 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
39665 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
39667 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
39668 "diagnostic-core.h".
39669 (main): Initialize progname, and call diagnostic_initialize.
39671 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
39672 instead of __OPENMP_TARGET__.
39674 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
39675 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
39676 hard-coding PTX_ID.
39678 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
39680 * doc/sourcebuild.texi (pie_enabled): Document.
39682 2015-02-11 Martin Liska <mliska@suse.cz>
39685 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
39686 a return value for call to a function that is noreturn.
39688 2015-02-11 Richard Biener <rguenther@suse.de>
39691 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
39694 2015-02-11 Andrew Pinski <apinski@cavium.com>
39697 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
39698 Change the first argument type to size_type_node and add another
39700 (aarch64_simd_expand_builtin): Handle the new argument to
39701 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
39702 print an out when the first two arguments are not
39703 nonzero integer constants.
39704 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
39705 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
39707 2015-02-11 Jakub Jelinek <jakub@redhat.com>
39710 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
39711 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
39712 (ix86_set_current_function): Rewritten.
39713 (ix86_add_new_builtins): Temporarily clear current_target_pragma
39714 when creating builtin fndecls.
39716 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39719 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
39721 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
39722 have no comdat group.
39723 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
39724 (lto_output_varpool_node): Always output alias info.
39725 (output_refs): Output refs of boundary aliases, too.
39726 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
39727 (output_symtab): Output call eges in thunks in boundary.
39728 (get_alias_symbol): Remove.
39729 (input_node, input_varpool_node): Do not special case weakrefs.
39730 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
39731 alias and thunks targets in the boundary; do not take removed symbols
39732 from their comdat groups.
39733 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
39734 (cgraph_node::global_info): Remove.
39735 (cgraph_node::rtl_info): Look through aliases and thunks.
39736 * cgrpah.h (global_info): Remove.
39737 (non_local_p): Remove.
39739 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39740 Sandra Loosemore <sandra@codesourcery.com>
39742 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
39743 to inline asm. List dialects in proper order.
39745 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39746 Sandra Loosemore <sandra@codesourcery.com>
39748 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
39750 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
39752 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
39753 modified) reference to Solaris.
39755 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
39757 * doc/extend.texi (Extended Asm): Fix typos.
39759 2015-02-10 Jakub Jelinek <jakub@redhat.com>
39762 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
39764 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
39767 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
39768 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
39769 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
39770 * config/sh/constraints.md (Ara, Add): New constraints.
39771 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
39773 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
39774 atomic_mem_operand_0. Don't use force_reg on the memory address.
39775 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
39776 Sra constraint. Convert to insn_and_split. Add workaround for
39778 (atomic_compare_and_swap<mode>_hard): Copy to
39779 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
39780 Use atomic_mem_operand_0 predicate.
39781 (atomic_compare_and_swap<mode>_soft_gusa,
39782 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
39783 AraAdd constraints.
39784 (atomic_compare_and_swap<mode>_soft_tcb,
39785 atomic_compare_and_swap<mode>_soft_imask,
39786 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
39787 atomic_mem_operand_0 predicate and SraSdd constraints.
39788 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
39790 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
39791 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
39792 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
39793 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
39794 force_reg on the memory address.
39795 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
39796 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
39797 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
39798 atomic_mem_operand_1 predicate and Sra constraint.
39799 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
39800 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
39801 Use atomic_mem_operand_1 predicate.
39802 (atomic_<fetchop_name><mode>_hard): Copy to
39803 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
39804 Use atomic_mem_operand_1 predicate.
39805 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
39806 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
39807 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
39808 insn_and_split. Use atomic_mem_operand_1 predicate.
39809 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
39810 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
39811 Use atomic_mem_operand_1 predicate.
39812 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
39813 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
39814 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
39815 in generated insn with original mem operand before emitting the insn.
39816 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
39817 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
39818 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
39819 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
39820 Use atomic_mem_operand_1 predicate and AraAdd constraints.
39821 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
39822 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
39823 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
39824 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
39825 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
39826 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
39827 atomic_not_fetch<mode>_soft_tcb,
39828 atomic_<fetchop_name>_fetch<mode>_soft_imask,
39829 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
39830 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
39831 Use atomic_mem_operand_1 predicate and SraSdd constraints.
39833 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
39835 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
39836 and 3 earlyclobber operands.
39838 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39840 * common.opt (fstack-reuse): Mark as optimization.
39842 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
39845 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
39847 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
39849 PR tree-optimization/64326
39850 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
39852 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
39854 PR gcov-profile/61889
39855 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
39857 2015-02-10 Richard Biener <rguenther@suse.de>
39859 PR tree-optimization/64995
39860 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
39861 value we use is final.
39862 (visit_reference_op_store): Always valueize op.
39863 (visit_use): Properly valueize vuses.
39865 2015-02-10 Richard Biener <rguenther@suse.de>
39867 PR tree-optimization/64909
39868 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
39869 pass a scalar-stmt count estimate to the cost model.
39870 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
39872 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
39874 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
39875 enabled by default together with var-tracking.
39877 2015-02-10 Nick Clifton <nickc@redhat.com>
39879 * config/rl78/rl78.c: Remove DIV attribute code accidentally
39880 included in previous rl78 commit.
39882 2015-02-10 Richard Biener <rguenther@suse.de>
39884 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
39885 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
39886 return the bitpack.
39888 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
39890 PR gcov-profile/61889
39891 * config.in: regenerate.
39892 * configure.in: Likewise.
39893 * configure.ac: Check for ftw.h.
39894 * gcov-tool.c: Check for ftw.h before using nftw.
39896 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
39899 * ipa-visibility.c (update_visibility_by_resolution_info): Only
39900 assert when not in lto mode.
39902 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
39904 * ira-color.c (setup_left_conflict_sizes_p): Simplify
39905 initialization/assignment of conflict_size.
39907 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
39910 * ipa-cp.c (gather_caller_stats): Skip thunks.
39911 (propagate_constants_topo): Skip aliases.
39913 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
39916 * config/sh/sh.c (sh_option_override): Don't change
39917 -freorder-blocks-and-partition to -freorder-blocks even when
39918 unwinding is enabled.
39919 (sh_can_follow_jump): Return false if the followee jump is
39920 a crossing jump when -freorder-blocks-and-partition is specified.
39921 * config/sh/sh.md (*jump_compact_crossing): New insn.
39923 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
39924 Kaz Kojima <kkojima@gcc.gnu.org>
39927 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
39928 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
39929 (sh_can_redirect_branch): Rename to ...
39930 (sh_can_follow_jump): ... this. Constify argument types.
39931 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
39932 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
39933 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
39934 * doc/tm.texi: Regenerate.
39936 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39939 * builtins.c (expand_builtin): Call targetm.expand_builtin
39940 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
39942 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39945 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
39947 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39950 * ipa-icf.c (set_local): New function.
39951 (sem_function::merge): Use it.
39953 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39955 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
39956 (add_type_duplicate): Fix comparison of BINFOs.
39958 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39960 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
39961 on getting VOID pointer.
39963 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39966 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
39969 2015-02-09 Richard Biener <rguenther@suse.de>
39971 * genmatch.c (replace_id): Copy expr_type.
39973 2015-02-09 Richard Biener <rguenther@suse.de>
39975 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
39976 (streamer_write_tree_bitfields): Declare.
39977 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
39978 properly unpack padding.
39979 (unpack_value_fields): Inline ...
39980 (streamer_read_tree_bitfields): ... here.
39981 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
39982 and properly add padding bits.
39983 (streamer_pack_tree_bitfields): Fold into ...
39984 (streamer_write_tree_bitfields): ... this new function,
39985 exposing the bitpack object.
39986 * lto-streamer-out.c (lto_write_tree_1): Call
39987 streamer_write_tree_bitfields.
39989 2015-02-09 Richard Biener <rguenther@suse.de>
39991 PR tree-optimization/54000
39992 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
39993 (struct ivopts_data): Add loop_loc member.
39994 (tree_ssa_iv_optimize_loop): Dump loop location.
39995 (create_new_ivs): Likewise, also dump number of IVs generated.
39997 2015-02-09 Martin Liska <mliska@suse.cz>
39999 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
40000 just if not yet registered.
40001 (ipa_icf_generate_summary): Register callgraph hooks.
40003 2015-02-08 Andrew Pinski <apinski@cavium.com>
40005 * config/aarch64/aarch64.c (gty_dummy): Delete.
40007 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40010 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
40011 (cgraph_node::local_p): Remove thunk related FIXME.
40013 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40016 * i386.c (ix86_function_regparm): Look through aliases to see if callee
40017 is local and optimized.
40018 (ix86_function_sseregparm): Likewise; also use target's SSE math
40019 settings; error out instead of silently generating wrong code
40021 (init_cumulative_args): Look through aliases.
40023 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40026 * ipa-split.c (execute_split_functions): Split if function has aliases.
40028 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40031 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
40032 aliases before trying to expand it.
40033 (cgraph_node::expand_thunk): Fix formating.
40035 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
40037 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
40038 (Using Assembly Language with C): Expand introduction.
40039 (Basic Asm): Copy-edit. Add more information about uses of
40041 (Extended Asm): Copy-edit. Document new escape syntax and
40043 (Global Reg Vars): Copy-edit.
40044 (Local Reg Vars): Likewise.
40046 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
40050 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
40051 (DBX_CONTIN_CHAR): Define.
40053 2015-02-06 Sebastian Pop <s.pop@samsung.com>
40054 Brian Rzycki <b.rzycki@samsung.com>
40056 PR tree-optimization/64878
40057 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
40058 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
40059 Stop recursion at loop phi nodes after having visited a loop phi node.
40061 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40063 * toplev.c (process_options): Change flag_ipa_ra before creating
40064 optimization_{default,current}_node.
40067 * cgraphunit.c (cgraph_node::expand_thunk): If
40068 restype is not is_gimple_reg_type nor the thunk_fndecl
40069 returns aggregate_value_p, set restmp to a temporary variable
40070 instead of resdecl.
40072 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
40074 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
40076 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40079 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
40080 add a general secondary reload handler for SDmode, unless we have
40081 both read/write support for SDmode.
40083 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40085 PR middle-end/64937
40086 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
40087 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
40088 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
40089 1 before, push it to abstract_vec.
40090 (dwarf2out_abstract_function): Adjust caller. Don't call
40091 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
40092 DECL_ABSTRACT_P flags for all abstract_vec elts.
40094 2015-02-06 Renlin Li <renlin.li@arm.com>
40096 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
40098 * tree-ssa.c (execute_update_addresses_taken): Likewise.
40100 2015-02-06 Jeff Law <law@redhat.com>
40103 * config/h8300/h8300.c (push): New argument "in_prologue".
40104 Pass "in_prologue" along to "F".
40105 (h8300_push_pop): Corresponding changes.
40106 (h8300_expand_prologue): Likewise.
40107 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
40109 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40111 PR rtl-optimization/64957
40113 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
40114 IOR rather than for AND.
40116 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
40119 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
40120 of shift-add and (add + shift) operations. Rename local variable.
40122 2015-02-05 Jeff Law <law@redhat.com>
40125 * config/h8300/constraints.md (U): Correctly dectect
40126 "eightbit_data" memory addresses.
40127 * config/h8300/h8300.c (eightbit_constant_address_p): Also
40128 handle (const (plus (symbol_ref (x)))) where x is declared
40129 as an 8-bit data memory address.
40130 * config/h8300/h8300.md (call, call_value): Correctly detect
40131 "funcvec" functions.
40134 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
40135 24 to 28 bits for the H8/300.
40137 2015-02-06 Alan Modra <amodra@gmail.com>
40140 * config/rs6000/rs6000.c (chain_already_loaded): New function.
40141 (rs6000_call_aix): Use it.
40143 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
40145 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
40148 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
40150 * config/h8300/constraints.md ("U" constraint): Use strict
40151 variant of REG_OK_FOR_BASE_P after reload has started.
40153 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
40155 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
40156 define to zero if !TARGET_NEON.
40157 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
40159 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40160 Trevor Saunders <tsaunders@mozilla.com>
40163 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
40165 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40168 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
40169 when removing varpool nodes.
40171 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40174 * varpool.c (varpool_node::remove): Fix order of variables.
40176 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40179 * ipa-inline.c (inline_small_functions): Fix ordering issue between
40180 speculation resolution and key updates.
40182 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40184 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
40185 about not letting any speculative edges unupdated.
40187 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40190 * gcov-io.c (gcov_var): Export.
40192 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40194 PR middle-end/64922
40195 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
40196 edges that become speculative.
40198 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40200 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
40201 or DW_LANG_Fortran08.
40202 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
40204 (gen_compile_unit_die): Handle "GNU Fortran2003" and
40205 "GNU Fortran2008" language strings.
40206 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
40207 * langhooks.h (lang_GNU_Fortran): New prototype.
40208 * langhooks.c (lang_GNU_Fortran): New function.
40209 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
40212 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40214 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
40215 (RTX_OK_FOR_OLO10_P): Likewise.
40217 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40219 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
40221 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40223 PR middle-end/64922
40224 * gimple.c: Include gimple-ssa.h.
40225 (maybe_remove_unused_call_args): New function.
40226 * gimple.h (maybe_remove_unused_call_args): Declare.
40227 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
40228 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
40229 * gimple-fold.c (gimple_fold_call): Likewise.
40231 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
40233 PR rtl-optimization/64905
40234 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
40235 pointer alignment if it isn't needed.
40237 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40239 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
40240 cortex-a72.cortex-a53.
40241 * config/aarch64/aarch64-tune.md: Regenerate.
40242 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
40244 2015-02-04 Nick Clifton <nickc@redhat.com>
40246 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
40249 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40251 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
40252 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
40253 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
40255 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
40256 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
40257 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
40258 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
40259 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
40260 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
40261 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
40262 * tree-core.h (enum built_in_function): In between
40263 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
40264 for builtins that use DEF_BUILTIN_CHKP macro.
40266 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
40269 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
40270 operands for tcc_comparison exprs. Fix typos.
40273 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
40274 of two XORs that have an intervening AND or IOR.
40277 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
40278 simplification of XOR of AND to not allocate new rtx before
40279 committing to a simplification.
40281 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40283 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
40284 manual swaps in all peepholes.
40286 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40288 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
40289 of manual swapping implementation.
40290 (aarch64_expand_vec_perm_const_1): Likewise.
40292 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
40294 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
40295 (generic_addrcost_table): Remove NAMED_PARAM.
40296 (cortexa57_addrcost_table): Likewise.
40297 (xgene1_addrcost_table): Likewise.
40298 (generic_regmove_table): Likewise.
40299 (cortexa53_regmove_table): Likewise.
40300 (xgene1_regmove_table): Likewise.
40301 (generic_vector_table): Likewise.
40302 (cortexa57_vector_table): Likewise.
40303 (xgene1_vector_table): Likewise.
40304 (generic_tunings): Likewise.
40305 (cortexa53_tunings): Likewise.
40306 (cortexa57_tunings): Likewise.
40307 (xgene1_tunings): Likewise.
40309 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40311 * config/arm/arm-cores.def: Add cortex-a72 and
40312 cortex-a72.cortex-a53.
40313 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
40314 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
40315 * config/arm/arm-tune.md: Regenerate.
40316 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
40317 "cortex-a72.cortex-a53".
40318 * doc/invoke.texi (ARM Options/-mtune): Likewise.
40320 2015-02-04 Nick Clifton <nickc@redhat.com>
40323 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
40325 (nonimmediate_di_operand): Likewise.
40327 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
40328 prefixes of known F5 using MSP430 MCUs.
40330 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40332 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
40333 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
40334 instead of __builtin_sqrt.
40336 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
40338 * varasm.c (do_assemble_alias): Follow transparent alias
40340 (default_assemble_visibility): Follow transparent alias
40341 chain for decl name.
40343 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
40345 PR middle-end/62103
40346 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
40347 to compute size of referenced value in the constant case.
40349 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40351 PR rtl-optimization/64756
40352 * cse.c (invalidate_dest): New function.
40353 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
40354 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
40355 invalidate and do not record it.
40357 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
40360 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
40361 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
40362 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
40363 atomic_nand<mode>_soft_tcb): New insns.
40364 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
40365 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
40366 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
40367 Split into atomic_not_fetchsi_hard if operands[0] is unused.
40368 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
40369 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40370 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
40371 atomic_not<mode>_hard if operands[0] is unused.
40372 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
40373 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
40374 if operands[0] is unused.
40375 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
40376 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
40377 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
40378 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40380 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
40381 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40382 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
40383 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
40384 if operands[0] is unused.
40385 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
40386 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
40387 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
40388 atomic_nand_fetchsi_hard if operands[0] is unused.
40389 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
40390 atomic_nand<mode>_hard if operands[0] is unused.
40391 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
40392 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
40393 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
40394 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40395 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
40396 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
40397 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
40398 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40399 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
40400 atomic_not<mode>_hard if operands[0] is unused.
40401 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
40402 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40404 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40405 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40406 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
40407 atomic_nand<mode>_hard if operands[0] is unused.
40408 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40409 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40411 2015-02-03 David Malcolm <dmalcolm@redhat.com>
40414 * Makefile.in (GCC_OBJS): Add gcc-main.o.
40415 * gcc-main.c: New file, containing "main" taken from gcc.c.
40416 * gcc.c (do_self_spec): Free decoded_options.
40417 (class driver): Move declaration to gcc.h.
40418 (main): Move declaration and implementation to new file
40420 (driver_get_configure_time_options): New function.
40421 * gcc.h (class driver): Move this declaration here, from
40423 (driver_get_configure_time_options): New declaration.
40425 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
40427 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
40428 cross-module inlining.
40429 * cgraph.h (cgraph_node): Add flag merged.
40430 * ipa-icf.c (sem_function::merge): Maintain it.
40432 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
40434 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
40435 instead of OBJECT_P.
40437 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
40440 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
40441 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
40442 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
40443 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
40445 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40448 * combine.c (reg_n_sets_max): New variable.
40449 (can_change_dest_mode, reg_nonzero_bits_for_combine,
40450 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
40451 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
40452 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
40453 (rest_of_handle_combine): Initialize reg_n_sets_max.
40455 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
40457 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
40458 if some always_inline was inlined, apply changes before inlining
40461 2015-02-02 David Malcolm <dmalcolm@redhat.com>
40464 * config/arm/arm.c (arm_option_override): Set
40465 arm_selected_arch/cpu/tune to NULL on entry.
40467 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
40468 Andrew Pinski <pinskia@gcc.gnu.org>
40469 Jakub Jelinek <jakub@gcc.gnu.org>
40472 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
40473 integer typing for small model. Use IN_RANGE.
40475 2015-02-02 Richard Biener <rguenther@suse.de>
40477 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
40478 * tree-vrp.c (vrp_valueize_1): Likewise.
40480 2015-02-02 Alan Modra <amodra@gmail.com>
40482 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
40483 than mem for toc_restore.
40484 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
40485 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
40486 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
40488 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
40491 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
40492 explicit default options.
40494 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
40497 * ipa-utils.c (ipa_merge_profiles): Add release argument.
40498 * ipa-icf.c (sem_function::merge): Do not release body when merging.
40499 * ipa-utils.h (ipa_merge_profiles): Update prototype.
40501 2015-02-01 Jakub Jelinek <jakub@redhat.com>
40504 * cfgexpand.c (deep_ter_debug_map): New variable.
40505 (avoid_deep_ter_for_debug): New function.
40506 (expand_debug_expr): If TERed SSA_NAME is in
40507 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
40508 instead of trying to expand SSA_NAME's def stmt.
40509 (expand_debug_locations): When expanding debug bind
40510 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
40511 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
40513 (pass_expand::execute): Call avoid_deep_ter_for_debug on
40514 all debug bind stmts. Delete deep_ter_debug_map after
40515 expand_debug_location if non-NULL and clear it.
40517 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
40520 * config/sh/sync.md (atomic_fetch_notsi_hard,
40521 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
40522 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
40523 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
40524 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
40525 atomic_not_fetch<mode>_soft_imask): New insns.
40527 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40529 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
40530 (rank_for_schedule_debug): Split from ...
40531 (rank_for_schedule): ... this.
40532 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
40533 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
40535 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40537 * doc/md.texi (Machine Constraints): Alphabetize table by target.
40538 * doc/extend.texi (x86 Variable Attributes): Move section to
40539 correct alphabetization after renaming.
40540 (x86 Type Attributes): Likewise.
40541 (Target Builtins): Re-alphabetize menu.
40542 (x86 Built-in Functions): Move section to correct alphabetization
40544 (x86 transactional memory intrinsics): Likewise.
40545 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
40546 and x86 Windows Options in table and menu.
40547 (x86 Options): Move section to correct alphabetization after
40549 (x86 Windows Options): Likewise.
40551 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40553 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
40554 preferred names of the architecture and its 32- and 64-bit
40556 * doc/invoke.texi: Likewise.
40557 * doc/md.texi: Likewise.
40559 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40562 * config/i386/predicates.md (address_no_seg_operand): Reject
40563 non-CONST_INT_P operands in invalid mode.
40565 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40567 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
40568 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
40569 * config/i386/predicates.md (address_no_seg_operand): Call
40570 address_operand with VOIDmode.
40571 (vsib_address_operand): Ditto.
40572 (address_mpx_no_base_operand): Ditto.
40573 (address_mpx_no_index_operand): Ditto.
40575 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40578 * lra-constraints.c (original_subreg_reg_mode): New.
40579 (simplify_operand_subreg): Try to simplify subreg of const. Use
40580 original_subreg_reg_mode for it.
40581 (swap_operands): Update original_subreg_reg_mode.
40582 (curr_insn_transform): Set up original_subreg_reg_mode.
40584 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40587 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
40589 (process_alt_operands): Use it.
40590 (curr_insn_transform): Check the optional reload pseudo class is
40593 2015-01-30 Joseph Myers <joseph@codesourcery.com>
40595 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
40596 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
40598 * toplev.h (init_asm_output): Update comment on use of
40599 UNKNOWN_LOCATION with fatal_error.
40600 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
40601 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
40602 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
40603 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
40604 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
40605 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
40606 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
40607 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
40608 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
40609 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
40610 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
40611 fatal_error changed to pass input_location as first argument.
40613 2015-01-30 Martin Liska <mliska@suse.cz>
40615 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
40616 in #pragma GCC diagnostic guards.
40618 2015-01-30 Richard Biener <rguenther@suse.de>
40620 PR tree-optimization/64829
40621 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
40622 not add a widening conversion pattern but hand off extra
40623 widenings to callers.
40624 (vect_recog_widen_mult_pattern): Handle extra widening produced
40625 by vect_handle_widen_op_by_const.
40626 (vect_recog_widen_shift_pattern): Likewise.
40627 (vect_pattern_recog_1): Remove excess vertical space in dumping.
40628 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
40629 (vect_init_vector_1): Likewise.
40630 (vect_get_vec_def_for_operand): Likewise.
40631 (vect_finish_stmt_generation): Likewise.
40632 (vectorizable_load): Likewise.
40633 (vect_analyze_stmt): Likewise.
40634 (vect_is_simple_use): Likewise.
40636 2015-01-29 Jeff Law <law@redhat.com>
40638 * combine.c (try_combine): Fix typo in comment.
40640 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
40643 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
40644 (rs6000_stack_info): Add assert.
40645 (rs6000_output_savres_externs): New function, split off from...
40646 (rs6000_output_function_prologue): ... here. Do not call it for
40649 2015-01-29 Jeff Law <law@redhat.com>
40652 * combine.c (try_combine): If I0 is a memory load and I3 a store
40653 to a related address, increase the "goodness" of doing a 4-insn
40654 combination with I0-I3.
40655 (make_field_assignment): Handle SUBREGs in the ior+and case.
40657 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
40659 PR tree-optimization/64746
40660 * tree-if-conv.c (mask_exists): New function.
40661 (predicate_mem_writes): Save created mask with given size for further
40663 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
40664 (ifcvt_repair_bool_pattern): Collect all statements that are root
40665 of bool pattern and use iterative algorithm to remove multiple uses
40666 of predicates, display number of required iterations.
40668 2015-01-29 Richard Biener <rguenther@suse.de>
40670 PR tree-optimization/64853
40671 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
40672 stmt will get simulated again.
40673 * tree-ssa-ccp.c (valueize_op_1): Likewise.
40675 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40677 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
40678 return_in_pc. Remove redundant assignments.
40679 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
40680 (arm_expand_epilogue): Don't compare boolean with true in if condition.
40682 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
40684 * config/i386/i386.c (ix86_mode_after): Make static.
40686 2015-01-29 Richard Biener <rguenther@suse.de>
40688 PR tree-optimization/64844
40689 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
40690 dump cost model analysis.
40691 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
40692 Do not register adjusted load/store costs here.
40694 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
40695 Uros Bizjak <ubizjak@gmail.com>
40697 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
40698 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
40699 using x86_use_pseudo_pic_reg.
40700 * config/i386/i386.c (ix86_conditional_register_usage): Remove
40701 support for fixed PIC register.
40702 (ix86_use_pseudo_pic_reg): Not static any more.
40704 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
40706 PR middle-end/64805
40707 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
40708 to avoid error in cgraph node verification.
40710 2015-01-29 Marek Polacek <polacek@redhat.com>
40712 * doc/standards.texi: Reflect that the default for C is gnu11.
40714 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
40717 * reorg.c (switch_text_sections_between_p): New function.
40718 (relax_delay_slots): Call it when testing if the jump insn
40719 is removable. Use targetm.can_follow_jump when testing if
40720 the conditional branch can follow an unconditional jump.
40722 2015-01-27 Caroline Tice <cmtice@google.com>
40724 Committing VTV Cywin/Ming patch for Patrick Wollgast
40725 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
40726 if -fvtable-verify=preinit/std is used.
40727 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
40728 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
40729 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
40730 if -fvtable-verify=preinit/std is used.
40731 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
40732 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
40733 if -fvtable-verify=preinit/std is used.
40734 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
40735 * config/i386/mingw32.h (LIB_SPEC): Likewise.
40736 * varasm.c (assemble_variable): Add code to properly set the comdat
40737 section and name for the .vtable_map_vars section in case the
40738 target is PE or COFF.
40740 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
40743 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
40744 make sane BB profile.
40745 (cgraph_node::expand_thunk): Make sane BB profile.
40746 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
40747 * cgraph.h (init_lowered_empty_function): Update prototype.
40748 * config/i386/i386.c (make_resolver_func): Update call.
40749 * predict.c (gate): Disable branch prediction pass if
40750 profile is already there.
40752 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
40754 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
40755 * opth-gen.awk: Likewise.
40756 * common.opt: Mark flag_fp_contract_mode as Optimization.
40758 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
40760 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
40761 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
40763 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
40766 * config/sh/predicates.md (atomic_arith_operand,
40767 atomic_logical_operand): Remove.
40768 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
40769 (atomic_arith_operand_0): New predicate.
40770 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
40771 Use atomic_arith_operand_0 for input values.
40772 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
40773 atomic_compare_and_swap<mode>_soft_gusa,
40774 atomic_compare_and_swap<mode>_soft_tcb,
40775 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
40776 arith_reg_operand instead of register_operand.
40777 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
40778 atomic_arith_operand_0 for newval input.
40779 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
40780 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
40781 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
40782 arith_reg_operand instead of register_operand.
40783 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
40784 fetchop_predicate_1, fetchop_constraint_1_llcs,
40785 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
40786 fetchop_constraint_1_imask): New code iterator attributes.
40787 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
40788 register_operand. Use fetchop_predicate_1.
40789 (atomic_fetch_<fetchop_name>si_hard,
40790 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
40791 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
40792 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
40793 and arith_reg_operand instead of register_operand. Use
40794 fetchop_predicate_1, fetchop_constraint_1_gusa.
40795 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
40796 and arith_reg_operand instead of register_operand. Use
40797 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
40799 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
40800 and arith_reg_operand instead of register_operand. Use
40801 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
40803 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
40804 register_operand. Use atomic_logical_operand_1.
40805 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
40806 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
40807 arith_reg_operand instead of register_operand.
40808 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
40809 Use arith_reg_dest and arith_reg_operand instead of register_operand.
40810 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
40811 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
40812 register_operand. Use fetchop_predicate_1.
40813 (atomic_<fetchop_name>_fetchsi_hard,
40814 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
40815 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40816 fetchop_constraint_1_llcs.
40817 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
40818 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40819 fetchop_constraint_1_gusa.
40820 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
40821 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40822 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
40823 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
40824 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
40825 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
40826 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
40827 register_operand. Use atomic_logical_operand_1.
40828 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
40829 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
40830 arith_reg_operand instead of register_operand.
40831 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
40832 arith_reg_operand instead of register_operand. Use logical_operand
40833 and K08. Adjust asm sequence to allow R0 usage.
40834 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
40835 arith_reg_operand instead of register_operand. Use logical_operand
40838 2015-01-28 Jakub Jelinek <jakub@redhat.com>
40841 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
40842 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
40843 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
40844 only get_full_len HOST_WIDE_INTs from get_val () array rather than
40845 all bits in *val_wide.
40847 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
40849 * varpool.c (tls_model_names): Fix names.
40850 (varpool_node::dump): Dump tls- prefix for tls models.
40852 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
40853 Bernd Schmidt <bernds@codesourcery.com>
40854 Nathan Sidwell <nathan@codesourcery.com>
40856 * config/nvptx/mkoffload.c: New file.
40857 * config/nvptx/t-nvptx: Add build rules for it.
40858 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
40859 (extra_programs): Add mkoffload.
40860 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
40862 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
40864 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
40866 PR middle-end/64809
40867 * cfgexpand.c (reorder_operands): Skip debug gimples.
40869 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
40871 PR tree-optimization/64277
40872 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
40873 range info when possible to refine estimation.
40875 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
40877 PR tree-optimization/64718
40878 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
40879 be a 16bit unsigned integer when n->range is 16.
40880 (bswap_replace): Convert src to that type if necessary for all bswap
40881 sizes. Fix rotation right notation in nearby comment. Use bswap_type
40882 set in pass_optimize_bswap::execute ().
40884 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
40886 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
40887 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
40888 integer and floating point variants.
40889 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
40891 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
40893 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
40894 for all vector modes.
40896 2015-01-28 Jakub Jelinek <jakub@redhat.com>
40899 * doc/sourcebuild.texi (comdat_group): Document.
40901 2015-01-28 Terry Guo <terry.guo@arm.com>
40903 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
40905 2015-01-27 David Malcolm <dmalcolm@redhat.com>
40907 * toplev.c (print_version): Add param "show_global_state", and
40908 only print GGC and plugin information if it is true.
40909 (init_asm_output): Pass in "true" for the new param when calling
40911 (process_options): Likewise.
40912 (toplev::main): Likewise.
40913 * toplev.h (print_version): Add new param to decl.
40915 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
40919 * tree.c (lookup_binfo_at_offset): New function.
40920 (get_binfo_at_offset): Use it.
40922 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
40925 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
40926 on vtable being vtable.
40928 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
40930 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
40931 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
40932 -mhotpatch= option.
40933 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
40934 -mno-hotpatch options. Change syntax of -mhotpatch= option.
40935 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
40937 (s390_hotpatch_trampoline_halfwords_max): Renamed.
40938 (s390_hotpatch_hw_max): New name.
40939 (s390_hotpatch_trampoline_halfwords): Renamed.
40940 (s390_hotpatch_hw_before_label): New name.
40941 (get_hotpatch_attribute): Removed.
40942 (s390_hotpatch_hw_after_label): New name.
40943 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
40945 (s390_attribute_table): Ditto.
40946 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
40947 (s390_function_num_hotpatch_hw): New name.
40948 Remove special handling of inline functions and hotpatching.
40949 Return number of nops before and after the function label.
40950 (s390_can_inline_p): Removed.
40951 (s390_asm_output_function_label): Emit a configurable number of nops
40952 after the function label.
40953 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
40954 (TARGET_CAN_INLINE_P) Removed.
40955 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
40957 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40958 Jiong Wang <jiong.wang@arm.com>
40960 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
40962 (cb<optab><mode>1): Likewise.
40963 * config/aarch64/iterators.md (bcond): New define_code_attr.
40965 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40967 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
40970 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40972 * config/s390/s390.c (s390_register_move_cost): Increase costs for
40975 2015-01-27 Richard Biener <rguenther@suse.de>
40977 * tree-vrp.c (update_value_range): Intersect the range with
40978 old recorded SSA name range information.
40980 2015-01-27 Nick Clifton <nickc@redhat.com>
40982 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
40983 BC, DE and HL registers directly, not via AX.
40984 When decrementing the stack pointer by a large amount, transfer SP
40985 into AX and perform the subtraction there.
40986 (rl78_expand_epilogue): Perform the inverse of the above
40989 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40991 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
40993 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40994 Yury Gribov <y.gribov@samsung.com>
40997 * ubsan.c (ubsan_source_location): Refactor code.
40998 (ubsan_type_descriptor): Update type size. Refactor code.
41000 2015-01-27 Richard Biener <rguenther@suse.de>
41002 PR tree-optimization/56273
41003 PR tree-optimization/59124
41004 PR tree-optimization/64277
41005 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
41006 from the first VRP pass.
41008 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41011 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
41012 handle the first argument in the same loop as all the other arguments.
41014 PR rtl-optimization/61058
41015 * jump.c (cleanup_barriers): Update basic block boundaries
41016 if BLOCK_FOR_INSN is non-NULL on PREV.
41018 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
41020 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
41021 bounds narrowing, already instrumented calls and calls to
41022 not instrumentable functions.
41024 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41026 PR tree-optimization/64807
41027 * wide-int.cc (wi::divmod_internal): Clear
41028 b_dividend[dividend_blocks_needed].
41030 2015-01-26 DJ Delorie <dj@redhat.com>
41032 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
41033 volatile memory references.
41035 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
41038 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
41040 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
41041 shifts if it already fits into K08.
41043 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41046 * ipa-inline.c (inline_small_functions): Print "unknown" even
41047 if edge->call_stmt is non-NULL, but has builtins or unknown
41050 PR middle-end/64421
41051 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
41052 with asterisk, skip the first character.
41054 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41057 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
41060 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
41063 * config/i386/i386.md (*movdi_internal): Also check operand 0
41064 to determine TYPE_LEA operand.
41065 (*movsi_internal): Ditto.
41067 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41069 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
41070 OPTION_MASK_QUAD_MEMORY_ATOMIC.
41072 2015-01-26 Renlin Li <renlin.li@arm.com>
41074 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
41076 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
41079 2015-01-26 Richard Biener <rguenther@suse.de>
41081 PR middle-end/64764
41082 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
41083 combining two BIT_AND_EXPR predicates.
41085 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41088 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
41090 2015-01-26 Terry Guo <terry.guo@arm.com>
41092 * config/arm/arm.c (arm_file_start): Update the assignment of
41093 Tag_ABI_HardFP_use.
41095 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
41097 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
41099 config/arm/arm.md: Include the new Cortex-A57 model.
41100 (generic_sched): Don't use generic_sched when tuning for
41103 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
41104 Uros Bizjak <ubizjak@gmail.com>
41106 * config/i386/i386.c (get_builtin_code_for_version): Add
41107 support for BMI and BMI2 multiversion functions.
41109 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41111 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
41112 (extract_bit_field): Likewise.
41113 (extract_low_bits): Likewise.
41114 (expand_mult): Likewise.
41115 (expand_mult_highpart_adjust): Likewise.
41117 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
41119 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
41120 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
41121 * config/i386/i386.c (processor_model): Add
41122 M_INTEL_COREI7_BROADWELL.
41123 (arch_names_table): Add "broadwell".
41125 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
41134 * config/sh/sh-protos.h
41135 (sh_extending_set_of_reg::can_use_as_unextended_reg,
41136 sh_extending_set_of_reg::use_as_unextended_reg,
41137 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
41138 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
41139 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
41140 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
41141 (sh_treg_insns): New class.
41142 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
41143 (scope_counter): New class.
41144 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
41145 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
41146 sh_extending_set_of_reg::can_use_as_unextended_reg,
41147 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
41148 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
41149 sh_split_treg_set_expr): New functions.
41150 (addsubcosts): Handle treg_set_expr.
41151 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
41152 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
41153 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
41154 (sh_insn_operands_modified_between_p): Make non-static.
41155 * config/sh/predicates.md (zero_extend_movu_operand): Allow
41156 simple_mem_operand in addition to displacement_mem_operand.
41157 (zero_extend_operand): Don't allow zero_extend_movu_operand.
41158 (treg_set_expr, treg_set_expr_not_const01,
41159 arith_reg_or_treg_set_expr): New predicates.
41160 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
41161 arith_or_int_operand instead of logical_operand. Convert to
41162 insn_and_split. Try to optimize constant operand in splitter.
41163 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
41164 (*tstqi_t_zero): Delete.
41165 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
41166 (tstsi_t_and_not): Delete.
41167 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
41168 Convert to insn_and_split.
41169 (unnamed split, tstsi_t_zero_extract_xor,
41170 tstsi_t_zero_extract_subreg_xor_little,
41171 tstsi_t_zero_extract_subreg_xor_big): Delete.
41172 (*tstsi_t_shift_mask): New insn_and_split.
41173 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
41174 to recombine with surrounding insns when splitting.
41175 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
41176 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
41177 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
41178 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
41179 (*cbranch_div0s: Delete.
41180 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41181 Try to recombine with surrounding insns when splitting. Add operand
41183 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
41184 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
41185 *addc_r_r_msb, *addc_2r_msb): Delete.
41186 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
41188 (*addc_negreg_t): New insn_and_split.
41189 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41190 Try to recombine with surrounding insns when splitting.
41191 Add operand order variants.
41192 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
41193 insn_and_split patterns.
41194 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
41195 surrounding insns when splitting.
41196 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
41197 (*rotcl): Likewise. Add zero_extract variant.
41198 (*ashrsi2_31): New insn_and_split.
41199 (*negc): Convert to insn_and_split. Use treg_set_expr.
41200 (*zero_extend<mode>si2_disp_mem): Update comment.
41201 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
41203 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
41204 with surrounding insns when splitting.
41205 (any_treg_expr_to_reg): New insn_and_split.
41206 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
41207 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
41208 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
41209 *zero_extract_2): New single bit zero extract patterns.
41210 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
41211 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
41212 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
41213 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
41215 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
41216 register_operand for set source.
41218 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
41220 * i386.opt (prefetch_sse): New targetsave.
41221 * i386.c (ix86_function_specific_save): Save prefetch_sse.
41222 (ix86_function_specific_restore): Restore prefetch_sse and initialize
41223 ix86_cost/ix86_tune_cost.
41225 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41227 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
41228 Support the JIT by using 0 as the language type.
41230 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
41233 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
41234 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
41235 (mark_regno_live, process_bb_lives): Pass new parameter value to
41236 make_hard_regno_born.
41238 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41240 PR rtl-optimization/63637
41241 PR rtl-optimization/60663
41242 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
41243 if elt->cost is MAX_COST for ASM_OPERANDS.
41244 (find_sets_in_insn): Fix up comment typo.
41245 (cse_insn): Don't set src_volatile for all non-volatile
41246 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
41247 or with "memory" clobber. Set elt->cost to MAX_COST
41248 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
41249 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
41251 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41253 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
41256 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41258 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
41259 libgcc/config/i386/elf-lib.h.
41261 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41264 * gcc.c (print_configuration): Don't print a blank line at the end
41266 (run_attempt): ... but here unstead.
41268 PR middle-end/64734
41269 * omp-low.c (scan_sharing_clauses): Don't ignore
41270 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
41271 on target data/update constructs.
41273 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
41276 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
41277 (DEBUG_RELOAD): Removed define.
41278 (m32c_limit_reload_class): Enable traces with if DEBUG0.
41279 (m32c_function_arg): Added a type cast.
41280 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
41281 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
41282 * config/m32c/bitops.md (andqi3_16): Likewise.
41283 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
41284 (push_a01_l): Likewise.
41286 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41289 * main.c (main): Construct toplev instances with init_signals=true.
41290 * toplev.c (general_init): Add param "init_signals", and use it to
41291 conditionalize the calls to signal and host_hooks.extra_signals.
41292 (toplev::toplev): Add param "init_signals".
41293 (toplev::main): When invoking general_init, pass m_init_signals
41294 to control whether signal-handlers are installed.
41295 * toplev.h (toplev::toplev): Add param "init_signals".
41296 (toplev::m_init_signals): New field.
41298 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41301 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
41302 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
41303 latter may be affected by the former (e.g. on i686).
41305 2015-01-23 Martin Liska <mliska@suse.cz>
41307 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
41308 false positive during profiledbootstrap.
41310 2015-01-23 Tom de Vries <tom@codesourcery.com>
41313 * lto-opts.c (lto_write_options): Output non-explicit conservative
41315 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
41316 (append_compiler_options): Pass -fopenacc through.
41318 2015-01-23 Tom de Vries <tom@codesourcery.com>
41321 * lto-opts.c (lto_write_options): Output non-explicit conservative
41323 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
41324 (append_compiler_options): Pass -fopenmp through.
41326 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41329 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
41332 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
41333 * diagnostic.def (DK_ICE_NOBT): New kind.
41334 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
41335 like DK_ICE, but never print backtrace.
41336 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
41337 (internal_error_no_backtrace): New function.
41338 * gcc.c (execute): Use internal_error_no_backtrace instead of
41341 2015-01-22 Jeff Law <law@redhat.com>
41344 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
41345 improve code density for small immediate to memory case.
41346 (insv): Better handle bitfield assignments when the field is
41347 being set to all ones.
41348 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
41351 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41352 Jakub Jelinek <jakub@redhat.com>
41354 PR middle-end/64729
41355 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
41356 for !TARGET_LIBC_PROVIDES_SSP version and
41357 -fstack-protector-{all,strong,explicit} otherwise.
41358 * config/freebsd.h (LINK_SSP_SPEC): Handle
41359 -fstack-protector-{strong,explicit}.
41361 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
41362 H.J. Lu <hongjiu.lu@intel.com>
41365 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
41368 2015-01-22 Wei Mi <wmi@google.com>
41370 PR rtl-optimization/64557
41371 * dse.c (record_store): Call get_addr for mem_addr.
41372 (check_mem_read_rtx): Likewise.
41374 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
41376 * fold-const.c (const_binop): Add early return for non-tcc_binary.
41378 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
41380 * toplev.c (init_local_tick): Process the failure when read
41381 fails for random_seed.
41383 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
41384 'pretty_name' to avoid memory overflow.
41386 2015-01-22 Richard Biener <rguenther@suse.de>
41388 PR middle-end/64728
41389 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
41390 abnormal coalescing on undefined SSA names.
41392 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
41396 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
41398 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
41400 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
41402 PR middle-end/63325
41403 * fold-const.c (fold_checksum_tree): Don't include value of
41404 expr->decl_with_vis.symtab_node in the checksum.
41406 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41408 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
41410 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
41413 * gcc.c (insert_comments): New function.
41414 (try_generate_repro): Call it.
41415 (append_text): Removed.
41417 2015-01-22 Richard Biener <rguenther@suse.de>
41419 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
41420 with IL incompatible options. Properly honor user optimize
41423 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
41425 PR rtl-optimization/64682
41426 * combine.c (distribute_notes): When moving a death note for
41427 a register that is set in the new I2, make sure to put it
41428 before that new I2.
41430 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
41432 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
41433 not TARGET_DEFAULT.
41435 2015-01-21 Jakub Jelinek <jakub@redhat.com>
41438 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
41439 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
41440 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
41443 * doc/invoke.texi (-fsanitize=vptr): Document.
41445 PR rtl-optimization/62078
41446 * dse.c: Include cfgcleanup.h.
41447 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
41448 anything call purge_all_dead_edges and cleanup_cfg at the end
41451 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
41453 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
41456 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
41458 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
41461 2015-01-21 David Sherwood <david.sherwood@arm.com>
41462 Tejas Belagod <Tejas.Belagod@arm.com>
41464 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
41465 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
41466 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
41469 2015-01-21 David Sherwood <david.sherwood@arm.com>
41470 Tejas Belagod <Tejas.Belagod@arm.com>
41472 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
41473 (aarch64_reverse_mask): New decls.
41474 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
41475 (insn_count): New mode_attr.
41476 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
41477 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
41478 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
41479 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
41480 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
41481 (aarch64_simd_st4): New patterns.
41482 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
41483 (aarch64_reverse_mask): New functions.
41485 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41487 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
41489 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
41490 addressing modes for BE.
41491 (aarch64_print_operand): Add 'R' specifier.
41492 (aarch64_simd_disambiguate_copy): Delete.
41493 (aarch64_simd_emit_reg_reg_move): New function.
41494 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
41495 in define_splits for structural moves.
41496 (mov<mode>): Use less restrictive predicates.
41497 (*aarch64_mov<mode>): Simplify and only allow for LE.
41498 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
41500 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41502 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
41504 2015-01-21 Richard Henderson <rth@redhat.com>
41507 * ccmp.c (used_in_cond_stmt_p): Remove.
41508 (expand_ccmp_expr): Don't use it.
41510 2015-01-21 Nick Clifton <nickc@redhat.com>
41512 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
41515 2015-01-21 Richard Biener <rguenther@suse.de>
41517 PR middle-end/64313
41518 * tree-core.h (builtin_info, builtin_info_type): Turn from
41519 an object with two arrays into an array of an object with
41520 decl and two flags, implicit_p and declared_p.
41521 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
41522 set_builtin_decl, set_builtin_decl_implicit_p,
41523 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
41524 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
41525 * builtins.c (builtin_info): Adjust.
41526 * gimplify.c (gimplify_addr_expr): References to builtins
41527 that have been declared by the user makes them eligible for
41528 use by the compiler. Call set_builtin_decl_implicit_p on them.
41530 2015-01-20 Jeff Law <law@redhat.com>
41533 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
41534 allow pc-relative addresses in operand predicates or constraints.
41536 2015-01-21 Bin Cheng <bin.cheng@arm.com>
41538 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
41539 neon on aarch32 processors for stringops.
41541 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41544 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
41546 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41549 * ipa-inline.c: Include lto-streamer.h
41550 (report_inline_failed_reason): Output source file differences and
41551 flags on optimization/target node mismatch.
41552 (can_inline_edge_p): Consider caller to be the outer inline function;
41553 be less restrictive about matching opimize and optimize_size attributes.
41554 (inline_account_function_p): Break out from ...
41555 (inline_small_functions): ... here.
41556 * ipa-inline-transform.c (clone_inlined_nodes): Use
41557 inline_account_function_p.
41558 (inline_call): Use optimize attribution; use inline_account_function_p.
41559 (inline_transform): Use opt_for_fn.
41560 * ipa-inline.h (inline_account_function_p): Declare.
41562 2015-01-20 Jakub Jelinek <jakub@redhat.com>
41565 * dwarf2out.c (decl_piece_node): Don't put bitsize into
41566 mode if bitsize <= 0.
41567 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
41568 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
41569 sizes and positions.
41571 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
41573 * config/nios2/nios2.c (nios2_asm_file_end): Implement
41574 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
41576 (TARGET_ASM_FILE_END): Define.
41578 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41580 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
41581 (struct tune_params): Use the enum.
41582 * arm.c (arm_*_tune): Update.
41583 (arm_option_override): Update.
41585 2015-01-20 Richard Biener <rguenther@suse.de>
41588 * ipa-reference.c (add_static_var): Inline ...
41589 (analyze_function): ... here after splitting out from ...
41590 (is_proper_for_analysis): ... this.
41592 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
41595 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
41596 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
41597 replace the conditional with it's true branch.
41598 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
41599 (arm_lra_p): Remove.
41601 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
41603 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
41605 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41607 * config/tilegx/mul-tables.c: Move symtab.h include after
41608 coretypes.h include.
41609 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
41610 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
41611 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
41612 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
41613 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41615 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
41619 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
41621 PR rtl-optimization/64081
41622 * loop-iv.c (def_pred_latch_p): New function.
41623 (latch_dominating_def): Allow specific cases with non-single
41625 (iv_get_reaching_def): Likewise.
41626 (check_complex_exit_p): New function.
41627 (check_simple_exit): Use check_complex_exit_p to allow certain cases
41628 with exits not executing on any iteration.
41630 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41633 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
41634 to set branch cost.
41636 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41639 * i386.c (gate): Check flag_expensive_optimizations and
41641 (ix86_option_override_internal): Drop optimize_size condition
41642 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
41643 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
41644 MASK_PREFER_AVX128.
41645 (ix86_avx256_split_vector_move_misalign,
41646 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
41647 * sse.md (all uses of TARGET_PREFER_AVX128): Add
41648 optimize_insn_for_speed_p check.
41650 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
41652 * config/mips/mips.h (FP_ASM_SPEC): New define.
41653 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
41656 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
41659 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
41660 nullptr for insn when reaching the first insn.
41661 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
41662 (sh_insn_operands_modified_between_p): Add nullptr check.
41663 (sh_find_extending_set_of_reg): Fix log message. Don't accept
41664 sign extending mem load if the insn contains any UNSPEC or
41667 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41669 * params.def (inline-unit-growth): Drop to 15%.
41670 * invoke.texi (inline-unit-growth): Document change.
41672 2015-01-19 Martin Liska <mliska@suse.cz>
41675 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
41676 function for second argument of OBJ_TYPE_REF.
41678 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41681 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
41682 whether function is an alias.
41684 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41686 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
41689 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
41691 PR rtl-optimization/64671
41692 * lra-remat.c (operand_to_remat): Don't consider jump and call
41695 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
41698 * config/rs6000/default64.h: Include rs6000-cpus.def.
41699 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
41700 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
41701 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
41703 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
41705 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
41706 pseudo-op to specify assembler dialect.
41708 2015-01-19 Martin Liska <mliska@suse.cz>
41711 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
41712 Handle safe potentially removed nodes during filtering.
41714 2015-01-19 Martin Liska <mliska@suse.cz>
41716 * doc/extend.texi (no_icf): Add new attribute description.
41717 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
41718 where the pass attempts to merge a function with no_icf attribute.
41720 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41723 * doc/md.texi (ARM Options): Document register constraints.
41725 2015-01-19 Jiong Wang <jiong.wang@arm.com>
41726 Andrew Pinski <apinski@cavium.com>
41729 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
41730 (ashl<mode>3): Don't expand if operands[2] is not constant.
41732 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41735 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
41736 Match xor-and-xor RTL pattern.
41738 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
41740 PR rtl-optimization/64081
41741 * loop-iv.c (def_pred_latch_p): New function.
41742 (latch_dominating_def): Allow specific cases with non-single
41744 (iv_get_reaching_def): Likewise.
41745 (check_complex_exit_p): New function.
41746 (check_simple_exit): Use check_complex_exit_p to allow certain cases
41747 with exits not executing on any iteration.
41749 2015-01-19 Jakub Jelinek <jakub@redhat.com>
41751 * common.opt (fgraphite): Fix a typo.
41753 2015-01-19 Felix Yang <felix.yang@huawei.com>
41755 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
41757 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
41758 uminp, smax_nanp, smin_nanp): New builtins.
41759 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
41760 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
41761 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
41762 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
41763 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
41764 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
41765 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
41766 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
41767 vpminnms_f32): Rewrite using builtin functions.
41769 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
41772 * omp-low.c (offload_symbol_decl): Remove variable.
41773 (get_offload_symbol_decl): Remove function.
41774 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
41775 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
41776 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
41777 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
41778 BUILT_IN_GOACC_UPDATE don't pass it at all.
41780 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
41782 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
41785 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
41787 * ipa-chkp.c (chkp_produce_thunks): Add early param
41788 to split thunks production into two passes. Keep
41789 'always_inline' function bodies after the first pass.
41790 (pass_data_ipa_chkp_early_produce_thunks): New.
41791 (pass_ipa_chkp_early_produce_thunks): New.
41792 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
41793 chkp_produce_thunks signature.
41794 (make_pass_ipa_chkp_early_produce_thunks): New.
41795 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
41796 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
41797 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
41799 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41801 * cgraph.c (cgraph_node::dump): Dump profile flags.
41803 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
41806 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
41807 reg appear first in the parallel.
41809 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41811 * ipa-reference.c (set_reference_optimization_summary,
41812 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
41814 (ignore_module_statics): New static var.
41815 (propagate_bits): If ipa-reference is disabled, do not look into local
41817 (analyze_function): Disable analysis when ipa_reference is disabled.
41818 (generate_summary): Do not dump when reference is disabled;
41819 collect vars accessed from functions with ipa-reference disabled.
41820 (get_read_write_all_from_node): When ipa-reference is disabled, use the
41822 (gate): Enable for LTO.
41823 (ignore_edge_p): New function.
41824 (propagate): Skip functions w/o ipa-reference analysis.
41825 * optc-save-gen.awk: Handle optimize_debug correctly.
41826 * opth-gen.awk: Likewise.
41827 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
41828 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
41829 fira-share-save-slots, fira-share-spill-slots,
41830 fmodulo-sched-allow-regmoves, fpartial-inlining,
41831 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
41832 ftracer, ftree-parallelize-loops, fassociative-math,
41833 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
41835 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
41836 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
41838 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
41841 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
41844 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
41846 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
41848 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
41850 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
41851 Remove duplicate option listings.
41853 2015-01-18 Felix Yang <felix.yang@huawei.com>
41855 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
41856 (autofdo_source_profile::get_callsite_total_count,
41857 function_instance::get_function_instance_by_decl,
41858 string_table::get_index, string_table::get_index_by_decl,
41859 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
41860 Fix comment typos. Reformatting and minor code rearrangement.
41862 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41864 * config/rs6000/rs6000.md (probe_stack): Delete.
41865 (probe_stack_address): New.
41867 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41869 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
41870 to test for 32-bit ABIs, not !TARGET_POWERPC64.
41872 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
41874 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
41875 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
41876 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
41878 (rs6000_libcall_value): Use the new function.
41880 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
41882 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
41884 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
41886 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
41887 implement a more precise life analysis for it during backward scan.
41889 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
41891 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
41893 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
41895 PR rtl-optimization/52773
41896 * calls.c (emit_library_call_value): When pushing arguments use
41897 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
41898 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
41899 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
41901 2015-01-17 Jeff Law <law@redhat.com>
41903 PR rtl-optimization/32790
41904 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
41905 not ZERO_EXTEND in SET_DESTs.
41907 2015-01-17 Alan Modra <amodra@gmail.com>
41909 * cprop.c (do_local_cprop): Revert last change.
41911 2015-01-16 DJ Delorie <dj@redhat.com>
41912 Nick Clifton <nickc@redhat.com>
41914 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
41915 (addhi3_real): Likewise. Fix [HL+0] syntax.
41916 (subqi3_real): Likewise.
41917 (subhi3_real): Likewise.
41918 (cbranchqi4_real): Likewise. Allow saddr,#imm.
41919 (cbranchhi4_real): Likewise.
41920 (cbranchhi4_real_inverted): Likewise.
41921 (cbranchsi4_real_lt): Likewise.
41922 (cbranchsi4_real_ge): Likewise.
41923 (cbranchsi4_real_ge): Likewise.
41924 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
41925 (sub<mode>3_virt): Likewise.
41926 (cbranchqi4_virt): Likewise.
41927 (cbranchhi4_virt): Likewise.
41928 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
41929 always use '[reg+imm]' even when imm is zero.
41930 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
41931 (rl78_general_operand): New.
41932 (rl78_nonimmediate_operand): New.
41933 (rl78_nonfar_operand): Use them.
41934 (rl78_nonfar_nonimm_operand): Likewise.
41935 (rl78_stack_based_mem): Fix.
41936 * config/rl78/constraints.md (Ibqi): New.
41941 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
41942 (iorqi3): Likewise.
41943 (xorqi3): Likewise.
41944 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
41946 * config/rl78/constrains (Qs8): New constraint.
41947 * config/rl78/rl78.c (rl78_flags_already_set): New function.
41948 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
41949 * config/rl78/rl78-real.md (update_Z): New attribute.
41950 Update patterns to set it.
41951 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
41952 shorter compare and branch sequence can be used.
41953 (cbranchhi4_real): Likewise.
41954 (cbranchhi4_real_inverted): Likewise.
41956 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
41957 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
41959 * config/rl78/rl78.c (rl78_get_name_encoding): New.
41960 (rl78_option_override): Allow -mes0 only if C.
41961 (characterize_address): Support subregs of symbol_refs.
41962 (rl78_addr_space_address_mode): Move. Add __near.
41963 (rl78_far_p): Likewise.
41964 (rl78_addr_space_pointer_mode): Likewise.
41965 (rl78_as_legitimate_address): Likewise.
41966 (rl78_addr_space_subset_p): Likewise.
41967 (rl78_addr_space_convert): Likewise.
41968 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
41969 symbols with -mes0.
41970 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
41972 (rl78_alloc_physical_registers_op1): Change logic to prefer
41973 symbol[BC] addressing.
41974 (frodata_section): New.
41975 (rl78_asm_init_sections): Initialize it.
41976 (rl78_select_section): Put __far readonly symbols in .frodata.
41977 (rl78_make_type_far): New.
41978 (rl78_insert_attributes): Force all readonly symbols to be
41980 (rl78_asm_out_integer): New.
41981 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
41982 * config/rl78/rl78.opt (-mes0): New.
41984 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
41985 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
41986 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
41987 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
41988 (rl78_saddr_p): New.
41989 (rl78_output_aligned_common): New.
41990 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
41991 (rl78_handle_saddr_attribute): New.
41992 (rl78_handle_naked_attribute): New.
41993 (rl78_attribute_table): Add saddr.
41994 (rl78_print_operand_1): Don't print '!' on saddr operands.
41995 (rl78_print_operand_1): Strip encodings.
41997 (rl78_strip_name_encoding): New.
41998 (rl78_attrlist_to_encoding): New.
41999 (rl78_encode_section_info): New.
42000 (rl78_asm_init_sections): New.
42001 (rl78_select_section): New.
42002 (rl78_output_labelref): New.
42003 (rl78_output_aligned_common): New.
42004 (rl78_asm_out_integer): New.
42005 (rl78_asm_ctor_dtor): New.
42006 (rl78_asm_constructor): New.
42007 (rl78_asm_destructor): New.
42009 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
42010 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
42011 (transcode_memory_rtx): Update.
42012 (rl78_expand_epilogue): Use A_REG instead of 0.
42014 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42016 * config/arm/arm-protos.h (struct tune_params): New field
42017 sched_autopref_queue_depth.
42018 * config/arm/arm.c (sched-int.h): Include header.
42019 (arm_first_cycle_multipass_dfa_lookahead_guard,)
42020 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
42021 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
42022 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
42023 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
42024 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
42025 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
42026 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
42027 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
42028 * config/arm/t-arm (arm.o): Update.
42029 * haifa-sched.c (update_insn_after_change): Update.
42030 (rank_for_schedule): Use auto-prefetcher model, if requested.
42031 (autopref_multipass_init): New static function.
42032 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
42033 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
42034 variable for debug dumps.
42035 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
42036 (autopref_multipass_dfa_lookahead_guard): New global function that
42037 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
42038 (init_h_i_d): Update.
42039 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
42040 * sched-int.h (enum autopref_multipass_data_status): New const enum.
42041 (autopref_multipass_data_): Structure for auto-prefetcher data.
42042 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
42043 (struct _haifa_insn_data:autopref_multipass_data): New field.
42044 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
42045 (autopref_multipass_dfa_lookahead_guard): Declare.
42047 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42049 * rtlanal.c (get_base_term): Handle SCRATCH.
42051 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42053 * config/aarch64/aarch64.c
42054 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
42055 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42057 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
42058 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42060 2015-01-17 Alan Modra <amodra@gmail.com>
42062 * cprop.c (do_local_cprop): Disallow replacement of fixed
42065 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42068 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
42071 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
42073 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
42074 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
42076 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42078 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
42079 * config/arm/thumb1.md: ... Here.
42081 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42083 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
42084 TImode for TARGET_32BIT.
42086 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42088 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
42089 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
42091 (rs6000_abi_word_mode): New function.
42093 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42095 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
42096 instead of UNITS_PER_WORD to describe the size of stack slots.
42098 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42100 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
42101 as rs6000_promote_function_mode. Move comment to there.
42102 (rs6000_promote_function_mode): New function.
42104 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42106 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
42107 -mpowerpc64 is active.
42109 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42111 PR middle-end/64353
42112 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
42115 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42117 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
42118 introduced in revision 219724.
42120 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42121 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42124 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
42125 destination is not a GP reg.
42126 (*movdi_aarch64): Likewise.
42128 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
42131 * config/rs6000/default64.h: Revert ISA change.
42133 2015-01-16 Richard Biener <rguenther@suse.de>
42135 PR middle-end/64614
42136 * tree-ssa-uninit.c: Include tree-cfg.h.
42137 (MAX_SWITCH_CASES): New define.
42138 (convert_control_dep_chain_into_preds): Handle switch statements.
42139 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
42140 (normalize_one_pred_1): Do not split bit-manipulations.
42143 2015-01-16 Richard Biener <rguenther@suse.de>
42145 PR tree-optimization/64568
42146 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
42147 complex load rewriting for TARGET_MEM_REFs.
42149 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
42151 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
42153 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
42156 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
42158 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
42159 (aarch64_lra_p): Remove.
42161 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42164 * ipa-chkp.h (chkp_instrumentable_p): New.
42165 * ipa-chkp.c: Include tree-inline.h.
42166 (chkp_instrumentable_p): New.
42167 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
42168 Fix processing of not instrumentable functions.
42169 (chkp_versioning): Use chkp_instrumentable_p. Warn about
42170 not instrumentable functions.
42171 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
42172 chkp_instrumentable_p.
42173 * tree-inline.h (copy_forbidden): New.
42174 * tree-inline.c (copy_forbidden): Not static anymore.
42176 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42178 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
42181 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42183 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
42184 type OP_OUT to OP_INOUT.
42186 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42188 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
42189 (high x) y) to y if x and y have the same base.
42191 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42193 * config/arm/cortex-a57.md: New.
42194 * config/aarch64/aarch64.md: Include it.
42195 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
42196 * config/aarch64/aarch64-tune.md: Regenerate.
42198 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
42201 * ccmp.c (expand_ccmp_next): New function.
42202 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
42203 and compare insn sequence.
42204 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
42205 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
42206 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
42207 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
42208 (*ccmp_ior): Changed to ccmp_ior<mode>.
42209 (cmp<mode>): New pattern.
42210 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
42212 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
42214 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
42216 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
42217 _mm256_bsrli_epi128): New.
42218 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
42220 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42222 * expmed.c (store_bit_field_using_insv): Improve warning message.
42223 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
42225 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42227 PR rtl-optimization/64011
42228 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
42229 there is partial overflow.
42231 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42233 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
42235 (nds32_expand_epilogue_v3pop): Likewise.
42236 * config/nds32/nds32.md (sibcall): Define this for sibling call
42238 (sibcall_register): Likewise.
42239 (sibcall_immediate): Likewise.
42240 (sibcall_value): Likewise.
42241 (sibcall_value_register): Likewise.
42242 (sibcall_value_immediate): Likewise.
42243 (sibcall_epilogue): Likewise.
42244 (epilogue): Pass false to indicate this is not a sibcall epilogue.
42245 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
42246 (nds32_expand_epilogue_v3pop): Likewise.
42248 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42250 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
42251 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
42252 (return_internal): New.
42253 (return): Define this named pattern.
42254 (simple_return): Define this named pattern.
42255 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
42256 pattern instead of unspec_volatile_func_return.
42257 (nds32_expand_epilogue_v3pop): Likewise.
42258 (nds32_can_use_return_insn): New function.
42260 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42262 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
42263 * config/nds32/nds32.md (pop25return): New.
42264 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
42265 pop25return pattern.
42267 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42269 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
42270 -mforbid-fp-as-gp, and -mex9 options.
42272 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42274 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
42275 remove -mgp-direct option.
42277 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42279 * doc/invoke.texi (--param early-inlining-insns): Update default value.
42280 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
42282 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42284 * ipa-inline.c (inline_small_functions): Work around hints
42287 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
42290 * doc/invoke.texi (Option Summary): Document new Nios II
42292 (Nios II Options): Likewise.
42293 * config/nios2/nios2.opt: Add -mgpopt= option support.
42294 Modify existing -mgpopt and -mno-gpopt options to be aliases.
42295 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
42296 * config/nios2/nios2.c (nios2_option_override): Adjust
42297 -mgpopt defaulting.
42298 (nios2_in_small_data_p): Return true for explicit small data
42299 sections even with -G0.
42300 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
42303 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42306 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
42308 (inline_call): Fix removal of aliases.
42310 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42312 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
42313 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
42314 * opts.c (common_handle_option): Add -fsanitize=vptr.
42315 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
42316 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
42317 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
42318 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
42319 (ubsan_expand_vptr_ifn): New prototype.
42320 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
42321 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
42322 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
42323 expand_LOOP_VECTORIZED): Make argument nameless, remove
42325 (expand_UBSAN_VPTR): New function.
42326 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
42328 (UBSAN_VPTR): New internal function.
42329 * sanopt.c (tree_map_traits): Renamed to ...
42330 (sanopt_tree_map_traits): ... this.
42331 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
42332 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
42333 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
42334 (maybe_optimize_ubsan_vptr_ifn): New function.
42335 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
42336 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
42338 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
42339 internal calls like pure functions for aliasing, even when they
42340 have other side-effects that prevent making them ECF_PURE.
42341 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
42342 (ubsan_expand_vptr_ifn): New function.
42344 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
42346 PR rtl-optimization/64110
42347 * stmt.c (parse_output_constraint): Process '^' and '$'.
42348 (parse_input_constraint): Ditto.
42349 * lra-constraints.c (process_alt_operands): Process the new
42351 * ira-costs.c (record_reg_classes): Process the new constraint
42353 * genoutput.c (indep_constraints): Add '^' and '$'.
42354 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
42355 * doc/md.texi: Add description of the new constraints.
42357 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
42358 Bernd Schmidt <bernds@codesourcery.com>
42359 Cesar Philippidis <cesar@codesourcery.com>
42360 James Norris <jnorris@codesourcery.com>
42361 Tom de Vries <tom@codesourcery.com>
42362 Ilmir Usmanov <i.usmanov@samsung.com>
42363 Dmitry Bocharnikov <dmitry.b@samsung.com>
42364 Evgeny Gavrin <e.gavrin@samsung.com>
42365 Jakub Jelinek <jakub@redhat.com>
42367 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
42368 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
42369 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
42370 New function types.
42371 * builtins.c: Include "gomp-constants.h".
42372 (expand_builtin_acc_on_device): New function.
42373 (expand_builtin, is_inexpensive_builtin): Handle
42374 BUILT_IN_ACC_ON_DEVICE.
42375 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
42377 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
42379 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
42380 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
42381 i386/intelmic-offload.h.
42382 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
42383 to libgomp and its dependencies.
42384 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
42385 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
42386 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
42387 * config/ia64/hpux.h (LIB_SPEC): Likewise.
42388 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
42389 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
42390 * doc/generic.texi: Update for OpenACC changes.
42391 * doc/gimple.texi: Likewise.
42392 * doc/invoke.texi: Likewise.
42393 * doc/sourcebuild.texi: Likewise.
42394 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
42395 GF_OMP_FOR_KIND_OACC_LOOP.
42396 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
42397 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
42398 GF_OMP_TARGET_KIND_OACC_UPDATE,
42399 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42401 * gimple.c: Update comments for OpenACC changes.
42402 * gimple.def: Likewise.
42403 * gimple.h: Likewise.
42404 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
42405 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42406 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
42407 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42408 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
42410 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
42411 * gimplify.c: Include "gomp-constants.h".
42412 Update comments for OpenACC changes.
42413 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
42414 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
42415 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42416 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
42417 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42418 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42419 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
42420 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42421 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
42423 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
42424 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42425 OMP_CLAUSE_SET_MAP_KIND.
42426 (gimplify_oacc_cache): New function.
42427 (gimplify_omp_for): Handle OACC_LOOP.
42428 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
42430 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
42431 OACC_EXIT_DATA, OACC_UPDATE.
42432 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
42433 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
42434 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
42435 (gimplify_body): Consider flag_openacc next to flag_openmp.
42436 * lto-streamer-out.c: Include "gomp-constants.h".
42437 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
42438 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
42439 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
42440 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
42441 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
42442 (BUILT_IN_ACC_ON_DEVICE): New builtins.
42443 * omp-low.c: Include "gomp-constants.h".
42444 Update comments for OpenACC changes.
42445 (struct omp_context): Add reduction_map, gwv_below, gwv_this
42447 (extract_omp_for_data, use_pointer_for_field, install_var_field)
42448 (new_omp_context, delete_omp_context, scan_sharing_clauses)
42449 (create_omp_child_function, scan_omp_for, scan_omp_target)
42450 (check_omp_nesting_restrictions, lower_reduction_clauses)
42451 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
42452 Update for OpenACC changes.
42453 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
42454 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
42455 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
42456 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42457 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
42458 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
42460 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
42461 Handle GF_OMP_FOR_KIND_OACC_LOOP.
42462 (expand_omp_target, lower_omp_target): Handle
42463 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42464 GF_OMP_TARGET_KIND_OACC_UPDATE,
42465 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
42466 GF_OMP_TARGET_KIND_OACC_DATA.
42467 (pass_expand_omp::execute, execute_lower_omp)
42468 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
42470 (offload_symbol_decl): New variable.
42471 (oacc_get_reduction_array_id, oacc_max_threads)
42472 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
42473 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
42474 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
42475 (oacc_gimple_assign, oacc_initialize_reduction_data)
42476 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
42478 (is_targetreg_ctx): Remove function.
42479 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
42480 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
42481 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42482 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
42483 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
42484 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
42485 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
42486 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
42487 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
42488 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
42489 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
42490 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
42491 * tree-core.h: Update comments for OpenACC changes.
42492 (enum omp_clause_map_kind): Remove.
42493 (struct tree_omp_clause): Change type of map_kind member from enum
42494 omp_clause_map_kind to unsigned char.
42495 * tree-inline.c: Update comments for OpenACC changes.
42496 * tree-nested.c: Likewise. Include "gomp-constants.h".
42497 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
42498 (convert_tramp_reference_stmt, convert_gimple_call): Update for
42499 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42500 OMP_CLAUSE_SET_MAP_KIND.
42501 * tree-pretty-print.c: Include "gomp-constants.h".
42502 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
42503 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
42504 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
42505 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
42506 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42507 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
42508 instead of OMP_CLAUSE_MAP_*.
42509 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
42510 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
42511 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42512 * tree-streamer-in.c: Include "gomp-constants.h".
42513 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
42514 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
42515 * tree-streamer-out.c: Include "gomp-constants.h".
42516 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
42518 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
42519 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
42520 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
42521 * tree.c (omp_clause_num_ops): Update accordingly.
42522 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
42524 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
42525 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
42526 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
42527 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
42528 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
42529 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
42530 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
42531 (OMP_CLAUSE_SET_MAP_KIND): New macro.
42532 * varpool.c (varpool_node::get_create): Consider flag_openacc next
42534 * config/i386/intelmic-offload.h: New file.
42535 * config/nvptx/offload.h: Likewise.
42537 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42539 * explow.h: Remove duplicate contents.
42540 * dojump.h: Likewise.
42542 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
42544 * arm.c (arm_xgene_tune): Add default initializer for instruction
42547 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42551 * ipa.c (symbol_table::remove_unreachable_nodes):
42552 Do not put abstract origins into boundary.
42554 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
42556 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
42557 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
42559 2015-01-15 Steve Ellcey <sellcey@mips.com>
42561 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
42562 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
42563 builtins.def, and chkp-builtins.def.
42565 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
42567 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
42570 2015-01-15 Richard Biener <rguenther@suse.de>
42572 PR tree-optimization/61743
42573 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
42574 information on PHIs for some simple cases.
42576 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42578 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
42580 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
42581 * config/arm/arm-cores.def (xgene1): New entry.
42582 * config/arm/arm-tables.opt: Regenerate.
42583 * config/arm/arm-tune.md: Regenerate.
42584 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
42586 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42588 * tree-if-conv.c: Include hash-map.h.
42589 (aggressive_if_conv): New variable.
42590 (fold_build_cond_expr): Add simplification of non-zero condition.
42591 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
42592 destination block is not always executed.
42593 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
42594 than two predecessors if AGGRESSIVE_IF_CONV is true.
42595 (if_convertible_stmt_p): Fix commentary.
42596 (all_preds_critical_p): New function.
42597 (has_pred_critical_p): New function.
42598 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
42599 BB can have more than two predecessors and all incoming edges can be
42601 (predicate_bbs): Skip predication for loop exit block, use build2_loc
42602 to compute predicate for true edge.
42603 (find_phi_replacement_condition): Delete this function.
42604 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
42605 Allow interchange PHI arguments if EXTENDED is false.
42606 Change check that block containing reduction statement candidate
42607 is predecessor of phi-block since phi may have more than two arguments.
42608 (phi_args_hash_traits): New helper structure.
42609 (struct phi_args_hash_traits): New type.
42610 (phi_args_hash_traits::hash): New function.
42611 (phi_args_hash_traits::equal_keys): New function.
42612 (gen_phi_arg_condition): New function.
42613 (predicate_scalar_phi): Add handling of phi nodes with more than two
42614 arguments, delete COND and TRUE_BB arguments, insert body of
42615 find_phi_replacement_condition to predicate ordinary phi nodes.
42616 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
42617 delete call of find_phi_replacement_condition and invoke
42618 predicate_scalar_phi with two arguments.
42619 (insert_gimplified_predicates): Add assert that non-predicated block
42620 don't have statements to insert.
42621 (ifcvt_split_critical_edges): New function.
42622 (ifcvt_split_def_stmt): Likewise.
42623 (ifcvt_walk_pattern_tree): Likewise.
42624 (stmt_is_root_of_bool_pattern): Likewise.
42625 (ifcvt_repair_bool_pattern): Likewise.
42626 (ifcvt_local_dce): Likewise.
42627 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
42628 is copy of inner or outer loop force_vectorize field, invoke
42629 ifcvt_split_critical_edges, ifcvt_local_dce and
42630 ifcvt_repair_bool_pattern for aggressive if-conversion.
42632 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
42634 * config/aarch64/aarch64.md: Include xgene1.md.
42635 * config/aarch64/xgene1.md: New file.
42637 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42639 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
42640 xgene1 (APM XGene-1) core definition.
42641 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
42642 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
42643 * doc/invoke.texi: Document -mcpu=xgene1.
42645 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42647 * dojump.h: New header file.
42648 * explow.h: Likewise.
42649 * expr.h: Remove includes.
42650 Move expmed.c prototypes to expmed.h.
42651 Move dojump.c prototypes to dojump.h.
42652 Move alias.c prototypes to alias.h.
42653 Move explow.c prototypes to explow.h.
42654 Move calls.c prototypes to calls.h.
42655 Move emit-rtl.c prototypes to emit-rtl.h.
42656 Move varasm.c prototypes to varasm.h.
42657 Move stmt.c prototypes to stmt.h.
42658 (saved_pending_stack_adjust): Move to dojump.h.
42659 (adjust_address): Move to explow.h.
42660 (adjust_address_nv): Move to emit-rtl.h.
42661 (adjust_bitfield_address): Likewise.
42662 (adjust_bitfield_address_size): Likewise.
42663 (adjust_bitfield_address_nv): Likewise.
42664 (adjust_automodify_address_nv): Likewise.
42665 * explow.c (expr_size): Move to expr.c.
42666 (int_expr_size): Likewise.
42667 (tree_expr_size): Likewise.
42668 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42669 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42670 * genemit.c (main): Generate includes statistics.h, real.h,
42671 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
42673 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
42674 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
42675 explow.h, emit-rtl.h, stmt.h.
42676 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
42677 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
42678 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
42679 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
42680 emit-rtl.h, varasm.h, stmt.h.
42681 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
42682 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
42683 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
42684 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
42685 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
42686 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
42687 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
42688 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
42689 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
42690 tm.h tree.h varasm.h vec.h wide-int.h.
42691 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42692 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42693 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
42694 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
42695 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
42696 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
42697 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
42698 * loop-iv.c: Likewise.
42699 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
42700 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
42701 statistics.h stmt.h tree.h varasm.h wide-int.h.
42702 * lra-constraints.c: Likewise.
42703 * lra-eliminations.c: Likewise.
42704 * lra-lives.c: Likewise.
42705 * lra-remat.c: Likewise.
42706 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42707 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
42708 statistics.h stmt.h tree.h varasm.h wide-int.h.
42709 * hw-doloop.c: Likewise.
42710 * ira-color.c: Likewise.
42711 * ira-emit.c: Likewise.
42712 * loop-doloop.c: Likewise.
42713 * loop-invariant.c: Likewise.
42714 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42715 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
42716 statistics.h stmt.h tree.h varasm.h wide-int.h.
42717 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
42718 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
42719 statistics.h stmt.h tree.h varasm.h wide-int.h.
42720 * combine-stack-adj.c: Likewise.
42723 * ifcvt.c: Likewise.
42724 * ira-costs.c: Likewise.
42725 * jump.c: Likewise.
42726 * lra-coalesce.c: Likewise.
42727 * lra-spills.c: Likewise.
42728 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42729 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
42730 stmt.h varasm.h wide-int.h.
42731 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
42732 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42734 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
42735 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
42736 statistics.h stmt.h varasm.h wide-int.h.
42737 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
42738 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
42739 varasm.h wide-int.h.
42740 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
42741 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42742 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
42743 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
42744 statistics.h stmt.h.
42745 * config/tilepro/tilepro.c: Likewise.
42746 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
42747 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
42748 * config/pdp11/pdp11.c: Likewise.
42749 * config/xtensa/xtensa.c: Likewise.
42750 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
42751 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
42753 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42754 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42755 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
42756 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42757 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
42758 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
42759 * rtl-chkp.c: Likewise.
42760 * tree-chkp-opt.c: Likewise.
42761 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
42762 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
42763 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
42764 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42765 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42766 statistics.h stmt.h.
42767 * tree-vect-data-refs.c: Likewise.
42768 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
42769 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42770 rtl.h statistics.h stmt.h varasm.h.
42771 * internal-fn.c: Likewise.
42772 * ipa-icf-gimple.c: Likewise.
42773 * lto-section-out.c: Likewise.
42774 * tree-data-ref.c: Likewise.
42775 * tree-nested.c: Likewise.
42776 * tree-outof-ssa.c: Likewise.
42777 * tree-predcom.c: Likewise.
42778 * tree-pretty-print.c: Likewise.
42779 * tree-scalar-evolution.c: Likewise.
42780 * tree-ssa-strlen.c: Likewise.
42781 * tree-vect-loop.c: Likewise.
42782 * tree-vect-patterns.c: Likewise.
42783 * tree-vect-slp.c: Likewise.
42784 * tree-vect-stmts.c: Likewise.
42785 * tsan.c: Likewise.
42786 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42787 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
42789 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
42790 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42791 statistics.h stmt.h varasm.h.
42792 * loop-unroll.c: Likewise.
42793 * ubsan.c: Likewise.
42794 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
42795 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
42797 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42798 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
42799 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
42800 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42801 statistics.h stmt.h.
42802 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
42803 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
42804 statistics.h stmt.h varasm.h.
42805 * gimple-match-head.c: Likewise.
42806 * lto-cgraph.c: Likewise.
42807 * lto-section-in.c: Likewise.
42808 * lto-streamer-in.c: Likewise.
42809 * lto-streamer-out.c: Likewise.
42810 * tree-affine.c: Likewise.
42811 * tree-cfg.c: Likewise.
42812 * tree-cfgcleanup.c: Likewise.
42813 * tree-if-conv.c: Likewise.
42814 * tree-into-ssa.c: Likewise.
42815 * tree-ssa-alias.c: Likewise.
42816 * tree-ssa-copyrename.c: Likewise.
42817 * tree-ssa-dse.c: Likewise.
42818 * tree-ssa-forwprop.c: Likewise.
42819 * tree-ssa-live.c: Likewise.
42820 * tree-ssa-math-opts.c: Likewise.
42821 * tree-ssa-pre.c: Likewise.
42822 * tree-ssa-sccvn.c: Likewise.
42823 * tree-tailcall.c: Likewise.
42824 * tree-vect-generic.c: Likewise.
42825 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42826 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
42827 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42828 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
42829 * varasm.c: Likewise.
42830 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42831 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
42833 * init-regs.c: Likewise.
42835 * omp-low.c: Likewise.
42836 * stack-ptr-mod.c: Likewise.
42837 * tree-ssa-reassoc.c: Likewise.
42838 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42839 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
42841 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42842 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
42843 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42844 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
42845 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42846 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
42847 * tree-ssa-phiopt.c: Likewise.
42848 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42849 fixed-value.h hashtab.h real.h statistics.h stmt.h.
42850 * config/fr30/fr30.c: Likewise.
42851 * config/frv/frv.c: Likewise.
42852 * expr.c: Likewise.
42853 * final.c: Likewise.
42854 * optabs.c: Likewise.
42855 * passes.c: Likewise.
42856 * simplify-rtx.c: Likewise.
42857 * stmt.c: Likewise.
42858 * toplev.c: Likewise.
42859 * var-tracking.c: Likewise.
42860 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42861 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42862 * lower-subreg.c: Likewise.
42863 * postreload-gcse.c: Likewise.
42865 * reginfo.c: Likewise.
42866 * store-motion.c: Likewise.
42867 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42868 fixed-value.h hashtab.h real.h stmt.h varasm.h.
42869 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42870 fixed-value.h hashtab.h statistics.h stmt.h.
42871 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42872 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42873 * except.c: Likewise.
42874 * explow.c: Likewise.
42875 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42876 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
42878 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42879 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
42880 * tree-ssa-structalias.c: Likewise.
42881 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42882 fixed-value.h insn-config.h real.h statistics.h.
42883 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42884 fixed-value.h insn-config.h real.h statistics.h stmt.h.
42885 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42886 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42887 * cfgbuild.c: Likewise.
42888 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42889 fixed-value.h real.h rtl.h statistics.h stmt.h.
42890 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42891 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42892 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42893 fixed-value.h real.h statistics.h stmt.h.
42894 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42895 fixed-value.h real.h statistics.h stmt.h varasm.h.
42896 * cprop.c: Likewise.
42897 * modulo-sched.c: Likewise.
42898 * postreload.c: Likewise.
42899 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42900 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
42901 statistics.h stmt.h varasm.h.
42902 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
42903 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42904 rtl.h statistics.h stmt.h varasm.h.
42905 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
42906 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
42908 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42909 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
42911 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
42912 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
42914 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
42915 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42916 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42917 function.h real.h statistics.h stmt.h varasm.h.
42918 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42919 insn-config.h real.h statistics.h stmt.h.
42920 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42921 statistics.h stmt.h.
42922 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
42923 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
42924 statistics.h stmt.h varasm.h.
42925 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
42926 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
42927 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42928 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
42929 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
42930 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42931 statistics.h stmt.h varasm.h.
42932 * ipa-polymorphic-call.c: Likewise.
42933 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
42934 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42935 statistics.h stmt.h.
42936 * config/c6x/c6x.c: Likewise.
42937 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
42938 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42939 statistics.h stmt.h varasm.h.
42940 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
42941 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
42943 * ipa-split.c: Likewise.
42944 * tree-eh.c: Likewise.
42945 * tree-ssa-dce.c: Likewise.
42946 * tree-ssa-loop-niter.c: Likewise.
42947 * tree-vrp.c: Likewise.
42948 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
42949 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
42951 * config/nds32/nds32-fp-as-gp.c: Likewise.
42952 * config/nds32/nds32-intrinsic.c: Likewise.
42953 * config/nds32/nds32-isr.c: Likewise.
42954 * config/nds32/nds32-md-auxiliary.c: Likewise.
42955 * config/nds32/nds32-memory-manipulation.c: Likewise.
42956 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
42957 * config/nds32/nds32-predicates.c: Likewise.
42958 * config/nds32/nds32.c: Likewise.
42959 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
42960 fixed-value.h hashtab.h real.h statistics.h.
42961 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
42962 fixed-value.h hashtab.h real.h statistics.h stmt.h.
42963 * config/arm/arm.c: Likewise.
42964 * config/avr/avr.c: Likewise.
42965 * config/bfin/bfin.c: Likewise.
42966 * config/h8300/h8300.c: Likewise.
42967 * config/i386/i386.c: Likewise.
42968 * config/ia64/ia64.c: Likewise.
42969 * config/iq2000/iq2000.c: Likewise.
42970 * config/m32c/m32c.c: Likewise.
42971 * config/m32r/m32r.c: Likewise.
42972 * config/m68k/m68k.c: Likewise.
42973 * config/mcore/mcore.c: Likewise.
42974 * config/mep/mep.c: Likewise.
42975 * config/mips/mips.c: Likewise.
42976 * config/mn10300/mn10300.c: Likewise.
42977 * config/moxie/moxie.c: Likewise.
42978 * config/pa/pa.c: Likewise.
42979 * config/rl78/rl78.c: Likewise.
42980 * config/rx/rx.c: Likewise.
42981 * config/s390/s390.c: Likewise.
42982 * config/sh/sh.c: Likewise.
42983 * config/sparc/sparc.c: Likewise.
42984 * config/spu/spu.c: Likewise.
42985 * config/stormy16/stormy16.c: Likewise.
42986 * config/v850/v850.c: Likewise.
42987 * config/vax/vax.c: Likewise.
42988 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
42989 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42990 * config/msp430/msp430.c: Likewise.
42991 * predict.c: Likewise.
42992 * value-prof.c: Likewise.
42993 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
42994 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
42995 * config/microblaze/microblaze.c: Likewise.
42996 * config/nios2/nios2.c: Likewise.
42997 * config/rs6000/rs6000.c: Likewise.
42998 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42999 insn-config.h real.h rtl.h statistics.h stmt.h.
43000 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43001 insn-config.h real.h statistics.h stmt.h.
43002 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
43003 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
43004 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
43005 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43006 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
43007 fixed-value.h real.h statistics.h stmt.h.
43008 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
43009 fixed-value.h statistics.h stmt.h.
43010 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
43013 2015-01-15 Jakub Jelinek <jakub@redhat.com>
43015 * gengtype.c (create_user_defined_type): Workaround
43016 -Wmaybe-uninitialized false positives.
43017 * cse.c (fold_rtx): Likewise.
43018 * loop-invariant.c (gain_for_invariant): Likewise.
43020 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
43022 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
43023 set the memory attributes in all cases but clear MEM_EXPR if need be.
43025 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
43027 PR tree-optimization/64434
43028 * cfgexpand.c (reorder_operands): New function.
43029 (expand_gimple_basic_block): Insert call of reorder_operands if
43032 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
43034 * config/mips/micromips.md (*swp): Remove explicit parallel.
43035 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
43036 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
43037 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
43038 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
43039 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
43040 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
43041 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
43042 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
43043 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
43044 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
43045 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
43046 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
43047 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
43048 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
43049 (mips_wrdsp): Likewise.
43050 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
43052 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
43053 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
43054 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
43055 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
43056 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
43057 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
43058 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
43059 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
43060 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
43062 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43064 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
43065 (mips_print_operand): Support 'y' to print exact log2 in decimal
43067 * config/mips/mips.h (ISA_HAS_LSA): New define.
43068 (ISA_HAS_DLSA): Likewise.
43069 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
43070 * config/mips/predicates.md (const_immlsa_operand): New predicate.
43072 2015-01-15 Martin Liska <mliska@suse.cz>
43075 * optc-save-gen.awk: Add support for array types.
43077 2015-01-15 Richard Biener <rguenther@suse.de>
43079 PR middle-end/64365
43080 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
43081 for MEM_REF access functions with the same base can never partially
43084 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
43086 * common.opt: New option -fstack-protector-explicit.
43087 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
43088 (stack_protect_decl_phase): Handle stack_protect attribute for
43089 explicit stack protection requests.
43090 (expand_used_vars): Similarly.
43091 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
43092 * doc/extend.texi: Add documentation for "stack_protect" attribute.
43093 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
43095 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
43098 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
43100 (sh_extending_set_of_reg): New struct.
43101 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
43102 sh_remove_reg_dead_or_unused_notes): New Declarations.
43103 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
43104 sh_find_extending_set_of_reg, sh_split_tst_subregs,
43105 sh_extending_set_of_reg::use_as_extended_reg): New functions.
43106 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
43107 convert to insn_and_split and use new function sh_split_tst_subregs.
43109 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
43111 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
43113 (Optimization Options): Move -fuse-ld documentation to...
43114 (Link Options): ...here.
43116 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43118 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
43120 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
43121 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
43122 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
43123 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
43124 instead of ZR for the memory operand of LL/SC.
43125 (compare_and_swap_12, sync_add<mode>): Likewise.
43126 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
43127 (sync_new_<optab>_12, sync_nand_12): Likewise.
43128 (sync_old_nand_12, sync_new_nand_12): Likewise.
43129 (sync_sub<mode>, sync_old_add<mode>): Likewise.
43130 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
43131 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
43132 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
43133 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
43134 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
43135 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
43136 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
43137 * doc/md.texi (ZC): Update description.
43139 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43141 * builtins.c (expand_builtin_atomic_exchange): Remove error when
43142 memory model is CONSUME.
43143 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
43144 expand_builtin_atomic_store): Change invalid memory model errors to
43146 (expand_builtin_atomic_clear): Change invalid model errors to warnings
43147 and issue warning for CONSUME.
43149 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
43151 * lto-cgraph: Update function comments for
43152 lto_symtab_encoder_encode_*.
43154 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43156 * Makefile.in (site.exp): Do not set ENABLE_LTO.
43158 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43160 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
43161 * lto-cgraph.c (select_what_to_stream): Remove argument, use
43162 lto_stream_offload_p instead.
43163 * lto-streamer.h (select_what_to_stream): Remove argument.
43164 * passes.c (ipa_write_summaries): Likewise.
43165 * tree-pass.h (ipa_write_summaries): Likewise.
43167 2015-01-14 Richard Biener <rguenther@suse.de>
43169 PR tree-optimization/59354
43170 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
43171 groups larger than the slp group size as having gaps.
43173 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43175 PR middle-end/59448
43176 * builtins.c (get_memmodel): Promote consume to acquire always.
43178 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43181 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
43184 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43187 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
43189 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
43190 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
43191 AVX512VBMI, as it implies AVX512BW.
43193 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43196 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
43197 (vec_unpacks_hi_v16sf): Ditto.
43199 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43201 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
43204 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43206 * doc/invoke.texi (mapcs): Mention deprecation.
43207 (mapcs-frame): Likewise.
43209 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
43212 * config/arm/arm.c (callee_saved_reg_p): Define.
43213 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
43214 register is callee saved instead of !call_used_regs[reg].
43215 (thumb1_compute_save_reg_mask): Likewise.
43217 2015-01-14 Hale Wang <hale.wang@arm.com>
43219 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
43222 2015-01-14 Richard Biener <rguenther@suse.de>
43225 * tree-inline.c (insert_debug_decl_map): Check destination
43226 function MAY_HAVE_DEBUG_STMTS.
43227 (insert_init_debug_bind): Likewise.
43228 (insert_init_stmt): Remove redundant check.
43229 (remap_gimple_stmt): Drop debug stmts if the destination
43230 function has var-tracking assignments disabled.
43232 2015-01-14 Martin Liska <mliska@suse.cz>
43234 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
43235 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
43237 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43240 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
43241 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
43243 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43245 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
43246 level from an ARCH; do not inject the default.
43247 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
43248 MIPS_ISA_LEVEL_SPEC.
43249 (MIPS_ISA_NAN2008_SPEC): Update comment.
43250 (BASE_DRIVER_SELF_SPECS): Likewise.
43251 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
43252 MIPS_DEFAULT_ISA_LEVEL_SPEC.
43253 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
43254 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
43255 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
43257 2015-01-14 Richard Biener <rguenther@suse.de>
43259 PR tree-optimization/64493
43260 PR tree-optimization/64495
43261 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
43262 assign the proper vectorized PHI to the inner loop exit PHIs.
43264 2015-01-14 Joey Ye <joey.ye@arm.com>
43266 * config/arm/arm.c (arm_compute_save_reg_mask):
43267 Do not save lr in case of tail call.
43268 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
43270 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
43272 * tree-vrp.c (check_array_ref): Emit more warnings
43273 for warn_array_bounds >= 2.
43274 * common.opt: New option -Warray-bounds=.
43275 * doc/invoke.texi: Document -Warray-bounds=.
43277 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
43279 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
43280 (mforbid-fp-as-gp): Remove.
43282 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
43283 (nds32_symbol_load_store_p): Remove.
43284 (nds32_fp_as_gp_check_available): Clean up implementation.
43285 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
43287 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
43288 fp-as-gp and ex9 cases.
43290 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43292 * tree-profile.c (init_ic_make_global_vars): Drop workaround
43293 for bintuils bug 14342.
43294 (init_ic_make_global_vars): Likewise.
43295 (gimple_init_edge_profiler): Likewise.
43296 (gimple_gen_ic_func_profiler): Likewise.
43298 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
43300 * ipa-inline.c (inline_small_functions): Swap the operands in
43303 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43306 * ipa-inline-analysis.c (node_growth_cache): Remove.
43307 (initialize_growth_caches): Do not initialize it.
43308 (free_growth_caches): Do not free it.
43309 (do_estimate_growth): Rename to ...
43310 (estimate_growth): ... this one; drop growth cache code.
43311 (growth_likely_positive): Always go the heuristics way.
43312 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
43313 (reset_edge_caches): Do not reset node growth.
43314 (heap_edge_removal_hook): Do not maintain cache.
43315 (inline_small_functions): Likewise; strenghten sanity check.
43316 (ipa_inline): Do not maintain caches.
43317 * ipa-inline.h (node_growth_cache): Remove.
43318 (do_estimate_growth): Remove to ...
43319 (estimate_growth): this one; remove inline version.
43320 (reset_node_growth_cache): Remove.
43322 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43325 * ipa-inline.c (inline_small_functions): Update callee keys after
43326 resolving speculation
43327 (inline_small_functions): Always check monotonicity of the queue.
43329 2015-01-13 Marek Polacek <polacek@redhat.com>
43331 PR middle-end/64391
43332 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
43334 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43336 PR rtl-optimization/64286
43337 * ree.c (combine_reaching_defs): Move part of comment earlier,
43338 remove !SCALAR_INT_MODE_P check.
43339 (add_removable_extension): Don't add vector mode
43340 extensions if all uses of the source register aren't the same
43343 2015-01-13 Renlin Li <renlin.li@arm.com>
43345 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
43346 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
43348 2015-01-13 Martin Liska <mliska@suse.cz>
43350 * ipa-icf.c (sem_function::equals_private): Call new functions
43351 cl_target_option_print_diff and cl_optimization_print_diff.
43352 * optc-save-gen.awk (cl_target_option_print_diff): New function.
43353 (cl_optimization_print_diff): Likewise.
43354 * opth-gen.awk: Likewise.
43356 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
43358 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
43359 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
43360 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
43361 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
43362 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
43363 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
43365 2015-01-13 Andrew Pinski <apinski@cavium.com>
43367 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
43368 instead of src mode.
43370 2015-01-13 Richard Biener <rguenther@suse.de>
43373 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
43376 2015-01-13 Andrew Pinski <apinski@cavium.com>
43378 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
43380 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
43382 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43384 PR middle-end/63974
43385 * cfgexpand.c (expand_computed_goto): Don't call
43386 convert_memory_address here.
43388 2015-01-13 Richard Biener <rguenther@suse.de>
43390 PR tree-optimization/64406
43391 * tree-loop-distibution.c (pass_loop_distribution::execute):
43392 Reset the SCEV hashtable if we distributed anything.
43394 2015-01-13 Richard Biener <rguenther@suse.de>
43396 PR tree-optimization/64404
43397 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
43398 SLP types for CSEd loads.
43400 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
43402 PR tree-optimization/64436
43403 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
43404 merge of two symbolic numbers for a bitwise OR to ...
43405 (perform_symbolic_merge): This. Also fix computation of the range and
43406 end of the symbolic number corresponding to the result of a bitwise OR.
43408 2015-01-13 Richard Biener <rguenther@suse.de>
43410 PR tree-optimization/64568
43411 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
43412 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
43414 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43416 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
43417 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
43419 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43421 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
43422 target-specific symbol_ref flag.
43423 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
43424 resides in rodata section.
43425 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
43426 (nds32_encode_section_info): New function.
43428 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43430 * config/nds32/nds32.md (call): Use pseudo instruction bal which
43431 clobbers TA_REGNUM if large code model is specified.
43432 (call_register): Likewise.
43433 (call_immediate): Likewise.
43434 (call_value): Likewise.
43435 (call_value_register): Likewise.
43436 (call_value_immediate): Likewise.
43438 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43440 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
43441 (TARGET_CMODEL_MEDIUM): New macro.
43442 (TARGET_CMODEL_LARGE): New macro.
43443 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
43444 code model setting in assembly code.
43446 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43448 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
43449 Remove MASK_GP_DIRECT flag.
43450 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
43451 one of the multilib default options.
43452 * config/nds32/nds32.opt (mgp-direct): Remove.
43453 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
43454 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
43456 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43458 * config/nds32/nds32.opt (mcmodel): Add new option.
43459 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
43460 to describe code model.
43462 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
43465 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
43467 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
43469 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
43470 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43471 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
43472 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
43473 __builtin_sh_set_fpscr.
43475 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43477 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
43478 after a funtion name just to indicate it is a function.
43479 ([-fsanitize-undefined-trap-on-error]): Likewise.
43480 ([-fdbg-cnt=]): Likewise.
43481 ([-mmemcpy]): Likewise.
43482 ([-mflush-func]): Likewise.
43483 ([-msynci]): Likewise.
43485 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43487 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
43490 2015-01-12 Jakub Jelinek <jakub@redhat.com>
43492 PR tree-optimization/64563
43493 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
43494 instead of != VR_VARYING.
43497 * config/i386/i386.c (ix86_expand_prologue): Add
43498 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
43500 PR tree-optimization/64454
43501 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
43502 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
43503 for signed or [0, op1 - 1] for unsigned modulo.
43504 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
43505 even if op1 does not satisfy integer_pow2p.
43508 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
43510 2015-01-12 Jeff Law <law@redhat.com>
43513 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
43514 (trunchiqi2, truncsihi2): Similarly.
43516 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
43517 rather than calling F.
43519 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
43521 * tsan.c (instrument_expr): Use force_gimple_operand.
43522 Use may_be_nonaddressable_p instead of is_gimple_addressable.
43524 2015-01-12 Richard Biener <rguenther@suse.de>
43526 PR tree-optimization/64530
43527 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
43530 2015-01-12 Richard Biener <rguenther@suse.de>
43532 PR middle-end/64357
43533 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
43536 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43538 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
43539 Cortex-A17 tuning parameters.
43540 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
43542 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43544 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
43545 * config/arm/arm.c (arm_macro_fusion_p): New function.
43546 (arm_macro_fusion_pair_p): Likewise.
43547 (TARGET_SCHED_MACRO_FUSION_P): Define.
43548 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
43549 (ARM_FUSE_NOTHING): Likewise.
43550 (ARM_FUSE_MOVW_MOVT): Likewise.
43551 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
43552 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
43553 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
43554 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
43555 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
43556 arm_cortex_a5_tune): Specify fuseable_ops value.
43558 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
43561 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
43562 test for PIE with copy reloc.
43563 * configure: Regenerated.
43565 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43567 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
43569 (arm_tls_descseq_addr): Likewise.
43570 (arm_gen_movmemqi): Likewise.
43571 (arm_expand_epilogue_apcs_frame): Likewise.
43572 (arm_expand_epilogue): Likewise.
43573 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
43576 2015-01-12 Martin Liska <mliska@suse.cz>
43579 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
43580 volatility for correct operands.
43582 2015-01-12 Martin Liska <mliska@suse.cz>
43584 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
43585 indication that a function is not leaf.
43586 (sem_function::compare_polymorphic_p): Likewise.
43588 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43590 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
43591 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
43592 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
43593 fold-const.h, tree-check.h.
43595 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
43599 * ipa-inline.c (compute_uninlined_call_time,
43600 compute_inlined_call_time): Use counts for extra precision when
43602 (big_speedup_p): Fix formating.
43603 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
43604 (relative_time_benefit): Remove.
43605 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
43606 merge guessed and read profile paths.
43607 (inline_small_functions): Count only !optimize_size functions into
43608 initial size; be more lax about sanity check when profile is used;
43609 be sure to update inlined function profile when profile is read.
43611 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
43614 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
43615 cost when edge becomes direct.
43616 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
43617 is resolved or when introducing new speculation.
43619 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
43623 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
43624 '||' to fix typo issue.
43626 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
43627 accept and return NULL.
43629 2015-01-12 Martin Liska <mliska@suse.cz>
43631 * cgraph.c (cgraph_edge::remove_callee): Move function to header
43632 file for being inlined.
43633 (cgraph_set_edge_callee): Delete.
43634 (cgraph_edge::redirect_callee): Move function to header file
43636 (cgraph_edge::make_direct): Use new function.
43637 (cgraph_edge::dump_edge_flags): New function created from
43638 static dump_edge_flags function.
43639 (cgraph_node::dump): Use new function.
43640 (cgraph_edge::verify_count_and_frequency): New function created
43641 from verify_edge_count_and_frequency.
43642 (cgraph_edge::verify_corresponds_to_fndecl): New function created
43643 from verify_edge_corresponds_to_fndecl.
43644 (verify_edge_corresponds_to_fndecl): Delete.
43645 (cgraph_node::verify_node): Use new function.
43646 * cgraph.h (cgraph_edge::set_callee): New function.
43647 (cgraph_edge::dump_edge_flags): Likewise.
43648 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
43650 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
43652 * ipa-utils.c (estimate_function_body_sizes): Do not
43653 free node params when called late with early=true.
43655 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
43657 * doc/md.texi (Instruction Patterns): Rewrite text for
43659 (Example): Likewise.
43661 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
43663 * doc/invoke.texi (Option Summary): Break long lines.
43664 [(-fdiagnostics-color)]: Put long literal in @smallexample
43666 [(-fsanitize-recover)]: Likewise.
43667 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
43668 [(-ffast-math)]: Likewise.
43669 [(--param max-inline-insns-recursive)]: Likewise.
43670 [(--param max-inline-recursive-depth)]: Likewise.
43671 [(-mno-text-section-literals)]: Likewise.
43673 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
43675 * doc/install.texi: Update for libgomp being renamed from "GNU
43676 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
43678 * doc/sourcebuild.texi: Likewise.
43680 2015-01-10 Anthony Green <green@moxielogic.com>
43682 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
43683 mul.x availability for moxiebox configuration.
43685 2015-01-09 Anthony Green <green@moxielogic.com>
43687 * config/moxie/moxie.md: Tabify assembly output.
43689 2015-01-09 Anthony Green <green@moxielogic.com>
43691 * config/moxie/moxie.md (CC_REG): Correct register definition.
43693 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
43695 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
43696 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
43699 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43701 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
43703 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
43704 Jakub Jelinek <jakub@redhat.com>
43706 PR middle-end/64412
43707 * lto-streamer.h (lto_stream_offload_p): New declaration.
43708 * lto-streamer.c (lto_stream_offload_p): New variable.
43709 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
43710 at the same time as section_name_prefix.
43711 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
43712 if lto_stream_offload_p.
43713 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
43714 stream TREE_TARGET_OPTION if lto_stream_offload_p.
43715 (write_ts_function_decl_tree_pointers): Don't
43716 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
43717 * tree-streamer-in.c (unpack_value_fields): Don't stream
43718 TREE_TARGET_OPTION in if ACCEL_COMPILER.
43719 (lto_input_ts_function_decl_tree_pointers): Don't stream
43720 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
43721 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
43722 instead of section_name_prefix string comparisons.
43724 2015-01-09 Jakub Jelinek <jakub@redhat.com>
43726 PR rtl-optimization/64536
43727 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
43730 2015-01-09 Michael Collison <michael.collison@linaro.org>
43732 PR tree-optimization/64322
43733 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
43734 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
43736 2015-01-09 Tom de Vries <tom@codesourcery.com>
43738 PR rtl-optimization/64539
43739 * regcprop.c (kill_clobbered_values): Factor out of ...
43740 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
43741 instead of note_stores with kill_clobbered_value.
43743 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43745 * ginclude/unwind-arm-common.h: Revert previous commit.
43747 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
43749 * config.gcc (arm*-*-freebsd*): New configuration.
43750 * config/arm/freebsd.h: New file.
43751 * config.host: Add extra components for arm*-*-freebsd*.
43752 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
43753 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
43755 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43757 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
43759 * config/rs6000/t-rtems: Add e6500 multilibs.
43761 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43763 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
43766 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43768 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
43769 MULTILIB_EXCEPTIONS.
43771 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43773 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
43774 MULTILIB_EXCEPTIONS.
43776 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
43778 * config/arm/t-rtems-eabi: Rename to...
43779 * config/arm/t-rtems: ...this.
43780 * config/arm/rtems-eabi.h: Rename to...
43781 * config/arm/rtems.h: ...this.
43782 * config.gcc (arm*-*-rtems*): Reflect changes above.
43784 2015-01-09 Richard Biener <rguenther@suse.de>
43786 PR tree-optimization/64410
43787 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
43789 (execute_update_addresses_taken): Deal with that.
43790 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
43791 loads/stores for complex variables.
43793 2015-01-09 Martin Liska <mliska@suse.cz>
43795 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
43797 (func_checker::compare_memory_operand): New function.
43798 (func_checker::compare_operand): Split case to newly
43800 (func_checker::compare_cst_or_decl): New function.
43801 (func_checker::compare_gimple_call): Identify
43803 (func_checker::compare_gimple_assign): Likewise.
43804 * ipa-icf-gimple.h: New function.
43806 2015-01-09 Martin Liska <mliska@suse.cz>
43809 * sreal.c (sreal::dump): Change unsigned format to signed for
43811 (sreal::to_double): Replace exp2 with scalbln.
43813 2015-01-09 Martin Liska <mliska@suse.cz>
43815 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
43816 * ipa-icf.c (sem_function::equals_private): Add support for target and
43817 (sem_item_optimizer::merge_classes): Remove redundant function
43818 optimization flags comparison.
43819 * tree.h (target_opts_for_fn): New function.
43821 2015-01-09 Tom de Vries <tom@codesourcery.com>
43823 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
43825 2015-01-09 Kito Cheng <kito@0xlab.org>
43827 PR rtl-optimization/64348
43828 * lra-constraints.c (split_reg): Fix caller-save store/restore
43829 instruction generation.
43831 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
43833 PR gcov-profile/61790
43834 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
43835 long long. Fallback to int64_t if host doesn't have long long and
43836 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
43838 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43840 PR tree-optimization/63989
43841 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
43842 from 1000 to 10000.
43843 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
43844 (get_stridx): If we don't have a record for certain SSA_NAME,
43845 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
43846 constant offset, call get_stridx_plus_constant.
43847 (get_stridx_plus_constant): New function.
43848 (zero_length_string): Don't use get_stridx here.
43851 PR middle-end/64388
43852 * dse.c (struct insn_info): Mention frame_read set also
43853 before reload for tail calls on some targets.
43854 (scan_insn): Revert 2014-12-22 change. Set frame_read
43855 also before reload for tail calls if
43856 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
43857 instead of add_non_frame_wild_read for non-const/memset
43858 tail calls after reload.
43860 2015-01-08 Jason Merrill <jason@redhat.com>
43862 * ubsan.c (do_ubsan_in_current_function): New.
43863 (pass_ubsan::gate): Use it.
43864 * ubsan.h: Declare it.
43865 * convert.c (convert_to_integer): Use it.
43867 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43870 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
43871 compare_code when it is unconditionally overwritten afterwards.
43872 Use ix86_reverse_condition instead of reverse_condition. Don't
43873 change code if *reverse_condition* returned UNKNOWN and don't
43874 swap ct/cf and negate diff in that case.
43876 2015-01-08 Mike Stump <mikestump@comcast.net>
43878 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
43879 (pass_tsan_O0::gate): Likewise.
43880 * extend.texi (Function Attributes): Add no_sanitize_thread
43883 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
43885 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
43886 for registering builtins.
43887 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
43888 add -fopenmp to the argv_obstack used when invoking
43889 compile_for_target.
43891 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
43892 add "-m32" or "-m64" to argv_obstack.
43893 (generate_host_descr_file): Likewise, when invoking host_compiler.
43894 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
43897 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
43899 * config/sh/sh-mem.cc: Use constant as second operand when emitting
43902 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
43905 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
43906 constant load if constant operand fits into I08.
43908 2015-01-08 Jakub Jelinek <jakub@redhat.com>
43911 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
43912 and TREE_THIS_VOLATILE for MEM_REFs.
43913 (build5_stat): Fix up initialization of TREE_READONLY and
43914 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
43916 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
43919 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
43920 of r for the second alternative of the destination operand.
43922 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
43925 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
43927 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
43929 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
43931 ([-fivar-visibility], [-fvisibility]): Likewise.
43933 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
43935 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
43936 the file where @code, @command, etc is more appropriate.
43938 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
43940 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
43941 of -mrecip= documentation.
43943 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
43946 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
43947 correct reload handler if -m32 -mpowerpc64 is used.
43949 2015-01-06 Tom de Vries <tom@codesourcery.com>
43951 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
43953 2015-01-08 Christian Bruel <christian.bruel@st.com>
43956 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
43958 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
43960 PR tree-optimization/63259
43961 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
43962 if optab exists for 16bit byteswap.
43964 2015-01-06 Jakub Jelinek <jakub@redhat.com>
43966 * opts.c (common_handle_option): Add support for
43967 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
43968 * doc/invoke.texi: Document -fno-sanitize=all,
43969 -f{,no-}sanitize-recover=all. Document that
43970 -fsanitize=float-cast-overflow is not enabled
43971 by -fsanitize=undefined. Fix up documentation
43972 of -f{,no-}sanitize-recover.
43974 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
43976 * config.gcc: Add Visium support.
43977 * configure.ac: Likewise.
43978 * configure: Regenerate.
43979 * doc/extend.texi (interrupt attribute): Add Visium.
43980 * doc/invoke.texi: Document Visium options.
43981 * doc/install.texi: Document Visium target.
43982 * doc/md.texi: Document Visium constraints.
43983 * common/config/visium: New directory.
43984 * config/visium: Likewise.
43986 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43988 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
43989 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
43991 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43993 * combine.c (combine_validate_cost): Do not count the cost of a
43994 split I2 twice. Do not display it twice in the dump, either.
43996 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
43998 Revert parts of r219199.
43999 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
44001 ([-Wtraditional]): Restore markup on <limits.h>.
44003 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
44006 * doc/invoke.texi: Document -Wsuggest-override.
44008 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
44010 PR rtl-optimization/64287
44011 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
44012 (process_options): Disable flag_ipa_ra if profiling.
44014 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
44016 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
44018 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
44020 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
44021 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
44022 put under #if TARGET_LOOPS guard.
44024 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
44026 * config/i386/i386.c (output_387_binary_op): Use std::swap.
44028 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
44030 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
44031 * rtl.h (refers_to_regno_p): Add overload.
44033 * bt-load.c: Likewise.
44034 * combine.c: Likewise.
44035 * df-scan.c: Likewise.
44036 * sched-deps.c: Likewise.
44037 * config/s390/s390.c: Likewise.
44038 * config/m32r/m32r.c: Likewise.
44039 * config/rs6000/spe.md: Likewise.
44040 * config/rs6000/rs6000.c: Likewise.
44041 * config/pa/pa.c: Likewise.
44042 * config/stormy16/stormy16.c: Likewise.
44043 * config/cris/cris.c: Likewise.
44044 * config/arc/arc.md: Likewise.
44045 * config/arc/arc.c: Likewise.
44046 * config/sh/sh.md: Likewise.
44047 * config/sh/sh.c: Likewise.
44048 * config/frv/frv.c: Likewise.
44050 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44053 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
44054 call as cleanup of the whole body.
44055 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
44056 * tsan.c (replace_func_exit): New function.
44057 (instrument_func_exit): Moved earlier.
44058 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
44059 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
44061 (tsan_pass): Don't call instrument_func_exit.
44062 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
44063 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
44067 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
44068 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
44069 it to libubsan handler instead of EXPR. Fold comparisons earlier,
44070 if the result is integer_zerop, return NULL_TREE.
44071 * convert.c (convert_to_integer): Pass expr as ARG.
44073 PR tree-optimization/64465
44074 * tree-inline.c (redirect_all_calls): During inlining
44075 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
44076 changed the stmt to a non-throwing call.
44078 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
44080 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
44081 etc markup throughout the file.
44083 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
44085 Enable experimental TSAN support for Ada.
44086 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
44088 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44090 PR tree-optimization/64494
44091 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
44092 clear SSA_NAME_ANTI_RANGE_P flag.
44094 2015-01-05 Marek Polacek <polacek@redhat.com>
44096 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
44098 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44100 Update copyright years.
44102 * gcc.c (process_command): Update copyright notice dates.
44103 * gcov-dump.c: Ditto.
44105 * doc/cpp.texi: Bump @copying's copyright year.
44106 * doc/cppinternals.texi: Ditto.
44107 * doc/gcc.texi: Ditto.
44108 * doc/gccint.texi: Ditto.
44109 * doc/gcov.texi: Ditto.
44110 * doc/install.texi: Ditto.
44111 * doc/invoke.texi: Ditto.
44113 * auto-profile.c, auto-profile.h: Fix up Copyright line.
44115 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
44117 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
44119 ([-fvtable-verify], [-fvtv-debug]): Likewise.
44120 ([-Wabi]): Likewise.
44121 ([-fmessage-length]): Likewise.
44122 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
44123 ([-Wno-discarded-qualifiers]): Likewise.
44124 ([-Wnodiscarded-array-qualifiers]): Likewise.
44125 ([-Wno-virtual-move-assign]): Likewise.
44126 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
44127 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
44128 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
44129 ([-fsanitize-undefined-trap-on-error]): Likewise.
44130 ([-floop-interchange]): Likewise.
44131 ([-ftree-coalesce-inlined-vars]): Likewise.
44132 ([-fvect-cost-model]): Likewise.
44133 ([-flto]): Likewise.
44134 ([--param]): Likewise.
44135 (Spec Files): Likewise.
44136 ([-mstrict-align]): Likewise.
44137 ([-mfix-cortex-a53-835769]): Likewise.
44138 ([-march], [-mtune]): Likewise.
44139 ([-mpic-register]): Likewise.
44140 ([-munaligned-access]): Likewise.
44141 ([-msp8]): Likewise.
44142 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
44143 (AVR Built-in Macros): Likewise.
44144 ([-mpreferred-stack-boundary]): Likewise.
44145 ([-mtune-crtl]): Likewise.
44146 ([-mashf]): Likewise.
44147 ([-mmcu=]): Likewise.
44148 ([-minrt]): Likewise.
44149 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
44150 ([-mupper-regs]): Likewise.
44151 ([-matomic-model]): Likewise.
44152 ([-mdiv]): Likewise.
44153 ([-mzdcbranch]): Likewise.
44154 ([-mdisable-callt]): Likewise.
44155 ([-msoft-float]): Likewise.
44156 ([-m8byte-align]): Likewise.
44157 ([-fstack-reuse]): Likewise.
44159 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44161 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
44162 Fix markup, light copy-editing.
44163 ([-fauto-profile]): Rewrite to fix formatting and content
44166 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44168 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
44169 Copy-edit description.
44170 ([-fisolate-erroneous-paths-attribute]): Likewise.
44171 * common.opt (fisolate-erroneous-paths-dereference):
44172 Copy-edit description.
44173 (fisolate-erroneous-paths-attribute): Likewise.
44175 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44177 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
44180 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44182 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
44183 ([-fvtv-debug]): Likewise.
44184 ([-Wc++-compat]): Likewise.
44185 ([-Wc++11-compat]): Likewise.
44186 ([-Wc++14-compat]): Likewise.
44187 ([-Wno-sized-deallocation]): Likewise.
44188 ([-femit-class-debug-always]): Likewise.
44189 ([-femit-struct-debug-detailed]): Likewise.
44190 ([-fno-keep-inline-dllexport]): Likewise.
44191 ([-fira-algorithm]): Likewise.
44192 ([-fira-region]): Likewise.
44193 ([-flra-remat]): Likewise.
44194 ([-fipa-ra]): Likewise.
44195 ([-fhoist-adjacent-loads]): Likewise.
44196 ([-fisolate-erroneous-paths-dereference]): Likewise.
44197 ([-fisolate-erroneous-paths-attribute]): Likewise.
44198 ([-ftree-switch-conversion]): Likewise.
44199 ([-ftree-tail-merge]): Likewise.
44200 ([-ftree-loop-if-convert]): Likewise.
44201 ([-ftree-loop-if-convert-stores]): Likewise.
44202 ([-ftree-loop-distribution]): Likewise.
44203 ([-ftree-loop-distribute-patterns]): Likewise.
44204 ([-flto-compression-level]): Likewise.
44205 ([-flto-report]): Likewise.
44206 ([-flto-report-wpa]): Likewise.
44207 ([-fuse-linker-plugin]): Likewise.
44208 ([-mfix-cortex-a53-835769]): Likewise.
44209 ([-mno-fix-cortex-a53-835769]): Likewise.
44210 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
44211 explicit listing; add a note to the discussion indicating they
44212 exist. Reorder table to group similar options. Add missing
44213 @opindex entries. Add @need commands throughout the table to
44214 allow it to be split across multiple pages.
44215 ([-m8bit-idiv]): Fix @opindex.
44216 ([-mavx256-split-unaligned-load]): Likewise.
44217 ([-mavx256-split-unaligned-store]): Likewise.
44218 ([-mstack-protector-guard]): Likewise.
44219 ([-mcpu=]): Likewise.
44220 ([-mcpu]): Likewise.
44221 ([-mpointer-size=]): Likewise.
44223 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
44225 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
44226 instead of `m' constraint. Likewise for unnamed movb comparison
44227 patterns using reg_before_reload_operand predicate.
44228 * config/pa/predicates.md (reg_before_reload_operand): Tighten
44229 predicate to reject register index and LO_SUM DLT memory forms
44232 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44234 * doc/invoke.texi (Option Summary): Fix spelling of
44235 -fdevirtualize-at-ltrans.
44236 ([-fdevirtualize]): Fix markup.
44237 ([-fdevirtualize-speculatively]): Fix typo.
44238 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
44239 implementor-speaky.
44240 * common.opt (fdevirtualize-at-ltrans): Likewise.
44241 * ipa-devirt.c: Fix typos in comments throughout the file.
44242 (ipa_devirt): Fix typos in format strings for dump output.
44244 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44246 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
44247 discussion of defaults, light copy-editing.
44249 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44251 * tsan.c (instrument_expr): corrected previous checkin.
44253 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44255 Instrument bit field and unaligned accesses for TSAN.
44256 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
44257 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
44258 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
44259 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
44260 unaligned memory regions.
44262 2015-01-01 Anthony Green <green@moxielogic.com>
44264 * config/moxie/predicates.md (moxie_general_movsrc_operand):
44265 Restrict move source register offsets to 16 bits.
44267 Copyright (C) 2015 Free Software Foundation, Inc.
44269 Copying and distribution of this file, with or without modification,
44270 are permitted in any medium without royalty provided the copyright
44271 notice and this notice are preserved.